@bcgov/design-tokens 3.2.0 → 4.0.0-pr652
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 +93 -87
- package/cjs/index.d.ts +204 -204
- package/cjs/index.js +208 -204
- package/cjs-prefixed/index.d.ts +204 -204
- package/cjs-prefixed/index.js +208 -204
- package/css/variables.css +157 -157
- package/css-prefixed/variables.css +157 -157
- package/js/index.d.ts +204 -204
- package/js/index.js +12 -6
- package/js-prefixed/index.d.ts +204 -204
- package/js-prefixed/index.js +14 -7
- package/package.json +24 -23
- package/scss/variables.scss +508 -0
- package/scss-prefixed/variables.scss +508 -0
package/cjs/index.js
CHANGED
|
@@ -3,208 +3,212 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
6
|
+
surfaceOpacity0: 0,
|
|
7
|
+
surfaceOpacity10: 0.1,
|
|
8
|
+
surfaceOpacity20: 0.2,
|
|
9
|
+
surfaceOpacity30: 0.3,
|
|
10
|
+
surfaceOpacity40: 0.4,
|
|
11
|
+
surfaceOpacity50: 0.5,
|
|
12
|
+
surfaceOpacity60: 0.6,
|
|
13
|
+
surfaceOpacity70: 0.7,
|
|
14
|
+
surfaceOpacity80: 0.8,
|
|
15
|
+
surfaceOpacity90: 0.9,
|
|
16
|
+
surfaceOpacity100: 1,
|
|
17
|
+
surfaceShadowNone:
|
|
18
|
+
"0 0.30000001192092896px 0.8999999761581421px 0 #0000001a, 0 1.600000023841858px 3.5999999046325684px 0 #00000021",
|
|
19
|
+
surfaceShadowSmall:
|
|
20
|
+
"0 0.6000000238418579px 1.7999999523162842px 0 #0000001a, 0 3.200000047683716px 7.199999809265137px 0 #00000021",
|
|
21
|
+
surfaceShadowMedium:
|
|
22
|
+
"0 1.2000000476837158px 3.5999999046325684px 0 #0000001a, 0 6.400000095367432px 14.399999618530273px 0 #00000021",
|
|
23
|
+
surfaceShadowLarge:
|
|
24
|
+
"0 4.800000190734863px 14.399999618530273px 0 #0000002e, 0 25.600000381469727px 57.599998474121094px 0 #00000038",
|
|
25
|
+
surfaceColorPrimaryButtonDefault: "#013366",
|
|
26
|
+
surfaceColorPrimaryButtonHover: "#1E5189",
|
|
27
|
+
surfaceColorPrimaryButtonDisabled: "#EDEBE9",
|
|
28
|
+
surfaceColorPrimaryDangerButtonDefault: "#CE3E39",
|
|
29
|
+
surfaceColorPrimaryDangerButtonHover: "#A2312D",
|
|
30
|
+
surfaceColorPrimaryDangerButtonDisabled: "#EDEBE9",
|
|
31
|
+
surfaceColorPrimaryDefault: "#013366",
|
|
32
|
+
surfaceColorPrimaryHover: "#1E5189",
|
|
33
|
+
surfaceColorPrimaryPressed: "#01264C",
|
|
34
|
+
surfaceColorPrimaryDisabled: "#EDEBE9",
|
|
35
|
+
surfaceColorSecondaryButtonDefault: "#FFFFFF",
|
|
36
|
+
surfaceColorSecondaryButtonHover: "#EDEBE9",
|
|
37
|
+
surfaceColorSecondaryButtonDisabled: "#EDEBE9",
|
|
38
|
+
surfaceColorSecondaryDefault: "#FFFFFF",
|
|
39
|
+
surfaceColorSecondaryHover: "#EDEBE9",
|
|
40
|
+
surfaceColorSecondaryPressed: "#E0DEDC",
|
|
41
|
+
surfaceColorSecondaryDisabled: "#EDEBE9",
|
|
42
|
+
surfaceColorTertiaryButtonDefault: "rgba(255,255,255,0)",
|
|
43
|
+
surfaceColorTertiaryButtonHover: "#ECEAE8",
|
|
44
|
+
surfaceColorTertiaryButtonDisabled: "#EDEBE9",
|
|
45
|
+
surfaceColorTertiaryDefault: "#FFFFFF00",
|
|
46
|
+
surfaceColorTertiaryHover: "#ECEAE8",
|
|
47
|
+
surfaceColorTertiaryPressed: "#E0DEDC",
|
|
48
|
+
surfaceColorTertiaryDisabled: "#EDEBE9",
|
|
49
|
+
surfaceColorMenusDefault: "#FFFFFF",
|
|
50
|
+
surfaceColorMenusHover: "#EDEBE9",
|
|
51
|
+
surfaceColorFormsDefault: "#FFFFFF",
|
|
52
|
+
surfaceColorFormsDisabled: "#EDEBE9",
|
|
53
|
+
surfaceColorBackgroundWhite: "#FFFFFF",
|
|
54
|
+
surfaceColorBackgroundLightGray: "#FAF9F8",
|
|
55
|
+
surfaceColorBackgroundLightBlue: "#F1F8FE",
|
|
56
|
+
surfaceColorBackgroundDarkBlue: "#053662",
|
|
57
|
+
surfaceColorBorderDefault: "#D8D8D8",
|
|
58
|
+
surfaceColorBorderMedium: "#898785",
|
|
59
|
+
surfaceColorBorderDark: "#353433",
|
|
60
|
+
surfaceColorBorderActive: "#2E5DD7",
|
|
61
|
+
surfaceColorOverlayDefault: "rgba(0,0,0,0.45)",
|
|
62
|
+
supportSurfaceColorInfo: "#F7F9FC",
|
|
63
|
+
supportSurfaceColorDanger: "#F4E1E2",
|
|
64
|
+
supportSurfaceColorSuccess: "#F6FFF8",
|
|
65
|
+
supportSurfaceColorWarning: "#FEF1D8",
|
|
66
|
+
supportBorderColorInfo: "#053662",
|
|
67
|
+
supportBorderColorDanger: "#CE3E39",
|
|
68
|
+
supportBorderColorSuccess: "#42814A",
|
|
69
|
+
supportBorderColorWarning: "#F8BB47",
|
|
70
|
+
iconsSizeXsmall: "14px",
|
|
71
|
+
iconsSizeSmall: "16px",
|
|
72
|
+
iconsSizeMedium: "20px",
|
|
73
|
+
iconsSizeLarge: "24px",
|
|
74
|
+
iconsSizeXlarge: "32px",
|
|
75
|
+
iconsColorPrimary: "#2D2D2D",
|
|
76
|
+
iconsColorSecondary: "#474543",
|
|
77
|
+
iconsColorDisabled: "#9F9D9C",
|
|
78
|
+
iconsColorLink: "#255A90",
|
|
79
|
+
iconsColorInfo: "#053662",
|
|
80
|
+
iconsColorDanger: "#CE3E39",
|
|
81
|
+
iconsColorSuccess: "#42814A",
|
|
82
|
+
iconsColorWarning: "#F8BB47",
|
|
83
|
+
iconsColorPrimaryInvert: "#FFFFFF",
|
|
84
|
+
layoutBorderWidthNone: "0",
|
|
85
|
+
layoutBorderWidthSmall: "1px",
|
|
86
|
+
layoutBorderWidthMedium: "2px",
|
|
87
|
+
layoutBorderWidthLarge: "4px",
|
|
88
|
+
layoutPaddingNone: "0",
|
|
89
|
+
layoutPaddingHair: "0.125rem",
|
|
90
|
+
layoutPaddingXsmall: "0.25rem",
|
|
91
|
+
layoutPaddingSmall: "0.5rem",
|
|
92
|
+
layoutPaddingMedium: "1rem",
|
|
93
|
+
layoutPaddingLarge: "1.5rem",
|
|
94
|
+
layoutPaddingXlarge: "2rem",
|
|
95
|
+
layoutMarginNone: "0rem",
|
|
96
|
+
layoutMarginHair: "0.125rem",
|
|
97
|
+
layoutMarginXsmall: "0.25rem",
|
|
98
|
+
layoutMarginSmall: "0.5rem",
|
|
99
|
+
layoutMarginMedium: "1rem",
|
|
100
|
+
layoutMarginLarge: "1.5rem",
|
|
101
|
+
layoutMarginXlarge: "2rem",
|
|
102
|
+
layoutMarginXxlarge: "2.5rem",
|
|
103
|
+
layoutMarginXxxlarge: "3rem",
|
|
104
|
+
layoutMarginHuge: "3.5rem",
|
|
105
|
+
layoutBorderRadiusNone: "0",
|
|
106
|
+
layoutBorderRadiusSmall: "2px",
|
|
107
|
+
layoutBorderRadiusMedium: "4px",
|
|
108
|
+
layoutBorderRadiusLarge: "6px",
|
|
109
|
+
layoutBorderRadiusCircular: "9999px",
|
|
110
|
+
typographyFontFamiliesBcSans: "'BC Sans'",
|
|
111
|
+
typographyLineHeightsXxxdense: "1.125rem",
|
|
112
|
+
typographyLineHeightsXxdense: "1.313rem",
|
|
113
|
+
typographyLineHeightsXdense: "1.688rem",
|
|
114
|
+
typographyLineHeightsDense: "1.913rem",
|
|
115
|
+
typographyLineHeightsRegular: "2.125rem",
|
|
116
|
+
typographyLineHeightsSparse: "2.25rem",
|
|
117
|
+
typographyLineHeightsXsparse: "3rem",
|
|
118
|
+
typographyLineHeightsXxsparse: "3.375rem",
|
|
119
|
+
typographyLineHeightsAuto: "AUTO",
|
|
120
|
+
typographyFontWeightsRegular: 400,
|
|
121
|
+
typographyFontWeightsBold: 700,
|
|
122
|
+
typographyFontWeightsItalicWeight: 400,
|
|
123
|
+
typographyFontWeightsItalicStyle: "italic",
|
|
124
|
+
typographyFontSizeLabel: "0.75rem",
|
|
125
|
+
typographyFontSizeSmallBody: "0.875rem",
|
|
126
|
+
typographyFontSizeBody: "1rem",
|
|
127
|
+
typographyFontSizeLargeBody: "1.125rem",
|
|
128
|
+
typographyFontSizeH5: "1.25rem",
|
|
129
|
+
typographyFontSizeH4: "1.5rem",
|
|
130
|
+
typographyFontSizeH3: "1.75rem",
|
|
131
|
+
typographyFontSizeH2: "2rem",
|
|
132
|
+
typographyFontSizeH1: "2.25rem",
|
|
133
|
+
typographyFontSizeDisplay: "3rem",
|
|
134
|
+
typographyLetterSpacing0: "0em",
|
|
135
|
+
typographyParagraphSpacing0: "0",
|
|
136
|
+
typographyRegularLabel: "400 0.75rem/1.125rem 'BC Sans'",
|
|
137
|
+
typographyRegularSmallBody: "400 0.875rem/1.313rem 'BC Sans'",
|
|
138
|
+
typographyRegularBody: "400 1rem/1.688rem 'BC Sans'",
|
|
139
|
+
typographyRegularLargeBody: "400 1.125rem/1.913rem 'BC Sans'",
|
|
140
|
+
typographyRegularH6: "400 1.125rem/1.913rem 'BC Sans'",
|
|
141
|
+
typographyRegularH5: "400 1.25rem/2.125rem 'BC Sans'",
|
|
142
|
+
typographyRegularH4: "400 1.5rem/2.25rem 'BC Sans'",
|
|
143
|
+
typographyRegularH3: "400 1.75rem/3rem 'BC Sans'",
|
|
144
|
+
typographyRegularH2: "400 2rem/3.375rem 'BC Sans'",
|
|
145
|
+
typographyRegularH1: "400 2.25rem/3rem 'BC Sans'",
|
|
146
|
+
typographyRegularDisplay: "400 3rem/AUTO 'BC Sans'",
|
|
147
|
+
typographyBoldLabel: "700 0.75rem/1.125rem 'BC Sans'",
|
|
148
|
+
typographyBoldSmallBody: "700 0.875rem/1.313rem 'BC Sans'",
|
|
149
|
+
typographyBoldBody: "700 1rem/1.688rem 'BC Sans'",
|
|
150
|
+
typographyBoldLargeBody: "700 1.125rem/1.913rem 'BC Sans'",
|
|
151
|
+
typographyBoldH6: "700 1.125rem/1.913rem 'BC Sans'",
|
|
152
|
+
typographyBoldH5: "700 1.25rem/2.125rem 'BC Sans'",
|
|
153
|
+
typographyBoldH4: "700 1.5rem/2.25rem 'BC Sans'",
|
|
154
|
+
typographyBoldH3: "700 1.75rem/3rem 'BC Sans'",
|
|
155
|
+
typographyBoldH2: "700 2rem/3rem 'BC Sans'",
|
|
156
|
+
typographyBoldH1: "700 2.25rem/3.375rem 'BC Sans'",
|
|
157
|
+
typographyBoldDisplay: "700 3rem/AUTO 'BC Sans'",
|
|
158
|
+
typographyItalicLabel: "400 italic 0.75rem/1.125rem 'BC Sans'",
|
|
159
|
+
typographyItalicSmallBody: "400 italic 0.875rem/1.313rem 'BC Sans'",
|
|
160
|
+
typographyItalicBody: "400 italic 1rem/1.688rem 'BC Sans'",
|
|
161
|
+
typographyItalicLargeBody: "400 italic 1.125rem/1.913rem 'BC Sans'",
|
|
162
|
+
typographyItalicH6: "400 italic 1.125rem/1.913rem 'BC Sans'",
|
|
163
|
+
typographyItalicH5: "400 italic 1.25rem/2.125rem 'BC Sans'",
|
|
164
|
+
typographyItalicH4: "400 italic 1.5rem/2.25rem 'BC Sans'",
|
|
165
|
+
typographyItalicH3: "400 italic 1.75rem/3.375rem 'BC Sans'",
|
|
166
|
+
typographyItalicH2: "400 italic 2rem/3rem 'BC Sans'",
|
|
167
|
+
typographyItalicH1: "400 italic 2.25rem/3.375rem 'BC Sans'",
|
|
168
|
+
typographyItalicDisplay: "400 italic 3rem/AUTO 'BC Sans'",
|
|
169
|
+
typographyTextCaseNone: "none",
|
|
170
|
+
typographyTextDecorationNone: "none",
|
|
171
|
+
typographyParagraphIndent0: "0px",
|
|
172
|
+
typographyColorPrimary: "#2D2D2D",
|
|
173
|
+
typographyColorSecondary: "#474543",
|
|
174
|
+
typographyColorPlaceholder: "#9F9D9C",
|
|
175
|
+
typographyColorDisabled: "#9F9D9C",
|
|
176
|
+
typographyColorLink: "#255A90",
|
|
177
|
+
typographyColorDanger: "#CE3E39",
|
|
178
|
+
typographyColorPrimaryInvert: "#FFFFFF",
|
|
179
|
+
typographyColorSecondaryInvert: "#ECEAE8",
|
|
180
|
+
themeGold10: "#FEF8E8",
|
|
181
|
+
themeGold20: "#FEF0D8",
|
|
182
|
+
themeGold30: "#FDE9C4",
|
|
183
|
+
themeGold40: "#FCE2B0",
|
|
184
|
+
themeGold50: "#FBDA9D",
|
|
185
|
+
themeGold60: "#FBD389",
|
|
186
|
+
themeGold70: "#FACC75",
|
|
187
|
+
themeGold80: "#F9C462",
|
|
188
|
+
themeGold90: "#F8BA47",
|
|
189
|
+
themeGold100: "#FCBA19",
|
|
190
|
+
themeBlue10: "#F1F8FE",
|
|
191
|
+
themeBlue20: "#D8EAFD",
|
|
192
|
+
themeBlue30: "#C1DDFC",
|
|
193
|
+
themeBlue40: "#A8D0FB",
|
|
194
|
+
themeBlue50: "#91C4FA",
|
|
195
|
+
themeBlue60: "#7AB8F9",
|
|
196
|
+
themeBlue70: "#5595D9",
|
|
197
|
+
themeBlue80: "#3470B1",
|
|
198
|
+
themeBlue90: "#1E5189",
|
|
199
|
+
themeBlue100: "#013366",
|
|
200
|
+
themeGray10: "#FAF9F8",
|
|
201
|
+
themeGray20: "#F3F2F1",
|
|
202
|
+
themeGray30: "#ECEAE8",
|
|
203
|
+
themeGray40: "#E0DEDC",
|
|
204
|
+
themeGray50: "#D1CFCD",
|
|
205
|
+
themeGray60: "#C6C5C3",
|
|
206
|
+
themeGray70: "#9F9D9C",
|
|
207
|
+
themeGray80: "#605E5C",
|
|
208
|
+
themeGray90: "#3D3C3B",
|
|
209
|
+
themeGray100: "#353433",
|
|
210
|
+
themeGray110: "#252423",
|
|
211
|
+
themeGrayWhite: "#FFFFFF",
|
|
212
|
+
themePrimaryBlue: "#013366",
|
|
213
|
+
themePrimaryGold: "#FCBA19",
|
|
210
214
|
};
|