@carbon/elements 10.39.0-rc.0 → 10.40.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/elements",
3
3
  "description": "A collection of design elements in code for the IBM Design Language",
4
- "version": "10.39.0-rc.0",
4
+ "version": "10.40.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -35,21 +35,21 @@
35
35
  "clean": "rimraf es lib umd && node tasks/clean.js"
36
36
  },
37
37
  "dependencies": {
38
- "@carbon/colors": "^10.29.0-rc.0",
39
- "@carbon/grid": "^10.32.0-rc.0",
40
- "@carbon/icons": "^10.36.0-rc.0",
38
+ "@carbon/colors": "^10.30.0",
39
+ "@carbon/grid": "^10.33.0",
40
+ "@carbon/icons": "^10.37.0",
41
41
  "@carbon/import-once": "^10.6.0",
42
- "@carbon/layout": "^10.28.0-rc.0",
43
- "@carbon/motion": "^10.21.0-rc.0",
44
- "@carbon/themes": "^10.39.0-rc.0",
45
- "@carbon/type": "^10.32.0-rc.0"
42
+ "@carbon/layout": "^10.29.0",
43
+ "@carbon/motion": "^10.22.0",
44
+ "@carbon/themes": "^10.40.0",
45
+ "@carbon/type": "^10.33.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@carbon/cli": "^10.26.0-rc.0",
48
+ "@carbon/cli": "^10.27.0",
49
49
  "fs-extra": "^8.1.0",
50
50
  "klaw-sync": "^6.0.0",
51
51
  "replace-in-file": "^3.4.2",
52
52
  "rimraf": "^3.0.0"
53
53
  },
54
- "gitHead": "e67704162819d0c37dd42be0d83d86bbb135e09f"
54
+ "gitHead": "9c2eb1cfa0e5b2c4dc0142b98cd8828e84640af8"
55
55
  }
@@ -5,6 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use "sass:math";
9
+
8
10
  @use 'sass:map';
9
11
  @use 'config' as *;
10
12
  @use 'breakpoint' as *;
@@ -110,7 +112,7 @@
110
112
  // Condensed
111
113
  // -----------------------------------------------------------------------------
112
114
  .#{$prefix}--css-grid--condensed {
113
- --cds-grid-gutter: 2px;
115
+ --cds-grid-gutter: 1px;
114
116
 
115
117
  column-gap: var(--cds-grid-gutter);
116
118
  row-gap: var(--cds-grid-gutter);
@@ -411,7 +413,7 @@ $carbon--aspect-ratios: (
411
413
  $height: nth($aspect-ratio, 2);
412
414
 
413
415
  .#{$prefix}--aspect-ratio--#{$width}x#{$height}::before {
414
- padding-top: percentage($height / $width);
416
+ padding-top: percentage(math.div($height, $width));
415
417
  }
416
418
  }
417
419
  }
@@ -5,6 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use "sass:math";
9
+
8
10
  @use 'config' as *;
9
11
  @use 'breakpoint' as *;
10
12
 
@@ -27,21 +29,21 @@
27
29
  // always setting `width: 100%;`. This works because we use `flex` values
28
30
  // later on to override this initial width.
29
31
  width: 100%;
30
- padding-right: ($gutter / 2);
31
- padding-left: ($gutter / 2);
32
+ padding-right: ($gutter * 0.5);
33
+ padding-left: ($gutter * 0.5);
32
34
 
33
35
  // For our condensed use-case, our gutters collapse to 2px solid, 1px on each
34
36
  // side.
35
37
  .#{$prefix}--row--condensed &,
36
38
  .#{$prefix}--grid--condensed & {
37
- padding-right: ($condensed-gutter / 2);
38
- padding-left: ($condensed-gutter / 2);
39
+ padding-right: ($condensed-gutter * 0.5);
40
+ padding-left: ($condensed-gutter * 0.5);
39
41
  }
40
42
 
41
43
  // For our narrow use-case, our container hangs 16px into the gutter
42
44
  .#{$prefix}--row--narrow &,
43
45
  .#{$prefix}--grid--narrow & {
44
- padding-right: ($gutter / 2);
46
+ padding-right: ($gutter * 0.5);
45
47
  padding-left: 0;
46
48
  }
47
49
  }
@@ -61,8 +63,8 @@
61
63
  // Add a `max-width` to ensure content within each column does not blow out
62
64
  // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
63
65
  // do not appear to require this.
