@bcgov/design-tokens 3.0.1 → 3.1.0-pr466

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.
@@ -13,99 +13,184 @@ export const bcdsSurfaceOpacity70 : number;
13
13
  export const bcdsSurfaceOpacity80 : number;
14
14
  export const bcdsSurfaceOpacity90 : number;
15
15
  export const bcdsSurfaceOpacity100 : number;
16
+ /** Default shadow for most content and UI elements */
16
17
  export const bcdsSurfaceShadowNone : string;
17
- /** Primarily used as a hover effect for cards */
18
+ /** Reduced shadow for secondary UI elements */
18
19
  export const bcdsSurfaceShadowSmall : string;
19
- /** Primarily used for dropdown menus and tooltips */
20
+ /** Standard shadow for UI elements like cards and buttons */
20
21
  export const bcdsSurfaceShadowMedium : string;
21
- /** Primarily used for dialogs */
22
+ /** Larger shadow for emphasis. Use sparingly */
22
23
  export const bcdsSurfaceShadowLarge : string;
24
+ /** Default fill colour for primary buttons */
23
25
  export const bcdsSurfaceColorPrimaryButtonDefault : string;
26
+ /** Fill colour used when user hovers over primary button */
24
27
  export const bcdsSurfaceColorPrimaryButtonHover : string;
28
+ /** Fill colour for inactive primary buttons */
25
29
  export const bcdsSurfaceColorPrimaryButtonDisabled : string;
30
+ /** Default fill colour for buttons in danger/warning state */
26
31
  export const bcdsSurfaceColorPrimaryDangerButtonDefault : string;
32
+ /** Fill colour used when user hovers over danger/warning button */
27
33
  export const bcdsSurfaceColorPrimaryDangerButtonHover : string;
34
+ /** Default fill colour for disabled danger/warning button */
28
35
  export const bcdsSurfaceColorPrimaryDangerButtonDisabled : string;
36
+ /** Default theme colour for components and layout */
37
+ export const bcdsSurfaceColorPrimaryDefault : string;
38
+ /** Hover variant of surface.color.primary.default */
39
+ export const bcdsSurfaceColorPrimaryHover : string;
40
+ /** Selected/pressed variant of surface.color.primary.default */
41
+ export const bcdsSurfaceColorPrimaryPressed : string;
42
+ /** Disabled/inactive variant of surface.color.primary default */
43
+ export const bcdsSurfaceColorPrimaryDisabled : string;
44
+ /** Fill colour for secondary buttons */
29
45
  export const bcdsSurfaceColorSecondaryButtonDefault : string;
46
+ /** Fill colour used when user hovers over secondary button */
30
47
  export const bcdsSurfaceColorSecondaryButtonHover : string;
48
+ /** Fill colour for inactive secondary buttons */
31
49
  export const bcdsSurfaceColorSecondaryButtonDisabled : string;
50
+ /** Light theme colour for components and layout */
51
+ export const bcdsSurfaceColorSecondaryDefault : string;
52
+ /** Hover variant of surface.color.secondary.default */
53
+ export const bcdsSurfaceColorSecondaryHover : string;
54
+ /** Selected/pressed variant of surface.color.secondary.default */
55
+ export const bcdsSurfaceColorSecondaryPressed : string;
56
+ /** Disabled/inactive variant of surface.color.secondary default */
57
+ export const bcdsSurfaceColorSecondaryDisabled : string;
58
+ /** Default fill colour for tertiary buttons */
32
59
  export const bcdsSurfaceColorTertiaryButtonDefault : string;
60
+ /** Fill colour used when user hovers over tertiary button */
33
61
  export const bcdsSurfaceColorTertiaryButtonHover : string;
62
+ /** Fill colour for inactive tertiary buttons */
34
63
  export const bcdsSurfaceColorTertiaryButtonDisabled : string;
