@volvo-cars/css 1.52.1 → 2.0.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/dist/tokens.d.ts CHANGED
@@ -1,199 +1,139 @@
1
1
  export interface Tokens {
2
2
  /**
3
- * Always black regardless of colour mode. */ readonly colorAlwaysBlack: 'var(--v-color-always-black)';
3
+ * --v-space-{l,m,s} will be deprecated. These are fallbacks for the new spacing system */ readonly spaceL: 'var(--v-space-l)';
4
+ readonly spaceM: 'var(--v-space-m)';
5
+ readonly spaceS: 'var(--v-space-s)';
4
6
  /**
5
- * Always white regardless of color mode. */ readonly colorAlwaysWhite: 'var(--v-color-always-white)';
6
- /**
7
- * Use as a background color to indicate informational messages. */ readonly colorBackgroundFeedbackGray: 'var(--v-color-background-feedback-gray)';
8
- /**
9
- * Use as a background color to highlight successful and positive states. */ readonly colorBackgroundFeedbackGreen: 'var(--v-color-background-feedback-green)';
10
- /**
11
- * Use as a background color to highlight warnings, invalid or missing data, and states that require caution. */ readonly colorBackgroundFeedbackOrange: 'var(--v-color-background-feedback-orange)';
12
- /**
13
- * Use as a background color to highlight errors, invalid data, and destructive states. */ readonly colorBackgroundFeedbackRed: 'var(--v-color-background-feedback-red)';
7
+ * The width of a single grid column. */ readonly sizeGridColumn: 'var(--v-size-grid-column)';
14
8
  /**
15
- * Use as a primary background color. */ readonly colorBackgroundPrimary: 'var(--v-color-background-primary)';
9
+ * The maximum width of the 12 column grid. */ readonly sizeGridMaxwidth: 'var(--v-size-grid-maxwidth)';
16
10
  /**
17
- * Use as a secondary background color for elevated sections. */ readonly colorBackgroundSecondary: 'var(--v-color-background-secondary)';
11
+ * The maximum width a page is allowed to grow to. */ readonly sizePagemax: 'var(--v-size-pagemax)';
18
12
  /**
19
- * For use in links and as a border in emphasized selected states. */ readonly colorForegroundAccentBlue: 'var(--v-color-foreground-accent-blue)';
13
+ * The inline offset from the viewport edge to the content area,
14
+ * matching the page layout. On viewports within pagemax this equals
15
+ * pagemargin; on wider viewports it adds the extra centering space. */ readonly spacePageoffset: 'var(--v-space-pageoffset)';
20
16
  /**
21
- * Use as a foreground or border color to highlight successful states and positive actions. */ readonly colorForegroundFeedbackGreen: 'var(--v-color-foreground-feedback-green)';
17
+ * Width based on the colspan of the grid for the current viewport size (4 / 6 / 4) */ readonly sizeGridXs: 'var(--v-size-grid-xs)';
22
18
  /**
23
- * Use as a foreground or border color to highlight warnings, invalid or missing data, and actions that require caution. */ readonly colorForegroundFeedbackOrange: 'var(--v-color-foreground-feedback-orange)';
19
+ * Width based on the colspan of the grid for the current viewport size (6 / 8 / 6) */ readonly sizeGridSm: 'var(--v-size-grid-sm)';
24
20
  /**
25
- * Use as a foreground or border color to highlight errors, invalid data, and destructive actions. */ readonly colorForegroundFeedbackRed: 'var(--v-color-foreground-feedback-red)';
21
+ * Width based on the colspan of the grid for the current viewport size (8 / 10 / 8) */ readonly sizeGridMd: 'var(--v-size-grid-md)';
26
22
  /**
27
- * The inverse of the primary foreground color. For use on filled surfaces. */ readonly colorForegroundInverted: 'var(--v-color-foreground-inverted)';
23
+ * Width based on the colspan of the grid for the current viewport size (8 / 10 / 12) */ readonly sizeGridLg: 'var(--v-size-grid-lg)';
28
24
  /**
29
- * Use for primary text, icons and borders. */ readonly colorForegroundPrimary: 'var(--v-color-foreground-primary)';
25
+ * Width based on the colspan of the grid for the current viewport size (8 / 12 / 12) */ readonly sizeGridXl: 'var(--v-size-grid-xl)';
30
26
  /**
31
- * Use for secondary text, icons and borders. */ readonly colorForegroundSecondary: 'var(--v-color-foreground-secondary)';
27
+ * Width based on the maximum extent of a `max` container */ readonly sizeGridMax: 'var(--v-size-grid-max)';
32
28
  /**
33
- * The lightest possible foreground color acceptable for UI fills. Should not be used for body text. */ readonly colorForegroundTertiary: 'var(--v-color-foreground-tertiary)';
29
+ * The maximum width a block of content should be allowed to grow to while maintaining readability
30
+ * https://baymard.com/blog/line-length-readability */ readonly sizeContentmax: 'var(--v-size-contentmax)';
31
+ readonly radiusSm: 'var(--v-radius-sm)';
32
+ readonly radiusMd: 'var(--v-radius-md)';
33
+ readonly radiusLg: 'var(--v-radius-lg)';
34
+ readonly radiusFull: 'var(--v-radius-full)';
35
+ readonly indexSpinner: 'var(--v-index-spinner)';
36
+ readonly indexOverlay: 'var(--v-index-overlay)';
37
+ readonly indexNavigation: 'var(--v-index-navigation)';
38
+ readonly indexDefault: 'var(--v-index-default)';
39
+ readonly indexDeep: 'var(--v-index-deep)';
34
40
  /**
35
- * Use for strokes or dividers to visually group or separate elements. */ readonly colorOrnamentPrimary: 'var(--v-color-ornament-primary)';
41
+ * The total number of grid columns at the current breakpoint. */ readonly gridColumns: 'var(--v-grid-columns)';
42
+ readonly fontHeading1SizeMax: 'var(--v-font-heading-1-size-max)';
43
+ readonly fontHeading2SizeMax: 'var(--v-font-heading-2-size-max)';
44
+ readonly fontHeading3SizeMax: 'var(--v-font-heading-3-size-max)';
45
+ readonly fontStatement1SizeMax: 'var(--v-font-statement-1-size-max)';
46
+ readonly fontStatement2SizeMax: 'var(--v-font-statement-2-size-max)';
47
+ readonly fontStatement3SizeMax: 'var(--v-font-statement-3-size-max)';
48
+ readonly fontStatementSignatureSizeMax: 'var(--v-font-statement-signature-size-max)';
49
+ readonly transitionDefault: 'var(--v-transition-default)';
50
+ readonly transitionMicro: 'var(--v-transition-micro)';
51
+ readonly transitionNotable: 'var(--v-transition-notable)';
52
+ readonly colorForegroundPrimary: 'var(--v-color-foreground-primary)';
36
53
  /**
37
- * Used as a backdrop that usually sits behind a Side sheet or Dialog component. */ readonly colorOrnamentScrim: 'var(--v-color-ornament-scrim)';
54
+ * Use for primary text, icons and borders. */ readonly colorForegroundSecondary: 'var(--v-color-foreground-secondary)';
38
55
  /**
39
- * Use for state layers with foreground/accent/blue. */ readonly colorStateAccentBlueMedium: 'var(--v-color-state-accent-blue-medium)';
56
+ * Use for secondary text, icons and borders. */ readonly colorForegroundTertiary: 'var(--v-color-foreground-tertiary)';
40
57
  /**
41
- * Use for state layers with foreground/accent/blue. */ readonly colorStateAccentBlueStrong: 'var(--v-color-state-accent-blue-strong)';
58
+ * The lightest possible foreground color acceptable for UI fills. Should not be used for body text. */ readonly colorForegroundInverted: 'var(--v-color-foreground-inverted)';
42
59
  /**
43
- * Use for state layers with foreground/accent/blue. */ readonly colorStateAccentBlueSubtle: 'var(--v-color-state-accent-blue-subtle)';
60
+ * The inverse of the primary foreground color. For use on filled surfaces. */ readonly colorForegroundAccentBlue: 'var(--v-color-foreground-accent-blue)';
44
61
  /**
45
- * Use for state layers with an always/black foreground color. */ readonly colorStateAlwaysBlackMedium: 'var(--v-color-state-always-black-medium)';
62
+ * For emphasized selection borders and graphic accents (icons, illustrations). */ readonly colorForegroundFeedbackGreen: 'var(--v-color-foreground-feedback-green)';
46
63
  /**
47
- * Use for state layers with an always/black foreground color. */ readonly colorStateAlwaysBlackStrong: 'var(--v-color-state-always-black-strong)';
64
+ * Use as a foreground or border color to highlight successful states and positive actions. */ readonly colorForegroundFeedbackRed: 'var(--v-color-foreground-feedback-red)';
48
65
  /**
49
- * Use for state layers with an always/black foreground color. */ readonly colorStateAlwaysBlackSubtle: 'var(--v-color-state-always-black-subtle)';
66
+ * Use as a foreground or border color to highlight errors, invalid data, and destructive actions. */ readonly colorForegroundFeedbackOrange: 'var(--v-color-foreground-feedback-orange)';
50
67
  /**
51
- * Use for state layers with an always/white foreground color. */ readonly colorStateAlwaysWhiteMedium: 'var(--v-color-state-always-white-medium)';
68
+ * Use as a foreground or border color to highlight warnings, invalid or missing data, and actions that require caution. */ readonly colorSurfaceNeutral: 'var(--v-color-surface-neutral)';
52
69
  /**
53
- * Use for state layers with an always/white foreground color. */ readonly colorStateAlwaysWhiteStrong: 'var(--v-color-state-always-white-strong)';
70
+ * Used as a surface fill for UI elements like buttons and form controls. Combine with Foreground / Inverted foreground color. */ readonly colorSurfaceGray: 'var(--v-color-surface-gray)';
54
71
  /**
55
- * Use for state layers with an always/white foreground color. */ readonly colorStateAlwaysWhiteSubtle: 'var(--v-color-state-always-white-subtle)';
72
+ * Used as surface fill. */ readonly colorSurfaceAccentBlue: 'var(--v-color-surface-accent-blue)';
56
73
  /**
57
- * Use for state layers with foreground/feedback/red. */ readonly colorStateFeedbackRedMedium: 'var(--v-color-state-feedback-red-medium)';
74
+ * Used as an emphasized surface fill for UI elements like buttons and form controls. */ readonly colorSurfaceAccentSafety: 'var(--v-color-surface-accent-safety)';
58
75
  /**
59
- * Use for state layers with foreground/feedback/red. */ readonly colorStateFeedbackRedStrong: 'var(--v-color-state-feedback-red-strong)';
76
+ * Used as an emphasized surface fill for UI elements like buttons and form controls. */ readonly colorSurfaceFeedbackGreen: 'var(--v-color-surface-feedback-green)';
60
77
  /**
61
- * Use for state layers with foreground/feedback/red. */ readonly colorStateFeedbackRedSubtle: 'var(--v-color-state-feedback-red-subtle)';
78
+ * Used as a surface fill for UI elements like buttons and form controls to signify positive actions. Combine with Always White foreground color. */ readonly colorSurfaceFeedbackOrange: 'var(--v-color-surface-feedback-orange)';
62
79
  /**
63
- * Use for state layers with foreground/inverted. */ readonly colorStateInvertedMedium: 'var(--v-color-state-inverted-medium)';
80
+ * [Deprecated] */ readonly colorSurfaceFeedbackRed: 'var(--v-color-surface-feedback-red)';
64
81
  /**
65
- * Use for state layers with foreground/inverted. */ readonly colorStateInvertedStrong: 'var(--v-color-state-inverted-strong)';
82
+ * Used as a surface fill for UI elements like buttons and form controls to signify destructive actions. Combine with Always White foreground color. */ readonly colorBackgroundPrimary: 'var(--v-color-background-primary)';
66
83
  /**
67
- * Use for state layers with foreground/inverted. */ readonly colorStateInvertedSubtle: 'var(--v-color-state-inverted-subtle)';
84
+ * Use as a primary background color. */ readonly colorBackgroundSecondary: 'var(--v-color-background-secondary)';
68
85
  /**
69
- * Use for state layers with foreground/primary. */ readonly colorStatePrimaryMedium: 'var(--v-color-state-primary-medium)';
86
+ * Use as a background color to highlight warnings, invalid or missing data, and states that require caution. */ readonly colorBackgroundFeedbackGray: 'var(--v-color-background-feedback-gray)';
70
87
  /**
71
- * Use for state layers with foreground/primary. */ readonly colorStatePrimaryStrong: 'var(--v-color-state-primary-strong)';
88
+ * Use as a secondary background color for elevated sections. */ readonly colorBackgroundFeedbackGreen: 'var(--v-color-background-feedback-green)';
72
89
  /**
73
- * Use for state layers with foreground/primary. */ readonly colorStatePrimarySubtle: 'var(--v-color-state-primary-subtle)';
90
+ * Use as a background color to highlight successful and positive states. */ readonly colorBackgroundFeedbackRed: 'var(--v-color-background-feedback-red)';
74
91
  /**
75
- * Used as an emphasized surface fill for UI elements like buttons and form controls. */ readonly colorSurfaceAccentBlue: 'var(--v-color-surface-accent-blue)';
92
+ * Use as a background color to highlight errors, invalid data, and destructive states. */ readonly colorBackgroundFeedbackOrange: 'var(--v-color-background-feedback-orange)';
76
93
  /**
77
- * Used as a surface fill for UI elements like buttons and form controls to signify positive actions. Combine with Always White foreground color. */ readonly colorSurfaceFeedbackGreen: 'var(--v-color-surface-feedback-green)';
94
+ * Use as a background color to indicate informational messages. */ readonly colorAlwaysWhite: 'var(--v-color-always-white)';
78
95
  /**
79
- * [Deprecated] */ readonly colorSurfaceFeedbackOrange: 'var(--v-color-surface-feedback-orange)';
96
+ * Always white regardless of color mode. */ readonly colorAlwaysBlack: 'var(--v-color-always-black)';
80
97
  /**
81
- * Used as a surface fill for UI elements like buttons and form controls to signify destructive actions. Combine with Always White foreground color. */ readonly colorSurfaceFeedbackRed: 'var(--v-color-surface-feedback-red)';
98
+ * Always black regardless of colour mode. */ readonly colorOrnamentPrimary: 'var(--v-color-ornament-primary)';
82
99
  /**
83
- * Used as a surface fill for UI elements like buttons and form controls. Combine with Foreground / Inverted foreground color. */ readonly colorSurfaceNeutral: 'var(--v-color-surface-neutral)';
84
- readonly fontSansFamily: 'var(--v-font-sans-family)';
85
- readonly fontBroadFamily: 'var(--v-font-broad-family)';
86
- readonly fontMonoFamily: 'var(--v-font-mono-family)';
87
- readonly fontRegularWeight: 'var(--v-font-regular-weight)';
88
- readonly fontEmphasisWeight: 'var(--v-font-emphasis-weight)';
89
- readonly font24Size: 'var(--v-font-24-size)';
90
- readonly font24Lineheight: 'var(--v-font-24-lineheight)';
91
- readonly font24: 'var(--v-font-24)';
92
- readonly font20Size: 'var(--v-font-20-size)';
93
- readonly font20Lineheight: 'var(--v-font-20-lineheight)';
94
- readonly font20: 'var(--v-font-20)';
95
- readonly font16Size: 'var(--v-font-16-size)';
96
- readonly font16Lineheight: 'var(--v-font-16-lineheight)';
97
- readonly font16: 'var(--v-font-16)';
98
- readonly font14Size: 'var(--v-font-14-size)';
99
- readonly font14Lineheight: 'var(--v-font-14-lineheight)';
100
- readonly font14: 'var(--v-font-14)';
101
- readonly font12Size: 'var(--v-font-12-size)';
102
- readonly font12Lineheight: 'var(--v-font-12-lineheight)';
103
- readonly font12: 'var(--v-font-12)';
104
- readonly fontHeading1Weight: 'var(--v-font-heading-1-weight)';
105
- readonly fontHeading1Lineheight: 'var(--v-font-heading-1-lineheight)';
106
- readonly fontHeading1SizeMin: 'var(--v-font-heading-1-size-min)';
107
- readonly fontHeading1SizeMax: 'var(--v-font-heading-1-size-max)';
108
- readonly fontHeading1Size: 'var(--v-font-heading-1-size)';
109
- readonly fontHeading1: 'var(--v-font-heading-1)';
110
- readonly fontHeading2Weight: 'var(--v-font-heading-2-weight)';
111
- readonly fontHeading2Lineheight: 'var(--v-font-heading-2-lineheight)';
112
- readonly fontHeading2SizeMin: 'var(--v-font-heading-2-size-min)';
113
- readonly fontHeading2SizeMax: 'var(--v-font-heading-2-size-max)';
114
- readonly fontHeading2Size: 'var(--v-font-heading-2-size)';
115
- readonly fontHeading2: 'var(--v-font-heading-2)';
116
- readonly fontHeading3Weight: 'var(--v-font-heading-3-weight)';
117
- readonly fontHeading3Lineheight: 'var(--v-font-heading-3-lineheight)';
118
- readonly fontHeading3SizeMin: 'var(--v-font-heading-3-size-min)';
119
- readonly fontHeading3SizeMax: 'var(--v-font-heading-3-size-max)';
120
- readonly fontHeading3Size: 'var(--v-font-heading-3-size)';
121
- readonly fontHeading3: 'var(--v-font-heading-3)';
122
- readonly fontStatement1Weight: 'var(--v-font-statement-1-weight)';
123
- readonly fontStatement1Lineheight: 'var(--v-font-statement-1-lineheight)';
124
- readonly fontStatement1SizeMin: 'var(--v-font-statement-1-size-min)';
125
- readonly fontStatement1SizeMax: 'var(--v-font-statement-1-size-max)';
126
- readonly fontStatement1Size: 'var(--v-font-statement-1-size)';
127
- readonly fontStatement1: 'var(--v-font-statement-1)';
128
- readonly fontStatement2Weight: 'var(--v-font-statement-2-weight)';
129
- readonly fontStatement2Lineheight: 'var(--v-font-statement-2-lineheight)';
130
- readonly fontStatement2SizeMin: 'var(--v-font-statement-2-size-min)';
131
- readonly fontStatement2SizeMax: 'var(--v-font-statement-2-size-max)';
132
- readonly fontStatement2Size: 'var(--v-font-statement-2-size)';
133
- readonly fontStatement2: 'var(--v-font-statement-2)';
134
- readonly fontStatement3Weight: 'var(--v-font-statement-3-weight)';
135
- readonly fontStatement3Lineheight: 'var(--v-font-statement-3-lineheight)';
136
- readonly fontStatement3SizeMin: 'var(--v-font-statement-3-size-min)';
137
- readonly fontStatement3SizeMax: 'var(--v-font-statement-3-size-max)';
138
- readonly fontStatement3Size: 'var(--v-font-statement-3-size)';
139
- readonly fontStatement3: 'var(--v-font-statement-3)';
140
- readonly fontStatementSignatureWeight: 'var(--v-font-statement-signature-weight)';
141
- readonly fontStatementSignatureLineheight: 'var(--v-font-statement-signature-lineheight)';
142
- readonly fontStatementSignatureSizeMin: 'var(--v-font-statement-signature-size-min)';
143
- readonly fontStatementSignatureSizeMax: 'var(--v-font-statement-signature-size-max)';
144
- readonly fontStatementSignatureSize: 'var(--v-font-statement-signature-size)';
145
- readonly fontStatementSignature: 'var(--v-font-statement-signature)';
100
+ * Use for strokes or dividers to visually group or separate elements. */ readonly colorOrnamentScrim: 'var(--v-color-ornament-scrim)';
146
101
  /**
147
- * Fluid spacing between 64px-96px. */ readonly spaceL: 'var(--v-space-l)';
102
+ * Used as a backdrop that usually sits behind a Side sheet or Dialog component. */ readonly colorStatePrimaryStrong: 'var(--v-color-state-primary-strong)';
148
103
  /**
149
- * Fluid spacing between 48px-64px. */ readonly spaceM: 'var(--v-space-m)';
104
+ * Use for state layers with foreground/primary. */ readonly colorStatePrimaryMedium: 'var(--v-color-state-primary-medium)';
150
105
  /**
151
- * Fluid spacing between 32px-48px. */ readonly spaceS: 'var(--v-space-s)';
106
+ * Use for state layers with foreground/primary. */ readonly colorStatePrimarySubtle: 'var(--v-color-state-primary-subtle)';
152
107
  /**
153
- * The width of a single grid column. */ readonly sizeGridColumn: 'var(--v-size-grid-column)';
108
+ * Use for state layers with foreground/primary. */ readonly colorStateInvertedStrong: 'var(--v-color-state-inverted-strong)';
154
109
  /**
155
- * The maximum width of the 12 column grid. */ readonly sizeGridMaxwidth: 'var(--v-size-grid-maxwidth)';
110
+ * Use for state layers with foreground/inverted. */ readonly colorStateInvertedMedium: 'var(--v-color-state-inverted-medium)';
156
111
  /**
157
- * The maximum width a page is allowed to grow to. */ readonly sizePagemax: 'var(--v-size-pagemax)';
112
+ * Use for state layers with foreground/inverted. */ readonly colorStateInvertedSubtle: 'var(--v-color-state-inverted-subtle)';
158
113
  /**
159
- * Width based on the colspan of the grid for the current viewport size (4 / 6 / 4) */ readonly sizeGridXs: 'var(--v-size-grid-xs)';
114
+ * Use for state layers with foreground/inverted. */ readonly colorStateAccentBlueStrong: 'var(--v-color-state-accent-blue-strong)';
160
115
  /**
161
- * Width based on the colspan of the grid for the current viewport size (6 / 8 / 6) */ readonly sizeGridSm: 'var(--v-size-grid-sm)';
116
+ * Use for state layers with foreground/accent/blue. */ readonly colorStateAccentBlueMedium: 'var(--v-color-state-accent-blue-medium)';
162
117
  /**
163
- * Width based on the colspan of the grid for the current viewport size (8 / 10 / 8) */ readonly sizeGridMd: 'var(--v-size-grid-md)';
118
+ * Use for state layers with foreground/accent/blue. */ readonly colorStateAccentBlueSubtle: 'var(--v-color-state-accent-blue-subtle)';
164
119
  /**
165
- * Width based on the colspan of the grid for the current viewport size (8 / 10 / 12) */ readonly sizeGridLg: 'var(--v-size-grid-lg)';
120
+ * Use for state layers with foreground/accent/blue. */ readonly colorStateFeedbackRedStrong: 'var(--v-color-state-feedback-red-strong)';
166
121
  /**
167
- * Width based on the colspan of the grid for the current viewport size (8 / 12 / 12) */ readonly sizeGridXl: 'var(--v-size-grid-xl)';
122
+ * Use for state layers with foreground/feedback/red. */ readonly colorStateFeedbackRedMedium: 'var(--v-color-state-feedback-red-medium)';
168
123
  /**
169
- * Width based on the maximum extent of a `max` container */ readonly sizeGridMax: 'var(--v-size-grid-max)';
124
+ * Use for state layers with foreground/feedback/red. */ readonly colorStateFeedbackRedSubtle: 'var(--v-color-state-feedback-red-subtle)';
170
125
  /**
171
- * The maximum width a block of content should be allowed to grow to while maintaining readability
172
- * https://baymard.com/blog/line-length-readability */ readonly sizeContentmax: 'var(--v-size-contentmax)';
173
- readonly radiusSm: 'var(--v-radius-sm)';
174
- readonly radiusMd: 'var(--v-radius-md)';
175
- readonly radiusLg: 'var(--v-radius-lg)';
176
- readonly radiusFull: 'var(--v-radius-full)';
177
- readonly indexSpinner: 'var(--v-index-spinner)';
178
- readonly indexOverlay: 'var(--v-index-overlay)';
179
- readonly indexNavigation: 'var(--v-index-navigation)';
180
- readonly indexDefault: 'var(--v-index-default)';
181
- readonly indexDeep: 'var(--v-index-deep)';
126
+ * Use for state layers with foreground/feedback/red. */ readonly colorStateAlwaysBlackStrong: 'var(--v-color-state-always-black-strong)';
182
127
  /**
183
- * The total number of grid columns at the current breakpoint. */ readonly gridColumns: 'var(--v-grid-columns)';
128
+ * Use for state layers with an always/black foreground color. */ readonly colorStateAlwaysBlackMedium: 'var(--v-color-state-always-black-medium)';
184
129
  /**
185
- * The fluid outer horizontal margins of the main page container.
186
- * 402 - 16px
187
- * 1600 - 64px */ readonly spacePagemargin: 'var(--v-space-pagemargin)';
130
+ * Use for state layers with an always/black foreground color. */ readonly colorStateAlwaysBlackSubtle: 'var(--v-color-state-always-black-subtle)';
188
131
  /**
189
- * The horizontal gap between grid columns. Fluid between 16px-32px. */ readonly spaceGutter: 'var(--v-space-gutter)';
132
+ * Use for state layers with an always/black foreground color. */ readonly colorStateAlwaysWhiteStrong: 'var(--v-color-state-always-white-strong)';
190
133
  /**
191
- * Use as default value for all all non-interactive UI elements. */ readonly shapeDefault: 'var(--v-shape-default)';
134
+ * Use for state layers with an always/white foreground color. */ readonly colorStateAlwaysWhiteMedium: 'var(--v-color-state-always-white-medium)';
192
135
  /**
193
- * Use for interactive UI, and elements that need to draw attention and create visual contrast from the rest of the page. */ readonly shapeEmphasis: 'var(--v-shape-emphasis)';
194
- readonly transitionDefault: 'var(--v-transition-default)';
195
- readonly transitionMicro: 'var(--v-transition-micro)';
196
- readonly transitionNotable: 'var(--v-transition-notable)';
136
+ * Use for state layers with an always/white foreground color. */ readonly colorStateAlwaysWhiteSubtle: 'var(--v-color-state-always-white-subtle)';
197
137
  /**
198
138
  * Fixed 2px spacing */ readonly space2: 'var(--v-space-2)';
199
139
  /**
@@ -214,6 +154,10 @@ export interface Tokens {
214
154
  * Fixed 64px spacing */ readonly space64: 'var(--v-space-64)';
215
155
  /**
216
156
  * Divider between gridded elements. Do not use for text. */ readonly spaceGriddedElementGap: 'var(--v-space-gridded-element-gap)';
157
+ /**
158
+ * The fluid outer horizontal margins of the main page container.
159
+ * 402 - 16px
160
+ * 1600 - 64px */ readonly spacePagemargin: 'var(--v-space-pagemargin)';
217
161
  /**
218
162
  * Fluid spacing between 8px-20px. */ readonly spaceXs: 'var(--v-space-xs)';
219
163
  /**
@@ -226,14 +170,67 @@ export interface Tokens {
226
170
  * Fluid spacing between 48px-72px. */ readonly spaceXl: 'var(--v-space-xl)';
227
171
  /**
228
172
  * Fluid spacing between 64px-128px. */ readonly space2xl: 'var(--v-space-2xl)';
173
+ /**
174
+ * The horizontal gap between grid columns. Fluid between 16px-32px. */ readonly spaceGutter: 'var(--v-space-gutter)';
229
175
  /**
230
176
  * Use for any UI element that needs a border in the default state. */ readonly borderWidthDefault: 'var(--v-border-width-default)';
231
177
  /**
232
178
  * Use for any UI element that needs a border in the selected state. */ readonly borderWidthSelected: 'var(--v-border-width-selected)';
179
+ /**
180
+ * Used to set the width of small overlays such as small dialogs, toasts */ readonly sizeOverlayNarrow: 'var(--v-size-overlay-narrow)';
181
+ /**
182
+ * Used to set the width of large overlays such as sheet, large dialogs */ readonly sizeOverlayWide: 'var(--v-size-overlay-wide)';
233
183
  /**
234
184
  * Narrow sidebar width is 240 to 304 between lg and xl */ readonly sizeSidebarNarrow: 'var(--v-size-sidebar-narrow)';
235
185
  /**
236
186
  * Wide sidebar width is 368 to 464 between lg and xl */ readonly sizeSidebarWide: 'var(--v-size-sidebar-wide)';
187
+ /**
188
+ * Use as default value for all all non-interactive UI elements. */ readonly shapeDefault: 'var(--v-shape-default)';
189
+ /**
190
+ * Use for interactive UI, and elements that need to draw attention and create visual contrast from the rest of the page. */ readonly shapeEmphasis: 'var(--v-shape-emphasis)';
191
+ readonly font12Size: 'var(--v-font-12-size)';
192
+ readonly font12Lineheight: 'var(--v-font-12-lineheight)';
193
+ readonly font14Size: 'var(--v-font-14-size)';
194
+ readonly font14Lineheight: 'var(--v-font-14-lineheight)';
195
+ readonly font16Size: 'var(--v-font-16-size)';
196
+ readonly font16Lineheight: 'var(--v-font-16-lineheight)';
197
+ readonly font20Size: 'var(--v-font-20-size)';
198
+ readonly font20Lineheight: 'var(--v-font-20-lineheight)';
199
+ readonly font24Size: 'var(--v-font-24-size)';
200
+ readonly font24Lineheight: 'var(--v-font-24-lineheight)';
201
+ readonly fontHeading3Weight: 'var(--v-font-heading-3-weight)';
202
+ readonly fontHeading3Size: 'var(--v-font-heading-3-size)';
203
+ readonly fontHeading3Lineheight: 'var(--v-font-heading-3-lineheight)';
204
+ readonly fontHeading3SizeMin: 'var(--v-font-heading-3-size-min)';
205
+ readonly fontHeading2Weight: 'var(--v-font-heading-2-weight)';
206
+ readonly fontHeading2Size: 'var(--v-font-heading-2-size)';
207
+ readonly fontHeading2SizeMin: 'var(--v-font-heading-2-size-min)';
208
+ readonly fontHeading2Lineheight: 'var(--v-font-heading-2-lineheight)';
209
+ readonly fontHeading1Weight: 'var(--v-font-heading-1-weight)';
210
+ readonly fontHeading1Size: 'var(--v-font-heading-1-size)';
211
+ readonly fontHeading1Lineheight: 'var(--v-font-heading-1-lineheight)';
212
+ readonly fontHeading1SizeMin: 'var(--v-font-heading-1-size-min)';
213
+ readonly fontStatement3Weight: 'var(--v-font-statement-3-weight)';
214
+ readonly fontStatement3Size: 'var(--v-font-statement-3-size)';
215
+ readonly fontStatement3SizeMin: 'var(--v-font-statement-3-size-min)';
216
+ readonly fontStatement3Lineheight: 'var(--v-font-statement-3-lineheight)';
217
+ readonly fontStatement2Weight: 'var(--v-font-statement-2-weight)';
218
+ readonly fontStatement2Size: 'var(--v-font-statement-2-size)';
219
+ readonly fontStatement2SizeMin: 'var(--v-font-statement-2-size-min)';
220
+ readonly fontStatement2Lineheight: 'var(--v-font-statement-2-lineheight)';
221
+ readonly fontStatement1Weight: 'var(--v-font-statement-1-weight)';
222
+ readonly fontStatement1Size: 'var(--v-font-statement-1-size)';
223
+ readonly fontStatement1SizeMin: 'var(--v-font-statement-1-size-min)';
224
+ readonly fontStatement1Lineheight: 'var(--v-font-statement-1-lineheight)';
225
+ readonly fontStatementSignatureWeight: 'var(--v-font-statement-signature-weight)';
226
+ readonly fontStatementSignatureSize: 'var(--v-font-statement-signature-size)';
227
+ readonly fontStatementSignatureSizeMin: 'var(--v-font-statement-signature-size-min)';
228
+ readonly fontStatementSignatureLineheight: 'var(--v-font-statement-signature-lineheight)';
229
+ readonly fontRegularWeight: 'var(--v-font-regular-weight)';
230
+ readonly fontEmphasisWeight: 'var(--v-font-emphasis-weight)';
231
+ readonly fontSansFamily: 'var(--v-font-sans-family)';
232
+ readonly fontBroadFamily: 'var(--v-font-broad-family)';
233
+ readonly fontMonoFamily: 'var(--v-font-mono-family)';
237
234
  }
