@sumup-oss/design-tokens 8.0.0-next.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/LICENSE +201 -0
- package/README.md +115 -0
- package/dark-scoped.css +140 -0
- package/dark.css +201 -0
- package/dist/cjs/index.d.ts +27 -0
- package/dist/cjs/index.js +55 -0
- package/dist/cjs/scripts/build.d.ts +36 -0
- package/dist/cjs/scripts/build.js +182 -0
- package/dist/cjs/themes/dark.d.ts +555 -0
- package/dist/cjs/themes/dark.js +694 -0
- package/dist/cjs/themes/legacy/light.d.ts +85 -0
- package/dist/cjs/themes/legacy/light.js +196 -0
- package/dist/cjs/themes/light.d.ts +555 -0
- package/dist/cjs/themes/light.js +694 -0
- package/dist/cjs/themes/schema.d.ts +603 -0
- package/dist/cjs/themes/schema.js +243 -0
- package/dist/cjs/themes/shared.d.ts +259 -0
- package/dist/cjs/themes/shared.js +333 -0
- package/dist/cjs/types/index.d.ts +175 -0
- package/dist/cjs/types/index.js +16 -0
- package/dist/cjs/utils/theme-prop-type.d.ts +36 -0
- package/dist/cjs/utils/theme-prop-type.js +162 -0
- package/dist/es/index.d.ts +27 -0
- package/dist/es/index.js +27 -0
- package/dist/es/scripts/build.d.ts +36 -0
- package/dist/es/scripts/build.js +174 -0
- package/dist/es/themes/dark.d.ts +555 -0
- package/dist/es/themes/dark.js +691 -0
- package/dist/es/themes/legacy/light.d.ts +85 -0
- package/dist/es/themes/legacy/light.js +193 -0
- package/dist/es/themes/light.d.ts +555 -0
- package/dist/es/themes/light.js +691 -0
- package/dist/es/themes/schema.d.ts +603 -0
- package/dist/es/themes/schema.js +240 -0
- package/dist/es/themes/shared.d.ts +259 -0
- package/dist/es/themes/shared.js +330 -0
- package/dist/es/types/index.d.ts +175 -0
- package/dist/es/types/index.js +15 -0
- package/dist/es/utils/theme-prop-type.d.ts +36 -0
- package/dist/es/utils/theme-prop-type.js +156 -0
- package/dynamic.css +626 -0
- package/light-scoped.css +140 -0
- package/light.css +201 -0
- package/package.json +44 -0
package/light-scoped.css
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
[data-color-scheme="light"] {
|
|
2
|
+
--lightningcss-light: initial;
|
|
3
|
+
--lightningcss-dark: ;
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--cui-bg-normal: #fff;
|
|
6
|
+
--cui-bg-normal-hovered: #e9edf2;
|
|
7
|
+
--cui-bg-normal-pressed: #bfc6cf;
|
|
8
|
+
--cui-bg-normal-disabled: rgba(255, 255, 255, .4);
|
|
9
|
+
--cui-bg-subtle: #f0f1f5;
|
|
10
|
+
--cui-bg-subtle-hovered: #e0e2ea;
|
|
11
|
+
--cui-bg-subtle-pressed: #9da7b1;
|
|
12
|
+
--cui-bg-subtle-disabled: rgba(227, 231, 235, .4);
|
|
13
|
+
--cui-bg-highlight: #e3e7eb;
|
|
14
|
+
--cui-bg-highlight-hovered: #c2c9d1;
|
|
15
|
+
--cui-bg-highlight-pressed: #9da7b1;
|
|
16
|
+
--cui-bg-highlight-disabled: rgba(15, 19, 26, .08);
|
|
17
|
+
--cui-bg-strong: #000;
|
|
18
|
+
--cui-bg-strong-hovered: #313941;
|
|
19
|
+
--cui-bg-strong-pressed: #4f5a65;
|
|
20
|
+
--cui-bg-strong-disabled: rgba(23, 29, 36, .4);
|
|
21
|
+
--cui-bg-accent: #eef0f2;
|
|
22
|
+
--cui-bg-accent-hovered: #e3e7eb;
|
|
23
|
+
--cui-bg-accent-pressed: #c2c9d1;
|
|
24
|
+
--cui-bg-accent-disabled: rgba(238, 240, 242, .4);
|
|
25
|
+
--cui-bg-accent-strong: #0f131a;
|
|
26
|
+
--cui-bg-accent-strong-hovered: #3b3f46;
|
|
27
|
+
--cui-bg-accent-strong-pressed: #6a737c;
|
|
28
|
+
--cui-bg-accent-strong-disabled: rgba(15, 19, 26, .4);
|
|
29
|
+
--cui-bg-success: #e9fbe9;
|
|
30
|
+
--cui-bg-success-hovered: #d7f8d7;
|
|
31
|
+
--cui-bg-success-pressed: #c1e8c1;
|
|
32
|
+
--cui-bg-success-disabled: rgba(233, 251, 233, .4);
|
|
33
|
+
--cui-bg-success-strong: #018850;
|
|
34
|
+
--cui-bg-success-strong-hovered: #007a4e;
|
|
35
|
+
--cui-bg-success-strong-pressed: #016c26;
|
|
36
|
+
--cui-bg-success-strong-disabled: rgba(1, 136, 80, .4);
|
|
37
|
+
--cui-bg-warning: #fdf4db;
|
|
38
|
+
--cui-bg-warning-hovered: #faeec6;
|
|
39
|
+
--cui-bg-warning-pressed: #f5dea3;
|
|
40
|
+
--cui-bg-warning-disabled: rgba(253, 244, 219, .4);
|
|
41
|
+
--cui-bg-warning-strong: #e87c00;
|
|
42
|
+
--cui-bg-warning-strong-hovered: #cc6d00;
|
|
43
|
+
--cui-bg-warning-strong-pressed: #b25c00;
|
|
44
|
+
--cui-bg-warning-strong-disabled: rgba(232, 124, 0, .4);
|
|
45
|
+
--cui-bg-danger: #fbe9e7;
|
|
46
|
+
--cui-bg-danger-hovered: #fcddd9;
|
|
47
|
+
--cui-bg-danger-pressed: #f2bbb5;
|
|
48
|
+
--cui-bg-danger-disabled: rgba(251, 233, 231, .64);
|
|
49
|
+
--cui-bg-danger-strong: #de331d;
|
|
50
|
+
--cui-bg-danger-strong-hovered: #bd2c19;
|
|
51
|
+
--cui-bg-danger-strong-pressed: #9e2415;
|
|
52
|
+
--cui-bg-danger-strong-disabled: rgba(222, 51, 29, .4);
|
|
53
|
+
--cui-bg-promo: #f5edfe;
|
|
54
|
+
--cui-bg-promo-hovered: #ede0fc;
|
|
55
|
+
--cui-bg-promo-pressed: #e0c9f8;
|
|
56
|
+
--cui-bg-promo-disabled: rgba(245, 237, 254, .4);
|
|
57
|
+
--cui-bg-promo-strong: #9e33e0;
|
|
58
|
+
--cui-bg-promo-strong-hovered: #8a1ecc;
|
|
59
|
+
--cui-bg-promo-strong-pressed: #7219a9;
|
|
60
|
+
--cui-bg-promo-strong-disabled: rgba(158, 51, 224, .4);
|
|
61
|
+
--cui-fg-normal: #0f131a;
|
|
62
|
+
--cui-fg-normal-hovered: #0f131a;
|
|
63
|
+
--cui-fg-normal-pressed: #0f131a;
|
|
64
|
+
--cui-fg-normal-disabled: rgba(15, 19, 26, .4);
|
|
65
|
+
--cui-fg-subtle: #6a737c;
|
|
66
|
+
--cui-fg-subtle-hovered: #6a737c;
|
|
67
|
+
--cui-fg-subtle-pressed: #6a737c;
|
|
68
|
+
--cui-fg-subtle-disabled: rgba(106, 115, 124, .4);
|
|
69
|
+
--cui-fg-placeholder: #9da7b1;
|
|
70
|
+
--cui-fg-placeholder-hovered: #9da7b1;
|
|
71
|
+
--cui-fg-placeholder-pressed: #9da7b1;
|
|
72
|
+
--cui-fg-placeholder-disabled: rgba(157, 167, 177, .4);
|
|
73
|
+
--cui-fg-on-strong: #fff;
|
|
74
|
+
--cui-fg-on-strong-hovered: #fff;
|
|
75
|
+
--cui-fg-on-strong-pressed: #fff;
|
|
76
|
+
--cui-fg-on-strong-disabled: rgba(255, 255, 255, .4);
|
|
77
|
+
--cui-fg-on-strong-subtle: rgba(255, 255, 255, .7);
|
|
78
|
+
--cui-fg-on-strong-subtle-hovered: rgba(255, 255, 255, .7);
|
|
79
|
+
--cui-fg-on-strong-subtle-pressed: rgba(255, 255, 255, .7);
|
|
80
|
+
--cui-fg-on-strong-subtle-disabled: rgba(255, 255, 255, .3);
|
|
81
|
+
--cui-fg-accent: #0f131a;
|
|
82
|
+
--cui-fg-accent-hovered: #52565d;
|
|
83
|
+
--cui-fg-accent-pressed: #676e7a;
|
|
84
|
+
--cui-fg-accent-disabled: rgba(15, 19, 26, .4);
|
|
85
|
+
--cui-fg-success: #018850;
|
|
86
|
+
--cui-fg-success-hovered: #007a4e;
|
|
87
|
+
--cui-fg-success-pressed: #016c26;
|
|
88
|
+
--cui-fg-success-disabled: rgba(1, 136, 80, .4);
|
|
89
|
+
--cui-fg-warning: #e27900;
|
|
90
|
+
--cui-fg-warning-hovered: #cc6d00;
|
|
91
|
+
--cui-fg-warning-pressed: #b25c00;
|
|
92
|
+
--cui-fg-warning-disabled: rgba(226, 121, 0, .4);
|
|
93
|
+
--cui-fg-danger: #de331d;
|
|
94
|
+
--cui-fg-danger-hovered: #bd2c19;
|
|
95
|
+
--cui-fg-danger-pressed: #9e2415;
|
|
96
|
+
--cui-fg-danger-disabled: rgba(222, 51, 29, .64);
|
|
97
|
+
--cui-fg-promo: #9e33e0;
|
|
98
|
+
--cui-fg-promo-hovered: #8a1ecc;
|
|
99
|
+
--cui-fg-promo-pressed: #7219a9;
|
|
100
|
+
--cui-fg-promo-disabled: rgba(158, 51, 224, .4);
|
|
101
|
+
--cui-border-normal: #aeb6be;
|
|
102
|
+
--cui-border-normal-hovered: #85919e;
|
|
103
|
+
--cui-border-normal-pressed: #687686;
|
|
104
|
+
--cui-border-normal-disabled: rgba(194, 201, 209, .4);
|
|
105
|
+
--cui-border-subtle: #e3e7ec;
|
|
106
|
+
--cui-border-subtle-hovered: #c2c9d1;
|
|
107
|
+
--cui-border-subtle-pressed: #9da7b1;
|
|
108
|
+
--cui-border-subtle-disabled: rgba(230, 230, 230, .4);
|
|
109
|
+
--cui-border-divider: #e3e7eb;
|
|
110
|
+
--cui-border-divider-hovered: #9da7b1;
|
|
111
|
+
--cui-border-divider-pressed: #6a737c;
|
|
112
|
+
--cui-border-divider-disabled: rgba(194, 201, 209, .4);
|
|
113
|
+
--cui-border-strong: #0f131a;
|
|
114
|
+
--cui-border-strong-hovered: #494a4a;
|
|
115
|
+
--cui-border-strong-pressed: #696969;
|
|
116
|
+
--cui-border-strong-disabled: rgba(15, 19, 26, .4);
|
|
117
|
+
--cui-border-accent: #0f131a;
|
|
118
|
+
--cui-border-accent-hovered: #52565d;
|
|
119
|
+
--cui-border-accent-pressed: #676e7a;
|
|
120
|
+
--cui-border-accent-disabled: rgba(15, 19, 26, .4);
|
|
121
|
+
--cui-border-success: #018850;
|
|
122
|
+
--cui-border-success-hovered: #007a4e;
|
|
123
|
+
--cui-border-success-pressed: #016c26;
|
|
124
|
+
--cui-border-success-disabled: rgba(1, 136, 80, .4);
|
|
125
|
+
--cui-border-warning: #e87c00;
|
|
126
|
+
--cui-border-warning-hovered: #cc6d00;
|
|
127
|
+
--cui-border-warning-pressed: #b25c00;
|
|
128
|
+
--cui-border-warning-disabled: rgba(226, 121, 0, .4);
|
|
129
|
+
--cui-border-danger: #de331d;
|
|
130
|
+
--cui-border-danger-hovered: #bd2c19;
|
|
131
|
+
--cui-border-danger-pressed: #9e2415;
|
|
132
|
+
--cui-border-danger-disabled: rgba(222, 51, 29, .4);
|
|
133
|
+
--cui-border-promo: #9e33e0;
|
|
134
|
+
--cui-border-promo-hovered: #8a1ecc;
|
|
135
|
+
--cui-border-promo-pressed: #7219a9;
|
|
136
|
+
--cui-border-promo-disabled: rgba(158, 51, 224, .4);
|
|
137
|
+
--cui-bg-overlay: rgba(0, 0, 0, .4);
|
|
138
|
+
--cui-bg-elevated: #fff;
|
|
139
|
+
--cui-border-focus: #0f131a;
|
|
140
|
+
}
|
package/light.css
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--lightningcss-light: initial;
|
|
3
|
+
--lightningcss-dark: ;
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--cui-bg-normal: #fff;
|
|
6
|
+
--cui-bg-normal-hovered: #e9edf2;
|
|
7
|
+
--cui-bg-normal-pressed: #bfc6cf;
|
|
8
|
+
--cui-bg-normal-disabled: rgba(255, 255, 255, .4);
|
|
9
|
+
--cui-bg-subtle: #f0f1f5;
|
|
10
|
+
--cui-bg-subtle-hovered: #e0e2ea;
|
|
11
|
+
--cui-bg-subtle-pressed: #9da7b1;
|
|
12
|
+
--cui-bg-subtle-disabled: rgba(227, 231, 235, .4);
|
|
13
|
+
--cui-bg-highlight: #e3e7eb;
|
|
14
|
+
--cui-bg-highlight-hovered: #c2c9d1;
|
|
15
|
+
--cui-bg-highlight-pressed: #9da7b1;
|
|
16
|
+
--cui-bg-highlight-disabled: rgba(15, 19, 26, .08);
|
|
17
|
+
--cui-bg-strong: #000;
|
|
18
|
+
--cui-bg-strong-hovered: #313941;
|
|
19
|
+
--cui-bg-strong-pressed: #4f5a65;
|
|
20
|
+
--cui-bg-strong-disabled: rgba(23, 29, 36, .4);
|
|
21
|
+
--cui-bg-accent: #eef0f2;
|
|
22
|
+
--cui-bg-accent-hovered: #e3e7eb;
|
|
23
|
+
--cui-bg-accent-pressed: #c2c9d1;
|
|
24
|
+
--cui-bg-accent-disabled: rgba(238, 240, 242, .4);
|
|
25
|
+
--cui-bg-accent-strong: #0f131a;
|
|
26
|
+
--cui-bg-accent-strong-hovered: #3b3f46;
|
|
27
|
+
--cui-bg-accent-strong-pressed: #6a737c;
|
|
28
|
+
--cui-bg-accent-strong-disabled: rgba(15, 19, 26, .4);
|
|
29
|
+
--cui-bg-success: #e9fbe9;
|
|
30
|
+
--cui-bg-success-hovered: #d7f8d7;
|
|
31
|
+
--cui-bg-success-pressed: #c1e8c1;
|
|
32
|
+
--cui-bg-success-disabled: rgba(233, 251, 233, .4);
|
|
33
|
+
--cui-bg-success-strong: #018850;
|
|
34
|
+
--cui-bg-success-strong-hovered: #007a4e;
|
|
35
|
+
--cui-bg-success-strong-pressed: #016c26;
|
|
36
|
+
--cui-bg-success-strong-disabled: rgba(1, 136, 80, .4);
|
|
37
|
+
--cui-bg-warning: #fdf4db;
|
|
38
|
+
--cui-bg-warning-hovered: #faeec6;
|
|
39
|
+
--cui-bg-warning-pressed: #f5dea3;
|
|
40
|
+
--cui-bg-warning-disabled: rgba(253, 244, 219, .4);
|
|
41
|
+
--cui-bg-warning-strong: #e87c00;
|
|
42
|
+
--cui-bg-warning-strong-hovered: #cc6d00;
|
|
43
|
+
--cui-bg-warning-strong-pressed: #b25c00;
|
|
44
|
+
--cui-bg-warning-strong-disabled: rgba(232, 124, 0, .4);
|
|
45
|
+
--cui-bg-danger: #fbe9e7;
|
|
46
|
+
--cui-bg-danger-hovered: #fcddd9;
|
|
47
|
+
--cui-bg-danger-pressed: #f2bbb5;
|
|
48
|
+
--cui-bg-danger-disabled: rgba(251, 233, 231, .64);
|
|
49
|
+
--cui-bg-danger-strong: #de331d;
|
|
50
|
+
--cui-bg-danger-strong-hovered: #bd2c19;
|
|
51
|
+
--cui-bg-danger-strong-pressed: #9e2415;
|
|
52
|
+
--cui-bg-danger-strong-disabled: rgba(222, 51, 29, .4);
|
|
53
|
+
--cui-bg-promo: #f5edfe;
|
|
54
|
+
--cui-bg-promo-hovered: #ede0fc;
|
|
55
|
+
--cui-bg-promo-pressed: #e0c9f8;
|
|
56
|
+
--cui-bg-promo-disabled: rgba(245, 237, 254, .4);
|
|
57
|
+
--cui-bg-promo-strong: #9e33e0;
|
|
58
|
+
--cui-bg-promo-strong-hovered: #8a1ecc;
|
|
59
|
+
--cui-bg-promo-strong-pressed: #7219a9;
|
|
60
|
+
--cui-bg-promo-strong-disabled: rgba(158, 51, 224, .4);
|
|
61
|
+
--cui-fg-normal: #0f131a;
|
|
62
|
+
--cui-fg-normal-hovered: #0f131a;
|
|
63
|
+
--cui-fg-normal-pressed: #0f131a;
|
|
64
|
+
--cui-fg-normal-disabled: rgba(15, 19, 26, .4);
|
|
65
|
+
--cui-fg-subtle: #6a737c;
|
|
66
|
+
--cui-fg-subtle-hovered: #6a737c;
|
|
67
|
+
--cui-fg-subtle-pressed: #6a737c;
|
|
68
|
+
--cui-fg-subtle-disabled: rgba(106, 115, 124, .4);
|
|
69
|
+
--cui-fg-placeholder: #9da7b1;
|
|
70
|
+
--cui-fg-placeholder-hovered: #9da7b1;
|
|
71
|
+
--cui-fg-placeholder-pressed: #9da7b1;
|
|
72
|
+
--cui-fg-placeholder-disabled: rgba(157, 167, 177, .4);
|
|
73
|
+
--cui-fg-on-strong: #fff;
|
|
74
|
+
--cui-fg-on-strong-hovered: #fff;
|
|
75
|
+
--cui-fg-on-strong-pressed: #fff;
|
|
76
|
+
--cui-fg-on-strong-disabled: rgba(255, 255, 255, .4);
|
|
77
|
+
--cui-fg-on-strong-subtle: rgba(255, 255, 255, .7);
|
|
78
|
+
--cui-fg-on-strong-subtle-hovered: rgba(255, 255, 255, .7);
|
|
79
|
+
--cui-fg-on-strong-subtle-pressed: rgba(255, 255, 255, .7);
|
|
80
|
+
--cui-fg-on-strong-subtle-disabled: rgba(255, 255, 255, .3);
|
|
81
|
+
--cui-fg-accent: #0f131a;
|
|
82
|
+
--cui-fg-accent-hovered: #52565d;
|
|
83
|
+
--cui-fg-accent-pressed: #676e7a;
|
|
84
|
+
--cui-fg-accent-disabled: rgba(15, 19, 26, .4);
|
|
85
|
+
--cui-fg-success: #018850;
|
|
86
|
+
--cui-fg-success-hovered: #007a4e;
|
|
87
|
+
--cui-fg-success-pressed: #016c26;
|
|
88
|
+
--cui-fg-success-disabled: rgba(1, 136, 80, .4);
|
|
89
|
+
--cui-fg-warning: #e27900;
|
|
90
|
+
--cui-fg-warning-hovered: #cc6d00;
|
|
91
|
+
--cui-fg-warning-pressed: #b25c00;
|
|
92
|
+
--cui-fg-warning-disabled: rgba(226, 121, 0, .4);
|
|
93
|
+
--cui-fg-danger: #de331d;
|
|
94
|
+
--cui-fg-danger-hovered: #bd2c19;
|
|
95
|
+
--cui-fg-danger-pressed: #9e2415;
|
|
96
|
+
--cui-fg-danger-disabled: rgba(222, 51, 29, .64);
|
|
97
|
+
--cui-fg-promo: #9e33e0;
|
|
98
|
+
--cui-fg-promo-hovered: #8a1ecc;
|
|
99
|
+
--cui-fg-promo-pressed: #7219a9;
|
|
100
|
+
--cui-fg-promo-disabled: rgba(158, 51, 224, .4);
|
|
101
|
+
--cui-border-normal: #aeb6be;
|
|
102
|
+
--cui-border-normal-hovered: #85919e;
|
|
103
|
+
--cui-border-normal-pressed: #687686;
|
|
104
|
+
--cui-border-normal-disabled: rgba(194, 201, 209, .4);
|
|
105
|
+
--cui-border-subtle: #e3e7ec;
|
|
106
|
+
--cui-border-subtle-hovered: #c2c9d1;
|
|
107
|
+
--cui-border-subtle-pressed: #9da7b1;
|
|
108
|
+
--cui-border-subtle-disabled: rgba(230, 230, 230, .4);
|
|
109
|
+
--cui-border-divider: #e3e7eb;
|
|
110
|
+
--cui-border-divider-hovered: #9da7b1;
|
|
111
|
+
--cui-border-divider-pressed: #6a737c;
|
|
112
|
+
--cui-border-divider-disabled: rgba(194, 201, 209, .4);
|
|
113
|
+
--cui-border-strong: #0f131a;
|
|
114
|
+
--cui-border-strong-hovered: #494a4a;
|
|
115
|
+
--cui-border-strong-pressed: #696969;
|
|
116
|
+
--cui-border-strong-disabled: rgba(15, 19, 26, .4);
|
|
117
|
+
--cui-border-accent: #0f131a;
|
|
118
|
+
--cui-border-accent-hovered: #52565d;
|
|
119
|
+
--cui-border-accent-pressed: #676e7a;
|
|
120
|
+
--cui-border-accent-disabled: rgba(15, 19, 26, .4);
|
|
121
|
+
--cui-border-success: #018850;
|
|
122
|
+
--cui-border-success-hovered: #007a4e;
|
|
123
|
+
--cui-border-success-pressed: #016c26;
|
|
124
|
+
--cui-border-success-disabled: rgba(1, 136, 80, .4);
|
|
125
|
+
--cui-border-warning: #e87c00;
|
|
126
|
+
--cui-border-warning-hovered: #cc6d00;
|
|
127
|
+
--cui-border-warning-pressed: #b25c00;
|
|
128
|
+
--cui-border-warning-disabled: rgba(226, 121, 0, .4);
|
|
129
|
+
--cui-border-danger: #de331d;
|
|
130
|
+
--cui-border-danger-hovered: #bd2c19;
|
|
131
|
+
--cui-border-danger-pressed: #9e2415;
|
|
132
|
+
--cui-border-danger-disabled: rgba(222, 51, 29, .4);
|
|
133
|
+
--cui-border-promo: #9e33e0;
|
|
134
|
+
--cui-border-promo-hovered: #8a1ecc;
|
|
135
|
+
--cui-border-promo-pressed: #7219a9;
|
|
136
|
+
--cui-border-promo-disabled: rgba(158, 51, 224, .4);
|
|
137
|
+
--cui-bg-overlay: rgba(0, 0, 0, .4);
|
|
138
|
+
--cui-bg-elevated: #fff;
|
|
139
|
+
--cui-border-focus: #0f131a;
|
|
140
|
+
--cui-border-radius-bit: 4px;
|
|
141
|
+
--cui-border-radius-byte: 8px;
|
|
142
|
+
--cui-border-radius-kilo: 12px;
|
|
143
|
+
--cui-border-radius-mega: 16px;
|
|
144
|
+
--cui-border-radius-circle: 100%;
|
|
145
|
+
--cui-border-radius-pill: 999999px;
|
|
146
|
+
--cui-border-width-kilo: 1px;
|
|
147
|
+
--cui-border-width-mega: 2px;
|
|
148
|
+
--cui-font-stack-default: aktiv-grotesk, Helvetica, Arial, system-ui, sans-serif, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
149
|
+
--cui-font-stack-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
|
|
150
|
+
--cui-font-weight-regular: 400;
|
|
151
|
+
--cui-font-weight-bold: 700;
|
|
152
|
+
--cui-icon-sizes-kilo: 16px;
|
|
153
|
+
--cui-icon-sizes-mega: 24px;
|
|
154
|
+
--cui-icon-sizes-giga: 32px;
|
|
155
|
+
--cui-icon-sizes-tera: 48px;
|
|
156
|
+
--cui-spacings-bit: 4px;
|
|
157
|
+
--cui-spacings-byte: 8px;
|
|
158
|
+
--cui-spacings-kilo: 12px;
|
|
159
|
+
--cui-spacings-mega: 16px;
|
|
160
|
+
--cui-spacings-giga: 24px;
|
|
161
|
+
--cui-spacings-tera: 32px;
|
|
162
|
+
--cui-spacings-peta: 40px;
|
|
163
|
+
--cui-spacings-exa: 48px;
|
|
164
|
+
--cui-spacings-zetta: 56px;
|
|
165
|
+
--cui-transitions-default: .12s ease-in-out;
|
|
166
|
+
--cui-transitions-slow: .3s ease-in-out;
|
|
167
|
+
--cui-typography-headline-one-font-size: 2rem;
|
|
168
|
+
--cui-typography-headline-one-line-height: 2.25rem;
|
|
169
|
+
--cui-typography-headline-two-font-size: 1.5rem;
|
|
170
|
+
--cui-typography-headline-two-line-height: 1.75rem;
|
|
171
|
+
--cui-typography-headline-three-font-size: 1.25rem;
|
|
172
|
+
--cui-typography-headline-three-line-height: 1.5rem;
|
|
173
|
+
--cui-typography-headline-four-font-size: 1.125rem;
|
|
174
|
+
--cui-typography-headline-four-line-height: 1.5rem;
|
|
175
|
+
--cui-typography-title-one-font-size: 7.5rem;
|
|
176
|
+
--cui-typography-title-one-line-height: 7.5rem;
|
|
177
|
+
--cui-typography-title-two-font-size: 6rem;
|
|
178
|
+
--cui-typography-title-two-line-height: 6rem;
|
|
179
|
+
--cui-typography-title-three-font-size: 4rem;
|
|
180
|
+
--cui-typography-title-three-line-height: 4rem;
|
|
181
|
+
--cui-typography-title-four-font-size: 3.5rem;
|
|
182
|
+
--cui-typography-title-four-line-height: 3.5rem;
|
|
183
|
+
--cui-typography-sub-headline-font-size: .875rem;
|
|
184
|
+
--cui-typography-sub-headline-line-height: 1.25rem;
|
|
185
|
+
--cui-typography-body-one-font-size: 1rem;
|
|
186
|
+
--cui-typography-body-one-line-height: 1.5rem;
|
|
187
|
+
--cui-typography-body-two-font-size: .875rem;
|
|
188
|
+
--cui-typography-body-two-line-height: 1.25rem;
|
|
189
|
+
--cui-typography-body-large-font-size: 1.25rem;
|
|
190
|
+
--cui-typography-body-large-line-height: 1.75rem;
|
|
191
|
+
--cui-z-index-default: 0;
|
|
192
|
+
--cui-z-index-absolute: 1;
|
|
193
|
+
--cui-z-index-input: 20;
|
|
194
|
+
--cui-z-index-popover: 30;
|
|
195
|
+
--cui-z-index-tooltip: 40;
|
|
196
|
+
--cui-z-index-header: 600;
|
|
197
|
+
--cui-z-index-backdrop: 700;
|
|
198
|
+
--cui-z-index-navigation: 800;
|
|
199
|
+
--cui-z-index-modal: 1000;
|
|
200
|
+
--cui-z-index-toast: 1100;
|
|
201
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sumup-oss/design-tokens",
|
|
3
|
+
"version": "8.0.0-next.0",
|
|
4
|
+
"description": "Visual primitives such as typography, color, and spacing that are shared across platforms.",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/es/index.js",
|
|
7
|
+
"types": "dist/es/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"*.css"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"directory": "packages/design-tokens",
|
|
16
|
+
"url": "git+https://github.com/sumup-oss/circuit-ui.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/sumup-oss/circuit-ui/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/sumup-oss/circuit-ui/tree/main/packages/design-tokens/README.md",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"start": "tsc --watch",
|
|
25
|
+
"build": "npm run build:es && npm run build:cjs && npm run build:styles",
|
|
26
|
+
"build:es": "tsc",
|
|
27
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
28
|
+
"build:styles": "tsx ./scripts/build.ts",
|
|
29
|
+
"lint": "foundry run eslint . --ext .js,.jsx,.ts,.tsx",
|
|
30
|
+
"lint:fix": "npm run lint -- --fix",
|
|
31
|
+
"test": "vitest"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"browserslist": "^4.23.2",
|
|
35
|
+
"lightningcss": "^1.25.1",
|
|
36
|
+
"prop-types": "^15.8.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^18.19.39",
|
|
40
|
+
"@types/prop-types": "^15.7.12",
|
|
41
|
+
"tsx": "^4.16.5",
|
|
42
|
+
"typescript": "^5.5.4"
|
|
43
|
+
}
|
|
44
|
+
}
|