64
+ /** Alternative light theme colour for components and layout */
65
+ export const bcdsSurfaceColorTertiaryDefault : string;
66
+ /** Hover variant of surface.color.tertiary.default */
67
+ export const bcdsSurfaceColorTertiaryHover : string;
68
+ /** Selected/pressed variant of surface.color.tertiary.default */
69
+ export const bcdsSurfaceColorTertiaryPressed : string;
70
+ /** Disabled/inactive variant of surface.color.tertiary default */
71
+ export const bcdsSurfaceColorTertiaryDisabled : string;
72
+ /** Default fill colour for menu items */
35
73
  export const bcdsSurfaceColorMenusDefault : string;
74
+ /** Fill colour used when user hovers over a menu item */
36
75
  export const bcdsSurfaceColorMenusHover : string;
76
+ /** Default fill colour for form/input fields */
37
77
  export const bcdsSurfaceColorFormsDefault : string;
78
+ /** Fill colour for inactive/disabled form/input fields */
38
79
  export const bcdsSurfaceColorFormsDisabled : string;
80
+ /** White background */
39
81
  export const bcdsSurfaceColorBackgroundWhite : string;
82
+ /** Default background colour for layout */
40
83
  export const bcdsSurfaceColorBackgroundLightGray : string;
84
+ /** Light blue background */
41
85
  export const bcdsSurfaceColorBackgroundLightBlue : string;
86
+ /** Dark blue background */
42
87
  export const bcdsSurfaceColorBackgroundDarkBlue : string;
88
+ /** Lighter border colour for UI elements */
43
89
  export const bcdsSurfaceColorBorderDefault : string;
90
+ /** Default border colour for UI elements */
44
91
  export const bcdsSurfaceColorBorderMedium : string;
92
+ /** Used as a hover colour for form fields and inputs */
45
93
  export const bcdsSurfaceColorBorderDark : string;
94
+ /** Used as the active stroke colour for UI elements */
46
95
  export const bcdsSurfaceColorBorderActive : string;
96
+ /** Background overlay colour for images and modal dialogues */
47
97
  export const bcdsSurfaceColorOverlayDefault : string;
48
98
  export const bcdsSupportSurfaceColorInfo : string;
99
+ /** Background colour for error, failure or danger messages */
49
100
  export const bcdsSupportSurfaceColorDanger : string;
101
+ /** Background colour for success messages */
50
102
  export const bcdsSupportSurfaceColorSuccess : string;
103
+ /** Background colour for warning messages */
51
104
  export const bcdsSupportSurfaceColorWarning : string;
105
+ /** Border stroke for general/informational messages */
52
106
  export const bcdsSupportBorderColorInfo : string;
107
+ /** Border stroke for error, failure or danger messages */
53
108
  export const bcdsSupportBorderColorDanger : string;
109
+ /** Border stroke for success messages */
54
110
  export const bcdsSupportBorderColorSuccess : string;
111
+ /** Border stroke for warning messages */
55
112
  export const bcdsSupportBorderColorWarning : string;
113
+ /** Smallest icon size */
56
114
  export const bcdsIconsSizeXsmall : string;
57
115
  export const bcdsIconsSizeSmall : string;
116
+ /** Default icon size */
58
117
  export const bcdsIconsSizeMedium : string;
59
118
  export const bcdsIconsSizeLarge : string;
119
+ /** Largest icon size */
60
120
  export const bcdsIconsSizeXlarge : string;
121
+ /** Default colour for icons */
61
122
  export const bcdsIconsColorPrimary : string;
123
+ /** Alternative colour for secondary/miscellaneous icons */
62
124
  export const bcdsIconsColorSecondary : string;
125
+ /** Use only for inactive/disabled icons */
63
126
  export const bcdsIconsColorDisabled : string;
127
+ /** Use for hyperlinked icons */
64
128
  export const bcdsIconsColorLink : string;
129
+ /** Emphasis colour for icons in general/informational state */
65
130
  export const bcdsIconsColorInfo : string;
131
+ /** Emphasis colour for icons in error, failure or danger state */
66
132
  export const bcdsIconsColorDanger : string;
133
+ /** Emphasis colour for icons in success state */
67
134
  export const bcdsIconsColorSuccess : string;
135
+ /** Emphasis colour for icons in warning state */
68
136
  export const bcdsIconsColorWarning : string;
