@carbon/elements 10.54.2 → 11.0.0-rc.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 +12 -13
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +44 -130
- package/scss/colors/colors.scss +0 -12
- package/scss/colors/index.scss +0 -12
- package/scss/colors/mixins.scss +0 -1456
- package/scss/elements.scss +0 -17
- package/scss/grid/12.scss +0 -41
- package/scss/grid/_inlined/12.scss +0 -41
- package/scss/grid/_inlined/_mixins.import.scss +0 -431
- package/scss/grid/_inlined/_mixins.scss +0 -415
- package/scss/grid/_inlined/_prefix.scss +0 -12
- package/scss/grid/_mixins.import.scss +0 -431
- package/scss/grid/_mixins.scss +0 -415
- package/scss/grid/_prefix.scss +0 -12
- package/scss/grid/grid.scss +0 -10
- package/scss/grid/index.scss +0 -10
- package/scss/grid/modules/_breakpoint.scss +0 -198
- package/scss/grid/modules/_config.scss +0 -94
- package/scss/grid/modules/_css-grid.scss +0 -470
- package/scss/grid/modules/_flex-grid.scss +0 -363
- package/scss/grid/modules/_mixins.scss +0 -336
- package/scss/grid/vendor/@carbon/import-once/import-once.scss +0 -27
- package/scss/grid/vendor/@carbon/import-once/index.scss +0 -8
- package/scss/grid/vendor/@carbon/layout/_breakpoint.scss +0 -246
- package/scss/grid/vendor/@carbon/layout/_convert.import.scss +0 -65
- package/scss/grid/vendor/@carbon/layout/_convert.scss +0 -54
- package/scss/grid/vendor/@carbon/layout/_key-height.import.scss +0 -117
- package/scss/grid/vendor/@carbon/layout/_key-height.scss +0 -111
- package/scss/grid/vendor/@carbon/layout/_mini-unit.scss +0 -23
- package/scss/grid/vendor/@carbon/layout/_spacing.scss +0 -12
- package/scss/grid/vendor/@carbon/layout/_utilities.scss +0 -41
- package/scss/grid/vendor/@carbon/layout/generated/_container.scss +0 -73
- package/scss/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -61
- package/scss/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -34
- package/scss/grid/vendor/@carbon/layout/generated/_layout.scss +0 -97
- package/scss/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
- package/scss/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -169
- package/scss/grid/vendor/@carbon/layout/index.scss +0 -8
- package/scss/grid/vendor/@carbon/layout/layout.scss +0 -12
- package/scss/grid/vendor/@carbon/layout/modules/_convert.scss +0 -51
- package/scss/grid/vendor/@carbon/layout/modules/_spacing.scss +0 -9
- package/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +0 -41
- package/scss/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +0 -91
- package/scss/icons/icons.scss +0 -10
- package/scss/icons/index.scss +0 -8
- package/scss/icons/mixins.scss +0 -18
- package/scss/import-once/import-once.scss +0 -27
- package/scss/import-once/index.scss +0 -8
- package/scss/index.scss +0 -15
- package/scss/layout/_breakpoint.scss +0 -246
- package/scss/layout/_convert.import.scss +0 -65
- package/scss/layout/_convert.scss +0 -54
- package/scss/layout/_key-height.import.scss +0 -117
- package/scss/layout/_key-height.scss +0 -111
- package/scss/layout/_mini-unit.scss +0 -23
- package/scss/layout/_spacing.scss +0 -12
- package/scss/layout/_utilities.scss +0 -41
- package/scss/layout/generated/_container.scss +0 -73
- package/scss/layout/generated/_fluid-spacing.scss +0 -61
- package/scss/layout/generated/_icon-size.scss +0 -34
- package/scss/layout/generated/_layout.scss +0 -97
- package/scss/layout/generated/_size.scss +0 -17
- package/scss/layout/generated/_spacing.scss +0 -169
- package/scss/layout/index.scss +0 -8
- package/scss/layout/layout.scss +0 -12
- package/scss/layout/modules/_convert.scss +0 -51
- package/scss/layout/modules/_spacing.scss +0 -9
- package/scss/layout/modules/_utilities.scss +0 -41
- package/scss/layout/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/layout/modules/generated/_spacing.scss +0 -91
- package/scss/motion/index.scss +0 -8
- package/scss/motion/motion.scss +0 -78
- package/scss/themes/_mixins.scss +0 -39
- package/scss/themes/_theme-maps.scss +0 -9
- package/scss/themes/_tokens.scss +0 -8
- package/scss/themes/compat/_themes.scss +0 -8
- package/scss/themes/compat/_tokens.scss +0 -8
- package/scss/themes/compat/generated/_themes.scss +0 -271
- package/scss/themes/compat/generated/_tokens.scss +0 -206
- package/scss/themes/generated/_mixins.scss +0 -3622
- package/scss/themes/generated/_themes.scss +0 -2955
- package/scss/themes/generated/_tokens.scss +0 -3179
- package/scss/themes/index.scss +0 -8
- package/scss/themes/modules/_config.scss +0 -11
- package/scss/themes/modules/_theme.scss +0 -120
- package/scss/themes/modules/_themes.scss +0 -8
- package/scss/themes/modules/_tokens.scss +0 -8
- package/scss/themes/modules/_utilities.scss +0 -18
- package/scss/themes/modules/generated/_themes.scss +0 -432
- package/scss/themes/modules/generated/_tokens.scss +0 -308
- package/scss/themes/themes.scss +0 -10
- package/scss/type/_classes.scss +0 -41
- package/scss/type/_font-family.scss +0 -70
- package/scss/type/_inlined/_classes.scss +0 -41
- package/scss/type/_inlined/_font-family.scss +0 -70
- package/scss/type/_inlined/_prefix.scss +0 -11
- package/scss/type/_inlined/_reset.scss +0 -90
- package/scss/type/_inlined/_scale.scss +0 -59
- package/scss/type/_inlined/_styles.import.scss +0 -766
- package/scss/type/_inlined/_styles.scss +0 -924
- package/scss/type/_inlined/font-face/_mono.scss +0 -430
- package/scss/type/_inlined/font-face/_sans-condensed.scss +0 -302
- package/scss/type/_inlined/font-face/_sans.scss +0 -497
- package/scss/type/_inlined/font-face/_serif.scss +0 -430
- package/scss/type/_inlined/font-face/_settings.scss +0 -12
- package/scss/type/_prefix.scss +0 -11
- package/scss/type/_reset.scss +0 -90
- package/scss/type/_scale.scss +0 -59
- package/scss/type/_styles.import.scss +0 -766
- package/scss/type/_styles.scss +0 -924
- package/scss/type/font-face/_mono.scss +0 -430
- package/scss/type/font-face/_sans-condensed.scss +0 -302
- package/scss/type/font-face/_sans.scss +0 -497
- package/scss/type/font-face/_serif.scss +0 -430
- package/scss/type/font-face/_settings.scss +0 -12
- package/scss/type/index.scss +0 -8
- package/scss/type/modules/_classes.scss +0 -42
- package/scss/type/modules/_default-type.scss +0 -55
- package/scss/type/modules/_font-family.scss +0 -104
- package/scss/type/modules/_prefix.scss +0 -11
- package/scss/type/modules/_reset.scss +0 -44
- package/scss/type/modules/_scale.scss +0 -57
- package/scss/type/modules/_styles.scss +0 -876
- package/scss/type/type.scss +0 -8
- package/scss/type/vendor/@carbon/grid/12.scss +0 -41
- package/scss/type/vendor/@carbon/grid/_inlined/12.scss +0 -41
- package/scss/type/vendor/@carbon/grid/_inlined/_mixins.import.scss +0 -431
- package/scss/type/vendor/@carbon/grid/_inlined/_mixins.scss +0 -415
- package/scss/type/vendor/@carbon/grid/_inlined/_prefix.scss +0 -12
- package/scss/type/vendor/@carbon/grid/_mixins.import.scss +0 -431
- package/scss/type/vendor/@carbon/grid/_mixins.scss +0 -415
- package/scss/type/vendor/@carbon/grid/_prefix.scss +0 -12
- package/scss/type/vendor/@carbon/grid/grid.scss +0 -10
- package/scss/type/vendor/@carbon/grid/index.scss +0 -10
- package/scss/type/vendor/@carbon/grid/modules/_breakpoint.scss +0 -198
- package/scss/type/vendor/@carbon/grid/modules/_config.scss +0 -94
- package/scss/type/vendor/@carbon/grid/modules/_css-grid.scss +0 -470
- package/scss/type/vendor/@carbon/grid/modules/_flex-grid.scss +0 -363
- package/scss/type/vendor/@carbon/grid/modules/_mixins.scss +0 -336
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/import-once.scss +0 -27
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/index.scss +0 -8
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_breakpoint.scss +0 -246
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_convert.import.scss +0 -65
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_convert.scss +0 -54
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_key-height.import.scss +0 -117
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_key-height.scss +0 -111
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_mini-unit.scss +0 -23
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_spacing.scss +0 -12
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_utilities.scss +0 -41
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_container.scss +0 -73
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -61
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -34
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_layout.scss +0 -97
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -169
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/index.scss +0 -8
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/layout.scss +0 -12
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_convert.scss +0 -51
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_spacing.scss +0 -9
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_utilities.scss +0 -41
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +0 -37
- package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +0 -91
- package/scss/type/vendor/@carbon/import-once/import-once.scss +0 -27
- package/scss/type/vendor/@carbon/import-once/index.scss +0 -8
|
@@ -1,308 +0,0 @@
|
|
|
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 '../config';
|
|
11
|
-
@use '../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
|
-
/// The CSS Custom Property for the `background` token
|
|
23
|
-
$background: _get('background') !default;
|
|
24
|
-
|
|
25
|
-
/// The CSS Custom Property for the `background-active` token
|
|
26
|
-
$background-active: _get('background-active') !default;
|
|
27
|
-
|
|
28
|
-
/// The CSS Custom Property for the `background-selected` token
|
|
29
|
-
$background-selected: _get('background-selected') !default;
|
|
30
|
-
|
|
31
|
-
/// The CSS Custom Property for the `background-selected-hover` token
|
|
32
|
-
$background-selected-hover: _get('background-selected-hover') !default;
|
|
33
|
-
|
|
34
|
-
/// The CSS Custom Property for the `background-hover` token
|
|
35
|
-
$background-hover: _get('background-hover') !default;
|
|
36
|
-
|
|
37
|
-
/// The CSS Custom Property for the `background-brand` token
|
|
38
|
-
$background-brand: _get('background-brand') !default;
|
|
39
|
-
|
|
40
|
-
/// The CSS Custom Property for the `background-inverse` token
|
|
41
|
-
$background-inverse: _get('background-inverse') !default;
|
|
42
|
-
|
|
43
|
-
/// The CSS Custom Property for the `background-inverse-hover` token
|
|
44
|
-
$background-inverse-hover: _get('background-inverse-hover') !default;
|
|
45
|
-
|
|
46
|
-
/// The CSS Custom Property for the `layer-01` token
|
|
47
|
-
$layer-01: _get('layer-01') !default;
|
|
48
|
-
|
|
49
|
-
/// The CSS Custom Property for the `layer-active-01` token
|
|
50
|
-
$layer-active-01: _get('layer-active-01') !default;
|
|
51
|
-
|
|
52
|
-
/// The CSS Custom Property for the `layer-hover-01` token
|
|
53
|
-
$layer-hover-01: _get('layer-hover-01') !default;
|
|
54
|
-
|
|
55
|
-
/// The CSS Custom Property for the `layer-selected-01` token
|
|
56
|
-
$layer-selected-01: _get('layer-selected-01') !default;
|
|
57
|
-
|
|
58
|
-
/// The CSS Custom Property for the `layer-selected-hover-01` token
|
|
59
|
-
$layer-selected-hover-01: _get('layer-selected-hover-01') !default;
|
|
60
|
-
|
|
61
|
-
/// The CSS Custom Property for the `layer-02` token
|
|
62
|
-
$layer-02: _get('layer-02') !default;
|
|
63
|
-
|
|
64
|
-
/// The CSS Custom Property for the `layer-active-02` token
|
|
65
|
-
$layer-active-02: _get('layer-active-02') !default;
|
|
66
|
-
|
|
67
|
-
/// The CSS Custom Property for the `layer-hover-02` token
|
|
68
|
-
$layer-hover-02: _get('layer-hover-02') !default;
|
|
69
|
-
|
|
70
|
-
/// The CSS Custom Property for the `layer-selected-02` token
|
|
71
|
-
$layer-selected-02: _get('layer-selected-02') !default;
|
|
72
|
-
|
|
73
|
-
/// The CSS Custom Property for the `layer-selected-hover-02` token
|
|
74
|
-
$layer-selected-hover-02: _get('layer-selected-hover-02') !default;
|
|
75
|
-
|
|
76
|
-
/// The CSS Custom Property for the `layer-03` token
|
|
77
|
-
$layer-03: _get('layer-03') !default;
|
|
78
|
-
|
|
79
|
-
/// The CSS Custom Property for the `layer-active-03` token
|
|
80
|
-
$layer-active-03: _get('layer-active-03') !default;
|
|
81
|
-
|
|
82
|
-
/// The CSS Custom Property for the `layer-hover-03` token
|
|
83
|
-
$layer-hover-03: _get('layer-hover-03') !default;
|
|
84
|
-
|
|
85
|
-
/// The CSS Custom Property for the `layer-selected-03` token
|
|
86
|
-
$layer-selected-03: _get('layer-selected-03') !default;
|
|
87
|
-
|
|
88
|
-
/// The CSS Custom Property for the `layer-selected-hover-03` token
|
|
89
|
-
$layer-selected-hover-03: _get('layer-selected-hover-03') !default;
|
|
90
|
-
|
|
91
|
-
/// The CSS Custom Property for the `layer-selected-inverse` token
|
|
92
|
-
$layer-selected-inverse: _get('layer-selected-inverse') !default;
|
|
93
|
-
|
|
94
|
-
/// The CSS Custom Property for the `layer-selected-disabled` token
|
|
95
|
-
$layer-selected-disabled: _get('layer-selected-disabled') !default;
|
|
96
|
-
|
|
97
|
-
/// The CSS Custom Property for the `layer-accent-01` token
|
|
98
|
-
$layer-accent-01: _get('layer-accent-01') !default;
|
|
99
|
-
|
|
100
|
-
/// The CSS Custom Property for the `layer-accent-active-01` token
|
|
101
|
-
$layer-accent-active-01: _get('layer-accent-active-01') !default;
|
|
102
|
-
|
|
103
|
-
/// The CSS Custom Property for the `layer-accent-hover-01` token
|
|
104
|
-
$layer-accent-hover-01: _get('layer-accent-hover-01') !default;
|
|
105
|
-
|
|
106
|
-
/// The CSS Custom Property for the `layer-accent-02` token
|
|
107
|
-
$layer-accent-02: _get('layer-accent-02') !default;
|
|
108
|
-
|
|
109
|
-
/// The CSS Custom Property for the `layer-accent-active-02` token
|
|
110
|
-
$layer-accent-active-02: _get('layer-accent-active-02') !default;
|
|
111
|
-
|
|
112
|
-
/// The CSS Custom Property for the `layer-accent-hover-02` token
|
|
113
|
-
$layer-accent-hover-02: _get('layer-accent-hover-02') !default;
|
|
114
|
-
|
|
115
|
-
/// The CSS Custom Property for the `layer-accent-03` token
|
|
116
|
-
$layer-accent-03: _get('layer-accent-03') !default;
|
|
117
|
-
|
|
118
|
-
/// The CSS Custom Property for the `layer-accent-active-03` token
|
|
119
|
-
$layer-accent-active-03: _get('layer-accent-active-03') !default;
|
|
120
|
-
|
|
121
|
-
/// The CSS Custom Property for the `layer-accent-hover-03` token
|
|
122
|
-
$layer-accent-hover-03: _get('layer-accent-hover-03') !default;
|
|
123
|
-
|
|
124
|
-
/// The CSS Custom Property for the `field-01` token
|
|
125
|
-
$field-01: _get('field-01') !default;
|
|
126
|
-
|
|
127
|
-
/// The CSS Custom Property for the `field-hover-01` token
|
|
128
|
-
$field-hover-01: _get('field-hover-01') !default;
|
|
129
|
-
|
|
130
|
-
/// The CSS Custom Property for the `field-02` token
|
|
131
|
-
$field-02: _get('field-02') !default;
|
|
132
|
-
|
|
133
|
-
/// The CSS Custom Property for the `field-hover-02` token
|
|
134
|
-
$field-hover-02: _get('field-hover-02') !default;
|
|
135
|
-
|
|
136
|
-
/// The CSS Custom Property for the `field-03` token
|
|
137
|
-
$field-03: _get('field-03') !default;
|
|
138
|
-
|
|
139
|
-
/// The CSS Custom Property for the `field-hover-03` token
|
|
140
|
-
$field-hover-03: _get('field-hover-03') !default;
|
|
141
|
-
|
|
142
|
-
/// The CSS Custom Property for the `interactive` token
|
|
143
|
-
$interactive: _get('interactive') !default;
|
|
144
|
-
|
|
145
|
-
/// The CSS Custom Property for the `border-subtle-00` token
|
|
146
|
-
$border-subtle-00: _get('border-subtle-00') !default;
|
|
147
|
-
|
|
148
|
-
/// The CSS Custom Property for the `border-subtle-01` token
|
|
149
|
-
$border-subtle-01: _get('border-subtle-01') !default;
|
|
150
|
-
|
|
151
|
-
/// The CSS Custom Property for the `border-subtle-selected-01` token
|
|
152
|
-
$border-subtle-selected-01: _get('border-subtle-selected-01') !default;
|
|
153
|
-
|
|
154
|
-
/// The CSS Custom Property for the `border-subtle-02` token
|
|
155
|
-
$border-subtle-02: _get('border-subtle-02') !default;
|
|
156
|
-
|
|
157
|
-
/// The CSS Custom Property for the `border-subtle-selected-02` token
|
|
158
|
-
$border-subtle-selected-02: _get('border-subtle-selected-02') !default;
|
|
159
|
-
|
|
160
|
-
/// The CSS Custom Property for the `border-subtle-03` token
|
|
161
|
-
$border-subtle-03: _get('border-subtle-03') !default;
|
|
162
|
-
|
|
163
|
-
/// The CSS Custom Property for the `border-subtle-selected-03` token
|
|
164
|
-
$border-subtle-selected-03: _get('border-subtle-selected-03') !default;
|
|
165
|
-
|
|
166
|
-
/// The CSS Custom Property for the `border-strong-01` token
|
|
167
|
-
$border-strong-01: _get('border-strong-01') !default;
|
|
168
|
-
|
|
169
|
-
/// The CSS Custom Property for the `border-strong-02` token
|
|
170
|
-
$border-strong-02: _get('border-strong-02') !default;
|
|
171
|
-
|
|
172
|
-
/// The CSS Custom Property for the `border-strong-03` token
|
|
173
|
-
$border-strong-03: _get('border-strong-03') !default;
|
|
174
|
-
|
|
175
|
-
/// The CSS Custom Property for the `border-inverse` token
|
|
176
|
-
$border-inverse: _get('border-inverse') !default;
|
|
177
|
-
|
|
178
|
-
/// The CSS Custom Property for the `border-interactive` token
|
|
179
|
-
$border-interactive: _get('border-interactive') !default;
|
|
180
|
-
|
|
181
|
-
/// The CSS Custom Property for the `border-disabled` token
|
|
182
|
-
$border-disabled: _get('border-disabled') !default;
|
|
183
|
-
|
|
184
|
-
/// The CSS Custom Property for the `text-primary` token
|
|
185
|
-
$text-primary: _get('text-primary') !default;
|
|
186
|
-
|
|
187
|
-
/// The CSS Custom Property for the `text-secondary` token
|
|
188
|
-
$text-secondary: _get('text-secondary') !default;
|
|
189
|
-
|
|
190
|
-
/// The CSS Custom Property for the `text-placeholder` token
|
|
191
|
-
$text-placeholder: _get('text-placeholder') !default;
|
|
192
|
-
|
|
193
|
-
/// The CSS Custom Property for the `text-helper` token
|
|
194
|
-
$text-helper: _get('text-helper') !default;
|
|
195
|
-
|
|
196
|
-
/// The CSS Custom Property for the `text-error` token
|
|
197
|
-
$text-error: _get('text-error') !default;
|
|
198
|
-
|
|
199
|
-
/// The CSS Custom Property for the `text-inverse` token
|
|
200
|
-
$text-inverse: _get('text-inverse') !default;
|
|
201
|
-
|
|
202
|
-
/// The CSS Custom Property for the `text-on-color` token
|
|
203
|
-
$text-on-color: _get('text-on-color') !default;
|
|
204
|
-
|
|
205
|
-
/// The CSS Custom Property for the `text-on-color-disabled` token
|
|
206
|
-
$text-on-color-disabled: _get('text-on-color-disabled') !default;
|
|
207
|
-
|
|
208
|
-
/// The CSS Custom Property for the `text-disabled` token
|
|
209
|
-
$text-disabled: _get('text-disabled') !default;
|
|
210
|
-
|
|
211
|
-
/// The CSS Custom Property for the `link-primary` token
|
|
212
|
-
$link-primary: _get('link-primary') !default;
|
|
213
|
-
|
|
214
|
-
/// The CSS Custom Property for the `link-primary-hover` token
|
|
215
|
-
$link-primary-hover: _get('link-primary-hover') !default;
|
|
216
|
-
|
|
217
|
-
/// The CSS Custom Property for the `link-secondary` token
|
|
218
|
-
$link-secondary: _get('link-secondary') !default;
|
|
219
|
-
|
|
220
|
-
/// The CSS Custom Property for the `link-visited` token
|
|
221
|
-
$link-visited: _get('link-visited') !default;
|
|
222
|
-
|
|
223
|
-
/// The CSS Custom Property for the `link-inverse` token
|
|
224
|
-
$link-inverse: _get('link-inverse') !default;
|
|
225
|
-
|
|
226
|
-
/// The CSS Custom Property for the `link-inverse-active` token
|
|
227
|
-
$link-inverse-active: _get('link-inverse-active') !default;
|
|
228
|
-
|
|
229
|
-
/// The CSS Custom Property for the `link-inverse-hover` token
|
|
230
|
-
$link-inverse-hover: _get('link-inverse-hover') !default;
|
|
231
|
-
|
|
232
|
-
/// The CSS Custom Property for the `icon-primary` token
|
|
233
|
-
$icon-primary: _get('icon-primary') !default;
|
|
234
|
-
|
|
235
|
-
/// The CSS Custom Property for the `icon-secondary` token
|
|
236
|
-
$icon-secondary: _get('icon-secondary') !default;
|
|
237
|
-
|
|
238
|
-
/// The CSS Custom Property for the `icon-inverse` token
|
|
239
|
-
$icon-inverse: _get('icon-inverse') !default;
|
|
240
|
-
|
|
241
|
-
/// The CSS Custom Property for the `icon-on-color` token
|
|
242
|
-
$icon-on-color: _get('icon-on-color') !default;
|
|
243
|
-
|
|
244
|
-
/// The CSS Custom Property for the `icon-on-color-disabled` token
|
|
245
|
-
$icon-on-color-disabled: _get('icon-on-color-disabled') !default;
|
|
246
|
-
|
|
247
|
-
/// The CSS Custom Property for the `icon-disabled` token
|
|
248
|
-
$icon-disabled: _get('icon-disabled') !default;
|
|
249
|
-
|
|
250
|
-
/// The CSS Custom Property for the `support-error` token
|
|
251
|
-
$support-error: _get('support-error') !default;
|
|
252
|
-
|
|
253
|
-
/// The CSS Custom Property for the `support-success` token
|
|
254
|
-
$support-success: _get('support-success') !default;
|
|
255
|
-
|
|
256
|
-
/// The CSS Custom Property for the `support-warning` token
|
|
257
|
-
$support-warning: _get('support-warning') !default;
|
|
258
|
-
|
|
259
|
-
/// The CSS Custom Property for the `support-info` token
|
|
260
|
-
$support-info: _get('support-info') !default;
|
|
261
|
-
|
|
262
|
-
/// The CSS Custom Property for the `support-error-inverse` token
|
|
263
|
-
$support-error-inverse: _get('support-error-inverse') !default;
|
|
264
|
-
|
|
265
|
-
/// The CSS Custom Property for the `support-success-inverse` token
|
|
266
|
-
$support-success-inverse: _get('support-success-inverse') !default;
|
|
267
|
-
|
|
268
|
-
/// The CSS Custom Property for the `support-warning-inverse` token
|
|
269
|
-
$support-warning-inverse: _get('support-warning-inverse') !default;
|
|
270
|
-
|
|
271
|
-
/// The CSS Custom Property for the `support-info-inverse` token
|
|
272
|
-
$support-info-inverse: _get('support-info-inverse') !default;
|
|
273
|
-
|
|
274
|
-
/// The CSS Custom Property for the `support-caution-major` token
|
|
275
|
-
$support-caution-major: _get('support-caution-major') !default;
|
|
276
|
-
|
|
277
|
-
/// The CSS Custom Property for the `support-caution-minor` token
|
|
278
|
-
$support-caution-minor: _get('support-caution-minor') !default;
|
|
279
|
-
|
|
280
|
-
/// The CSS Custom Property for the `support-caution-undefined` token
|
|
281
|
-
$support-caution-undefined: _get('support-caution-undefined') !default;
|
|
282
|
-
|
|
283
|
-
/// The CSS Custom Property for the `highlight` token
|
|
284
|
-
$highlight: _get('highlight') !default;
|
|
285
|
-
|
|
286
|
-
/// The CSS Custom Property for the `overlay` token
|
|
287
|
-
$overlay: _get('overlay') !default;
|
|
288
|
-
|
|
289
|
-
/// The CSS Custom Property for the `toggle-off` token
|
|
290
|
-
$toggle-off: _get('toggle-off') !default;
|
|
291
|
-
|
|
292
|
-
/// The CSS Custom Property for the `shadow` token
|
|
293
|
-
$shadow: _get('shadow') !default;
|
|
294
|
-
|
|
295
|
-
/// The CSS Custom Property for the `focus` token
|
|
296
|
-
$focus: _get('focus') !default;
|
|
297
|
-
|
|
298
|
-
/// The CSS Custom Property for the `focus-inset` token
|
|
299
|
-
$focus-inset: _get('focus-inset') !default;
|
|
300
|
-
|
|
301
|
-
/// The CSS Custom Property for the `focus-inverse` token
|
|
302
|
-
$focus-inverse: _get('focus-inverse') !default;
|
|
303
|
-
|
|
304
|
-
/// The CSS Custom Property for the `skeleton-background` token
|
|
305
|
-
$skeleton-background: _get('skeleton-background') !default;
|
|
306
|
-
|
|
307
|
-
/// The CSS Custom Property for the `skeleton-element` token
|
|
308
|
-
$skeleton-element: _get('skeleton-element') !default;
|
package/scss/themes/themes.scss
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
@import './generated/tokens';
|
|
9
|
-
@import './generated/themes';
|
|
10
|
-
@import './mixins';
|
package/scss/type/_classes.scss
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
@import 'prefix';
|
|
9
|
-
@import 'styles';
|
|
10
|
-
@import 'font-family';
|
|
11
|
-
|
|
12
|
-
/// Create type classes for font families, weights, styles
|
|
13
|
-
/// @access public
|
|
14
|
-
/// @group @carbon/type
|
|
15
|
-
@mixin carbon--type-classes {
|
|
16
|
-
// Font families
|
|
17
|
-
@each $name, $value in $carbon--font-families {
|
|
18
|
-
.#{$prefix}--type-#{$name} {
|
|
19
|
-
font-family: $value;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Font weights
|
|
24
|
-
@each $name, $value in $carbon--font-weights {
|
|
25
|
-
.#{$prefix}--type-#{$name} {
|
|
26
|
-
font-weight: $value;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Font styles
|
|
31
|
-
.#{$prefix}--type-italic {
|
|
32
|
-
font-style: italic;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Type styles
|
|
36
|
-
@each $name, $value in $tokens {
|
|
37
|
-
.#{$prefix}--type-#{$name} {
|
|
38
|
-
@include carbon--type-style($name, map-has-key($value, breakpoints));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans
|
|
9
|
-
/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif
|
|
10
|
-
/// @type Map
|
|
11
|
-
/// @access public
|
|
12
|
-
/// @group @carbon/type
|
|
13
|
-
$carbon--font-families: (
|
|
14
|
-
'mono':
|
|
15
|
-
unquote(
|
|
16
|
-
"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace"
|
|
17
|
-
),
|
|
18
|
-
'sans': unquote("'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif"),
|
|
19
|
-
'sans-condensed':
|
|
20
|
-
unquote("'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif"),
|
|
21
|
-
'sans-hebrew':
|
|
22
|
-
unquote(
|
|
23
|
-
"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif"
|
|
24
|
-
),
|
|
25
|
-
'serif': unquote("'IBM Plex Serif', 'Georgia', Times, serif"),
|
|
26
|
-
) !default;
|
|
27
|
-
|
|
28
|
-
/// Get the font-family for an IBM Plex font
|
|
29
|
-
/// @param {String} $name
|
|
30
|
-
/// @return {String}
|
|
31
|
-
/// @access public
|
|
32
|
-
/// @group @carbon/type
|
|
33
|
-
@function carbon--font-family($name) {
|
|
34
|
-
@return map-get($carbon--font-families, $name);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/// Include the `font-family` definition for the given name in your selector
|
|
38
|
-
/// @param {String} $name
|
|
39
|
-
/// @access public
|
|
40
|
-
/// @group @carbon/type
|
|
41
|
-
@mixin carbon--font-family($name) {
|
|
42
|
-
font-family: carbon--font-family($name);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/// Suggested font weights to be used in product
|
|
46
|
-
/// @type Map
|
|
47
|
-
/// @access public
|
|
48
|
-
/// @group @carbon/type
|
|
49
|
-
$carbon--font-weights: (
|
|
50
|
-
'light': 300,
|
|
51
|
-
'regular': 400,
|
|
52
|
-
'semibold': 600,
|
|
53
|
-
) !default;
|
|
54
|
-
|
|
55
|
-
/// Retrieve the font-weight value for a given name
|
|
56
|
-
/// @param {String} $weight
|
|
57
|
-
/// @return {Number}
|
|
58
|
-
/// @access public
|
|
59
|
-
/// @group @carbon/type
|
|
60
|
-
@function carbon--font-weight($weight) {
|
|
61
|
-
@return map-get($carbon--font-weights, $weight);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/// Set the `font-weight` property with the value for a given name
|
|
65
|
-
/// @param {String} $weight
|
|
66
|
-
/// @access public
|
|
67
|
-
/// @group @carbon/type
|
|
68
|
-
@mixin carbon--font-weight($weight) {
|
|
69
|
-
font-weight: carbon--font-weight($weight);
|
|
70
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
@import 'prefix';
|
|
9
|
-
@import 'styles';
|
|
10
|
-
@import 'font-family';
|
|
11
|
-
|
|
12
|
-
/// Create type classes for font families, weights, styles
|
|
13
|
-
/// @access public
|
|
14
|
-
/// @group @carbon/type
|
|
15
|
-
@mixin carbon--type-classes {
|
|
16
|
-
// Font families
|
|
17
|
-
@each $name, $value in $carbon--font-families {
|
|
18
|
-
.#{$prefix}--type-#{$name} {
|
|
19
|
-
font-family: $value;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Font weights
|
|
24
|
-
@each $name, $value in $carbon--font-weights {
|
|
25
|
-
.#{$prefix}--type-#{$name} {
|
|
26
|
-
font-weight: $value;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Font styles
|
|
31
|
-
.#{$prefix}--type-italic {
|
|
32
|
-
font-style: italic;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Type styles
|
|
36
|
-
@each $name, $value in $tokens {
|
|
37
|
-
.#{$prefix}--type-#{$name} {
|
|
38
|
-
@include carbon--type-style($name, map-has-key($value, breakpoints));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans
|
|
9
|
-
/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif
|
|
10
|
-
/// @type Map
|
|
11
|
-
/// @access public
|
|
12
|
-
/// @group @carbon/type
|
|
13
|
-
$carbon--font-families: (
|
|
14
|
-
'mono':
|
|
15
|
-
unquote(
|
|
16
|
-
"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace"
|
|
17
|
-
),
|
|
18
|
-
'sans': unquote("'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif"),
|
|
19
|
-
'sans-condensed':
|
|
20
|
-
unquote("'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif"),
|
|
21
|
-
'sans-hebrew':
|
|
22
|
-
unquote(
|
|
23
|
-
"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif"
|
|
24
|
-
),
|
|
25
|
-
'serif': unquote("'IBM Plex Serif', 'Georgia', Times, serif"),
|
|
26
|
-
) !default;
|
|
27
|
-
|
|
28
|
-
/// Get the font-family for an IBM Plex font
|
|
29
|
-
/// @param {String} $name
|
|
30
|
-
/// @return {String}
|
|
31
|
-
/// @access public
|
|
32
|
-
/// @group @carbon/type
|
|
33
|
-
@function carbon--font-family($name) {
|
|
34
|
-
@return map-get($carbon--font-families, $name);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/// Include the `font-family` definition for the given name in your selector
|
|
38
|
-
/// @param {String} $name
|
|
39
|
-
/// @access public
|
|
40
|
-
/// @group @carbon/type
|
|
41
|
-
@mixin carbon--font-family($name) {
|
|
42
|
-
font-family: carbon--font-family($name);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/// Suggested font weights to be used in product
|
|
46
|
-
/// @type Map
|
|
47
|
-
/// @access public
|
|
48
|
-
/// @group @carbon/type
|
|
49
|
-
$carbon--font-weights: (
|
|
50
|
-
'light': 300,
|
|
51
|
-
'regular': 400,
|
|
52
|
-
'semibold': 600,
|
|
53
|
-
) !default;
|
|
54
|
-
|
|
55
|
-
/// Retrieve the font-weight value for a given name
|
|
56
|
-
/// @param {String} $weight
|
|
57
|
-
/// @return {Number}
|
|
58
|
-
/// @access public
|
|
59
|
-
/// @group @carbon/type
|
|
60
|
-
@function carbon--font-weight($weight) {
|
|
61
|
-
@return map-get($carbon--font-weights, $weight);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/// Set the `font-weight` property with the value for a given name
|
|
65
|
-
/// @param {String} $weight
|
|
66
|
-
/// @access public
|
|
67
|
-
/// @group @carbon/type
|
|
68
|
-
@mixin carbon--font-weight($weight) {
|
|
69
|
-
font-weight: carbon--font-weight($weight);
|
|
70
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
/// @type String
|
|
9
|
-
/// @access public
|
|
10
|
-
/// @group @carbon/type
|
|
11
|
-
$prefix: 'bx' !default;
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
@import '../../layout/convert';
|
|
9
|
-
@import 'font-family';
|
|
10
|
-
@import 'styles';
|
|
11
|
-
|
|
12
|
-
/// Include a type reset for a given body and mono font family
|
|
13
|
-
/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element
|
|
14
|
-
/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element
|
|
15
|
-
/// @access public
|
|
16
|
-
/// @group @carbon/type
|
|
17
|
-
@mixin carbon--type-reset(
|
|
18
|
-
// TODO: remove in next major release. This has been replaced with 100%
|
|
19
|
-
$base-font-size: $carbon--base-font-size,
|
|
20
|
-
$body-font-family: carbon--font-family('sans'),
|
|
21
|
-
$mono-font-family: carbon--font-family('mono')
|
|
22
|
-
) {
|
|
23
|
-
html {
|
|
24
|
-
font-size: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
body {
|
|
28
|
-
@include carbon--font-weight('regular');
|
|
29
|
-
|
|
30
|
-
font-family: $body-font-family;
|
|
31
|
-
-moz-osx-font-smoothing: grayscale;
|
|
32
|
-
-webkit-font-smoothing: antialiased;
|
|
33
|
-
text-rendering: optimizeLegibility;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
code {
|
|
37
|
-
font-family: $mono-font-family;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
strong {
|
|
41
|
-
@include carbon--font-weight('semibold');
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/// Include default type styles
|
|
46
|
-
/// @access public
|
|
47
|
-
/// @group @carbon/type
|
|
48
|
-
@mixin carbon--default-type {
|
|
49
|
-
h1 {
|
|
50
|
-
@include carbon--type-style('productive-heading-06');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
h2 {
|
|
54
|
-
@include carbon--type-style('productive-heading-05');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
h3 {
|
|
58
|
-
@include carbon--type-style('productive-heading-04');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
h4 {
|
|
62
|
-
@include carbon--type-style('productive-heading-03');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
h5 {
|
|
66
|
-
@include carbon--type-style('productive-heading-02');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
h6 {
|
|
70
|
-
@include carbon--type-style('productive-heading-01');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
p {
|
|
74
|
-
@include carbon--type-style('body-long-02');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
a {
|
|
78
|
-
@if global-variable-exists('carbon--theme') and
|
|
79
|
-
map-has-key($carbon--theme, 'link-01')
|
|
80
|
-
{
|
|
81
|
-
color: map-get($carbon--theme, 'link-01');
|
|
82
|
-
} @else {
|
|
83
|
-
color: #0062fe;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
em {
|
|
88
|
-
font-style: italic;
|
|
89
|
-
}
|
|
90
|
-
}
|