@neovici/cosmoz-tokens 2.0.1 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-tokens",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Design tokens for Cosmoz web components based on Untitled UI",
5
5
  "keywords": [
6
6
  "design-tokens",
package/src/spacing.css CHANGED
@@ -5,18 +5,18 @@
5
5
 
6
6
  :root {
7
7
  /* Base spacing unit */
8
- --cz-spacing: 4px;
8
+ --cz-spacing: 0.25rem;
9
9
 
10
10
  /* Border radius scale */
11
- --cz-radius-none: 0px;
12
- --cz-radius-xxs: 2px;
13
- --cz-radius-xs: 4px;
14
- --cz-radius-sm: 6px;
15
- --cz-radius-md: 8px;
16
- --cz-radius-lg: 10px;
17
- --cz-radius-xl: 12px;
18
- --cz-radius-2xl: 16px;
19
- --cz-radius-3xl: 20px;
20
- --cz-radius-4xl: 24px;
11
+ --cz-radius-none: 0;
12
+ --cz-radius-xxs: 0.125rem;
13
+ --cz-radius-xs: 0.25rem;
14
+ --cz-radius-sm: 0.375rem;
15
+ --cz-radius-md: 0.5rem;
16
+ --cz-radius-lg: 0.625rem;
17
+ --cz-radius-xl: 0.75rem;
18
+ --cz-radius-2xl: 1rem;
19
+ --cz-radius-3xl: 1.25rem;
20
+ --cz-radius-4xl: 1.5rem;
21
21
  --cz-radius-full: 9999px;
22
22
  }
@@ -14,44 +14,44 @@
14
14
  ui-monospace, 'Roboto Mono', SFMono-Regular, Menlo, Monaco, Consolas,
15
15
  'Liberation Mono', 'Courier New', monospace;
16
16
 
17
- /* Text sizes - based on 4px spacing unit */
18
- --cz-text-xs: 12px;
19
- --cz-text-xs-line-height: 18px;
17
+ /* Text sizes */
18
+ --cz-text-xs: 0.75rem;
19
+ --cz-text-xs-line-height: 1.5;
20
20
 
21
- --cz-text-sm: 14px;
22
- --cz-text-sm-line-height: 20px;
21
+ --cz-text-sm: 0.875rem;
22
+ --cz-text-sm-line-height: 1.5;
23
23
 
24
- --cz-text-md: 16px;
25
- --cz-text-md-line-height: 24px;
24
+ --cz-text-base: 1rem;
25
+ --cz-text-base-line-height: 1.5;
26
26
 
27
- --cz-text-lg: 18px;
28
- --cz-text-lg-line-height: 28px;
27
+ --cz-text-lg: 1.125rem;
28
+ --cz-text-lg-line-height: 1.5;
29
29
 
30
- --cz-text-xl: 20px;
31
- --cz-text-xl-line-height: 30px;
30
+ --cz-text-xl: 1.25rem;
31
+ --cz-text-xl-line-height: 1.5;
32
32
 
33
33
  /* Display sizes */
34
- --cz-text-display-xs: 24px;
35
- --cz-text-display-xs-line-height: 32px;
34
+ --cz-text-display-xs: 1.5rem;
35
+ --cz-text-display-xs-line-height: 1.25;
36
36
 
37
- --cz-text-display-sm: 30px;
38
- --cz-text-display-sm-line-height: 38px;
37
+ --cz-text-display-sm: 1.875rem;
38
+ --cz-text-display-sm-line-height: 1.25;
39
39
 
40
- --cz-text-display-md: 36px;
41
- --cz-text-display-md-line-height: 44px;
42
- --cz-text-display-md-letter-spacing: -0.72px;
40
+ --cz-text-display-md: 2.25rem;
41
+ --cz-text-display-md-line-height: 1.25;
42
+ --cz-text-display-md-letter-spacing: -0.045rem;
43
43
 
44
- --cz-text-display-lg: 48px;
45
- --cz-text-display-lg-line-height: 60px;
46
- --cz-text-display-lg-letter-spacing: -0.96px;
44
+ --cz-text-display-lg: 3rem;
45
+ --cz-text-display-lg-line-height: 1.25;
46
+ --cz-text-display-lg-letter-spacing: -0.06rem;
47
47
 
48
- --cz-text-display-xl: 60px;
49
- --cz-text-display-xl-line-height: 72px;
50
- --cz-text-display-xl-letter-spacing: -1.2px;
48
+ --cz-text-display-xl: 3.75rem;
49
+ --cz-text-display-xl-line-height: 1.25;
50
+ --cz-text-display-xl-letter-spacing: -0.075rem;
51
51
 
52
- --cz-text-display-2xl: 72px;
53
- --cz-text-display-2xl-line-height: 90px;
54
- --cz-text-display-2xl-letter-spacing: -1.44px;
52
+ --cz-text-display-2xl: 4.5rem;
53
+ --cz-text-display-2xl-line-height: 1.25;
54
+ --cz-text-display-2xl-letter-spacing: -0.09rem;
55
55
 
56
56
  /* Font weights */
57
57
  --cz-font-weight-regular: 400;