64
- max-width: percentage($span / $columns);
65
- flex: 0 0 percentage($span / $columns);
66
+ max-width: percentage(math.div($span, $columns));
67
+ flex: 0 0 percentage(math.div($span, $columns));
66
68
  }
67
69
  }
68
70
 
@@ -72,7 +74,7 @@
72
74
  /// @access private
73
75
  /// @group @carbon/grid
74
76
  @mixin -make-col-offset($span, $columns) {
75
- $offset: $span / $columns;
77
+ $offset: math.div($span, $columns);
76
78
  @if $offset == 0 {
77
79
  margin-left: 0;
78
80
  } @else {
@@ -154,8 +156,8 @@
154
156
  @mixin make-row($gutter: $grid-gutter) {
155
157
  display: flex;
156
158
  flex-wrap: wrap;
157
- margin-right: -1 * $gutter / 2;
158
- margin-left: -1 * $gutter / 2;
159
+ margin-right: -1 * $gutter * 0.5;
160
+ margin-left: -1 * $gutter * 0.5;
159
161
  }
160
162
 
161
163
  // -----------------------------------------------------------------------------
@@ -206,20 +208,20 @@
206
208
  /// @group @carbon/grid
207
209
  @mixin -hang($gutter: $grid-gutter) {
208
210
  .#{$prefix}--hang--start {
209
- padding-left: ($gutter / 2);
211
+ padding-left: ($gutter * 0.5);
210
212
  }
211
213
 
212
214
  .#{$prefix}--hang--end {
213
- padding-right: ($gutter / 2);
215
+ padding-right: ($gutter * 0.5);
214
216
  }
215
217
 
216
218
  // Deprecated ☠️
217
219
  .#{$prefix}--hang--left {
218
- padding-left: ($gutter / 2);
220
+ padding-left: ($gutter * 0.5);
219
221
  }
220
222
 
221
223
  .#{$prefix}--hang--right {
222
- padding-right: ($gutter / 2);
224
+ padding-right: ($gutter * 0.5);
223
225
  }
224
226
  }
225
227
 
@@ -246,14 +248,14 @@
246
248
  $prev-margin: map-get($prev-breakpoint, margin);
247
249
  @if $prev-margin != $margin {
248
250
  @include breakpoint($name) {
249
- padding-right: #{($grid-gutter / 2) + $margin};
250
- padding-left: #{($grid-gutter / 2) + $margin};
251
+ padding-right: #{($grid-gutter * 0.5) + $margin};
252
+ padding-left: #{($grid-gutter * 0.5) + $margin};
251
253
  }
252
254
  }
253
255
  } @else {
254
256
  @include breakpoint($name) {
255
- padding-right: #{($grid-gutter / 2) + $margin};
256
- padding-left: #{($grid-gutter / 2) + $margin};
257
+ padding-right: #{($grid-gutter * 0.5) + $margin};
258
+ padding-left: #{($grid-gutter * 0.5) + $margin};
257
259
  }
258
260
  }
259
261
  }
@@ -308,13 +310,13 @@
308
310
 
309
311
  .#{$prefix}--row-padding [class*='#{$prefix}--col'],
310
312
  .#{$prefix}--col-padding {
311
- padding-top: $grid-gutter / 2;
312
- padding-bottom: $grid-gutter / 2;
313
+ padding-top: $grid-gutter * 0.5;
314
+ padding-bottom: $grid-gutter * 0.5;
313
315
  }
314
316
 
315
317
  .#{$prefix}--grid--condensed [class*='#{$prefix}--col'] {
316
- padding-top: $condensed-gutter / 2;
317
- padding-bottom: $condensed-gutter / 2;
318
+ padding-top: $condensed-gutter * 0.5;
319
+ padding-bottom: $condensed-gutter * 0.5;
318
320
  }
319
321
 