137
+ /** Default colour for icons on dark backgrounds */
69
138
  export const bcdsIconsColorPrimaryInvert : string;
70
139
  export const bcdsLayoutBorderWidthNone : string;
71
140
  export const bcdsLayoutBorderWidthSmall : string;
72
141
  export const bcdsLayoutBorderWidthMedium : string;
73
142
  export const bcdsLayoutBorderWidthLarge : string;
143
+ /** No padding */
74
144
  export const bcdsLayoutPaddingNone : string;
145
+ /** Smallest padding value for layout */
146
+ export const bcdsLayoutPaddingHair : string;
75
147
  export const bcdsLayoutPaddingXsmall : string;
76
148
  export const bcdsLayoutPaddingSmall : string;
149
+ /** Default padding value for layout */
77
150
  export const bcdsLayoutPaddingMedium : string;
78
151
  export const bcdsLayoutPaddingLarge : string;
152
+ /** Largest padding value for layout */
79
153
  export const bcdsLayoutPaddingXlarge : string;
154
+ /** No margin */
80
155
  export const bcdsLayoutMarginNone : string;
156
+ /** Smallest margin value for layout */
81
157
  export const bcdsLayoutMarginHair : string;
82
158
  export const bcdsLayoutMarginXsmall : string;
159
+ /** Default margin value for layout */
83
160
  export const bcdsLayoutMarginSmall : string;
84
161
  export const bcdsLayoutMarginMedium : string;
85
162
  export const bcdsLayoutMarginLarge : string;
86
163
  export const bcdsLayoutMarginXlarge : string;
87
164
  export const bcdsLayoutMarginXxlarge : string;
88
165
  export const bcdsLayoutMarginXxxlarge : string;
166
+ /** Largest margin value for layout */
89
167
  export const bcdsLayoutMarginHuge : string;
90
168
  export const bcdsLayoutBorderRadiusNone : string;
91
169
  export const bcdsLayoutBorderRadiusSmall : string;
92
170
  export const bcdsLayoutBorderRadiusMedium : string;
93
171
  export const bcdsLayoutBorderRadiusLarge : string;
172
+ /** BC Sans font. Requires BC Sans package */
94
173
  export const bcdsTypographyFontFamiliesBcSans : string;
174
+ /** Smallest line height */
95
175
  export const bcdsTypographyLineHeightsXxxdense : string;
96
176
  export const bcdsTypographyLineHeightsXxdense : string;
97
177
  export const bcdsTypographyLineHeightsXdense : string;
98
178
  export const bcdsTypographyLineHeightsDense : string;
179
+ /** Default line height */
99
180
  export const bcdsTypographyLineHeightsRegular : string;
100
181
  export const bcdsTypographyLineHeightsSparse : string;
101
182
  export const bcdsTypographyLineHeightsXsparse : string;
183
+ /** Largest line height */
102
184
  export const bcdsTypographyLineHeightsXxsparse : string;
185
+ /** System token, used to generate type styles */
103
186
  export const bcdsTypographyLineHeightsAuto : string;
187
+ /** System token, used to generate text styles */
104
188
  export const bcdsTypographyFontWeightsRegular : number;
189
+ /** System token, used to generate text styles */
105
190
  export const bcdsTypographyFontWeightsBold : number;
106
- /** DEPRECATED - will be removed in next major version. */
107
- export const bcdsTypographyFontWeightsItalic : string;
191
+ /** System token, used to generate text styles */
108
192
  export const bcdsTypographyFontWeightsItalicWeight : number;
193
+ /** System token, used to generate text styles */
109
194
  export const bcdsTypographyFontWeightsItalicStyle : string;
110
195
  export const bcdsTypographyFontSizeLabel : string;
111
196
  export const bcdsTypographyFontSizeSmallBody : string;
@@ -117,83 +202,162 @@ export const bcdsTypographyFontSizeH3 : string;
117
202
  export const bcdsTypographyFontSizeH2 : string;
118
203
  export const bcdsTypographyFontSizeH1 : string;
