@commmerce/tokens 1.3.0 → 1.5.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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.txt +101 -0
- package/dist/fonts/OFL-DancingScript.txt +93 -0
- package/dist/fonts/dancing-script-latin-400-normal.woff2 +0 -0
- package/dist/fonts.css +10 -0
- package/dist/tokens.css +103 -46
- package/dist/tokens.d.ts +98 -20
- package/dist/tokens.js +41 -2
- package/dist/tokens.json +425 -78
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Commmerce design tokens: colours, typography, spacing, radii and shadows, each w
|
|
|
5
5
|
Docs: https://commmerce.com/commmerceui/#foundations--tokens
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
|
-
import '@commmerce/tokens/fonts.css'; //
|
|
8
|
+
import '@commmerce/tokens/fonts.css'; // Poppins (and Dancing Script for typed signatures), self-hosted: dist/fonts/*.woff2 (SIL OFL 1.1)
|
|
9
9
|
import '@commmerce/tokens/tokens.css'; // CSS variables: --cm-bg-surface, --cm-text-default, …
|
|
10
10
|
import { tokens } from '@commmerce/tokens'; // tokens.bgSurface === 'var(--cm-bg-surface)'
|
|
11
11
|
import data from '@commmerce/tokens/tokens.json'; // every token with its light and dark value and usage
|
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -11,6 +11,8 @@ lit, lit-html, lit-element, 3.x BSD-3-Clause Dependency of @commme
|
|
|
11
11
|
@lit/react 1.0.6 BSD-3-Clause Dependency of @commmerce/ui-react
|
|
12
12
|
Poppins typeface - OFL-1.1 Font files in @commmerce/tokens, the hosted
|
|
13
13
|
files and the Flutter package commmerce_ui
|
|
14
|
+
Dancing Script typeface - OFL-1.1 Font file in @commmerce/tokens and the hosted
|
|
15
|
+
files: typed signatures in cm-signature-field
|
|
14
16
|
path_drawing (Dart) 1.0.1 MIT Dependency of the Flutter package commmerce_ui
|
|
15
17
|
|
|
16
18
|
The line icons in @commmerce/icons and the design tokens are original
|
|
@@ -151,6 +153,105 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
|
151
153
|
|
|
152
154
|
==============================================================================
|
|
153
155
|
|
|
156
|
+
Dancing Script typeface
|
|
157
|
+
https://github.com/googlefonts/DancingScript
|
|
158
|
+
|
|
159
|
+
Copyright 2016 The Dancing Script Project Authors (https://github.com/googlefonts/DancingScript), with Reserved Font Name 'Dancing Script'.
|
|
160
|
+
|
|
161
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
162
|
+
This license is copied below, and is also available with a FAQ at:
|
|
163
|
+
http://scripts.sil.org/OFL
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
-----------------------------------------------------------
|
|
167
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
168
|
+
-----------------------------------------------------------
|
|
169
|
+
|
|
170
|
+
PREAMBLE
|
|
171
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
172
|
+
development of collaborative font projects, to support the font creation
|
|
173
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
174
|
+
open framework in which fonts may be shared and improved in partnership
|
|
175
|
+
with others.
|
|
176
|
+
|
|
177
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
178
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
179
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
180
|
+
redistributed and/or sold with any software provided that any reserved
|
|
181
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
182
|
+
however, cannot be released under any other type of license. The
|
|
183
|
+
requirement for fonts to remain under this license does not apply
|
|
184
|
+
to any document created using the fonts or their derivatives.
|
|
185
|
+
|
|
186
|
+
DEFINITIONS
|
|
187
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
188
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
189
|
+
include source files, build scripts and documentation.
|
|
190
|
+
|
|
191
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
192
|
+
copyright statement(s).
|
|
193
|
+
|
|
194
|
+
"Original Version" refers to the collection of Font Software components as
|
|
195
|
+
distributed by the Copyright Holder(s).
|
|
196
|
+
|
|
197
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
198
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
199
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
200
|
+
new environment.
|
|
201
|
+
|
|
202
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
203
|
+
writer or other person who contributed to the Font Software.
|
|
204
|
+
|
|
205
|
+
PERMISSION & CONDITIONS
|
|
206
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
207
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
208
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
209
|
+
Software, subject to the following conditions:
|
|
210
|
+
|
|
211
|
+
1) Neither the Font Software nor any of its individual components,
|
|
212
|
+
in Original or Modified Versions, may be sold by itself.
|
|
213
|
+
|
|
214
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
215
|
+
redistributed and/or sold with any software, provided that each copy
|
|
216
|
+
contains the above copyright notice and this license. These can be
|
|
217
|
+
included either as stand-alone text files, human-readable headers or
|
|
218
|
+
in the appropriate machine-readable metadata fields within text or
|
|
219
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
220
|
+
|
|
221
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
222
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
223
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
224
|
+
presented to the users.
|
|
225
|
+
|
|
226
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
227
|
+
Software shall not be used to promote, endorse or advertise any
|
|
228
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
229
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
230
|
+
permission.
|
|
231
|
+
|
|
232
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
233
|
+
must be distributed entirely under this license, and must not be
|
|
234
|
+
distributed under any other license. The requirement for fonts to
|
|
235
|
+
remain under this license does not apply to any document created
|
|
236
|
+
using the Font Software.
|
|
237
|
+
|
|
238
|
+
TERMINATION
|
|
239
|
+
This license becomes null and void if any of the above conditions are
|
|
240
|
+
not met.
|
|
241
|
+
|
|
242
|
+
DISCLAIMER
|
|
243
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
244
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
245
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
246
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
247
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
248
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
249
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
250
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
251
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
252
|
+
|
|
253
|
+
==============================================================================
|
|
254
|
+
|
|
154
255
|
path_drawing
|
|
155
256
|
https://pub.dev/packages/path_drawing
|
|
156
257
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2016 The Dancing Script Project Authors (https://github.com/googlefonts/DancingScript), with Reserved Font Name 'Dancing Script'.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
package/dist/fonts.css
CHANGED
|
@@ -80,3 +80,13 @@
|
|
|
80
80
|
src: url('fonts/poppins-latin-600-normal.woff2') format('woff2');
|
|
81
81
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/* Dancing Script (SIL OFL 1.1, see fonts/OFL-DancingScript.txt): typed signatures in cm-signature-field */
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: 'Dancing Script';
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 400;
|
|
89
|
+
font-display: swap;
|
|
90
|
+
src: url('fonts/dancing-script-latin-400-normal.woff2') format('woff2');
|
|
91
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
92
|
+
}
|
package/dist/tokens.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @commmerce/tokens v1.
|
|
1
|
+
/* @commmerce/tokens v1.5.0 — generated, do not edit */
|
|
2
2
|
|
|
3
3
|
:root, [data-cm-theme] {
|
|
4
4
|
color-scheme: light;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--cm-text-on-dark-secondary: #b5b5b5;
|
|
36
36
|
--cm-text-speciality: #008800;
|
|
37
37
|
--cm-text-counter: #3b68f9;
|
|
38
|
-
--cm-border-default: #
|
|
38
|
+
--cm-border-default: #e5e5e5;
|
|
39
39
|
--cm-border-strong: #000000;
|
|
40
40
|
--cm-border-input: #8b8b8b;
|
|
41
41
|
--cm-action-primary: #000000;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
--cm-action-disabled-text: #707070;
|
|
46
46
|
--cm-text-speciality-on-dark: #1ec81a;
|
|
47
47
|
--cm-border-critical: #ff0000;
|
|
48
|
-
--cm-border-card:
|
|
48
|
+
--cm-border-card: #e5e5e5;
|
|
49
49
|
--cm-gray-1000: #000000;
|
|
50
50
|
--cm-gray-700: #707070;
|
|
51
51
|
--cm-gray-600: #8b8b8b;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
--cm-gray-900: #1e1e1e;
|
|
58
58
|
--cm-gray-800: #414141;
|
|
59
59
|
--cm-bg-panel-header: #1b1b1b;
|
|
60
|
-
--cm-border-subtle: #
|
|
60
|
+
--cm-border-subtle: #e5e5e5;
|
|
61
61
|
--cm-toggle-on: #92cf8d;
|
|
62
62
|
--cm-toggle-off: #d5d5d5;
|
|
63
63
|
--cm-avatar-bg: #c4e5cd;
|
|
@@ -69,64 +69,121 @@
|
|
|
69
69
|
--cm-bg-information-soft: rgba(241, 169, 83, 0.16);
|
|
70
70
|
--cm-bg-success-soft: rgba(129, 187, 71, 0.16);
|
|
71
71
|
--cm-bg-attention-soft: #e8ebf5;
|
|
72
|
-
--cm-
|
|
72
|
+
--cm-font-size-12: 12px;
|
|
73
|
+
--cm-font-size-13: 13px;
|
|
74
|
+
--cm-font-size-14: 14px;
|
|
75
|
+
--cm-font-size-16: 16px;
|
|
76
|
+
--cm-font-size-18: 18px;
|
|
77
|
+
--cm-font-size-20: 20px;
|
|
78
|
+
--cm-font-size-24: 24px;
|
|
79
|
+
--cm-font-size-30: 30px;
|
|
80
|
+
--cm-font-size-40: 40px;
|
|
81
|
+
--cm-line-height-12: 16px;
|
|
82
|
+
--cm-line-height-13: 18px;
|
|
83
|
+
--cm-line-height-14: 20px;
|
|
84
|
+
--cm-line-height-16: 24px;
|
|
85
|
+
--cm-line-height-18: 26px;
|
|
86
|
+
--cm-line-height-20: 28px;
|
|
87
|
+
--cm-line-height-24: 32px;
|
|
88
|
+
--cm-line-height-30: 36px;
|
|
89
|
+
--cm-line-height-40: 48px;
|
|
90
|
+
--cm-space-4: 4px;
|
|
91
|
+
--cm-space-8: 8px;
|
|
73
92
|
--cm-space-12: 12px;
|
|
74
|
-
--cm-space-
|
|
93
|
+
--cm-space-16: 16px;
|
|
75
94
|
--cm-space-20: 20px;
|
|
95
|
+
--cm-space-24: 24px;
|
|
96
|
+
--cm-space-32: 32px;
|
|
97
|
+
--cm-space-40: 40px;
|
|
98
|
+
--cm-space-48: 48px;
|
|
99
|
+
--cm-space-64: 64px;
|
|
100
|
+
--cm-space-10: 10px;
|
|
101
|
+
--cm-space-15: 15px;
|
|
76
102
|
--cm-space-22: 22px;
|
|
77
103
|
--cm-space-30: 30px;
|
|
78
|
-
--cm-
|
|
79
|
-
--cm-
|
|
80
|
-
--cm-
|
|
104
|
+
--cm-control-height-sm: 32px;
|
|
105
|
+
--cm-control-height-md: 36px;
|
|
106
|
+
--cm-control-height-lg: 40px;
|
|
107
|
+
--cm-control-height-touch: 44px;
|
|
108
|
+
--cm-icon-size-sm: 16px;
|
|
109
|
+
--cm-icon-size-md: 20px;
|
|
110
|
+
--cm-icon-size-lg: 24px;
|
|
111
|
+
--cm-radius-xs: 4px;
|
|
112
|
+
--cm-radius-sm: 6px;
|
|
113
|
+
--cm-radius-md: 8px;
|
|
81
114
|
--cm-radius-lg: 12px;
|
|
82
115
|
--cm-radius-full: 9999px;
|
|
83
116
|
--cm-border-1: 1px;
|
|
84
117
|
--cm-shadow-0: none;
|
|
85
|
-
--cm-shadow-
|
|
118
|
+
--cm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
119
|
+
--cm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
120
|
+
--cm-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
|
|
121
|
+
--cm-shadow-100: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
122
|
+
--cm-duration-fast: 120ms;
|
|
123
|
+
--cm-duration-base: 200ms;
|
|
124
|
+
--cm-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
86
125
|
--cm-tracking-caps: 0.16em;
|
|
87
126
|
--cm-font-sans: "Poppins", system-ui, sans-serif;
|
|
88
|
-
--cm-type-
|
|
89
|
-
--cm-type-
|
|
127
|
+
--cm-type-display-lg-size: 40px;
|
|
128
|
+
--cm-type-display-lg-line-height: 48px;
|
|
129
|
+
--cm-type-display-lg-weight: 600;
|
|
130
|
+
--cm-type-display-size: 30px;
|
|
131
|
+
--cm-type-display-line-height: 36px;
|
|
132
|
+
--cm-type-display-weight: 600;
|
|
133
|
+
--cm-type-heading-lg-size: 24px;
|
|
134
|
+
--cm-type-heading-lg-line-height: 32px;
|
|
90
135
|
--cm-type-heading-lg-weight: 600;
|
|
91
|
-
--cm-type-heading-
|
|
92
|
-
--cm-type-heading-
|
|
93
|
-
--cm-type-heading-
|
|
136
|
+
--cm-type-heading-md-size: 20px;
|
|
137
|
+
--cm-type-heading-md-line-height: 28px;
|
|
138
|
+
--cm-type-heading-md-weight: 600;
|
|
139
|
+
--cm-type-heading-sm-size: 16px;
|
|
140
|
+
--cm-type-heading-sm-line-height: 24px;
|
|
141
|
+
--cm-type-heading-sm-weight: 600;
|
|
94
142
|
--cm-type-body-lg-size: 16px;
|
|
95
|
-
--cm-type-body-lg-line-height:
|
|
143
|
+
--cm-type-body-lg-line-height: 24px;
|
|
96
144
|
--cm-type-body-lg-weight: 400;
|
|
97
145
|
--cm-type-body-md-size: 14px;
|
|
98
|
-
--cm-type-body-md-line-height:
|
|
146
|
+
--cm-type-body-md-line-height: 20px;
|
|
99
147
|
--cm-type-body-md-weight: 400;
|
|
100
|
-
--cm-type-body-sm-size:
|
|
101
|
-
--cm-type-body-sm-line-height:
|
|
148
|
+
--cm-type-body-sm-size: 13px;
|
|
149
|
+
--cm-type-body-sm-line-height: 18px;
|
|
102
150
|
--cm-type-body-sm-weight: 400;
|
|
103
|
-
--cm-type-body-xs-size:
|
|
104
|
-
--cm-type-body-xs-line-height:
|
|
151
|
+
--cm-type-body-xs-size: 12px;
|
|
152
|
+
--cm-type-body-xs-line-height: 16px;
|
|
105
153
|
--cm-type-body-xs-weight: 400;
|
|
106
|
-
--cm-type-label-size:
|
|
107
|
-
--cm-type-label-line-height:
|
|
108
|
-
--cm-type-label-weight:
|
|
109
|
-
--cm-type-
|
|
110
|
-
--cm-type-
|
|
154
|
+
--cm-type-label-size: 14px;
|
|
155
|
+
--cm-type-label-line-height: 20px;
|
|
156
|
+
--cm-type-label-weight: 500;
|
|
157
|
+
--cm-type-display-lg-resp-size: 30px;
|
|
158
|
+
--cm-type-display-lg-resp-line-height: 36px;
|
|
159
|
+
--cm-type-display-lg-resp-weight: 600;
|
|
160
|
+
--cm-type-display-resp-size: 24px;
|
|
161
|
+
--cm-type-display-resp-line-height: 32px;
|
|
162
|
+
--cm-type-display-resp-weight: 600;
|
|
163
|
+
--cm-type-heading-lg-resp-size: 20px;
|
|
164
|
+
--cm-type-heading-lg-resp-line-height: 28px;
|
|
111
165
|
--cm-type-heading-lg-resp-weight: 600;
|
|
112
|
-
--cm-type-heading-
|
|
113
|
-
--cm-type-heading-
|
|
114
|
-
--cm-type-heading-
|
|
115
|
-
--cm-type-
|
|
116
|
-
--cm-type-
|
|
166
|
+
--cm-type-heading-md-resp-size: 18px;
|
|
167
|
+
--cm-type-heading-md-resp-line-height: 26px;
|
|
168
|
+
--cm-type-heading-md-resp-weight: 600;
|
|
169
|
+
--cm-type-heading-sm-resp-size: 16px;
|
|
170
|
+
--cm-type-heading-sm-resp-line-height: 24px;
|
|
171
|
+
--cm-type-heading-sm-resp-weight: 600;
|
|
172
|
+
--cm-type-body-lg-resp-size: 16px;
|
|
173
|
+
--cm-type-body-lg-resp-line-height: 24px;
|
|
117
174
|
--cm-type-body-lg-resp-weight: 400;
|
|
118
|
-
--cm-type-body-md-resp-size:
|
|
119
|
-
--cm-type-body-md-resp-line-height:
|
|
175
|
+
--cm-type-body-md-resp-size: 14px;
|
|
176
|
+
--cm-type-body-md-resp-line-height: 20px;
|
|
120
177
|
--cm-type-body-md-resp-weight: 400;
|
|
121
|
-
--cm-type-body-sm-resp-size:
|
|
122
|
-
--cm-type-body-sm-resp-line-height:
|
|
178
|
+
--cm-type-body-sm-resp-size: 13px;
|
|
179
|
+
--cm-type-body-sm-resp-line-height: 18px;
|
|
123
180
|
--cm-type-body-sm-resp-weight: 400;
|
|
124
|
-
--cm-type-body-xs-resp-size:
|
|
125
|
-
--cm-type-body-xs-resp-line-height:
|
|
181
|
+
--cm-type-body-xs-resp-size: 12px;
|
|
182
|
+
--cm-type-body-xs-resp-line-height: 16px;
|
|
126
183
|
--cm-type-body-xs-resp-weight: 400;
|
|
127
|
-
--cm-type-label-resp-size:
|
|
128
|
-
--cm-type-label-resp-line-height:
|
|
129
|
-
--cm-type-label-resp-weight:
|
|
184
|
+
--cm-type-label-resp-size: 14px;
|
|
185
|
+
--cm-type-label-resp-line-height: 20px;
|
|
186
|
+
--cm-type-label-resp-weight: 500;
|
|
130
187
|
}
|
|
131
188
|
|
|
132
189
|
[data-cm-theme="dark"] {
|
|
@@ -164,7 +221,7 @@
|
|
|
164
221
|
--cm-text-on-dark-secondary: #b5b5b5;
|
|
165
222
|
--cm-text-speciality: #1ec81a;
|
|
166
223
|
--cm-text-counter: #4b7cff;
|
|
167
|
-
--cm-border-default: #
|
|
224
|
+
--cm-border-default: #2e2e2e;
|
|
168
225
|
--cm-border-strong: #f4f4f4;
|
|
169
226
|
--cm-border-input: #6f6f6f;
|
|
170
227
|
--cm-action-primary: #f4f4f4;
|
|
@@ -174,9 +231,9 @@
|
|
|
174
231
|
--cm-action-disabled-text: #8b8b8b;
|
|
175
232
|
--cm-text-speciality-on-dark: #1ec81a;
|
|
176
233
|
--cm-border-critical: #ff3c2e;
|
|
177
|
-
--cm-border-card:
|
|
234
|
+
--cm-border-card: #2e2e2e;
|
|
178
235
|
--cm-bg-panel-header: #000000;
|
|
179
|
-
--cm-border-subtle: #
|
|
236
|
+
--cm-border-subtle: #2e2e2e;
|
|
180
237
|
--cm-toggle-on: #92cf8d;
|
|
181
238
|
--cm-toggle-off: #4a4a4a;
|
|
182
239
|
--cm-avatar-bg: #2f4a37;
|
|
@@ -225,7 +282,7 @@
|
|
|
225
282
|
--cm-text-on-dark-secondary: #b5b5b5;
|
|
226
283
|
--cm-text-speciality: #1ec81a;
|
|
227
284
|
--cm-text-counter: #4b7cff;
|
|
228
|
-
--cm-border-default: #
|
|
285
|
+
--cm-border-default: #2e2e2e;
|
|
229
286
|
--cm-border-strong: #f4f4f4;
|
|
230
287
|
--cm-border-input: #6f6f6f;
|
|
231
288
|
--cm-action-primary: #f4f4f4;
|
|
@@ -235,9 +292,9 @@
|
|
|
235
292
|
--cm-action-disabled-text: #8b8b8b;
|
|
236
293
|
--cm-text-speciality-on-dark: #1ec81a;
|
|
237
294
|
--cm-border-critical: #ff3c2e;
|
|
238
|
-
--cm-border-card:
|
|
295
|
+
--cm-border-card: #2e2e2e;
|
|
239
296
|
--cm-bg-panel-header: #000000;
|
|
240
|
-
--cm-border-subtle: #
|
|
297
|
+
--cm-border-subtle: #2e2e2e;
|
|
241
298
|
--cm-toggle-on: #92cf8d;
|
|
242
299
|
--cm-toggle-off: #4a4a4a;
|
|
243
300
|
--cm-avatar-bg: #2f4a37;
|
package/dist/tokens.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ export declare const tokens: {
|
|
|
66
66
|
readonly textSpeciality: string;
|
|
67
67
|
/** Counters and badges. Figma #3E6CFF nudged to 4.6:1. */
|
|
68
68
|
readonly textCounter: string;
|
|
69
|
-
/**
|
|
69
|
+
/** Deprecated since 1.5: use border-subtle (same value). @deprecated */
|
|
70
70
|
readonly borderDefault: string;
|
|
71
71
|
/** Focused or highlighted input, secondary button, checkbox and radio outlines, focus rings. */
|
|
72
72
|
readonly borderStrong: string;
|
|
73
|
-
/** Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale. */
|
|
73
|
+
/** Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale. Since 1.5 the second border level: every form control outline (3:1 or more on surfaces). */
|
|
74
74
|
readonly borderInput: string;
|
|
75
75
|
/** Primary button fill. Black is the brand; inverts in dark. */
|
|
76
76
|
readonly actionPrimary: string;
|
|
@@ -86,7 +86,7 @@ export declare const tokens: {
|
|
|
86
86
|
readonly textSpecialityOnDark: string;
|
|
87
87
|
/** Input in error. */
|
|
88
88
|
readonly borderCritical: string;
|
|
89
|
-
/**
|
|
89
|
+
/** Deprecated since 1.5: use border-subtle (same value). @deprecated */
|
|
90
90
|
readonly borderCard: string;
|
|
91
91
|
/** Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens. */
|
|
92
92
|
readonly gray1000: string;
|
|
@@ -110,7 +110,7 @@ export declare const tokens: {
|
|
|
110
110
|
readonly gray800: string;
|
|
111
111
|
/** Header strip of the filter and notification panels. Text: text-on-dark. */
|
|
112
112
|
readonly bgPanelHeader: string;
|
|
113
|
-
/**
|
|
113
|
+
/** Dividers, card and panel outlines, table rules, popover edges (decorative; 1px). Since 1.5 one of the two border levels: border-subtle for structure, border-input for controls. */
|
|
114
114
|
readonly borderSubtle: string;
|
|
115
115
|
/** Toggle track when on (List and Sub Tabs boards). */
|
|
116
116
|
readonly toggleOn: string;
|
|
@@ -134,35 +134,113 @@ export declare const tokens: {
|
|
|
134
134
|
readonly bgSuccessSoft: string;
|
|
135
135
|
/** Attention icon tile in notifications. */
|
|
136
136
|
readonly bgAttentionSoft: string;
|
|
137
|
-
/**
|
|
138
|
-
readonly
|
|
139
|
-
/**
|
|
137
|
+
/** Captions, badges, counts, table headers. Smallest size. */
|
|
138
|
+
readonly fontSize12: string;
|
|
139
|
+
/** Help text, slim buttons, secondary lines. */
|
|
140
|
+
readonly fontSize13: string;
|
|
141
|
+
/** Default UI text. */
|
|
142
|
+
readonly fontSize14: string;
|
|
143
|
+
/** Card and section headings, reading text. */
|
|
144
|
+
readonly fontSize16: string;
|
|
145
|
+
/** Small headings on phones. */
|
|
146
|
+
readonly fontSize18: string;
|
|
147
|
+
/** Modal titles, page titles on phones. */
|
|
148
|
+
readonly fontSize20: string;
|
|
149
|
+
/** Page titles. */
|
|
150
|
+
readonly fontSize24: string;
|
|
151
|
+
/** Display numbers. */
|
|
152
|
+
readonly fontSize30: string;
|
|
153
|
+
/** Marketing and hero headings only (the docs home page). Not for product UI: components never use it. */
|
|
154
|
+
readonly fontSize40: string;
|
|
155
|
+
/** Line height for font-size-12. */
|
|
156
|
+
readonly lineHeight12: string;
|
|
157
|
+
/** Line height for font-size-13. */
|
|
158
|
+
readonly lineHeight13: string;
|
|
159
|
+
/** Line height for font-size-14. */
|
|
160
|
+
readonly lineHeight14: string;
|
|
161
|
+
/** Line height for font-size-16. */
|
|
162
|
+
readonly lineHeight16: string;
|
|
163
|
+
/** Line height for font-size-18. */
|
|
164
|
+
readonly lineHeight18: string;
|
|
165
|
+
/** Line height for font-size-20. */
|
|
166
|
+
readonly lineHeight20: string;
|
|
167
|
+
/** Line height for font-size-24. */
|
|
168
|
+
readonly lineHeight24: string;
|
|
169
|
+
/** Line height for font-size-30. */
|
|
170
|
+
readonly lineHeight30: string;
|
|
171
|
+
/** Line height for font-size-40. */
|
|
172
|
+
readonly lineHeight40: string;
|
|
173
|
+
/** Icon to text inside small controls; badge and tag gaps. */
|
|
174
|
+
readonly space4: string;
|
|
175
|
+
/** Default gap inside controls and between related items (buttons in a row, label to field). */
|
|
176
|
+
readonly space8: string;
|
|
177
|
+
/** Control side padding; gap between list rows and small cards. */
|
|
140
178
|
readonly space12: string;
|
|
141
|
-
/**
|
|
142
|
-
readonly
|
|
143
|
-
/**
|
|
179
|
+
/** Card padding on phones; gap between fields in a form. */
|
|
180
|
+
readonly space16: string;
|
|
181
|
+
/** Card padding; the default gap between cards (cm-stack, cm-grid, cm-layout); gap between form sections. */
|
|
144
182
|
readonly space20: string;
|
|
145
|
-
/**
|
|
183
|
+
/** Page side padding (cm-page, cm-page-header); gap between page sections. */
|
|
184
|
+
readonly space24: string;
|
|
185
|
+
/** Gap between page sections. */
|
|
186
|
+
readonly space32: string;
|
|
187
|
+
/** Large section spacing. */
|
|
188
|
+
readonly space40: string;
|
|
189
|
+
/** Empty-state and hero spacing. */
|
|
190
|
+
readonly space48: string;
|
|
191
|
+
/** Largest layout spacing. */
|
|
192
|
+
readonly space64: string;
|
|
193
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-8 (or space-12). @deprecated */
|
|
194
|
+
readonly space10: string;
|
|
195
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-16 (or space-12). @deprecated */
|
|
196
|
+
readonly space15: string;
|
|
197
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-24. @deprecated */
|
|
146
198
|
readonly space22: string;
|
|
147
|
-
/**
|
|
199
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-32. @deprecated */
|
|
148
200
|
readonly space30: string;
|
|
149
|
-
/**
|
|
201
|
+
/** Small controls: toolbar and filter fields (size="small"), slim buttons, segmented controls. */
|
|
202
|
+
readonly controlHeightSm: string;
|
|
203
|
+
/** Default height of buttons, text fields, selects and pickers. */
|
|
204
|
+
readonly controlHeightMd: string;
|
|
205
|
+
/** Large buttons (save bars, page actions) and large search. */
|
|
206
|
+
readonly controlHeightLg: string;
|
|
207
|
+
/** Minimum height (and width for icon buttons) of every control on touch screens (pointer: coarse). */
|
|
208
|
+
readonly controlHeightTouch: string;
|
|
209
|
+
/** Icons inside controls: buttons, fields, menu items. */
|
|
210
|
+
readonly iconSizeSm: string;
|
|
211
|
+
/** Navigation icons. */
|
|
212
|
+
readonly iconSizeMd: string;
|
|
213
|
+
/** Feature icons: empty states, tiles. */
|
|
214
|
+
readonly iconSizeLg: string;
|
|
215
|
+
/** Checkboxes and other small marks. */
|
|
150
216
|
readonly radiusXs: string;
|
|
151
|
-
/**
|
|
217
|
+
/** Controls: buttons, inputs, selects, badges, segmented controls, menu items. */
|
|
152
218
|
readonly radiusSm: string;
|
|
153
|
-
/** Cards. */
|
|
219
|
+
/** Cards, popovers, dropdowns, menus, toasts. */
|
|
154
220
|
readonly radiusMd: string;
|
|
155
|
-
/**
|
|
221
|
+
/** Panels, modals, side panels, bottom sheets. */
|
|
156
222
|
readonly radiusLg: string;
|
|
157
|
-
/**
|
|
223
|
+
/** Pills, avatars, toggles and circular icon buttons. */
|
|
158
224
|
readonly radiusFull: string;
|
|
159
225
|
/** Every border and separator in the file is 1px. */
|
|
160
226
|
readonly border1: string;
|
|
161
|
-
/**
|
|
227
|
+
/** Cards and panels: flat, with a border-subtle line. */
|
|
162
228
|
readonly shadow0: string;
|
|
163
|
-
/**
|
|
229
|
+
/** Small overlays: tooltips, menus. */
|
|
230
|
+
readonly shadowSm: string;
|
|
231
|
+
/** Popovers and dropdowns: select and combobox lists, date pickers, search results, notification panel. */
|
|
232
|
+
readonly shadowMd: string;
|
|
233
|
+
/** Modals, side panels, bottom sheets, toasts, save bars, dragged cards. */
|
|
234
|
+
readonly shadowLg: string;
|
|
235
|
+
/** Deprecated since 1.5: use shadow-md (same value). @deprecated */
|
|
164
236
|
readonly shadow100: string;
|
|
165
|
-
/**
|
|
237
|
+
/** Hover, press, toggles, chevrons. */
|
|
238
|
+
readonly durationFast: string;
|
|
239
|
+
/** Opening and closing: popovers, panels, accordions. */
|
|
240
|
+
readonly durationBase: string;
|
|
241
|
+
/** Every transition. Under prefers-reduced-motion components turn transitions off. */
|
|
242
|
+
readonly easingStandard: string;
|
|
243
|
+
/** Deprecated since 1.5: components no longer use uppercase text (sentence case everywhere). Kept for existing apps. @deprecated */
|
|
166
244
|
readonly trackingCaps: string;
|
|
167
245
|
/** */
|
|
168
246
|
readonly fontSans: string;
|