@microsoft/atlas-css 3.43.0 → 3.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -42
- package/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +91 -91
- package/src/atomics/README.md +56 -56
- package/src/atomics/aspect-ratio.scss +13 -13
- package/src/atomics/background.scss +11 -11
- package/src/atomics/border.scss +113 -113
- package/src/atomics/colors.scss +204 -204
- package/src/atomics/display.scss +33 -33
- package/src/atomics/flex.scss +74 -71
- package/src/atomics/gap.scss +60 -60
- package/src/atomics/image.scss +15 -15
- package/src/atomics/index.scss +18 -18
- package/src/atomics/line-clamp.scss +15 -15
- package/src/atomics/list.scss +8 -3
- package/src/atomics/overflow.scss +9 -9
- package/src/atomics/position.scss +19 -19
- package/src/atomics/shadow.scss +19 -19
- package/src/atomics/spacing-auto.scss +52 -52
- package/src/atomics/spacing.scss +98 -98
- package/src/atomics/typography.scss +203 -203
- package/src/atomics/visually-hidden.scss +4 -4
- package/src/atomics/width.scss +44 -44
- package/src/components/README.md +69 -69
- package/src/components/banner.scss +69 -69
- package/src/components/breadcrumbs.scss +37 -37
- package/src/components/button-reset.scss +8 -8
- package/src/components/button.scss +241 -241
- package/src/components/buttons.scss +93 -93
- package/src/components/card.scss +252 -252
- package/src/components/form/checkbox.scss +141 -141
- package/src/components/form/form.scss +67 -67
- package/src/components/form/help.scss +18 -18
- package/src/components/form/index.scss +8 -8
- package/src/components/form/input.scss +143 -143
- package/src/components/form/label.scss +14 -14
- package/src/components/form/radio.scss +121 -121
- package/src/components/form/select.scss +116 -116
- package/src/components/form/textarea.scss +82 -82
- package/src/components/gradient-card.scss +14 -14
- package/src/components/gradient.scss +85 -85
- package/src/components/hero.scss +197 -197
- package/src/components/icon.scss +20 -20
- package/src/components/image.scss +44 -44
- package/src/components/index.scss +27 -27
- package/src/components/layout.scss +189 -189
- package/src/components/link-button.scss +34 -34
- package/src/components/markdown.scss +158 -158
- package/src/components/media.scss +22 -22
- package/src/components/message.scss +74 -74
- package/src/components/notification.scss +101 -101
- package/src/components/pagination.scss +183 -183
- package/src/components/persona.scss +60 -60
- package/src/components/popover.scss +42 -42
- package/src/components/scroll.scss +26 -26
- package/src/components/segmented-control.scss +128 -128
- package/src/components/site-header.scss +255 -255
- package/src/components/stretched-link.scss +8 -8
- package/src/components/table.scss +114 -114
- package/src/components/toggle.scss +86 -86
- package/src/core/animations.scss +55 -55
- package/src/core/bare-elements.scss +38 -38
- package/src/core/focus.scss +45 -45
- package/src/core/font-stack.scss +28 -28
- package/src/core/index.scss +7 -7
- package/src/core/minireset.scss +79 -79
- package/src/core/normalize.scss +353 -353
- package/src/core/themes.scss +91 -91
- package/src/index.scss +5 -5
- package/src/mixins/center.scss +11 -11
- package/src/mixins/code-block.scss +43 -43
- package/src/mixins/colors.scss +6 -6
- package/src/mixins/control.scss +43 -43
- package/src/mixins/dismiss.scss +22 -22
- package/src/mixins/focus.scss +23 -23
- package/src/mixins/font-size.scss +35 -35
- package/src/mixins/force-colors.scss +5 -5
- package/src/mixins/gradient.scss +11 -11
- package/src/mixins/index.scss +17 -17
- package/src/mixins/layout-gap.scss +7 -7
- package/src/mixins/line-clamp.scss +15 -15
- package/src/mixins/loader.scss +16 -16
- package/src/mixins/media-queries.scss +61 -61
- package/src/mixins/overlay.scss +12 -12
- package/src/mixins/transparency.scss +15 -15
- package/src/mixins/unselectable.scss +13 -13
- package/src/mixins/visually-hidden.scss +12 -12
- package/src/tokens/animation.scss +8 -8
- package/src/tokens/border.scss +12 -12
- package/src/tokens/breakpoints.scss +11 -11
- package/src/tokens/colors.scss +239 -239
- package/src/tokens/direction.scss +25 -25
- package/src/tokens/display.scss +5 -5
- package/src/tokens/focus.scss +9 -9
- package/src/tokens/font-stack.scss +10 -10
- package/src/tokens/index.scss +17 -17
- package/src/tokens/layout.scss +17 -17
- package/src/tokens/palette.scss +200 -200
- package/src/tokens/position.scss +5 -5
- package/src/tokens/schemes.scss +14 -14
- package/src/tokens/shadow.scss +11 -11
- package/src/tokens/spacing.scss +25 -25
- package/src/tokens/themes.scss +318 -318
- package/src/tokens/typography.scss +33 -33
- package/src/tokens/z-index.scss +20 -20
- package/tokens/README.md +34 -34
- package/tokens/index.js +246 -246
- package/tokens/types.d.ts +35 -35
package/src/tokens/colors.scss
CHANGED
|
@@ -1,239 +1,239 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="colors"
|
|
3
|
-
*/
|
|
4
|
-
$white-static: #fff;
|
|
5
|
-
$black-static: #000;
|
|
6
|
-
|
|
7
|
-
$text: var(--theme-text);
|
|
8
|
-
$text-subtle: var(--theme-text-subtle);
|
|
9
|
-
$text-invert: var(--theme-text-invert);
|
|
10
|
-
$hyperlink: var(--theme-hyperlink);
|
|
11
|
-
$text-glow-high-contrast: var(--theme-text-glow-high-contrast);
|
|
12
|
-
$box-shadow-color-light: var(--theme-box-shadow-light);
|
|
13
|
-
$box-shadow-color-medium: var(--theme-box-shadow-medium);
|
|
14
|
-
$box-shadow-color-heavy: var(--theme-box-shadow-heavy);
|
|
15
|
-
$box-shadow-color-extra-heavy: var(--theme-box-shadow-extra-heavy);
|
|
16
|
-
|
|
17
|
-
$body-background: var(--theme-body-background);
|
|
18
|
-
$body-background-medium: var(--theme-body-background-medium);
|
|
19
|
-
$body-background-accent: var(--theme-body-background-accent);
|
|
20
|
-
|
|
21
|
-
$alternate-background: var(--theme-alternate-background);
|
|
22
|
-
$alternate-background-medium: var(--theme-alternate-background-medium);
|
|
23
|
-
|
|
24
|
-
$overlay: var(--theme-overlay);
|
|
25
|
-
$overlay-invert: var(--theme-overlay-invert);
|
|
26
|
-
$overlay-static: $palette-black-opacity-50;
|
|
27
|
-
$border: var(--theme-border);
|
|
28
|
-
$border-accent: var(--theme-border-accent);
|
|
29
|
-
|
|
30
|
-
$card-background: var(--theme-card-background);
|
|
31
|
-
|
|
32
|
-
$code-header: var(--theme-code-header);
|
|
33
|
-
$code-block: var(--theme-code-block);
|
|
34
|
-
$inline-code: var(--theme-inline-code);
|
|
35
|
-
|
|
36
|
-
$control-border: var(--theme-control-border);
|
|
37
|
-
|
|
38
|
-
$table-header: var(--theme-table-header);
|
|
39
|
-
$table-row: var(--theme-table-row);
|
|
40
|
-
$table-row-header: var(--theme-table-row-header);
|
|
41
|
-
$table-border-dark: var(--theme-table-border-dark);
|
|
42
|
-
|
|
43
|
-
$facepile-red: var(--theme-facepile-red);
|
|
44
|
-
$facepile-teal: var(--theme-facepile-teal);
|
|
45
|
-
$facepile-blue: var(--theme-facepile-blue);
|
|
46
|
-
|
|
47
|
-
$gradient-text-purple: var(--theme-gradient-text-purple);
|
|
48
|
-
$gradient-text-blue: var(--theme-gradient-text-blue);
|
|
49
|
-
$gradient-vivid-start: var(--theme-gradient-vivid-start);
|
|
50
|
-
$gradient-vivid-end: var(--theme-gradient-vivid-end);
|
|
51
|
-
|
|
52
|
-
$default-hover: var(--theme-hover-base);
|
|
53
|
-
$default-hover-invert: $body-background-medium;
|
|
54
|
-
$border-white-high-contrast: var(--theme-border-white-high-contrast);
|
|
55
|
-
$border-yellow-high-contrast: var(--theme-border-yellow-high-contrast);
|
|
56
|
-
$code-highlight-background: var(--theme-code-highlight-background);
|
|
57
|
-
$visited: var(--theme-visited);
|
|
58
|
-
|
|
59
|
-
$score-low-off: var(--theme-score-low-off);
|
|
60
|
-
$score-low: var(--theme-score-low);
|
|
61
|
-
$score-medium-off: var(--theme-score-medium-off);
|
|
62
|
-
$score-medium: var(--theme-score-medium);
|
|
63
|
-
$score-high-off: var(--theme-score-high-off);
|
|
64
|
-
$score-high: var(--theme-score-high);
|
|
65
|
-
|
|
66
|
-
$primary: var(--theme-primary-base);
|
|
67
|
-
$primary-background: var(--theme-primary-background);
|
|
68
|
-
$primary-background-glow-high-contrast: var(--theme-primary-background-glow-high-contrast);
|
|
69
|
-
$primary-dark: var(--theme-primary-dark);
|
|
70
|
-
$primary-hover: var(--theme-primary-hover);
|
|
71
|
-
$primary-active: var(--theme-primary-active);
|
|
72
|
-
$primary-invert: var(--theme-primary-invert);
|
|
73
|
-
$primary-box-shadow: var(--theme-primary-box-shadow);
|
|
74
|
-
|
|
75
|
-
$secondary: var(--theme-secondary-base);
|
|
76
|
-
$secondary-background: var(--theme-secondary-background);
|
|
77
|
-
$secondary-background-glow-high-contrast: var(--theme-secondary-background-glow-high-contrast);
|
|
78
|
-
$secondary-dark: var(--theme-secondary-dark);
|
|
79
|
-
$secondary-hover: var(--theme-secondary-hover);
|
|
80
|
-
$secondary-active: var(--theme-secondary-active);
|
|
81
|
-
$secondary-invert: var(--theme-secondary-invert);
|
|
82
|
-
$secondary-box-shadow: var(--theme-secondary-box-shadow);
|
|
83
|
-
|
|
84
|
-
$tertiary: var(--theme-tertiary-base);
|
|
85
|
-
$tertiary-background: var(--theme-tertiary-background);
|
|
86
|
-
$tertiary-background-glow-high-contrast: var(--theme-tertiary-background-glow-high-contrast);
|
|
87
|
-
$tertiary-dark: var(--theme-tertiary-dark);
|
|
88
|
-
$tertiary-hover: var(--theme-tertiary-hover);
|
|
89
|
-
$tertiary-active: var(--theme-tertiary-active);
|
|
90
|
-
$tertiary-invert: var(--theme-tertiary-invert);
|
|
91
|
-
$tertiary-box-shadow: var(--theme-tertiary-box-shadow);
|
|
92
|
-
|
|
93
|
-
$success: var(--theme-success-base);
|
|
94
|
-
$success-background: var(--theme-success-background);
|
|
95
|
-
$success-background-glow-high-contrast: var(--theme-success-background-glow-high-contrast);
|
|
96
|
-
$success-dark: var(--theme-success-dark);
|
|
97
|
-
$success-hover: var(--theme-success-hover);
|
|
98
|
-
$success-active: var(--theme-success-active);
|
|
99
|
-
$success-invert: var(--theme-success-invert);
|
|
100
|
-
$success-box-shadow: var(--theme-success-box-shadow);
|
|
101
|
-
|
|
102
|
-
$info: var(--theme-info-base);
|
|
103
|
-
$info-background: var(--theme-info-background);
|
|
104
|
-
$info-background-glow-high-contrast: var(--theme-info-background-glow-high-contrast);
|
|
105
|
-
$info-dark: var(--theme-info-dark);
|
|
106
|
-
$info-hover: var(--theme-info-hover);
|
|
107
|
-
$info-active: var(--theme-info-active);
|
|
108
|
-
$info-invert: var(--theme-info-invert);
|
|
109
|
-
$info-box-shadow: var(--theme-info-box-shadow);
|
|
110
|
-
|
|
111
|
-
$warning: var(--theme-warning-base);
|
|
112
|
-
$warning-background: var(--theme-warning-background);
|
|
113
|
-
$warning-background-glow-high-contrast: var(--theme-warning-background-glow-high-contrast);
|
|
114
|
-
$warning-dark: var(--theme-warning-dark);
|
|
115
|
-
$warning-hover: var(--theme-warning-hover);
|
|
116
|
-
$warning-active: var(--theme-warning-active);
|
|
117
|
-
$warning-invert: var(--theme-warning-invert);
|
|
118
|
-
$warning-box-shadow: var(--theme-warning-box-shadow);
|
|
119
|
-
|
|
120
|
-
$danger: var(--theme-danger-base);
|
|
121
|
-
$danger-background: var(--theme-danger-background);
|
|
122
|
-
$danger-background-glow-high-contrast: var(--theme-danger-background-glow-high-contrast);
|
|
123
|
-
$danger-dark: var(--theme-danger-dark);
|
|
124
|
-
$danger-hover: var(--theme-danger-hover);
|
|
125
|
-
$danger-active: var(--theme-danger-active);
|
|
126
|
-
$danger-invert: var(--theme-danger-invert);
|
|
127
|
-
$danger-box-shadow: var(--theme-danger-box-shadow);
|
|
128
|
-
|
|
129
|
-
$colors: (
|
|
130
|
-
'primary': (
|
|
131
|
-
$primary,
|
|
132
|
-
$primary-background,
|
|
133
|
-
$primary-dark,
|
|
134
|
-
$primary-hover,
|
|
135
|
-
$primary-active,
|
|
136
|
-
$primary-invert,
|
|
137
|
-
$primary-box-shadow,
|
|
138
|
-
$primary-background-glow-high-contrast
|
|
139
|
-
),
|
|
140
|
-
'secondary': (
|
|
141
|
-
$secondary,
|
|
142
|
-
$secondary-background,
|
|
143
|
-
$secondary-dark,
|
|
144
|
-
$secondary-hover,
|
|
145
|
-
$secondary-active,
|
|
146
|
-
$secondary-invert,
|
|
147
|
-
$secondary-box-shadow,
|
|
148
|
-
$secondary-background-glow-high-contrast
|
|
149
|
-
),
|
|
150
|
-
'tertiary': (
|
|
151
|
-
$tertiary,
|
|
152
|
-
$tertiary-background,
|
|
153
|
-
$tertiary-dark,
|
|
154
|
-
$tertiary-hover,
|
|
155
|
-
$tertiary-active,
|
|
156
|
-
$tertiary-invert,
|
|
157
|
-
$tertiary-box-shadow,
|
|
158
|
-
$tertiary-background-glow-high-contrast
|
|
159
|
-
),
|
|
160
|
-
'success': (
|
|
161
|
-
$success,
|
|
162
|
-
$success-background,
|
|
163
|
-
$success-dark,
|
|
164
|
-
$success-hover,
|
|
165
|
-
$success-active,
|
|
166
|
-
$success-invert,
|
|
167
|
-
$success-box-shadow,
|
|
168
|
-
$success-background-glow-high-contrast
|
|
169
|
-
),
|
|
170
|
-
'info': (
|
|
171
|
-
$info,
|
|
172
|
-
$info-background,
|
|
173
|
-
$info-dark,
|
|
174
|
-
$info-hover,
|
|
175
|
-
$info-active,
|
|
176
|
-
$info-invert,
|
|
177
|
-
$info-box-shadow,
|
|
178
|
-
$info-background-glow-high-contrast
|
|
179
|
-
),
|
|
180
|
-
'warning': (
|
|
181
|
-
$warning,
|
|
182
|
-
$warning-background,
|
|
183
|
-
$warning-dark,
|
|
184
|
-
$warning-hover,
|
|
185
|
-
$warning-active,
|
|
186
|
-
$warning-invert,
|
|
187
|
-
$warning-box-shadow,
|
|
188
|
-
$warning-background-glow-high-contrast
|
|
189
|
-
),
|
|
190
|
-
'danger': (
|
|
191
|
-
$danger,
|
|
192
|
-
$danger-background,
|
|
193
|
-
$danger-dark,
|
|
194
|
-
$danger-hover,
|
|
195
|
-
$danger-active,
|
|
196
|
-
$danger-invert,
|
|
197
|
-
$danger-box-shadow,
|
|
198
|
-
$danger-background-glow-high-contrast
|
|
199
|
-
)
|
|
200
|
-
) !default;
|
|
201
|
-
|
|
202
|
-
// Combined framework and brand colors for the array used in all the loops
|
|
203
|
-
|
|
204
|
-
// Color indexes, for use in color loops.
|
|
205
|
-
|
|
206
|
-
$color-index-base: 1;
|
|
207
|
-
$color-index-background: 2;
|
|
208
|
-
$color-index-dark: 3;
|
|
209
|
-
$color-index-hover: 4;
|
|
210
|
-
$color-index-active: 5;
|
|
211
|
-
$color-index-invert: 6;
|
|
212
|
-
$color-index-box-shadow: 7;
|
|
213
|
-
$color-index-background-glow-high-contrast: 8;
|
|
214
|
-
|
|
215
|
-
// example implementation of a color loop
|
|
216
|
-
|
|
217
|
-
// @each $name, $color-set in $colors {
|
|
218
|
-
// $base: nth($color-set, $color-index-base);
|
|
219
|
-
// $background: nth($color-set, $color-index-background);
|
|
220
|
-
// $heavy: nth($color-set, $color-index-dark);
|
|
221
|
-
// $hover: nth($color-set, $color-index-hover);
|
|
222
|
-
// $active: nth($color-set, $color-index-active);
|
|
223
|
-
// $invert: nth($color-set, $color-index-invert);
|
|
224
|
-
// $box-shadow: nth($color-set, $color-index-box-shadow);
|
|
225
|
-
//}
|
|
226
|
-
|
|
227
|
-
$gradients: (
|
|
228
|
-
'vivid': (
|
|
229
|
-
$gradient-vivid-start,
|
|
230
|
-
$gradient-vivid-end
|
|
231
|
-
),
|
|
232
|
-
'purple-blue': (
|
|
233
|
-
$gradient-text-purple,
|
|
234
|
-
$gradient-text-blue
|
|
235
|
-
)
|
|
236
|
-
);
|
|
237
|
-
|
|
238
|
-
$gradient-color-start-index: 1;
|
|
239
|
-
$gradient-color-end-index: 2;
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="colors"
|
|
3
|
+
*/
|
|
4
|
+
$white-static: #fff;
|
|
5
|
+
$black-static: #000;
|
|
6
|
+
|
|
7
|
+
$text: var(--theme-text);
|
|
8
|
+
$text-subtle: var(--theme-text-subtle);
|
|
9
|
+
$text-invert: var(--theme-text-invert);
|
|
10
|
+
$hyperlink: var(--theme-hyperlink);
|
|
11
|
+
$text-glow-high-contrast: var(--theme-text-glow-high-contrast);
|
|
12
|
+
$box-shadow-color-light: var(--theme-box-shadow-light);
|
|
13
|
+
$box-shadow-color-medium: var(--theme-box-shadow-medium);
|
|
14
|
+
$box-shadow-color-heavy: var(--theme-box-shadow-heavy);
|
|
15
|
+
$box-shadow-color-extra-heavy: var(--theme-box-shadow-extra-heavy);
|
|
16
|
+
|
|
17
|
+
$body-background: var(--theme-body-background);
|
|
18
|
+
$body-background-medium: var(--theme-body-background-medium);
|
|
19
|
+
$body-background-accent: var(--theme-body-background-accent);
|
|
20
|
+
|
|
21
|
+
$alternate-background: var(--theme-alternate-background);
|
|
22
|
+
$alternate-background-medium: var(--theme-alternate-background-medium);
|
|
23
|
+
|
|
24
|
+
$overlay: var(--theme-overlay);
|
|
25
|
+
$overlay-invert: var(--theme-overlay-invert);
|
|
26
|
+
$overlay-static: $palette-black-opacity-50;
|
|
27
|
+
$border: var(--theme-border);
|
|
28
|
+
$border-accent: var(--theme-border-accent);
|
|
29
|
+
|
|
30
|
+
$card-background: var(--theme-card-background);
|
|
31
|
+
|
|
32
|
+
$code-header: var(--theme-code-header);
|
|
33
|
+
$code-block: var(--theme-code-block);
|
|
34
|
+
$inline-code: var(--theme-inline-code);
|
|
35
|
+
|
|
36
|
+
$control-border: var(--theme-control-border);
|
|
37
|
+
|
|
38
|
+
$table-header: var(--theme-table-header);
|
|
39
|
+
$table-row: var(--theme-table-row);
|
|
40
|
+
$table-row-header: var(--theme-table-row-header);
|
|
41
|
+
$table-border-dark: var(--theme-table-border-dark);
|
|
42
|
+
|
|
43
|
+
$facepile-red: var(--theme-facepile-red);
|
|
44
|
+
$facepile-teal: var(--theme-facepile-teal);
|
|
45
|
+
$facepile-blue: var(--theme-facepile-blue);
|
|
46
|
+
|
|
47
|
+
$gradient-text-purple: var(--theme-gradient-text-purple);
|
|
48
|
+
$gradient-text-blue: var(--theme-gradient-text-blue);
|
|
49
|
+
$gradient-vivid-start: var(--theme-gradient-vivid-start);
|
|
50
|
+
$gradient-vivid-end: var(--theme-gradient-vivid-end);
|
|
51
|
+
|
|
52
|
+
$default-hover: var(--theme-hover-base);
|
|
53
|
+
$default-hover-invert: $body-background-medium;
|
|
54
|
+
$border-white-high-contrast: var(--theme-border-white-high-contrast);
|
|
55
|
+
$border-yellow-high-contrast: var(--theme-border-yellow-high-contrast);
|
|
56
|
+
$code-highlight-background: var(--theme-code-highlight-background);
|
|
57
|
+
$visited: var(--theme-visited);
|
|
58
|
+
|
|
59
|
+
$score-low-off: var(--theme-score-low-off);
|
|
60
|
+
$score-low: var(--theme-score-low);
|
|
61
|
+
$score-medium-off: var(--theme-score-medium-off);
|
|
62
|
+
$score-medium: var(--theme-score-medium);
|
|
63
|
+
$score-high-off: var(--theme-score-high-off);
|
|
64
|
+
$score-high: var(--theme-score-high);
|
|
65
|
+
|
|
66
|
+
$primary: var(--theme-primary-base);
|
|
67
|
+
$primary-background: var(--theme-primary-background);
|
|
68
|
+
$primary-background-glow-high-contrast: var(--theme-primary-background-glow-high-contrast);
|
|
69
|
+
$primary-dark: var(--theme-primary-dark);
|
|
70
|
+
$primary-hover: var(--theme-primary-hover);
|
|
71
|
+
$primary-active: var(--theme-primary-active);
|
|
72
|
+
$primary-invert: var(--theme-primary-invert);
|
|
73
|
+
$primary-box-shadow: var(--theme-primary-box-shadow);
|
|
74
|
+
|
|
75
|
+
$secondary: var(--theme-secondary-base);
|
|
76
|
+
$secondary-background: var(--theme-secondary-background);
|
|
77
|
+
$secondary-background-glow-high-contrast: var(--theme-secondary-background-glow-high-contrast);
|
|
78
|
+
$secondary-dark: var(--theme-secondary-dark);
|
|
79
|
+
$secondary-hover: var(--theme-secondary-hover);
|
|
80
|
+
$secondary-active: var(--theme-secondary-active);
|
|
81
|
+
$secondary-invert: var(--theme-secondary-invert);
|
|
82
|
+
$secondary-box-shadow: var(--theme-secondary-box-shadow);
|
|
83
|
+
|
|
84
|
+
$tertiary: var(--theme-tertiary-base);
|
|
85
|
+
$tertiary-background: var(--theme-tertiary-background);
|
|
86
|
+
$tertiary-background-glow-high-contrast: var(--theme-tertiary-background-glow-high-contrast);
|
|
87
|
+
$tertiary-dark: var(--theme-tertiary-dark);
|
|
88
|
+
$tertiary-hover: var(--theme-tertiary-hover);
|
|
89
|
+
$tertiary-active: var(--theme-tertiary-active);
|
|
90
|
+
$tertiary-invert: var(--theme-tertiary-invert);
|
|
91
|
+
$tertiary-box-shadow: var(--theme-tertiary-box-shadow);
|
|
92
|
+
|
|
93
|
+
$success: var(--theme-success-base);
|
|
94
|
+
$success-background: var(--theme-success-background);
|
|
95
|
+
$success-background-glow-high-contrast: var(--theme-success-background-glow-high-contrast);
|
|
96
|
+
$success-dark: var(--theme-success-dark);
|
|
97
|
+
$success-hover: var(--theme-success-hover);
|
|
98
|
+
$success-active: var(--theme-success-active);
|
|
99
|
+
$success-invert: var(--theme-success-invert);
|
|
100
|
+
$success-box-shadow: var(--theme-success-box-shadow);
|
|
101
|
+
|
|
102
|
+
$info: var(--theme-info-base);
|
|
103
|
+
$info-background: var(--theme-info-background);
|
|
104
|
+
$info-background-glow-high-contrast: var(--theme-info-background-glow-high-contrast);
|
|
105
|
+
$info-dark: var(--theme-info-dark);
|
|
106
|
+
$info-hover: var(--theme-info-hover);
|
|
107
|
+
$info-active: var(--theme-info-active);
|
|
108
|
+
$info-invert: var(--theme-info-invert);
|
|
109
|
+
$info-box-shadow: var(--theme-info-box-shadow);
|
|
110
|
+
|
|
111
|
+
$warning: var(--theme-warning-base);
|
|
112
|
+
$warning-background: var(--theme-warning-background);
|
|
113
|
+
$warning-background-glow-high-contrast: var(--theme-warning-background-glow-high-contrast);
|
|
114
|
+
$warning-dark: var(--theme-warning-dark);
|
|
115
|
+
$warning-hover: var(--theme-warning-hover);
|
|
116
|
+
$warning-active: var(--theme-warning-active);
|
|
117
|
+
$warning-invert: var(--theme-warning-invert);
|
|
118
|
+
$warning-box-shadow: var(--theme-warning-box-shadow);
|
|
119
|
+
|
|
120
|
+
$danger: var(--theme-danger-base);
|
|
121
|
+
$danger-background: var(--theme-danger-background);
|
|
122
|
+
$danger-background-glow-high-contrast: var(--theme-danger-background-glow-high-contrast);
|
|
123
|
+
$danger-dark: var(--theme-danger-dark);
|
|
124
|
+
$danger-hover: var(--theme-danger-hover);
|
|
125
|
+
$danger-active: var(--theme-danger-active);
|
|
126
|
+
$danger-invert: var(--theme-danger-invert);
|
|
127
|
+
$danger-box-shadow: var(--theme-danger-box-shadow);
|
|
128
|
+
|
|
129
|
+
$colors: (
|
|
130
|
+
'primary': (
|
|
131
|
+
$primary,
|
|
132
|
+
$primary-background,
|
|
133
|
+
$primary-dark,
|
|
134
|
+
$primary-hover,
|
|
135
|
+
$primary-active,
|
|
136
|
+
$primary-invert,
|
|
137
|
+
$primary-box-shadow,
|
|
138
|
+
$primary-background-glow-high-contrast
|
|
139
|
+
),
|
|
140
|
+
'secondary': (
|
|
141
|
+
$secondary,
|
|
142
|
+
$secondary-background,
|
|
143
|
+
$secondary-dark,
|
|
144
|
+
$secondary-hover,
|
|
145
|
+
$secondary-active,
|
|
146
|
+
$secondary-invert,
|
|
147
|
+
$secondary-box-shadow,
|
|
148
|
+
$secondary-background-glow-high-contrast
|
|
149
|
+
),
|
|
150
|
+
'tertiary': (
|
|
151
|
+
$tertiary,
|
|
152
|
+
$tertiary-background,
|
|
153
|
+
$tertiary-dark,
|
|
154
|
+
$tertiary-hover,
|
|
155
|
+
$tertiary-active,
|
|
156
|
+
$tertiary-invert,
|
|
157
|
+
$tertiary-box-shadow,
|
|
158
|
+
$tertiary-background-glow-high-contrast
|
|
159
|
+
),
|
|
160
|
+
'success': (
|
|
161
|
+
$success,
|
|
162
|
+
$success-background,
|
|
163
|
+
$success-dark,
|
|
164
|
+
$success-hover,
|
|
165
|
+
$success-active,
|
|
166
|
+
$success-invert,
|
|
167
|
+
$success-box-shadow,
|
|
168
|
+
$success-background-glow-high-contrast
|
|
169
|
+
),
|
|
170
|
+
'info': (
|
|
171
|
+
$info,
|
|
172
|
+
$info-background,
|
|
173
|
+
$info-dark,
|
|
174
|
+
$info-hover,
|
|
175
|
+
$info-active,
|
|
176
|
+
$info-invert,
|
|
177
|
+
$info-box-shadow,
|
|
178
|
+
$info-background-glow-high-contrast
|
|
179
|
+
),
|
|
180
|
+
'warning': (
|
|
181
|
+
$warning,
|
|
182
|
+
$warning-background,
|
|
183
|
+
$warning-dark,
|
|
184
|
+
$warning-hover,
|
|
185
|
+
$warning-active,
|
|
186
|
+
$warning-invert,
|
|
187
|
+
$warning-box-shadow,
|
|
188
|
+
$warning-background-glow-high-contrast
|
|
189
|
+
),
|
|
190
|
+
'danger': (
|
|
191
|
+
$danger,
|
|
192
|
+
$danger-background,
|
|
193
|
+
$danger-dark,
|
|
194
|
+
$danger-hover,
|
|
195
|
+
$danger-active,
|
|
196
|
+
$danger-invert,
|
|
197
|
+
$danger-box-shadow,
|
|
198
|
+
$danger-background-glow-high-contrast
|
|
199
|
+
)
|
|
200
|
+
) !default;
|
|
201
|
+
|
|
202
|
+
// Combined framework and brand colors for the array used in all the loops
|
|
203
|
+
|
|
204
|
+
// Color indexes, for use in color loops.
|
|
205
|
+
|
|
206
|
+
$color-index-base: 1;
|
|
207
|
+
$color-index-background: 2;
|
|
208
|
+
$color-index-dark: 3;
|
|
209
|
+
$color-index-hover: 4;
|
|
210
|
+
$color-index-active: 5;
|
|
211
|
+
$color-index-invert: 6;
|
|
212
|
+
$color-index-box-shadow: 7;
|
|
213
|
+
$color-index-background-glow-high-contrast: 8;
|
|
214
|
+
|
|
215
|
+
// example implementation of a color loop
|
|
216
|
+
|
|
217
|
+
// @each $name, $color-set in $colors {
|
|
218
|
+
// $base: nth($color-set, $color-index-base);
|
|
219
|
+
// $background: nth($color-set, $color-index-background);
|
|
220
|
+
// $heavy: nth($color-set, $color-index-dark);
|
|
221
|
+
// $hover: nth($color-set, $color-index-hover);
|
|
222
|
+
// $active: nth($color-set, $color-index-active);
|
|
223
|
+
// $invert: nth($color-set, $color-index-invert);
|
|
224
|
+
// $box-shadow: nth($color-set, $color-index-box-shadow);
|
|
225
|
+
//}
|
|
226
|
+
|
|
227
|
+
$gradients: (
|
|
228
|
+
'vivid': (
|
|
229
|
+
$gradient-vivid-start,
|
|
230
|
+
$gradient-vivid-end
|
|
231
|
+
),
|
|
232
|
+
'purple-blue': (
|
|
233
|
+
$gradient-text-purple,
|
|
234
|
+
$gradient-text-blue
|
|
235
|
+
)
|
|
236
|
+
);
|
|
237
|
+
|
|
238
|
+
$gradient-color-start-index: 1;
|
|
239
|
+
$gradient-color-end-index: 2;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="direction"
|
|
3
|
-
*/
|
|
4
|
-
// Direction
|
|
5
|
-
$user-text-direction: ltr !default;
|
|
6
|
-
|
|
7
|
-
$user-left: if($user-text-direction == rtl, right, left);
|
|
8
|
-
$user-right: if($user-text-direction == rtl, left, right);
|
|
9
|
-
|
|
10
|
-
$user-translate-x-direction: if($user-text-direction == rtl, -1, 1);
|
|
11
|
-
|
|
12
|
-
$directions: (
|
|
13
|
-
'top': 'top',
|
|
14
|
-
'right': $user-right,
|
|
15
|
-
'bottom': 'bottom',
|
|
16
|
-
'left': $user-left
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
$logical-directions: (
|
|
20
|
-
'top': 'block-start',
|
|
21
|
-
'right': 'inline-end',
|
|
22
|
-
'bottom': 'block-end',
|
|
23
|
-
'left': 'inline-start'
|
|
24
|
-
);
|
|
25
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="direction"
|
|
3
|
+
*/
|
|
4
|
+
// Direction
|
|
5
|
+
$user-text-direction: ltr !default;
|
|
6
|
+
|
|
7
|
+
$user-left: if($user-text-direction == rtl, right, left);
|
|
8
|
+
$user-right: if($user-text-direction == rtl, left, right);
|
|
9
|
+
|
|
10
|
+
$user-translate-x-direction: if($user-text-direction == rtl, -1, 1);
|
|
11
|
+
|
|
12
|
+
$directions: (
|
|
13
|
+
'top': 'top',
|
|
14
|
+
'right': $user-right,
|
|
15
|
+
'bottom': 'bottom',
|
|
16
|
+
'left': $user-left
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
$logical-directions: (
|
|
20
|
+
'top': 'block-start',
|
|
21
|
+
'right': 'inline-end',
|
|
22
|
+
'bottom': 'block-end',
|
|
23
|
+
'left': 'inline-start'
|
|
24
|
+
);
|
|
25
|
+
//@end-sass-export-section
|
package/src/tokens/display.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="display"
|
|
3
|
-
*/
|
|
4
|
-
$displays: 'block', 'flex', 'inline', 'inline-block', 'inline-flex', 'grid', 'none' !default;
|
|
5
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="display"
|
|
3
|
+
*/
|
|
4
|
+
$displays: 'block', 'flex', 'inline', 'inline-block', 'inline-flex', 'grid', 'none' !default;
|
|
5
|
+
//@end-sass-export-section
|
package/src/tokens/focus.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="focus"
|
|
3
|
-
*/
|
|
4
|
-
// Focus related variables
|
|
5
|
-
$focus-width: 0.125rem !default;
|
|
6
|
-
$focus-style: dashed !default;
|
|
7
|
-
$focus-outline-offset: 0.25rem !default;
|
|
8
|
-
$focus-visible-use-polyfill: false !default;
|
|
9
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="focus"
|
|
3
|
+
*/
|
|
4
|
+
// Focus related variables
|
|
5
|
+
$focus-width: 0.125rem !default;
|
|
6
|
+
$focus-style: dashed !default;
|
|
7
|
+
$focus-outline-offset: 0.25rem !default;
|
|
8
|
+
$focus-visible-use-polyfill: false !default;
|
|
9
|
+
//@end-sass-export-section
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="font-stack"
|
|
3
|
-
*/
|
|
4
|
-
$monospace-font-stack: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier',
|
|
5
|
-
monospace !default;
|
|
6
|
-
$normal-font-stack: -apple-system, 'BlinkMacSystemFont', 'Segoe UI Variable Text', 'Segoe UI',
|
|
7
|
-
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
8
|
-
'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji' !default;
|
|
9
|
-
$quote-font-stack: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif !default;
|
|
10
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="font-stack"
|
|
3
|
+
*/
|
|
4
|
+
$monospace-font-stack: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier',
|
|
5
|
+
monospace !default;
|
|
6
|
+
$normal-font-stack: -apple-system, 'BlinkMacSystemFont', 'Segoe UI Variable Text', 'Segoe UI',
|
|
7
|
+
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
8
|
+
'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji' !default;
|
|
9
|
+
$quote-font-stack: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif !default;
|
|
10
|
+
//@end-sass-export-section
|
package/src/tokens/index.scss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@import './palette.scss';
|
|
2
|
-
@import './animation.scss';
|
|
3
|
-
@import './border.scss';
|
|
4
|
-
@import './breakpoints.scss';
|
|
5
|
-
@import './display.scss';
|
|
6
|
-
@import './colors.scss';
|
|
7
|
-
@import './direction.scss';
|
|
8
|
-
@import './focus.scss';
|
|
9
|
-
@import './font-stack.scss';
|
|
10
|
-
@import './layout.scss';
|
|
11
|
-
@import './position.scss';
|
|
12
|
-
@import './schemes.scss';
|
|
13
|
-
@import './shadow.scss';
|
|
14
|
-
@import './spacing.scss';
|
|
15
|
-
@import './themes.scss';
|
|
16
|
-
@import './typography.scss';
|
|
17
|
-
@import './z-index.scss';
|
|
1
|
+
@import './palette.scss';
|
|
2
|
+
@import './animation.scss';
|
|
3
|
+
@import './border.scss';
|
|
4
|
+
@import './breakpoints.scss';
|
|
5
|
+
@import './display.scss';
|
|
6
|
+
@import './colors.scss';
|
|
7
|
+
@import './direction.scss';
|
|
8
|
+
@import './focus.scss';
|
|
9
|
+
@import './font-stack.scss';
|
|
10
|
+
@import './layout.scss';
|
|
11
|
+
@import './position.scss';
|
|
12
|
+
@import './schemes.scss';
|
|
13
|
+
@import './shadow.scss';
|
|
14
|
+
@import './spacing.scss';
|
|
15
|
+
@import './themes.scss';
|
|
16
|
+
@import './typography.scss';
|
|
17
|
+
@import './z-index.scss';
|
package/src/tokens/layout.scss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @sass-export-section="layout"
|
|
3
|
-
*/
|
|
4
|
-
// Layout
|
|
5
|
-
$column-gap: 0.75rem !default;
|
|
6
|
-
$large-column-gap: 1.5rem !default;
|
|
7
|
-
$reading-max-width: 50rem !default;
|
|
8
|
-
|
|
9
|
-
$layout-gap: 24px !default;
|
|
10
|
-
$layout-widescreen-width: $breakpoint-widescreen - $layout-gap * 2 !default;
|
|
11
|
-
$layout-widescreen-gap: calc(
|
|
12
|
-
50% - #{$layout-widescreen-width} / 2
|
|
13
|
-
) !default; // $layout-widescreen-gap is a naming error, keeping for backwards compat
|
|
14
|
-
|
|
15
|
-
$layout-gap-custom-property-name: '--layout-gap' !default;
|
|
16
|
-
$layout-gap-scalable-custom-property-name: '--layout-gap-scalable' !default;
|
|
17
|
-
//@end-sass-export-section
|
|
1
|
+
/**
|
|
2
|
+
* @sass-export-section="layout"
|
|
3
|
+
*/
|
|
4
|
+
// Layout
|
|
5
|
+
$column-gap: 0.75rem !default;
|
|
6
|
+
$large-column-gap: 1.5rem !default;
|
|
7
|
+
$reading-max-width: 50rem !default;
|
|
8
|
+
|
|
9
|
+
$layout-gap: 24px !default;
|
|
10
|
+
$layout-widescreen-width: $breakpoint-widescreen - $layout-gap * 2 !default;
|
|
11
|
+
$layout-widescreen-gap: calc(
|
|
12
|
+
50% - #{$layout-widescreen-width} / 2
|
|
13
|
+
) !default; // $layout-widescreen-gap is a naming error, keeping for backwards compat
|
|
14
|
+
|
|
15
|
+
$layout-gap-custom-property-name: '--layout-gap' !default;
|
|
16
|
+
$layout-gap-scalable-custom-property-name: '--layout-gap-scalable' !default;
|
|
17
|
+
//@end-sass-export-section
|