238
235
  declare const vtokens: Tokens;
239
236
  export default vtokens;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@volvo-cars/css",
3
3
  "description": "Volvo Cars shared CSS",
4
- "version": "1.52.1",
4
+ "version": "2.0.0",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,
7
7
  "type": "module",
@@ -116,7 +116,6 @@
116
116
  "types:check": "tsc -b tsconfig.src-check.json tsconfig.tests.json tsconfig.docs.json --verbose",
117
117
  "watch:css": "chokidar \"src/**/*.css\" -c 'yarn run build:css'",
118
118
  "watch:js": "tsup --watch",
119
- "sync:colors": "yarn run css-scripts-sync-colors --core",
120
119
  "build:css": "yarn run css-scripts-build-css",
121
120
  "build:css-types": "yarn run css-scripts-build-types",
122
121
  "spacing": "yarn run css-scripts-spacing --with-additions",
@@ -131,12 +130,12 @@
131
130
  "@types/react": "19.2.14",
132
131
  "@vcc/css-scripts": "workspace:*",
133
132
  "@volvo-cars/browserslist-config": "1.4.8",
134
- "@volvo-cars/design-tokens-web": "0.0.28",
133
+ "@volvo-cars/design-tokens-web": "0.1.1",
135
134
  "chokidar-cli": "3.0.0",