320
322
  @include -make-grid-columns($breakpoints, $grid-gutter);
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2018, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @forward 'generated/themes';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2018, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @forward 'generated/tokens';
@@ -0,0 +1,271 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2019
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ /// Token values for the white theme
10
+ $white: (
11
+ interactive-01: #0f62fe,
12
+ interactive-02: #393939,
13
+ interactive-03: #0f62fe,
14
+ interactive-04: #0f62fe,
15
+ ui-background: #ffffff,
16
+ ui-01: #f4f4f4,
17
+ ui-02: #ffffff,
18
+ ui-03: #e0e0e0,
19
+ ui-04: #8d8d8d,
20
+ ui-05: #161616,
21
+ text-01: #161616,
22
+ text-02: #525252,
23
+ text-03: #a8a8a8,
24
+ text-04: #ffffff,
25
+ text-05: #6f6f6f,
26
+ icon-01: #161616,
27
+ icon-02: #525252,
28
+ icon-03: #ffffff,
29
+ link-01: #0f62fe,
30
+ link-02: #0043ce,
31
+ inverse-link: #78a9ff,
32
+ inverse-01: #ffffff,
33
+ inverse-02: #393939,
34
+ support-01: #da1e28,
35
+ support-02: #198038,
36
+ support-03: #f1c21b,
37
+ support-04: #0043ce,
38
+ inverse-support-01: #fa4d56,
39
+ inverse-support-02: #42be65,
40
+ inverse-support-03: #f1c21b,
41
+ inverse-support-04: #4589ff,
42
+ overlay-01: rgba(22, 22, 22, 0.5),
43
+ danger-01: #da1e28,
44
+ danger-02: #da1e28,
45
+ inverse-focus-ui: #ffffff,
46
+ hover-primary: #0353e9,
47
+ active-primary: #002d9c,
48
+ hover-primary-text: #0043ce,
49
+ hover-secondary: #4c4c4c,
50
+ active-secondary: #6f6f6f,
51
+ hover-tertiary: #0353e9,
52
+ active-tertiary: #002d9c,
53
+ hover-ui: #e5e5e5,
54
+ hover-light-ui: #e5e5e5,
55
+ active-ui: #c6c6c6,
56
+ active-light-ui: #c6c6c6,
57
+ selected-ui: #e0e0e0,
58
+ selected-light-ui: #e0e0e0,
59
+ inverse-hover-ui: #4c4c4c,
60
+ hover-selected-ui: #cacaca,
61
+ hover-danger: #b81921,
62
+ active-danger: #750e13,
63
+ hover-row: #e5e5e5,
64
+ visited-link: #8a3ffc,
65
+ disabled-01: #f4f4f4,
66
+ disabled-02: #c6c6c6,
67
+ disabled-03: #8d8d8d,
68
+ decorative-01: #e0e0e0,
69
+ button-separator: #e0e0e0,
70
+ skeleton-01: #e5e5e5,
71
+ skeleton-02: #c6c6c6,
72
+ hover-field: #e5e5e5,
73
+ ) !default;
74
+
75
+ /// Token values for the g10 theme
76
+ $g10: (
77
+ interactive-01: #0f62fe,
78
+ interactive-02: #393939,
79
+ interactive-03: #0f62fe,
80
+ interactive-04: #0f62fe,
81
+ ui-background: #f4f4f4,
82
+ ui-01: #ffffff,
83
+ ui-02: #f4f4f4,
84
+ ui-03: #e0e0e0,
85
+ ui-04: #8d8d8d,
86
+ ui-05: #161616,
87
+ text-01: #161616,
88
+ text-02: #525252,
89
+ text-03: #a8a8a8,
90
+ text-04: #ffffff,
91
+ text-05: #6f6f6f,
92
+ icon-01: #161616,
93
+ icon-02: #525252,
94
+ icon-03: #ffffff,
95
+ link-01: #0f62fe,
96
+ link-02: #0043ce,
97
+ inverse-link: #78a9ff,
98
+ inverse-01: #ffffff,
99
+ inverse-02: #393939,
100
+ support-01: #da1e28,
101
+ support-02: #198038,
102
+ support-03: #f1c21b,
103
+ support-04: #0043ce,
104
+ inverse-support-01: #fa4d56,
105
+ inverse-support-02: #42be65,
106
+ inverse-support-03: #f1c21b,
107
+ inverse-support-04: #4589ff,
108
+ overlay-01: rgba(22, 22, 22, 0.5),
109
+ danger-01: #da1e28,
110
+ danger-02: #da1e28,
111
+ inverse-focus-ui: #ffffff,
112
+ hover-primary: #0353e9,
113
+ active-primary: #002d9c,
114
+ hover-primary-text: #0043ce,
115
+ hover-secondary: #4c4c4c,
116
+ active-secondary: #6f6f6f,
117
+ hover-tertiary: #0353e9,
118
+ active-tertiary: #002d9c,
119
+ hover-ui: #e5e5e5,
120
+ hover-light-ui: #e5e5e5,
121
+ active-ui: #c6c6c6,
122
+ active-light-ui: #c6c6c6,
123
+ selected-ui: #e0e0e0,
124
+ selected-light-ui: #e0e0e0,
125
+ inverse-hover-ui: #4c4c4c,
126
+ hover-selected-ui: #cacaca,
127
+ hover-danger: #b81921,
128
+ active-danger: #750e13,
129
+ hover-row: #e5e5e5,
130
+ visited-link: #8a3ffc,
131
+ disabled-01: #ffffff,
132
+ disabled-02: #c6c6c6,
133
+ disabled-03: #8d8d8d,
134
+ decorative-01: #e0e0e0,
135
+ button-separator: #e0e0e0,
136
+ skeleton-01: #e5e5e5,
137
+ skeleton-02: #c6c6c6,
138
+ hover-field: #e5e5e5,
139
+ ) !default;
140
+
141
+ /// Token values for the g90 theme
142
+ $g90: (
143
+ interactive-01: #0f62fe,
144
+ interactive-02: #6f6f6f,
145
+ interactive-03: #ffffff,
146
+ interactive-04: #4589ff,
147
+ ui-background: #262626,
148
+ ui-01: #393939,
149
+ ui-02: #525252,
150
+ ui-03: #525252,
151
+ ui-04: #8d8d8d,
152
+ ui-05: #f4f4f4,
153
+ text-01: #f4f4f4,
154
+ text-02: #c6c6c6,
155
+ text-03: #6f6f6f,
156
+ text-04: #ffffff,
157
+ text-05: #8d8d8d,
158
+ icon-01: #f4f4f4,
159
+ icon-02: #c6c6c6,
160
+ icon-03: #ffffff,
161
+ link-01: #78a9ff,
162
+ link-02: #a6c8ff,
163
+ inverse-link: #0f62fe,
164
+ inverse-01: #161616,
165
+ inverse-02: #f4f4f4,
166
+ support-01: #ff8389,
167
+ support-02: #42be65,
168
+ support-03: #f1c21b,
169
+ support-04: #4589ff,
170
+ inverse-support-01: #da1e28,
171
+ inverse-support-02: #24a148,
172
+ inverse-support-03: #f1c21b,
173
+ inverse-support-04: #0f62fe,
174
+ overlay-01: rgba(22, 22, 22, 0.7),
175
+ danger-01: #da1e28,
176
+ danger-02: #ff8389,
177
+ inverse-focus-ui: #0f62fe,
178
+ hover-primary: #0353e9,
179
+ active-primary: #002d9c,
180
+ hover-primary-text: #a6c8ff,
181
+ hover-secondary: #606060,
182
+ active-secondary: #393939,
183
+ hover-tertiary: #f4f4f4,
184
+ active-tertiary: #c6c6c6,
185
+ hover-ui: #4c4c4c,
186
+ hover-light-ui: #656565,
187
+ active-ui: #6f6f6f,
188
+ active-light-ui: #8d8d8d,
189
+ selected-ui: #525252,
190
+ selected-light-ui: #6f6f6f,
191
+ inverse-hover-ui: #e5e5e5,
192
+ hover-selected-ui: #656565,
193
+ hover-danger: #b81921,
194
+ active-danger: #750e13,
195
+ hover-row: #4c4c4c,
196
+ visited-link: #be95ff,
197
+ disabled-01: #393939,
198
+ disabled-02: #6f6f6f,
199
+ disabled-03: #a8a8a8,
200
+ decorative-01: #6f6f6f,
201
+ button-separator: #161616,
202
+ skeleton-01: #353535,
203
+ skeleton-02: #525252,
204
+ hover-field: #4c4c4c,
205
+ ) !default;
206
+
207
+ /// Token values for the g100 theme
208
+ $g100: (
209
+ interactive-01: #0f62fe,
210
+ interactive-02: #6f6f6f,
211
+ interactive-03: #ffffff,
212
+ interactive-04: #4589ff,
213
+ ui-background: #161616,
214
+ ui-01: #262626,
215
+ ui-02: #393939,
216
+ ui-03: #393939,
217
+ ui-04: #6f6f6f,
218
+ ui-05: #f4f4f4,
219
+ text-01: #f4f4f4,
220
+ text-02: #c6c6c6,
221
+ text-03: #6f6f6f,
222
+ text-04: #ffffff,
223
+ text-05: #8d8d8d,
224
+ icon-01: #f4f4f4,
225
+ icon-02: #c6c6c6,
226
+ icon-03: #ffffff,
227
+ link-01: #78a9ff,
228
+ link-02: #a6c8ff,
229
+ inverse-link: #0f62fe,
230
+ inverse-01: #161616,
231
+ inverse-02: #f4f4f4,
232
+ support-01: #fa4d56,
233
+ support-02: #42be65,
234
+ support-03: #f1c21b,
235
+ support-04: #4589ff,
236
+ inverse-support-01: #da1e28,
237
+ inverse-support-02: #24a148,
238
+ inverse-support-03: #f1c21b,
239
+ inverse-support-04: #0f62fe,
240
+ overlay-01: rgba(22, 22, 22, 0.7),
241
+ danger-01: #da1e28,
242
+ danger-02: #fa4d56,
243
+ inverse-focus-ui: #0f62fe,
244
+ hover-primary: #0353e9,
245
+ active-primary: #002d9c,
246
+ hover-primary-text: #a6c8ff,
247
+ hover-secondary: #606060,
248
+ active-secondary: #393939,
249
+ hover-tertiary: #f4f4f4,
250
+ active-tertiary: #c6c6c6,
251
+ hover-ui: #353535,
252
+ hover-light-ui: #4c4c4c,
253
+ active-ui: #525252,
254
+ active-light-ui: #6f6f6f,
255
+ selected-ui: #393939,
256
+ selected-light-ui: #525252,
257
+ inverse-hover-ui: #e5e5e5,
258
+ hover-selected-ui: #4c4c4c,
259
+ hover-danger: #b81921,
260
+ active-danger: #750e13,
261
+ hover-row: #353535,
262
+ visited-link: #be95ff,
263
+ disabled-01: #262626,
264
+ disabled-02: #525252,
265
+ disabled-03: #8d8d8d,
266
+ decorative-01: #525252,
267
+ button-separator: #161616,
268
+ skeleton-01: #353535,
269
+ skeleton-02: #525252,
270
+ hover-field: #353535,
271
+ ) !default;
@@ -0,0 +1,206 @@
1
+ // Code generated by @carbon/themes. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2019
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ @use 'sass:map';
10
+ @use '../../modules/config';
11
+ @use '../../modules/theme';
12
+
13
+ /// Internal helper for generating CSS Custom Properties
14
+ @function _get($token) {
15
+ @if config.$use-fallback-value == false {
16
+ @return var(--#{config.$prefix}-#{$token});
17
+ } @else {
18
+ @return var(--#{config.$prefix}-#{$token}, #{theme.get($token)});
19
+ }
20
+ }
21
+
22
+ /// CSS Custom Property for the interactive-01 token
23
+ $interactive-01: _get('interactive-01') !default;
24
+
25
+ /// CSS Custom Property for the interactive-02 token
26
+ $interactive-02: _get('interactive-02') !default;
27
+
28
+ /// CSS Custom Property for the interactive-03 token
29
+ $interactive-03: _get('interactive-03') !default;
30
+
31
+ /// CSS Custom Property for the interactive-04 token
32
+ $interactive-04: _get('interactive-04') !default;
33
+
34
+ /// CSS Custom Property for the ui-background token
35
+ $ui-background: _get('ui-background') !default;
36
+
37
+ /// CSS Custom Property for the ui-01 token
38
+ $ui-01: _get('ui-01') !default;
39
+
40
+ /// CSS Custom Property for the ui-02 token
41
+ $ui-02: _get('ui-02') !default;
42
+
43
+ /// CSS Custom Property for the ui-03 token
44
+ $ui-03: _get('ui-03') !default;
45
+
46
+ /// CSS Custom Property for the ui-04 token
47
+ $ui-04: _get('ui-04') !default;
48
+
49
+ /// CSS Custom Property for the ui-05 token
50
+ $ui-05: _get('ui-05') !default;
51
+
52
+ /// CSS Custom Property for the text-01 token
53
+ $text-01: _get('text-01') !default;
54
+
55
+ /// CSS Custom Property for the text-02 token
56
+ $text-02: _get('text-02') !default;
57
+
58
+ /// CSS Custom Property for the text-03 token
59
+ $text-03: _get('text-03') !default;
60
+
61
+ /// CSS Custom Property for the text-04 token
62
+ $text-04: _get('text-04') !default;
63
+
64
+ /// CSS Custom Property for the text-05 token
65
+ $text-05: _get('text-05') !default;
66
+
67
+ /// CSS Custom Property for the icon-01 token
68
+ $icon-01: _get('icon-01') !default;
69
+
70
+ /// CSS Custom Property for the icon-02 token
71
+ $icon-02: _get('icon-02') !default;
72
+
73
+ /// CSS Custom Property for the icon-03 token
74
+ $icon-03: _get('icon-03') !default;
75
+
76
+ /// CSS Custom Property for the link-01 token
77
+ $link-01: _get('link-01') !default;
78
+
79
+ /// CSS Custom Property for the link-02 token
80
+ $link-02: _get('link-02') !default;
81
+
82
+ /// CSS Custom Property for the inverse-link token
83
+ $inverse-link: _get('inverse-link') !default;
84
+
85
+ /// CSS Custom Property for the inverse-01 token
86
+ $inverse-01: _get('inverse-01') !default;
87
+
88
+ /// CSS Custom Property for the inverse-02 token
89
+ $inverse-02: _get('inverse-02') !default;
90
+
91
+ /// CSS Custom Property for the support-01 token
92
+ $support-01: _get('support-01') !default;
93
+
94
+ /// CSS Custom Property for the support-02 token
95
+ $support-02: _get('support-02') !default;
96
+
97
+ /// CSS Custom Property for the support-03 token
98
+ $support-03: _get('support-03') !default;
99
+
100
+ /// CSS Custom Property for the support-04 token
101
+ $support-04: _get('support-04') !default;
102
+
103
+ /// CSS Custom Property for the inverse-support-01 token
104
+ $inverse-support-01: _get('inverse-support-01') !default;
105
+
106
+ /// CSS Custom Property for the inverse-support-02 token
107
+ $inverse-support-02: _get('inverse-support-02') !default;
108
+
109
+ /// CSS Custom Property for the inverse-support-03 token
110
+ $inverse-support-03: _get('inverse-support-03') !default;
111
+
112
+ /// CSS Custom Property for the inverse-support-04 token
113
+ $inverse-support-04: _get('inverse-support-04') !default;
114
+
115
+ /// CSS Custom Property for the overlay-01 token
116
+ $overlay-01: _get('overlay-01') !default;
117
+
118
+ /// CSS Custom Property for the danger-01 token
119
+ $danger-01: _get('danger-01') !default;
120
+
121
+ /// CSS Custom Property for the danger-02 token
122
+ $danger-02: _get('danger-02') !default;
123
+
124
+ /// CSS Custom Property for the inverse-focus-ui token
125
+ $inverse-focus-ui: _get('inverse-focus-ui') !default;
126
+
127
+ /// CSS Custom Property for the hover-primary token
128
+ $hover-primary: _get('hover-primary') !default;
129
+
130
+ /// CSS Custom Property for the active-primary token
131
+ $active-primary: _get('active-primary') !default;
132
+
133
+ /// CSS Custom Property for the hover-primary-text token
134
+ $hover-primary-text: _get('hover-primary-text') !default;
135
+
136
+ /// CSS Custom Property for the hover-secondary token
137
+ $hover-secondary: _get('hover-secondary') !default;
138
+
139
+ /// CSS Custom Property for the active-secondary token
140
+ $active-secondary: _get('active-secondary') !default;
141
+
142
+ /// CSS Custom Property for the hover-tertiary token
143
+ $hover-tertiary: _get('hover-tertiary') !default;
144
+
145
+ /// CSS Custom Property for the active-tertiary token
146
+ $active-tertiary: _get('active-tertiary') !default;
147
+
148
+ /// CSS Custom Property for the hover-ui token
149
+ $hover-ui: _get('hover-ui') !default;
150
+
151
+ /// CSS Custom Property for the hover-light-ui token
152
+ $hover-light-ui: _get('hover-light-ui') !default;
153
+
154
+ /// CSS Custom Property for the hover-selected-ui token
155
+ $hover-selected-ui: _get('hover-selected-ui') !default;
156
+
157
+ /// CSS Custom Property for the active-ui token
158
+ $active-ui: _get('active-ui') !default;
159
+
160
+ /// CSS Custom Property for the active-light-ui token
161
+ $active-light-ui: _get('active-light-ui') !default;
162
+
163
+ /// CSS Custom Property for the selected-ui token
164
+ $selected-ui: _get('selected-ui') !default;
165
+
166
+ /// CSS Custom Property for the selected-light-ui token
167
+ $selected-light-ui: _get('selected-light-ui') !default;
168
+
169
+ /// CSS Custom Property for the inverse-hover-ui token
170
+ $inverse-hover-ui: _get('inverse-hover-ui') !default;
171
+
172
+ /// CSS Custom Property for the hover-danger token
173
+ $hover-danger: _get('hover-danger') !default;
174
+
175
+ /// CSS Custom Property for the active-danger token
176
+ $active-danger: _get('active-danger') !default;
177
+
178
+ /// CSS Custom Property for the hover-row token
179
+ $hover-row: _get('hover-row') !default;
180
+
181
+ /// CSS Custom Property for the visited-link token
182
+ $visited-link: _get('visited-link') !default;
183
+
184
+ /// CSS Custom Property for the disabled-01 token
185
+ $disabled-01: _get('disabled-01') !default;
186
+
187
+ /// CSS Custom Property for the disabled-02 token
188
+ $disabled-02: _get('disabled-02') !default;
189
+
190
+ /// CSS Custom Property for the disabled-03 token
191
+ $disabled-03: _get('disabled-03') !default;
192
+
193
+ /// CSS Custom Property for the decorative-01 token
194
+ $decorative-01: _get('decorative-01') !default;
195
+
196
+ /// CSS Custom Property for the button-separator token
197
+ $button-separator: _get('button-separator') !default;
198
+
199
+ /// CSS Custom Property for the skeleton-01 token
200
+ $skeleton-01: _get('skeleton-01') !default;
201
+
202
+ /// CSS Custom Property for the skeleton-02 token
203
+ $skeleton-02: _get('skeleton-02') !default;
204
+
205
+ /// CSS Custom Property for the hover-field token
206
+ $hover-field: _get('hover-field') !default;
@@ -6,3 +6,6 @@
6
6
  //
7
7
 
8
8
  $prefix: 'cds' !default;
9
+
10
+ /// Specify if a fallback value should be provided for the CSS Custom Property
11
+ $use-fallback-value: true !default;
@@ -6,4 +6,3 @@
6
6
  //
7
7
 
8
8
  @forward 'generated/themes';
9
- @use 'generated/themes';
@@ -10,12 +10,9 @@
10
10
  @use '../config';
11
11
  @use '../theme';
12
12
 
13
- /// Specify if a fallback value should be provided for the CSS Custom Property
14
- $use-fallback-value: false !default;
15
-
16
13
  /// Internal helper for generating CSS Custom Properties
17
14
  @function _get($token) {
18
- @if $use-fallback-value == false {
15
+ @if config.$use-fallback-value == false {
19
16
  @return var(--#{config.$prefix}-#{$token});
20
17
  } @else {
21
18
  @return var(--#{config.$prefix}-#{$token}, #{theme.get($token)});
@@ -13,16 +13,44 @@
13
13
  $font-families: (
14
14
  'mono':
15
15
  unquote(
16
- "'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace"
16
+ "'IBM Plex Mono', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', monospace"
17
+ ),
18
+ 'sans':
19
+ unquote(
20
+ "'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
17
21
  ),
18
- 'sans': unquote("'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif"),
19
22
  'sans-condensed':
20
- unquote("'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif"),
23
+ unquote(
24
+ "'IBM Plex Sans Condensed', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
25
+ ),
26
+ 'sans-arabic':
27
+ unquote(
28
+ "'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
29
+ ),
30
+ 'sans-devanagari':
31
+ unquote(
32
+ "'IBM Plex Sans Devanagari', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
33
+ ),
21
34
  'sans-hebrew':
22
35
  unquote(
23
- "'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif"
36
+ "'IBM Plex Sans Hebrew', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
37
+ ),
38
+ 'sans-jp':
39
+ unquote(
40
+ "'IBM Plex Sans JP', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
41
+ ),
42
+ 'sans-kr':
43
+ unquote(
44
+ "'IBM Plex Sans KR', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
45
+ ),
46
+ 'sans-thai':
47
+ unquote(
48
+ "'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
49
+ ),
50
+ 'serif':
51
+ unquote(
52
+ "'IBM Plex Serif', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', serif"
24
53
  ),
25
- 'serif': unquote("'IBM Plex Serif', 'Georgia', Times, serif"),
26
54
  ) !default;
27
55
 
28
56
  /// Get the font-family for an IBM Plex font