diff options
Diffstat (limited to 'src/objects/_badge.vars.scss')
-rw-r--r-- | src/objects/_badge.vars.scss | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/src/objects/_badge.vars.scss b/src/objects/_badge.vars.scss index 4941ccf..5629a9c 100644 --- a/src/objects/_badge.vars.scss +++ b/src/objects/_badge.vars.scss | |||
@@ -119,36 +119,41 @@ $static-themes: props.def(--o-badge); | |||
119 | )); | 119 | )); |
120 | } | 120 | } |
121 | 121 | ||
122 | $themes-config: accent positive negative warning !default; | 122 | $themes-config: ( |
123 | accent: --accent, | ||
124 | positive: --positive, | ||
125 | negative: --negative, | ||
126 | warning: --warning, | ||
127 | ) !default; | ||
123 | 128 | ||
124 | $themes: props.def(--o-badge); | 129 | $themes: props.def(--o-badge); |
125 | 130 | ||
126 | @each $theme in $themes-config { | 131 | @each $theme, $key in $themes-config { |
127 | $themes: props.merge($themes, ( | 132 | $themes: props.merge($themes, ( |
128 | --#{$theme}: ( | 133 | --#{$theme}: ( |
129 | --bg: props.get(core.$theme, --#{$theme}-static, --900), | 134 | --bg: props.get(core.$theme, #{$key}-static, --900), |
130 | --label: props.get(core.$theme, --#{$theme}-static, --900-text), | 135 | --label: props.get(core.$theme, #{$key}-static, --900-text), |
131 | 136 | ||
132 | --hover: ( | 137 | --hover: ( |
133 | --bg: props.get(core.$theme, --#{$theme}-static, --1000), | 138 | --bg: props.get(core.$theme, #{$key}-static, --1000), |
134 | --label: props.get(core.$theme, --#{$theme}-static, --1000-text), | 139 | --label: props.get(core.$theme, #{$key}-static, --1000-text), |
135 | ), | 140 | ), |
136 | 141 | ||
137 | --active: ( | 142 | --active: ( |
138 | --bg: props.get(core.$theme, --#{$theme}-static, --1100), | 143 | --bg: props.get(core.$theme, #{$key}-static, --1100), |
139 | --label: props.get(core.$theme, --#{$theme}-static, --1000-text), | 144 | --label: props.get(core.$theme, #{$key}-static, --1000-text), |
140 | ), | 145 | ), |
141 | 146 | ||
142 | --quiet: ( | 147 | --quiet: ( |
143 | --bg: props.get(core.$theme, --#{$theme}, --200), | 148 | --bg: props.get(core.$theme, $key, --200), |
144 | --label: props.get(core.$theme, --#{$theme}, --1100), | 149 | --label: props.get(core.$theme, $key, --1100), |
145 | --hover: ( | 150 | --hover: ( |
146 | --bg: props.get(core.$theme, --#{$theme}, --300), | 151 | --bg: props.get(core.$theme, $key, --300), |
147 | --label: props.get(core.$theme, --#{$theme}, --1200), | 152 | --label: props.get(core.$theme, $key, --1200), |
148 | ), | 153 | ), |
149 | --active: ( | 154 | --active: ( |
150 | --bg: props.get(core.$theme, --#{$theme}, --400), | 155 | --bg: props.get(core.$theme, $key, --400), |
151 | --label: props.get(core.$theme, --#{$theme}, --1300), | 156 | --label: props.get(core.$theme, $key, --1300), |
152 | ), | 157 | ), |
153 | ) | 158 | ) |
154 | ) | 159 | ) |