119
204
  export const bcdsTypographyFontSizeDisplay : string;
205
+ /** System token, used to generate type styles */
120
206
  export const bcdsTypographyLetterSpacing0 : string;
207
+ /** System token, used to generate type styles */
121
208
  export const bcdsTypographyParagraphSpacing0 : string;
209
+ /** Labels and captions */
122
210
  export const bcdsTypographyRegularLabel : string;
211
+ /** Smaller body text */
123
212
  export const bcdsTypographyRegularSmallBody : string;
213
+ /** Default body text */
124
214
  export const bcdsTypographyRegularBody : string;
215
+ /** Larger body text */
125
216
  export const bcdsTypographyRegularLargeBody : string;
217
+ /** Alternate (unbolded) style for Heading 6 */
126
218
  export const bcdsTypographyRegularH6 : string;
219
+ /** Alternate (unbolded) style for Heading 5 */
127
220
  export const bcdsTypographyRegularH5 : string;
221
+ /** Alternate (unbolded) style for Heading 4 */
128
222
  export const bcdsTypographyRegularH4 : string;
223
+ /** Alternate (unbolded) style for Heading 3 */
129
224
  export const bcdsTypographyRegularH3 : string;
225
+ /** Alternate (unbolded) style for Heading 2 */
130
226
  export const bcdsTypographyRegularH2 : string;
227
+ /** Alternate (unbolded) style for Heading 1 */
131
228
  export const bcdsTypographyRegularH1 : string;
229
+ /** Extra-large body text size. Do not use for headings */
132
230
  export const bcdsTypographyRegularDisplay : string;
231
+ /** Labels and captions (bolded) */
133
232
  export const bcdsTypographyBoldLabel : string;
233
+ /** Default for small body text (bolded) */
134
234
  export const bcdsTypographyBoldSmallBody : string;
235
+ /** Default for body text (bolded) */
135
236
  export const bcdsTypographyBoldBody : string;
237
+ /** Larger text size for body text (bolded) */
136
238
  export const bcdsTypographyBoldLargeBody : string;
239
+ /** Default style for Heading 6. Includes all sizing/spacing values for H6 */
137
240
  export const bcdsTypographyBoldH6 : string;
241
+ /** Default style for Heading 6. Includes all sizing/spacing values for H5 */
138
242
  export const bcdsTypographyBoldH5 : string;
243
+ /** Default style for Heading 6. Includes all sizing/spacing values for H4 */
139
244
  export const bcdsTypographyBoldH4 : string;
245
+ /** Default style for Heading 6. Includes all sizing/spacing values for H3 */
140
246
  export const bcdsTypographyBoldH3 : string;
247
+ /** Default style for Heading 6. Includes all sizing/spacing values for H2 */
141
248
  export const bcdsTypographyBoldH2 : string;
249
+ /** Default style for Heading 6. Includes all sizing/spacing values for H1 */
142
250
  export const bcdsTypographyBoldH1 : string;
251
+ /** Extra-large font size (bolded). Do not use for headings */
143
252
  export const bcdsTypographyBoldDisplay : string;
253
+ /** Labels and captions (italic) */
144
254
  export const bcdsTypographyItalicLabel : string;
255
+ /** Small body text (italic) */
145
256
  export const bcdsTypographyItalicSmallBody : string;
257
+ /** Default for body text (italic) */
146
258
  export const bcdsTypographyItalicBody : string;
259
+ /** Larger text size for body text (italic) */
147
260
  export const bcdsTypographyItalicLargeBody : string;
261
+ /** Alternate (italic) style for Heading 6 */
148
262
  export const bcdsTypographyItalicH6 : string;
263
+ /** Alternate (italic) style for Heading 5 */
149
264
  export const bcdsTypographyItalicH5 : string;
265
+ /** Alternate (italic) style for Heading 4 */
150
266
  export const bcdsTypographyItalicH4 : string;
267
+ /** Alternate (italic) style for Heading 3 */
151
268
  export const bcdsTypographyItalicH3 : string;
269
+ /** Alternate (italic) style for Heading 2 */
152
270
  export const bcdsTypographyItalicH2 : string;
