@workday/canvas-tokens-web 0.1.6 → 1.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/css/base/_variables.css +228 -0
- package/{dist/css → css}/brand/_variables.css +5 -5
- package/css/system/_variables.css +148 -0
- package/dist/common-js/base/index.d.ts +222 -223
- package/dist/common-js/base/index.js +19 -20
- package/dist/common-js/brand/index.d.ts +44 -9
- package/dist/common-js/brand/index.js +4 -2
- package/dist/common-js/index.d.ts +1 -1
- package/dist/common-js/index.js +1 -1
- package/dist/common-js/system/index.d.ts +231 -152
- package/dist/common-js/system/index.js +17 -117
- package/dist/es6/base/index.d.ts +222 -223
- package/dist/es6/base/index.js +19 -20
- package/dist/es6/brand/index.d.ts +44 -9
- package/dist/es6/brand/index.js +4 -2
- package/dist/es6/index.d.ts +1 -1
- package/dist/es6/index.js +1 -1
- package/dist/es6/system/index.d.ts +231 -152
- package/dist/es6/system/index.js +17 -117
- package/less/base/_variables.less +225 -0
- package/{dist/less → less}/brand/_variables.less +5 -5
- package/less/system/_variables.less +145 -0
- package/package.json +8 -3
- package/scss/base/_variables.sass +225 -0
- package/scss/base/_variables.scss +225 -0
- package/{dist/scss → scss}/brand/_variables.sass +5 -5
- package/{dist/scss → scss}/brand/_variables.scss +5 -5
- package/scss/system/_variables.sass +145 -0
- package/scss/system/_variables.scss +145 -0
- package/dist/css/base/_variables.css +0 -229
- package/dist/css/system/_variables.css +0 -218
- package/dist/less/base/_variables.less +0 -226
- package/dist/less/system/_variables.less +0 -215
- package/dist/scss/base/_variables.sass +0 -226
- package/dist/scss/base/_variables.scss +0 -226
- package/dist/scss/system/_variables.sass +0 -215
- package/dist/scss/system/_variables.scss +0 -215
|
@@ -1,58 +1,93 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 23 Oct 2023 23:15:30 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export declare const primary = {
|
|
7
|
+
/** #D7EAFC */
|
|
7
8
|
"lightest": "--cnvs-brand-primary-lightest",
|
|
9
|
+
/** #A6D2FF */
|
|
8
10
|
"light": "--cnvs-brand-primary-light",
|
|
11
|
+
/** #0875E1 */
|
|
9
12
|
"base": "--cnvs-brand-primary-base",
|
|
13
|
+
/** #005cb9 */
|
|
10
14
|
"dark": "--cnvs-brand-primary-dark",
|
|
15
|
+
/** #004387 */
|
|
11
16
|
"darkest": "--cnvs-brand-primary-darkest",
|
|
12
|
-
|
|
17
|
+
/** #ffffff */
|
|
18
|
+
"accent": "--cnvs-brand-primary-accent",
|
|
13
19
|
} as const;
|
|
14
20
|
|
|
15
21
|
export declare const alert = {
|
|
22
|
+
/** #ffeed9 */
|
|
16
23
|
"lightest": "--cnvs-brand-alert-lightest",
|
|
24
|
+
/** #fcd49f */
|
|
17
25
|
"light": "--cnvs-brand-alert-light",
|
|
26
|
+
/** #ffa126 */
|
|
18
27
|
"base": "--cnvs-brand-alert-base",
|
|
28
|
+
/** #f38b00 */
|
|
19
29
|
"dark": "--cnvs-brand-alert-dark",
|
|
30
|
+
/** #c06c00 */
|
|
20
31
|
"darkest": "--cnvs-brand-alert-darkest",
|
|
21
|
-
|
|
32
|
+
/** #ffffff */
|
|
33
|
+
"accent": "--cnvs-brand-alert-accent",
|
|
22
34
|
} as const;
|
|
23
35
|
|
|
24
36
|
export declare const error = {
|
|
37
|
+
/** #ffefee */
|
|
25
38
|
"lightest": "--cnvs-brand-error-lightest",
|
|
39
|
+
/** #FCC9C5 */
|
|
26
40
|
"light": "--cnvs-brand-error-light",
|
|
41
|
+
/** #de2e21 */
|
|
27
42
|
"base": "--cnvs-brand-error-base",
|
|
43
|
+
/** #a31b12 */
|
|
28
44
|
"dark": "--cnvs-brand-error-dark",
|
|
45
|
+
/** #80160E */
|
|
29
46
|
"darkest": "--cnvs-brand-error-darkest",
|
|
30
|
-
|
|
47
|
+
/** #ffffff */
|
|
48
|
+
"accent": "--cnvs-brand-error-accent",
|
|
31
49
|
} as const;
|
|
32
50
|
|
|
33
51
|
export declare const success = {
|
|
52
|
+
/** #ebfff0 */
|
|
34
53
|
"lightest": "--cnvs-brand-success-lightest",
|
|
54
|
+
/** #5fe380 */
|
|
35
55
|
"light": "--cnvs-brand-success-light",
|
|
56
|
+
/** #43c463 */
|
|
36
57
|
"base": "--cnvs-brand-success-base",
|
|
58
|
+
/** #319c4c */
|
|
37
59
|
"dark": "--cnvs-brand-success-dark",
|
|
60
|
+
/** #217a37 */
|
|
38
61
|
"darkest": "--cnvs-brand-success-darkest",
|
|
39
|
-
|
|
62
|
+
/** #ffffff */
|
|
63
|
+
"accent": "--cnvs-brand-success-accent",
|
|
40
64
|
} as const;
|
|
41
65
|
|
|
42
66
|
export declare const neutral = {
|
|
67
|
+
/** #F0F1F2 */
|
|
43
68
|
"lightest": "--cnvs-brand-neutral-lightest",
|
|
69
|
+
/** #e8ebed */
|
|
44
70
|
"light": "--cnvs-brand-neutral-light",
|
|
71
|
+
/** #B9C0C7 */
|
|
45
72
|
"base": "--cnvs-brand-neutral-base",
|
|
73
|
+
/** #5E6A75 */
|
|
46
74
|
"dark": "--cnvs-brand-neutral-dark",
|
|
75
|
+
/** #4a5561 */
|
|
47
76
|
"darkest": "--cnvs-brand-neutral-darkest",
|
|
48
|
-
|
|
77
|
+
/** #ffffff */
|
|
78
|
+
"accent": "--cnvs-brand-neutral-accent",
|
|
49
79
|
} as const;
|
|
50
80
|
|
|
51
81
|
export declare const common = {
|
|
82
|
+
/** #0875E1 */
|
|
52
83
|
"focusOutline": "--cnvs-brand-common-focus-outline",
|
|
84
|
+
/** #de2e21 */
|
|
53
85
|
"errorInner": "--cnvs-brand-common-error-inner",
|
|
54
|
-
|
|
86
|
+
/** #ffa126 */
|
|
87
|
+
"alertInner": "--cnvs-brand-common-alert-inner",
|
|
55
88
|
} as const;
|
|
56
89
|
|
|
57
|
-
export declare const gradient =
|
|
58
|
-
|
|
90
|
+
export declare const gradient = {
|
|
91
|
+
/** linear-gradient(90deg, #0875E1 0%, #005cb9 100%) */
|
|
92
|
+
"primary": "--cnvs-brand-gradient-primary",
|
|
93
|
+
} as const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 23 Oct 2023 23:15:30 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -51,4 +51,6 @@ exports.common = {
|
|
|
51
51
|
"errorInner": "--cnvs-brand-common-error-inner",
|
|
52
52
|
"alertInner": "--cnvs-brand-common-alert-inner"
|
|
53
53
|
};
|
|
54
|
-
exports.gradient =
|
|
54
|
+
exports.gradient = {
|
|
55
|
+
"primary": "--cnvs-brand-gradient-primary"
|
|
56
|
+
};
|
package/dist/common-js/index.js
CHANGED
|
@@ -1,287 +1,366 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 23 Oct 2023 23:15:30 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export declare const border = "--cnvs-sys-border" as const;
|
|
7
|
-
|
|
8
|
-
export declare const color = {
|
|
9
|
-
"bg": {
|
|
10
|
-
"default": "--cnvs-sys-color-bg-default",
|
|
11
|
-
"alt": "--cnvs-sys-color-bg-alt",
|
|
12
|
-
"hover": "--cnvs-sys-color-bg-hover",
|
|
13
|
-
"active": "--cnvs-sys-color-bg-active",
|
|
14
|
-
"selected": "--cnvs-sys-color-bg-selected",
|
|
15
|
-
"primary": {
|
|
16
|
-
"default": "--cnvs-sys-color-bg-primary-default",
|
|
17
|
-
"hover": "--cnvs-sys-color-bg-primary-hover",
|
|
18
|
-
"active": "--cnvs-sys-color-bg-primary-active"
|
|
19
|
-
},
|
|
20
|
-
"secondary": {
|
|
21
|
-
"default": "--cnvs-sys-color-bg-secondary-default",
|
|
22
|
-
"focus": "--cnvs-sys-color-bg-secondary-focus",
|
|
23
|
-
"hover": "--cnvs-sys-color-bg-secondary-hover",
|
|
24
|
-
"active": "--cnvs-sys-color-bg-secondary-active"
|
|
25
|
-
},
|
|
26
|
-
"delete": {
|
|
27
|
-
"default": "--cnvs-sys-color-bg-delete-default",
|
|
28
|
-
"hover": "--cnvs-sys-color-bg-delete-hover",
|
|
29
|
-
"active": "--cnvs-sys-color-bg-delete-active"
|
|
30
|
-
},
|
|
31
|
-
"status": {
|
|
32
|
-
"success": "--cnvs-sys-color-bg-status-success",
|
|
33
|
-
"error": "--cnvs-sys-color-bg-status-error",
|
|
34
|
-
"alert": "--cnvs-sys-color-bg-status-alert"
|
|
35
|
-
},
|
|
36
|
-
"help": "--cnvs-sys-color-bg-help",
|
|
37
|
-
"overlay": "--cnvs-sys-color-bg-overlay"
|
|
38
|
-
},
|
|
39
|
-
"fg": {
|
|
40
|
-
"type": {
|
|
41
|
-
"heading": "--cnvs-sys-color-fg-type-heading",
|
|
42
|
-
"body": "--cnvs-sys-color-fg-type-body",
|
|
43
|
-
"hint": "--cnvs-sys-color-fg-type-hint",
|
|
44
|
-
"disabled": "--cnvs-sys-color-fg-type-disabled",
|
|
45
|
-
"link": {
|
|
46
|
-
"default": "--cnvs-sys-color-fg-type-link-default",
|
|
47
|
-
"focus": "--cnvs-sys-color-fg-type-link-focus",
|
|
48
|
-
"active": "--cnvs-sys-color-fg-type-link-active",
|
|
49
|
-
"visited": "--cnvs-sys-color-fg-type-link-visited"
|
|
50
|
-
},
|
|
51
|
-
"inverse": "--cnvs-sys-color-fg-type-inverse",
|
|
52
|
-
"error": "--cnvs-sys-color-fg-type-error",
|
|
53
|
-
"selected": "--cnvs-sys-color-fg-type-selected"
|
|
54
|
-
},
|
|
55
|
-
"icon": {
|
|
56
|
-
"fill": "--cnvs-sys-color-fg-icon-fill",
|
|
57
|
-
"background": "--cnvs-sys-color-fg-icon-background",
|
|
58
|
-
"accent": "--cnvs-sys-color-fg-icon-accent",
|
|
59
|
-
"hover": "--cnvs-sys-color-fg-icon-hover",
|
|
60
|
-
"disabled": "--cnvs-sys-color-fg-icon-disabled",
|
|
61
|
-
"inverse": "--cnvs-sys-color-fg-icon-inverse",
|
|
62
|
-
"primary": "--cnvs-sys-color-fg-icon-primary"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"border": {
|
|
66
|
-
"input": {
|
|
67
|
-
"default": "--cnvs-sys-color-border-input-default",
|
|
68
|
-
"hover": "--cnvs-sys-color-border-input-hover",
|
|
69
|
-
"disabled": "--cnvs-sys-color-border-input-disabled",
|
|
70
|
-
"active": "--cnvs-sys-color-border-input-active",
|
|
71
|
-
"error": "--cnvs-sys-color-border-input-error",
|
|
72
|
-
"alert": "--cnvs-sys-color-border-input-alert"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"shadow": {
|
|
76
|
-
"main": "--cnvs-sys-color-shadow-main",
|
|
77
|
-
"accent": "--cnvs-sys-color-shadow-accent"
|
|
78
|
-
},
|
|
79
|
-
"focusRing": "--cnvs-sys-color-focus-ring",
|
|
80
|
-
"gradient": "--cnvs-sys-color-gradient",
|
|
81
|
-
"overlay": {
|
|
82
|
-
"modal": "--cnvs-sys-color-overlay-modal",
|
|
83
|
-
"tooltip": "--cnvs-sys-color-overlay-tooltip"
|
|
84
|
-
},
|
|
85
|
-
"dataViz": {
|
|
86
|
-
"10": "--cnvs-sys-color-data-viz-10",
|
|
87
|
-
"11": "--cnvs-sys-color-data-viz-11",
|
|
88
|
-
"12": "--cnvs-sys-color-data-viz-12",
|
|
89
|
-
"13": "--cnvs-sys-color-data-viz-13",
|
|
90
|
-
"14": "--cnvs-sys-color-data-viz-14",
|
|
91
|
-
"15": "--cnvs-sys-color-data-viz-15",
|
|
92
|
-
"16": "--cnvs-sys-color-data-viz-16",
|
|
93
|
-
"01": "--cnvs-sys-color-data-viz-01",
|
|
94
|
-
"02": "--cnvs-sys-color-data-viz-02",
|
|
95
|
-
"03": "--cnvs-sys-color-data-viz-03",
|
|
96
|
-
"04": "--cnvs-sys-color-data-viz-04",
|
|
97
|
-
"05": "--cnvs-sys-color-data-viz-05",
|
|
98
|
-
"06": "--cnvs-sys-color-data-viz-06",
|
|
99
|
-
"07": "--cnvs-sys-color-data-viz-07",
|
|
100
|
-
"08": "--cnvs-sys-color-data-viz-08",
|
|
101
|
-
"09": "--cnvs-sys-color-data-viz-09"
|
|
102
|
-
}
|
|
103
|
-
} as const;
|
|
104
|
-
|
|
105
6
|
export declare const depth = {
|
|
7
|
+
/**
|
|
8
|
+
* Standard card depth
|
|
9
|
+
* 0 0.0625rem 0.25rem 0 rgba(#1f262e,0.12), 0 0.125rem 0.5rem 0 rgba(#1f262e,0.08)
|
|
10
|
+
*/
|
|
106
11
|
"1": "--cnvs-sys-depth-1",
|
|
12
|
+
/**
|
|
13
|
+
* Top navigation, Bottom Navigation
|
|
14
|
+
* 0 0.125rem 0.5rem 0 rgba(#1f262e,0.12), 0 0.25rem 1rem 0 rgba(#1f262e,0.08)
|
|
15
|
+
*/
|
|
107
16
|
"2": "--cnvs-sys-depth-2",
|
|
17
|
+
/**
|
|
18
|
+
* Floating Action Buttons (FAB), Menus
|
|
19
|
+
* 0 0.1875rem 0.75rem 0 rgba(#1f262e,0.12), 0 0.375rem 1.5rem 0 rgba(#1f262e,0.08)
|
|
20
|
+
*/
|
|
108
21
|
"3": "--cnvs-sys-depth-3",
|
|
22
|
+
/**
|
|
23
|
+
* Bottom Sheets
|
|
24
|
+
* 0 0.25rem 1rem 0 rgba(#1f262e,0.12), 0 0.5rem 2rem 0 rgba(#1f262e,0.08)
|
|
25
|
+
*/
|
|
109
26
|
"4": "--cnvs-sys-depth-4",
|
|
27
|
+
/**
|
|
28
|
+
* Banners, Snackbars, Toast Messages, Non modal Dialogs,
|
|
29
|
+
* Side Panels (when opacity overlay behaviour is not applied)
|
|
30
|
+
* 0 0.3125rem 1.25rem 0 rgba(#1f262e,0.12), 0 0.625rem 2.5rem 0 rgba(#1f262e,0.08)
|
|
31
|
+
*/
|
|
110
32
|
"5": "--cnvs-sys-depth-5",
|
|
111
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Modal Dialogs, Side Panels (when opacity overlay behaviour
|
|
35
|
+
* is applied)
|
|
36
|
+
* 0 0.375rem 1.5rem 0 rgba(#1f262e,0.12), 0 0.75rem 3rem 0 rgba(#1f262e,0.08)
|
|
37
|
+
*/
|
|
38
|
+
"6": "--cnvs-sys-depth-6",
|
|
112
39
|
} as const;
|
|
113
40
|
|
|
114
41
|
export declare const opacity = {
|
|
115
|
-
|
|
42
|
+
/**
|
|
43
|
+
* State layer added on top of disabled elements.
|
|
44
|
+
* 0.4
|
|
45
|
+
*/
|
|
46
|
+
"disabled": "--cnvs-sys-opacity-disabled",
|
|
116
47
|
} as const;
|
|
117
48
|
|
|
118
49
|
export declare const shape = {
|
|
50
|
+
/**
|
|
51
|
+
* This is the initial shape of every new element. Use this for backgrounds screens and fixed navigation containers such as headers, and side-panels.
|
|
52
|
+
* 0rem
|
|
53
|
+
*/
|
|
119
54
|
"zero": "--cnvs-sys-shape-zero",
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Use this for subtle and small components that don’t require to group complex information like Status Indicators, Checkboxes and Color Swatches.
|
|
57
|
+
* 0.125rem (2px)
|
|
58
|
+
*/
|
|
59
|
+
"half": "--cnvs-sys-shape-half",
|
|
60
|
+
/**
|
|
61
|
+
* Use this for form components presenting text information or inputs: Text Inputs and Text Area, Dropdowns, Menus and Banners.
|
|
62
|
+
* 0.25rem (4px)
|
|
63
|
+
*/
|
|
64
|
+
"x1": "--cnvs-sys-shape-x1",
|
|
65
|
+
/**
|
|
66
|
+
* Use this for all the containers and popups: All Cards, Modals, Tooltips and Toasts.
|
|
67
|
+
* 0.5rem (8px)
|
|
68
|
+
*/
|
|
69
|
+
"x2": "--cnvs-sys-shape-x2",
|
|
70
|
+
/**
|
|
71
|
+
* Commonly used for our standard buttons and profile avatars: All Primary, Secondary Buttons, Radio Buttons and Notification Badges.
|
|
72
|
+
* 62.5rem (1000px)
|
|
73
|
+
*/
|
|
74
|
+
"round": "--cnvs-sys-shape-round",
|
|
124
75
|
} as const;
|
|
125
76
|
|
|
126
77
|
export declare const space = {
|
|
78
|
+
/**
|
|
79
|
+
* Stacks, rows in tables
|
|
80
|
+
* 0
|
|
81
|
+
*/
|
|
127
82
|
"zero": "--cnvs-sys-space-zero",
|
|
83
|
+
/**
|
|
84
|
+
* Compact spacing between text or icons
|
|
85
|
+
* 0.25rem (4px)
|
|
86
|
+
*/
|
|
128
87
|
"x1": "--cnvs-sys-space-x1",
|
|
88
|
+
/**
|
|
89
|
+
* Commonly used to group compact elements like icon buttons
|
|
90
|
+
* 0.5rem (8px)
|
|
91
|
+
*/
|
|
129
92
|
"x2": "--cnvs-sys-space-x2",
|
|
93
|
+
/**
|
|
94
|
+
* Use when compact padding is required
|
|
95
|
+
* 0.75rem (12px)
|
|
96
|
+
*/
|
|
130
97
|
"x3": "--cnvs-sys-space-x3",
|
|
98
|
+
/**
|
|
99
|
+
* Default space token. Used to group Inputs with related data
|
|
100
|
+
* 1rem (16px)
|
|
101
|
+
*/
|
|
131
102
|
"x4": "--cnvs-sys-space-x4",
|
|
132
|
-
|
|
103
|
+
/**
|
|
104
|
+
* • Padding around card content
|
|
105
|
+
* • Related elements where more space between them can be afforded
|
|
106
|
+
* • Separate section headings or titles from body text or inputs
|
|
107
|
+
* 1.5rem (24px)
|
|
108
|
+
*/
|
|
133
109
|
"x6": "--cnvs-sys-space-x6",
|
|
110
|
+
/**
|
|
111
|
+
* • Standard spacing between cards
|
|
112
|
+
* • Used to separate groups of content
|
|
113
|
+
* • Separate section headings or titles from body text or inputs
|
|
114
|
+
* 2rem (32px)
|
|
115
|
+
*/
|
|
134
116
|
"x8": "--cnvs-sys-space-x8",
|
|
117
|
+
/**
|
|
118
|
+
* • Used for outer margins on the overall page content
|
|
119
|
+
* • Used for inner margins on large items such as page sections
|
|
120
|
+
* 2.5rem (40px)
|
|
121
|
+
*/
|
|
135
122
|
"x10": "--cnvs-sys-space-x10",
|
|
136
|
-
|
|
137
|
-
|
|
123
|
+
/**
|
|
124
|
+
* - Use to de-clutter your UI when a lot of space is available
|
|
125
|
+
* - Separate banner sections from page content
|
|
126
|
+
* - Use to differentiate page content like page sections
|
|
127
|
+
* 4rem (64px)
|
|
128
|
+
*/
|
|
138
129
|
"x16": "--cnvs-sys-space-x16",
|
|
139
|
-
|
|
130
|
+
/**
|
|
131
|
+
* - Use sparingly
|
|
132
|
+
* - Helps to put focus on the primary element within your page
|
|
133
|
+
* - Use to de-clutter your UI when a lot of space is available
|
|
134
|
+
* 5rem (80px)
|
|
135
|
+
*/
|
|
136
|
+
"x20": "--cnvs-sys-space-x20",
|
|
140
137
|
} as const;
|
|
141
138
|
|
|
142
139
|
export declare const fontFamily = {
|
|
140
|
+
/** Roboto */
|
|
143
141
|
"default": "--cnvs-sys-font-family-default",
|
|
142
|
+
/** Roboto Mono */
|
|
144
143
|
"mono": "--cnvs-sys-font-family-mono",
|
|
145
|
-
|
|
144
|
+
/** Noto Sans */
|
|
145
|
+
"global": "--cnvs-sys-font-family-global",
|
|
146
146
|
} as const;
|
|
147
147
|
|
|
148
148
|
export declare const fontSize = {
|
|
149
149
|
"subtext": {
|
|
150
|
+
/** 0.625rem (10px) */
|
|
150
151
|
"small": "--cnvs-sys-font-size-subtext-small",
|
|
152
|
+
/** 0.75rem (12px) */
|
|
151
153
|
"medium": "--cnvs-sys-font-size-subtext-medium",
|
|
152
|
-
|
|
154
|
+
/** 0.875rem (14px) */
|
|
155
|
+
"large": "--cnvs-sys-font-size-subtext-large",
|
|
153
156
|
},
|
|
154
157
|
"body": {
|
|
158
|
+
/** 1rem (16px) */
|
|
155
159
|
"small": "--cnvs-sys-font-size-body-small",
|
|
160
|
+
/** 1.125rem (18px) */
|
|
156
161
|
"medium": "--cnvs-sys-font-size-body-medium",
|
|
157
|
-
|
|
162
|
+
/** 1.25rem (20px) */
|
|
163
|
+
"large": "--cnvs-sys-font-size-body-large",
|
|
158
164
|
},
|
|
159
165
|
"heading": {
|
|
166
|
+
/** 1.5rem (24px) */
|
|
160
167
|
"small": "--cnvs-sys-font-size-heading-small",
|
|
168
|
+
/** 1.75rem (28px) */
|
|
161
169
|
"medium": "--cnvs-sys-font-size-heading-medium",
|
|
162
|
-
|
|
170
|
+
/** 2rem (32px) */
|
|
171
|
+
"large": "--cnvs-sys-font-size-heading-large",
|
|
163
172
|
},
|
|
164
173
|
"title": {
|
|
174
|
+
/** 2.5rem (40px) */
|
|
165
175
|
"small": "--cnvs-sys-font-size-title-small",
|
|
176
|
+
/** 3rem (48px) */
|
|
166
177
|
"medium": "--cnvs-sys-font-size-title-medium",
|
|
167
|
-
|
|
168
|
-
|
|
178
|
+
/** 3.5rem (56px) */
|
|
179
|
+
"large": "--cnvs-sys-font-size-title-large",
|
|
180
|
+
},
|
|
169
181
|
} as const;
|
|
170
182
|
|
|
171
183
|
export declare const lineHeight = {
|
|
172
184
|
"subtext": {
|
|
185
|
+
/** 1rem (16px) */
|
|
173
186
|
"small": "--cnvs-sys-line-height-subtext-small",
|
|
187
|
+
/** 1rem (16px) */
|
|
174
188
|
"medium": "--cnvs-sys-line-height-subtext-medium",
|
|
175
|
-
|
|
189
|
+
/** 1.25rem (20px) */
|
|
190
|
+
"large": "--cnvs-sys-line-height-subtext-large",
|
|
176
191
|
},
|
|
177
192
|
"body": {
|
|
193
|
+
/** 1.5rem (24px) */
|
|
178
194
|
"small": "--cnvs-sys-line-height-body-small",
|
|
195
|
+
/** 1.75rem (28px) */
|
|
179
196
|
"medium": "--cnvs-sys-line-height-body-medium",
|
|
180
|
-
|
|
197
|
+
/** 1.75rem (28px) */
|
|
198
|
+
"large": "--cnvs-sys-line-height-body-large",
|
|
181
199
|
},
|
|
182
200
|
"heading": {
|
|
201
|
+
/** 2rem (32px) */
|
|
183
202
|
"small": "--cnvs-sys-line-height-heading-small",
|
|
203
|
+
/** 2.25rem (36px) */
|
|
184
204
|
"medium": "--cnvs-sys-line-height-heading-medium",
|
|
185
|
-
|
|
205
|
+
/** 2.5rem (40px) */
|
|
206
|
+
"large": "--cnvs-sys-line-height-heading-large",
|
|
186
207
|
},
|
|
187
208
|
"title": {
|
|
209
|
+
/** 3rem (48px) */
|
|
188
210
|
"small": "--cnvs-sys-line-height-title-small",
|
|
211
|
+
/** 3.5rem (56px) */
|
|
189
212
|
"medium": "--cnvs-sys-line-height-title-medium",
|
|
190
|
-
|
|
191
|
-
|
|
213
|
+
/** 4rem (64px) */
|
|
214
|
+
"large": "--cnvs-sys-line-height-title-large",
|
|
215
|
+
},
|
|
192
216
|
} as const;
|
|
193
217
|
|
|
194
218
|
export declare const fontWeight = {
|
|
219
|
+
/** 300 */
|
|
195
220
|
"light": "--cnvs-sys-font-weight-light",
|
|
221
|
+
/** 400 */
|
|
196
222
|
"normal": "--cnvs-sys-font-weight-normal",
|
|
223
|
+
/** 500 */
|
|
197
224
|
"medium": "--cnvs-sys-font-weight-medium",
|
|
198
|
-
|
|
225
|
+
/** 700 */
|
|
226
|
+
"bold": "--cnvs-sys-font-weight-bold",
|
|
199
227
|
} as const;
|
|
200
228
|
|
|
201
229
|
export declare const type = {
|
|
202
230
|
"subtext": {
|
|
203
231
|
"small": {
|
|
232
|
+
/** Roboto */
|
|
204
233
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
234
|
+
/** 400 */
|
|
205
235
|
"fontWeight": "--cnvs-base-font-weight-400",
|
|
206
|
-
|
|
236
|
+
/** 1rem (16px) */
|
|
237
|
+
"lineHeight": "--cnvs-base-line-height-50",
|
|
238
|
+
/** 0.625rem (10px) */
|
|
207
239
|
"fontSize": "--cnvs-base-font-size-25",
|
|
208
|
-
|
|
240
|
+
/** 0.4 */
|
|
241
|
+
"letterSpacing": "--cnvs-base-letter-spacing-50",
|
|
209
242
|
},
|
|
210
243
|
"medium": {
|
|
244
|
+
/** Roboto */
|
|
211
245
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
246
|
+
/** 400 */
|
|
212
247
|
"fontWeight": "--cnvs-base-font-weight-400",
|
|
213
|
-
|
|
248
|
+
/** 1rem (16px) */
|
|
249
|
+
"lineHeight": "--cnvs-base-line-height-50",
|
|
250
|
+
/** 0.75rem (12px) */
|
|
214
251
|
"fontSize": "--cnvs-base-font-size-50",
|
|
215
|
-
|
|
252
|
+
/** 0.32 */
|
|
253
|
+
"letterSpacing": "--cnvs-base-letter-spacing-100",
|
|
216
254
|
},
|
|
217
255
|
"large": {
|
|
256
|
+
/** Roboto */
|
|
218
257
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
258
|
+
/** 400 */
|
|
219
259
|
"fontWeight": "--cnvs-base-font-weight-400",
|
|
220
|
-
|
|
260
|
+
/** 1.25rem (20px) */
|
|
261
|
+
"lineHeight": "--cnvs-base-line-height-100",
|
|
262
|
+
/** 0.875rem (14px) */
|
|
221
263
|
"fontSize": "--cnvs-base-font-size-75",
|
|
222
|
-
|
|
223
|
-
|
|
264
|
+
/** 0.24 */
|
|
265
|
+
"letterSpacing": "--cnvs-base-letter-spacing-150",
|
|
266
|
+
},
|
|
224
267
|
},
|
|
225
268
|
"body": {
|
|
226
269
|
"small": {
|
|
270
|
+
/** Roboto */
|
|
227
271
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
272
|
+
/** 400 */
|
|
228
273
|
"fontWeight": "--cnvs-base-font-weight-400",
|
|
229
|
-
|
|
274
|
+
/** 1.5rem (24px) */
|
|
275
|
+
"lineHeight": "--cnvs-base-line-height-150",
|
|
276
|
+
/** 1rem (16px) */
|
|
230
277
|
"fontSize": "--cnvs-base-font-size-100",
|
|
231
|
-
|
|
278
|
+
/** 0.16 */
|
|
279
|
+
"letterSpacing": "--cnvs-base-letter-spacing-200",
|
|
232
280
|
},
|
|
233
281
|
"medium": {
|
|
282
|
+
/** Roboto */
|
|
234
283
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
284
|
+
/** 400 */
|
|
235
285
|
"fontWeight": "--cnvs-base-font-weight-400",
|
|
236
|
-
|
|
237
|
-
"
|
|
286
|
+
/** 1.75rem (28px) */
|
|
287
|
+
"lineHeight": "--cnvs-base-line-height-200",
|
|
288
|
+
/** 1.125rem (18px) */
|
|
289
|
+
"fontSize": "--cnvs-base-font-size-125",
|
|
238
290
|
},
|
|
239
291
|
"large": {
|
|
292
|
+
/** Roboto */
|
|
240
293
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
294
|
+
/** 400 */
|
|
241
295
|
"fontWeight": "--cnvs-base-font-weight-400",
|
|
242
|
-
|
|
243
|
-
"
|
|
244
|
-
|
|
296
|
+
/** 1.75rem (28px) */
|
|
297
|
+
"lineHeight": "--cnvs-base-line-height-200",
|
|
298
|
+
/** 1.25rem (20px) */
|
|
299
|
+
"fontSize": "--cnvs-base-font-size-150",
|
|
300
|
+
},
|
|
245
301
|
},
|
|
246
302
|
"heading": {
|
|
247
303
|
"small": {
|
|
304
|
+
/** Roboto */
|
|
248
305
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
306
|
+
/** 700 */
|
|
249
307
|
"fontWeight": "--cnvs-base-font-weight-700",
|
|
250
|
-
|
|
251
|
-
"
|
|
308
|
+
/** 2rem (32px) */
|
|
309
|
+
"lineHeight": "--cnvs-base-line-height-250",
|
|
310
|
+
/** 1.5rem (24px) */
|
|
311
|
+
"fontSize": "--cnvs-base-font-size-200",
|
|
252
312
|
},
|
|
253
313
|
"medium": {
|
|
314
|
+
/** Roboto */
|
|
254
315
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
316
|
+
/** 700 */
|
|
255
317
|
"fontWeight": "--cnvs-base-font-weight-700",
|
|
256
|
-
|
|
257
|
-
"
|
|
318
|
+
/** 2.25rem (36px) */
|
|
319
|
+
"lineHeight": "--cnvs-base-line-height-300",
|
|
320
|
+
/** 1.75rem (28px) */
|
|
321
|
+
"fontSize": "--cnvs-base-font-size-250",
|
|
258
322
|
},
|
|
259
323
|
"large": {
|
|
324
|
+
/** Roboto */
|
|
260
325
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
326
|
+
/** 700 */
|
|
261
327
|
"fontWeight": "--cnvs-base-font-weight-700",
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
|
|
328
|
+
/** 2.5rem (40px) */
|
|
329
|
+
"lineHeight": "--cnvs-base-line-height-350",
|
|
330
|
+
/** 2rem (32px) */
|
|
331
|
+
"fontSize": "--cnvs-base-font-size-300",
|
|
332
|
+
},
|
|
265
333
|
},
|
|
266
334
|
"title": {
|
|
267
335
|
"small": {
|
|
336
|
+
/** Roboto */
|
|
268
337
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
338
|
+
/** 700 */
|
|
269
339
|
"fontWeight": "--cnvs-base-font-weight-700",
|
|
270
|
-
|
|
271
|
-
"
|
|
340
|
+
/** 3rem (48px) */
|
|
341
|
+
"lineHeight": "--cnvs-base-line-height-400",
|
|
342
|
+
/** 2.5rem (40px) */
|
|
343
|
+
"fontSize": "--cnvs-base-font-size-400",
|
|
272
344
|
},
|
|
273
345
|
"medium": {
|
|
346
|
+
/** Roboto */
|
|
274
347
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
348
|
+
/** 700 */
|
|
275
349
|
"fontWeight": "--cnvs-base-font-weight-700",
|
|
276
|
-
|
|
277
|
-
"
|
|
350
|
+
/** 3.5rem (56px) */
|
|
351
|
+
"lineHeight": "--cnvs-base-line-height-500",
|
|
352
|
+
/** 3rem (48px) */
|
|
353
|
+
"fontSize": "--cnvs-base-font-size-500",
|
|
278
354
|
},
|
|
279
355
|
"large": {
|
|
356
|
+
/** Roboto */
|
|
280
357
|
"fontFamily": "--cnvs-base-font-family-50",
|
|
358
|
+
/** 700 */
|
|
281
359
|
"fontWeight": "--cnvs-base-font-weight-700",
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
360
|
+
/** 4rem (64px) */
|
|
361
|
+
"lineHeight": "--cnvs-base-line-height-600",
|
|
362
|
+
/** 3.5rem (56px) */
|
|
363
|
+
"fontSize": "--cnvs-base-font-size-600",
|
|
364
|
+
},
|
|
365
|
+
},
|
|
286
366
|
} as const;
|
|
287
|
-
|