136
- "react": "19.2.5",
135
+ "react": "19.2.6",
137
136
  "tsup": "8.5.1",
138
- "typescript": "5.9.3",
139
- "vitest": "4.1.5"
137
+ "typescript": "6.0.3",
138
+ "vitest": "4.1.6"
140
139
  },
141
140
  "engines": {
142
141
  "node": ">=14.15.0"
@@ -1,2 +0,0 @@
1
- import{a as c}from"./chunk-BBIFT7L4.js";var n={"font-face.css":"css/v1/font-face.8324f4d8.css","tokens.css":"css/v1/tokens.40dcfb84.css","styles.css":"css/v1/styles.c8342a03.css","styles_md.css":"css/v1/styles_md.4971b914.css","styles_xl.css":"css/v1/styles_xl.a877db6a.css","styles_hover.css":"css/v1/styles_hover.13f2c48a.css"};var i="https://www.volvocars.com/static/shared/pkg/";function l({fonts:s=!0,tokens:e=!0}={}){return([t])=>t==="font-face.css"?s:t.endsWith("tokens.css")?e:!0}function p(s){let e=s.split("_").pop()?.replace(".css","");return c[e]}export{n as a,i as b,l as c,p as d};
2
- //# sourceMappingURL=chunk-5GG54XEQ.js.map