mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(themes): add tint and shade variants
This commit is contained in:
@@ -8,7 +8,7 @@ h1 {
|
||||
textarea {
|
||||
margin: 12px 0 0 0;
|
||||
min-width: 300px;
|
||||
height: 550px;
|
||||
height: 640px;
|
||||
font-family: Courier New, Courier, monospace;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,4 +15,6 @@ main > section {
|
||||
|
||||
.selector-column {
|
||||
max-width: 600px;
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
@@ -7,54 +7,108 @@ export const THEME_VARIABLES = [
|
||||
{
|
||||
property: '--primary-contrast'
|
||||
},
|
||||
{
|
||||
property: '--primary-tint'
|
||||
},
|
||||
{
|
||||
property: '--primary-shade'
|
||||
},
|
||||
{
|
||||
property: '--secondary'
|
||||
},
|
||||
{
|
||||
property: '--secondary-contrast'
|
||||
},
|
||||
{
|
||||
property: '--secondary-tint'
|
||||
},
|
||||
{
|
||||
property: '--secondary-shade'
|
||||
},
|
||||
{
|
||||
property: '--tertiary'
|
||||
},
|
||||
{
|
||||
property: '--tertiary-contrast'
|
||||
},
|
||||
{
|
||||
property: '--tertiary-tint'
|
||||
},
|
||||
{
|
||||
property: '--tertiary-shade'
|
||||
},
|
||||
{
|
||||
property: '--success'
|
||||
},
|
||||
{
|
||||
property: '--success-contrast'
|
||||
},
|
||||
{
|
||||
property: '--success-tint'
|
||||
},
|
||||
{
|
||||
property: '--success-shade'
|
||||
},
|
||||
{
|
||||
property: '--warning'
|
||||
},
|
||||
{
|
||||
property: '--warning-contrast'
|
||||
},
|
||||
{
|
||||
property: '--warning-tint'
|
||||
},
|
||||
{
|
||||
property: '--warning-shade'
|
||||
},
|
||||
{
|
||||
property: '--danger'
|
||||
},
|
||||
{
|
||||
property: '--danger-contrast'
|
||||
},
|
||||
{
|
||||
property: '--danger-tint'
|
||||
},
|
||||
{
|
||||
property: '--danger-shade'
|
||||
},
|
||||
{
|
||||
property: '--light'
|
||||
},
|
||||
{
|
||||
property: '--light-contrast'
|
||||
},
|
||||
{
|
||||
property: '--light-tint'
|
||||
},
|
||||
{
|
||||
property: '--light-shade'
|
||||
},
|
||||
{
|
||||
property: '--medium'
|
||||
},
|
||||
{
|
||||
property: '--medium-contrast'
|
||||
},
|
||||
{
|
||||
property: '--medium-tint'
|
||||
},
|
||||
{
|
||||
property: '--medium-shade'
|
||||
},
|
||||
{
|
||||
property: '--dark'
|
||||
},
|
||||
{
|
||||
property: '--dark-contrast'
|
||||
},
|
||||
{
|
||||
property: '--dark-tint'
|
||||
},
|
||||
{
|
||||
property: '--dark-shade'
|
||||
},
|
||||
{
|
||||
property: '--text-color'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user