271
+ /** Alternate (italic) style for Heading 1 */
153
272
  export const bcdsTypographyItalicH1 : string;
273
+ /** Extra-large font size (italic). Do not use for headings */
154
274
  export const bcdsTypographyItalicDisplay : string;
155
275
  export const bcdsTypographyTextCaseNone : string;
276
+ /** System token, used to generate type styles */
156
277
  export const bcdsTypographyTextDecorationNone : string;
278
+ /** System token, used to generate type styles */
157
279
  export const bcdsTypographyParagraphIndent0 : string;
280
+ /** Default colour for all body text and headings */
158
281
  export const bcdsTypographyColorPrimary : string;
282
+ /** Alternative colour for secondary/miscellaneous text */
159
283
  export const bcdsTypographyColorSecondary : string;
284
+ /** Use for placeholder text in forms */
160
285
  export const bcdsTypographyColorPlaceholder : string;
286
+ /** Use only for text in inactive user interface elements */
161
287
  export const bcdsTypographyColorDisabled : string;
288
+ /** Use for hyperlinks in body text and headings */
162
289
  export const bcdsTypographyColorLink : string;
290
+ /** Use for error, failure or danger message text */
163
291
  export const bcdsTypographyColorDanger : string;
292
+ /** Default colour for text on dark backgrounds */
164
293
  export const bcdsTypographyColorPrimaryInvert : string;
294
+ /** Secondary colour for text on dark backgrounds */
165
295
  export const bcdsTypographyColorSecondaryInvert : string;
296
+ /** Gold scale — lightest */
166
297
  export const bcdsThemeGold10 : string;
298
+ /** Gold scale */
167
299
  export const bcdsThemeGold20 : string;
300
+ /** Gold scale */
168
301
  export const bcdsThemeGold30 : string;
302
+ /** Gold scale */
169
303
  export const bcdsThemeGold40 : string;
304
+ /** Gold scale */
170
305
  export const bcdsThemeGold50 : string;
306
+ /** Gold scale */
171
307
  export const bcdsThemeGold60 : string;
308
+ /** Gold scale */
172
309
  export const bcdsThemeGold70 : string;
310
+ /** Gold scale */
173
311
  export const bcdsThemeGold80 : string;
312
+ /** Gold scale */
174
313
  export const bcdsThemeGold90 : string;
314
+ /** Gold scale — darkest */
175
315
  export const bcdsThemeGold100 : string;
316
+ /** Blue scale — lightest */
176
317
  export const bcdsThemeBlue10 : string;
318
+ /** Blue scale */
177
319
  export const bcdsThemeBlue20 : string;
320
+ /** Blue scale */
178
321
  export const bcdsThemeBlue30 : string;
322
+ /** Blue scale */
179
323
  export const bcdsThemeBlue40 : string;
324
+ /** Blue scale */
180
325
  export const bcdsThemeBlue50 : string;
326
+ /** Blue scale */
181
327
  export const bcdsThemeBlue60 : string;
328
+ /** Blue scale */
182
329
  export const bcdsThemeBlue70 : string;
330
+ /** Blue scale */
183
331
  export const bcdsThemeBlue80 : string;
332
+ /** Blue scale */
184
333
  export const bcdsThemeBlue90 : string;
334
+ /** Blue scale — darkest */
185
335
  export const bcdsThemeBlue100 : string;
336
+ /** Greyscale — lightest */
186
337
  export const bcdsThemeGray10 : string;
338
+ /** Greyscale */
187
339
  export const bcdsThemeGray20 : string;
340
+ /** Greyscale */
188
341
  export const bcdsThemeGray30 : string;
342
+ /** Greyscale */
189
343
  export const bcdsThemeGray40 : string;
344
+ /** Greyscale */
190
345
  export const bcdsThemeGray50 : string;
346
+ /** Greyscale */
191
347
  export const bcdsThemeGray60 : string;
348
+ /** Greyscale */
192
349
  export const bcdsThemeGray70 : string;
350
+ /** Greyscale */
193
351
  export const bcdsThemeGray80 : string;
