diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/objects/_button.vars.scss | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/src/objects/_button.vars.scss b/src/objects/_button.vars.scss index 80d9274..237cb79 100644 --- a/src/objects/_button.vars.scss +++ b/src/objects/_button.vars.scss | |||
@@ -37,29 +37,47 @@ $sizes: ( | |||
37 | 37 | ||
38 | $default-theme-override: () !default; | 38 | $default-theme-override: () !default; |
39 | $default-theme: props.def(--o-button, ( | 39 | $default-theme: props.def(--o-button, ( |
40 | --default: ( | 40 | --bg: props.get(core.$theme, --border-mute), |
41 | --label: props.get(core.$theme, --text), | ||
42 | --outline-border: props.get(core.$theme, --border), | ||
43 | --outline-label: props.get(core.$theme, --text), | ||
44 | |||
45 | --hover: ( | ||
46 | --bg: props.get(core.$theme, --border), | ||
47 | --label: props.get(core.$theme, --heading), | ||
48 | ), | ||
49 | |||
50 | --active: ( | ||
51 | --bg: props.get(core.$theme, --border-strong), | ||
52 | --label: props.get(core.$theme, --heading), | ||
53 | ), | ||
54 | |||
55 | --disabled: ( | ||
41 | --bg: props.get(core.$theme, --border-mute), | 56 | --bg: props.get(core.$theme, --border-mute), |
42 | --label: props.get(core.$theme, --text), | ||
43 | --outline-border: props.get(core.$theme, --border), | 57 | --outline-border: props.get(core.$theme, --border), |
58 | --label: props.get(core.$theme, --text-disabled), | ||
59 | ), | ||
60 | |||
61 | --key-focus: ( | ||
62 | --label: props.get(core.$theme, --focus --text), | ||
63 | --border: props.get(core.$theme, --focus --border), | ||
64 | --outline: props.get(core.$theme, --focus --outline), | ||
65 | ), | ||
66 | |||
67 | --primary: ( | ||
68 | --bg: props.get(core.$theme, --base, --800), | ||
69 | --label: props.get(core.$theme, --base, --800-text), | ||
70 | --outline-border: props.get(core.$theme, --base, --800), | ||
44 | --outline-label: props.get(core.$theme, --text), | 71 | --outline-label: props.get(core.$theme, --text), |
45 | 72 | ||
46 | --hover: ( | 73 | --hover: ( |
47 | --bg: props.get(core.$theme, --border), | 74 | --bg: props.get(core.$theme, --base, --900), |
48 | --label: props.get(core.$theme, --heading), | 75 | --label: props.get(core.$theme, --base, --900-text), |
49 | ), | 76 | ), |
77 | |||
50 | --active: ( | 78 | --active: ( |
51 | --bg: props.get(core.$theme, --border-strong), | 79 | --bg: props.get(core.$theme, --base, --900), |
52 | --label: props.get(core.$theme, --heading), | 80 | --label: props.get(core.$theme, --base, --900-text), |
53 | ), | ||
54 | --disabled: ( | ||
55 | --bg: props.get(core.$theme, --border-mute), | ||
56 | --outline-border: props.get(core.$theme, --border), | ||
57 | --label: props.get(core.$theme, --text-disabled), | ||
58 | ), | ||
59 | --key-focus: ( | ||
60 | --label: props.get(core.$theme, --focus --text), | ||
61 | --border: props.get(core.$theme, --focus --border), | ||
62 | --outline: props.get(core.$theme, --focus --outline), | ||
63 | ), | 81 | ), |
64 | ), | 82 | ), |
65 | )); | 83 | )); |
@@ -122,24 +140,7 @@ $static-themes: props.def(--o-button); | |||
122 | 140 | ||
123 | $themes-config: --accent --negative !default; | 141 | $themes-config: --accent --negative !default; |
124 | 142 | ||
125 | $themes: props.def(--o-button, ( | 143 | $themes: props.def(--o-button); |
126 | --primary: ( | ||
127 | --bg: props.get(core.$theme, --base, --800), | ||
128 | --label: props.get(core.$theme, --base, --800-text), | ||
129 | --outline-border: props.get(core.$theme, --base, --800), | ||
130 | --outline-label: props.get(core.$theme, --text), | ||
131 | |||
132 | --hover: ( | ||
133 | --bg: props.get(core.$theme, --base, --900), | ||
134 | --label: props.get(core.$theme, --base, --900-text), | ||
135 | ), | ||
136 | |||
137 | --active: ( | ||
138 | --bg: props.get(core.$theme, --base, --900), | ||
139 | --label: props.get(core.$theme, --base, --900-text), | ||
140 | ), | ||
141 | ), | ||
142 | )); | ||
143 | 144 | ||
144 | @each $theme in $themes-config { | 145 | @each $theme in $themes-config { |
145 | $themes: props.merge($themes, ( | 146 | $themes: props.merge($themes, ( |