352
+ /** Greyscale */
194
353
  export const bcdsThemeGray90 : string;
354
+ /** Greyscale */
195
355
  export const bcdsThemeGray100 : string;
356
+ /** Greyscale — darkest */
196
357
  export const bcdsThemeGray110 : string;
358
+ /** White */
197
359
  export const bcdsThemeGrayWhite : string;
360
+ /** Primary Blue (Blue 100) */
198
361
  export const bcdsThemePrimaryBlue : string;
362
+ /** Primary Gold (Gold 100) */
199
363
  export const bcdsThemePrimaryGold : string;
@@ -24,12 +24,24 @@ module.exports = {
24
24
  "bcdsSurfaceColorPrimaryDangerButtonDefault": "#CE3E39",
25
25
  "bcdsSurfaceColorPrimaryDangerButtonHover": "#A2312D",
26
26
  "bcdsSurfaceColorPrimaryDangerButtonDisabled": "#EDEBE9",
27
+ "bcdsSurfaceColorPrimaryDefault": "#013366",
28
+ "bcdsSurfaceColorPrimaryHover": "#1E5189",
29
+ "bcdsSurfaceColorPrimaryPressed": "#01264C",
30
+ "bcdsSurfaceColorPrimaryDisabled": "#EDEBE9",
27
31
  "bcdsSurfaceColorSecondaryButtonDefault": "#FFFFFF",
28
32
  "bcdsSurfaceColorSecondaryButtonHover": "#EDEBE9",
29
33
  "bcdsSurfaceColorSecondaryButtonDisabled": "#EDEBE9",
34
+ "bcdsSurfaceColorSecondaryDefault": "#FFFFFF",
35
+ "bcdsSurfaceColorSecondaryHover": "#EDEBE9",
36
+ "bcdsSurfaceColorSecondaryPressed": "#E0DEDC",
37
+ "bcdsSurfaceColorSecondaryDisabled": "#EDEBE9",
30
38
  "bcdsSurfaceColorTertiaryButtonDefault": "rgba(255,255,255,0)",
31
39
  "bcdsSurfaceColorTertiaryButtonHover": "#ECEAE8",
32
40
  "bcdsSurfaceColorTertiaryButtonDisabled": "#EDEBE9",
41
+ "bcdsSurfaceColorTertiaryDefault": "#FFFFFF",
42
+ "bcdsSurfaceColorTertiaryHover": "#ECEAE8",
43
+ "bcdsSurfaceColorTertiaryPressed": "#E0DEDC",
44
+ "bcdsSurfaceColorTertiaryDisabled": "#EDEBE9",
33
45
  "bcdsSurfaceColorMenusDefault": "#FFFFFF",
34
46
  "bcdsSurfaceColorMenusHover": "#EDEBE9",
35
47
  "bcdsSurfaceColorFormsDefault": "#FFFFFF",
@@ -70,6 +82,7 @@ module.exports = {
70
82
  "bcdsLayoutBorderWidthMedium": "2px",
71
83
  "bcdsLayoutBorderWidthLarge": "4px",
72
84
  "bcdsLayoutPaddingNone": "0",
85
+ "bcdsLayoutPaddingHair": "0.125rem",
73
86
  "bcdsLayoutPaddingXsmall": "0.25rem",
74
87
  "bcdsLayoutPaddingSmall": "0.5rem",
75
88
  "bcdsLayoutPaddingMedium": "1rem",
@@ -101,7 +114,6 @@ module.exports = {
101
114
  "bcdsTypographyLineHeightsAuto": "AUTO",
102
115
  "bcdsTypographyFontWeightsRegular": 400,
103
116
  "bcdsTypographyFontWeightsBold": 700,
104
- "bcdsTypographyFontWeightsItalic": "Italic", // DEPRECATED - will be removed in next major version.
105
117
  "bcdsTypographyFontWeightsItalicWeight": 400,
106
118
  "bcdsTypographyFontWeightsItalicStyle": "italic",
107
119
  "bcdsTypographyFontSizeLabel": "0.75rem",