@shopware/design-tokens 0.0.0-stage → 0.0.1
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 +21 -0
- package/README.md +25 -2
- package/dist/index.d.mts +151 -0
- package/dist/index.d.ts +151 -0
- package/dist/index.mjs +77 -0
- package/dist/tailwind.css +73 -0
- package/package.json +51 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-2023 Shopware
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @shopware/design-tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Shopware Frontends color tokens in one framework-agnostic package. The same
|
|
4
|
+
tokens feed the UnoCSS theme of `@shopware/unocss-design-tokens-layer` and the
|
|
5
|
+
Tailwind CSS v4 theme of the React starter template, so a class such as
|
|
6
|
+
`bg-brand-primary` or `text-surface-on-surface` means the same color in every
|
|
7
|
+
template.
|
|
8
|
+
|
|
9
|
+
## Tailwind CSS v4
|
|
10
|
+
|
|
11
|
+
```css
|
|
12
|
+
@import "tailwindcss";
|
|
13
|
+
@import "@shopware/design-tokens/tailwind.css";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`tailwind.css` declares every token in `@theme static`, so each one becomes a
|
|
17
|
+
`--color-<token>` custom property and the matching utilities (`bg-*`, `text-*`,
|
|
18
|
+
`border-*` and the rest).
|
|
19
|
+
|
|
20
|
+
## TypeScript
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { colors, designTokenTheme } from "@shopware/design-tokens";
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`designTokenTheme` has the `{ colors }` shape a UnoCSS theme expects.
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
"brand-primary": string;
|
|
3
|
+
"brand-primary-hover": string;
|
|
4
|
+
"brand-primary-pressed": string;
|
|
5
|
+
"brand-on-primary": string;
|
|
6
|
+
"brand-secondary": string;
|
|
7
|
+
"brand-secondary-hover": string;
|
|
8
|
+
"brand-secondary-pressed": string;
|
|
9
|
+
"brand-on-secondary": string;
|
|
10
|
+
"brand-tertiary": string;
|
|
11
|
+
"brand-tertiary-hover": string;
|
|
12
|
+
"brand-tertiary-pressed": string;
|
|
13
|
+
"brand-on-tertiary": string;
|
|
14
|
+
"surface-surface": string;
|
|
15
|
+
"surface-on-surface": string;
|
|
16
|
+
"surface-surface-variant": string;
|
|
17
|
+
"surface-on-surface-variant": string;
|
|
18
|
+
"surface-surface-disabled": string;
|
|
19
|
+
"surface-on-surface-disabled": string;
|
|
20
|
+
"surface-surface-primary": string;
|
|
21
|
+
"surface-on-surface-primary": string;
|
|
22
|
+
"surface-inverse-surface": string;
|
|
23
|
+
"surface-inverse-on-surface": string;
|
|
24
|
+
"surface-surface-container-lowest": string;
|
|
25
|
+
"surface-surface-container-low": string;
|
|
26
|
+
"surface-surface-container": string;
|
|
27
|
+
"surface-surface-container-high": string;
|
|
28
|
+
"surface-surface-container-highest": string;
|
|
29
|
+
"surface-background": string;
|
|
30
|
+
"surface-on-background": string;
|
|
31
|
+
"outline-outline": string;
|
|
32
|
+
"outline-outline-variant": string;
|
|
33
|
+
"outline-outline-primary": string;
|
|
34
|
+
"outline-outline-disabled": string;
|
|
35
|
+
"outline-outline-focus": string;
|
|
36
|
+
"states-info": string;
|
|
37
|
+
"states-info-hover": string;
|
|
38
|
+
"states-info-pressed": string;
|
|
39
|
+
"states-on-info": string;
|
|
40
|
+
"states-info-container": string;
|
|
41
|
+
"states-on-info-container": string;
|
|
42
|
+
"states-success": string;
|
|
43
|
+
"states-success-hover": string;
|
|
44
|
+
"states-success-pressed": string;
|
|
45
|
+
"states-on-success": string;
|
|
46
|
+
"states-success-container": string;
|
|
47
|
+
"states-on-success-container": string;
|
|
48
|
+
"states-warning": string;
|
|
49
|
+
"states-warning-hover": string;
|
|
50
|
+
"states-warning-pressed": string;
|
|
51
|
+
"states-on-warning": string;
|
|
52
|
+
"states-warning-container": string;
|
|
53
|
+
"states-on-warning-container": string;
|
|
54
|
+
"states-error": string;
|
|
55
|
+
"states-error-hover": string;
|
|
56
|
+
"states-error-pressed": string;
|
|
57
|
+
"states-on-error": string;
|
|
58
|
+
"states-error-container": string;
|
|
59
|
+
"states-on-error-container": string;
|
|
60
|
+
"fixed-fixed-on-image": string;
|
|
61
|
+
"other-sale": string;
|
|
62
|
+
"other-shadow": string;
|
|
63
|
+
"overlay-dark-highest": string;
|
|
64
|
+
"overlay-dark-high": string;
|
|
65
|
+
"overlay-dark": string;
|
|
66
|
+
"overlay-dark-low": string;
|
|
67
|
+
"overlay-dark-lowest": string;
|
|
68
|
+
"overlay-light-highest": string;
|
|
69
|
+
"overlay-light-high": string;
|
|
70
|
+
"overlay-light": string;
|
|
71
|
+
"overlay-light-low": string;
|
|
72
|
+
"overlay-light-lowest": string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
declare const designTokenTheme: {
|
|
76
|
+
colors: {
|
|
77
|
+
"brand-primary": string;
|
|
78
|
+
"brand-primary-hover": string;
|
|
79
|
+
"brand-primary-pressed": string;
|
|
80
|
+
"brand-on-primary": string;
|
|
81
|
+
"brand-secondary": string;
|
|
82
|
+
"brand-secondary-hover": string;
|
|
83
|
+
"brand-secondary-pressed": string;
|
|
84
|
+
"brand-on-secondary": string;
|
|
85
|
+
"brand-tertiary": string;
|
|
86
|
+
"brand-tertiary-hover": string;
|
|
87
|
+
"brand-tertiary-pressed": string;
|
|
88
|
+
"brand-on-tertiary": string;
|
|
89
|
+
"surface-surface": string;
|
|
90
|
+
"surface-on-surface": string;
|
|
91
|
+
"surface-surface-variant": string;
|
|
92
|
+
"surface-on-surface-variant": string;
|
|
93
|
+
"surface-surface-disabled": string;
|
|
94
|
+
"surface-on-surface-disabled": string;
|
|
95
|
+
"surface-surface-primary": string;
|
|
96
|
+
"surface-on-surface-primary": string;
|
|
97
|
+
"surface-inverse-surface": string;
|
|
98
|
+
"surface-inverse-on-surface": string;
|
|
99
|
+
"surface-surface-container-lowest": string;
|
|
100
|
+
"surface-surface-container-low": string;
|
|
101
|
+
"surface-surface-container": string;
|
|
102
|
+
"surface-surface-container-high": string;
|
|
103
|
+
"surface-surface-container-highest": string;
|
|
104
|
+
"surface-background": string;
|
|
105
|
+
"surface-on-background": string;
|
|
106
|
+
"outline-outline": string;
|
|
107
|
+
"outline-outline-variant": string;
|
|
108
|
+
"outline-outline-primary": string;
|
|
109
|
+
"outline-outline-disabled": string;
|
|
110
|
+
"outline-outline-focus": string;
|
|
111
|
+
"states-info": string;
|
|
112
|
+
"states-info-hover": string;
|
|
113
|
+
"states-info-pressed": string;
|
|
114
|
+
"states-on-info": string;
|
|
115
|
+
"states-info-container": string;
|
|
116
|
+
"states-on-info-container": string;
|
|
117
|
+
"states-success": string;
|
|
118
|
+
"states-success-hover": string;
|
|
119
|
+
"states-success-pressed": string;
|
|
120
|
+
"states-on-success": string;
|
|
121
|
+
"states-success-container": string;
|
|
122
|
+
"states-on-success-container": string;
|
|
123
|
+
"states-warning": string;
|
|
124
|
+
"states-warning-hover": string;
|
|
125
|
+
"states-warning-pressed": string;
|
|
126
|
+
"states-on-warning": string;
|
|
127
|
+
"states-warning-container": string;
|
|
128
|
+
"states-on-warning-container": string;
|
|
129
|
+
"states-error": string;
|
|
130
|
+
"states-error-hover": string;
|
|
131
|
+
"states-error-pressed": string;
|
|
132
|
+
"states-on-error": string;
|
|
133
|
+
"states-error-container": string;
|
|
134
|
+
"states-on-error-container": string;
|
|
135
|
+
"fixed-fixed-on-image": string;
|
|
136
|
+
"other-sale": string;
|
|
137
|
+
"other-shadow": string;
|
|
138
|
+
"overlay-dark-highest": string;
|
|
139
|
+
"overlay-dark-high": string;
|
|
140
|
+
"overlay-dark": string;
|
|
141
|
+
"overlay-dark-low": string;
|
|
142
|
+
"overlay-dark-lowest": string;
|
|
143
|
+
"overlay-light-highest": string;
|
|
144
|
+
"overlay-light-high": string;
|
|
145
|
+
"overlay-light": string;
|
|
146
|
+
"overlay-light-low": string;
|
|
147
|
+
"overlay-light-lowest": string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export { colors, designTokenTheme };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
"brand-primary": string;
|
|
3
|
+
"brand-primary-hover": string;
|
|
4
|
+
"brand-primary-pressed": string;
|
|
5
|
+
"brand-on-primary": string;
|
|
6
|
+
"brand-secondary": string;
|
|
7
|
+
"brand-secondary-hover": string;
|
|
8
|
+
"brand-secondary-pressed": string;
|
|
9
|
+
"brand-on-secondary": string;
|
|
10
|
+
"brand-tertiary": string;
|
|
11
|
+
"brand-tertiary-hover": string;
|
|
12
|
+
"brand-tertiary-pressed": string;
|
|
13
|
+
"brand-on-tertiary": string;
|
|
14
|
+
"surface-surface": string;
|
|
15
|
+
"surface-on-surface": string;
|
|
16
|
+
"surface-surface-variant": string;
|
|
17
|
+
"surface-on-surface-variant": string;
|
|
18
|
+
"surface-surface-disabled": string;
|
|
19
|
+
"surface-on-surface-disabled": string;
|
|
20
|
+
"surface-surface-primary": string;
|
|
21
|
+
"surface-on-surface-primary": string;
|
|
22
|
+
"surface-inverse-surface": string;
|
|
23
|
+
"surface-inverse-on-surface": string;
|
|
24
|
+
"surface-surface-container-lowest": string;
|
|
25
|
+
"surface-surface-container-low": string;
|
|
26
|
+
"surface-surface-container": string;
|
|
27
|
+
"surface-surface-container-high": string;
|
|
28
|
+
"surface-surface-container-highest": string;
|
|
29
|
+
"surface-background": string;
|
|
30
|
+
"surface-on-background": string;
|
|
31
|
+
"outline-outline": string;
|
|
32
|
+
"outline-outline-variant": string;
|
|
33
|
+
"outline-outline-primary": string;
|
|
34
|
+
"outline-outline-disabled": string;
|
|
35
|
+
"outline-outline-focus": string;
|
|
36
|
+
"states-info": string;
|
|
37
|
+
"states-info-hover": string;
|
|
38
|
+
"states-info-pressed": string;
|
|
39
|
+
"states-on-info": string;
|
|
40
|
+
"states-info-container": string;
|
|
41
|
+
"states-on-info-container": string;
|
|
42
|
+
"states-success": string;
|
|
43
|
+
"states-success-hover": string;
|
|
44
|
+
"states-success-pressed": string;
|
|
45
|
+
"states-on-success": string;
|
|
46
|
+
"states-success-container": string;
|
|
47
|
+
"states-on-success-container": string;
|
|
48
|
+
"states-warning": string;
|
|
49
|
+
"states-warning-hover": string;
|
|
50
|
+
"states-warning-pressed": string;
|
|
51
|
+
"states-on-warning": string;
|
|
52
|
+
"states-warning-container": string;
|
|
53
|
+
"states-on-warning-container": string;
|
|
54
|
+
"states-error": string;
|
|
55
|
+
"states-error-hover": string;
|
|
56
|
+
"states-error-pressed": string;
|
|
57
|
+
"states-on-error": string;
|
|
58
|
+
"states-error-container": string;
|
|
59
|
+
"states-on-error-container": string;
|
|
60
|
+
"fixed-fixed-on-image": string;
|
|
61
|
+
"other-sale": string;
|
|
62
|
+
"other-shadow": string;
|
|
63
|
+
"overlay-dark-highest": string;
|
|
64
|
+
"overlay-dark-high": string;
|
|
65
|
+
"overlay-dark": string;
|
|
66
|
+
"overlay-dark-low": string;
|
|
67
|
+
"overlay-dark-lowest": string;
|
|
68
|
+
"overlay-light-highest": string;
|
|
69
|
+
"overlay-light-high": string;
|
|
70
|
+
"overlay-light": string;
|
|
71
|
+
"overlay-light-low": string;
|
|
72
|
+
"overlay-light-lowest": string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
declare const designTokenTheme: {
|
|
76
|
+
colors: {
|
|
77
|
+
"brand-primary": string;
|
|
78
|
+
"brand-primary-hover": string;
|
|
79
|
+
"brand-primary-pressed": string;
|
|
80
|
+
"brand-on-primary": string;
|
|
81
|
+
"brand-secondary": string;
|
|
82
|
+
"brand-secondary-hover": string;
|
|
83
|
+
"brand-secondary-pressed": string;
|
|
84
|
+
"brand-on-secondary": string;
|
|
85
|
+
"brand-tertiary": string;
|
|
86
|
+
"brand-tertiary-hover": string;
|
|
87
|
+
"brand-tertiary-pressed": string;
|
|
88
|
+
"brand-on-tertiary": string;
|
|
89
|
+
"surface-surface": string;
|
|
90
|
+
"surface-on-surface": string;
|
|
91
|
+
"surface-surface-variant": string;
|
|
92
|
+
"surface-on-surface-variant": string;
|
|
93
|
+
"surface-surface-disabled": string;
|
|
94
|
+
"surface-on-surface-disabled": string;
|
|
95
|
+
"surface-surface-primary": string;
|
|
96
|
+
"surface-on-surface-primary": string;
|
|
97
|
+
"surface-inverse-surface": string;
|
|
98
|
+
"surface-inverse-on-surface": string;
|
|
99
|
+
"surface-surface-container-lowest": string;
|
|
100
|
+
"surface-surface-container-low": string;
|
|
101
|
+
"surface-surface-container": string;
|
|
102
|
+
"surface-surface-container-high": string;
|
|
103
|
+
"surface-surface-container-highest": string;
|
|
104
|
+
"surface-background": string;
|
|
105
|
+
"surface-on-background": string;
|
|
106
|
+
"outline-outline": string;
|
|
107
|
+
"outline-outline-variant": string;
|
|
108
|
+
"outline-outline-primary": string;
|
|
109
|
+
"outline-outline-disabled": string;
|
|
110
|
+
"outline-outline-focus": string;
|
|
111
|
+
"states-info": string;
|
|
112
|
+
"states-info-hover": string;
|
|
113
|
+
"states-info-pressed": string;
|
|
114
|
+
"states-on-info": string;
|
|
115
|
+
"states-info-container": string;
|
|
116
|
+
"states-on-info-container": string;
|
|
117
|
+
"states-success": string;
|
|
118
|
+
"states-success-hover": string;
|
|
119
|
+
"states-success-pressed": string;
|
|
120
|
+
"states-on-success": string;
|
|
121
|
+
"states-success-container": string;
|
|
122
|
+
"states-on-success-container": string;
|
|
123
|
+
"states-warning": string;
|
|
124
|
+
"states-warning-hover": string;
|
|
125
|
+
"states-warning-pressed": string;
|
|
126
|
+
"states-on-warning": string;
|
|
127
|
+
"states-warning-container": string;
|
|
128
|
+
"states-on-warning-container": string;
|
|
129
|
+
"states-error": string;
|
|
130
|
+
"states-error-hover": string;
|
|
131
|
+
"states-error-pressed": string;
|
|
132
|
+
"states-on-error": string;
|
|
133
|
+
"states-error-container": string;
|
|
134
|
+
"states-on-error-container": string;
|
|
135
|
+
"fixed-fixed-on-image": string;
|
|
136
|
+
"other-sale": string;
|
|
137
|
+
"other-shadow": string;
|
|
138
|
+
"overlay-dark-highest": string;
|
|
139
|
+
"overlay-dark-high": string;
|
|
140
|
+
"overlay-dark": string;
|
|
141
|
+
"overlay-dark-low": string;
|
|
142
|
+
"overlay-dark-lowest": string;
|
|
143
|
+
"overlay-light-highest": string;
|
|
144
|
+
"overlay-light-high": string;
|
|
145
|
+
"overlay-light": string;
|
|
146
|
+
"overlay-light-low": string;
|
|
147
|
+
"overlay-light-lowest": string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export { colors, designTokenTheme };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const colors = {
|
|
2
|
+
"brand-primary": "#543B95",
|
|
3
|
+
"brand-primary-hover": "#45317A",
|
|
4
|
+
"brand-primary-pressed": "#45317A",
|
|
5
|
+
"brand-on-primary": "#FFFFFF",
|
|
6
|
+
"brand-secondary": "#E1D5FF",
|
|
7
|
+
"brand-secondary-hover": "#D0BCFC",
|
|
8
|
+
"brand-secondary-pressed": "#D0BCFC",
|
|
9
|
+
"brand-on-secondary": "#3A276A",
|
|
10
|
+
"brand-tertiary": "#F1F1F1",
|
|
11
|
+
"brand-tertiary-hover": "#E3E3E3",
|
|
12
|
+
"brand-tertiary-pressed": "#E3E3E3",
|
|
13
|
+
"brand-on-tertiary": "#1D1B20",
|
|
14
|
+
"surface-surface": "#FFFFFF",
|
|
15
|
+
"surface-on-surface": "#1D1B20",
|
|
16
|
+
"surface-surface-variant": "#FBF6FF",
|
|
17
|
+
"surface-on-surface-variant": "#696470",
|
|
18
|
+
"surface-surface-disabled": "#E8E8E8",
|
|
19
|
+
"surface-on-surface-disabled": "#9893A6",
|
|
20
|
+
"surface-surface-primary": "#D0BCFF",
|
|
21
|
+
"surface-on-surface-primary": "#3A276A",
|
|
22
|
+
"surface-inverse-surface": "#322F35",
|
|
23
|
+
"surface-inverse-on-surface": "#FFFFFF",
|
|
24
|
+
"surface-surface-container-lowest": "#FFFFFF",
|
|
25
|
+
"surface-surface-container-low": "#F7F2FA",
|
|
26
|
+
"surface-surface-container": "#F3EDF7",
|
|
27
|
+
"surface-surface-container-high": "#ECE6F0",
|
|
28
|
+
"surface-surface-container-highest": "#E6E0E9",
|
|
29
|
+
"surface-background": "#FFFFFF",
|
|
30
|
+
"surface-on-background": "#1D1B20",
|
|
31
|
+
"outline-outline": "#79747E",
|
|
32
|
+
"outline-outline-variant": "#CAC4D0",
|
|
33
|
+
"outline-outline-primary": "#543B95",
|
|
34
|
+
"outline-outline-disabled": "#9893A6",
|
|
35
|
+
"outline-outline-focus": "#1722F9",
|
|
36
|
+
"states-info": "#0288D1",
|
|
37
|
+
"states-info-hover": "#0275B4",
|
|
38
|
+
"states-info-pressed": "#0275B4",
|
|
39
|
+
"states-on-info": "#FFFFFF",
|
|
40
|
+
"states-info-container": "#BBE7FF",
|
|
41
|
+
"states-on-info-container": "#013957",
|
|
42
|
+
"states-success": "#15B31C",
|
|
43
|
+
"states-success-hover": "#108C16",
|
|
44
|
+
"states-success-pressed": "#108C16",
|
|
45
|
+
"states-on-success": "#FFFFFF",
|
|
46
|
+
"states-success-container": "#C9FFCB",
|
|
47
|
+
"states-on-success-container": "#09480C",
|
|
48
|
+
"states-warning": "#F57C00",
|
|
49
|
+
"states-warning-hover": "#C26200",
|
|
50
|
+
"states-warning-pressed": "#C26200",
|
|
51
|
+
"states-on-warning": "#FFFFFF",
|
|
52
|
+
"states-warning-container": "#FFE1C2",
|
|
53
|
+
"states-on-warning-container": "#874400",
|
|
54
|
+
"states-error": "#D12D24",
|
|
55
|
+
"states-error-hover": "#AB251D",
|
|
56
|
+
"states-error-pressed": "#AB251D",
|
|
57
|
+
"states-on-error": "#FFFFFF",
|
|
58
|
+
"states-error-container": "#F9DEDC",
|
|
59
|
+
"states-on-error-container": "#852221",
|
|
60
|
+
"fixed-fixed-on-image": "#FFFFFF",
|
|
61
|
+
"other-sale": "#D12D24",
|
|
62
|
+
"other-shadow": "#000000",
|
|
63
|
+
"overlay-dark-highest": "rgba(0, 0, 0, 0.75)",
|
|
64
|
+
"overlay-dark-high": "rgba(0, 0, 0, 0.5)",
|
|
65
|
+
"overlay-dark": "rgba(0, 0, 0, 0.30000001192092896)",
|
|
66
|
+
"overlay-dark-low": "rgba(0, 0, 0, 0.11999999731779099)",
|
|
67
|
+
"overlay-dark-lowest": "rgba(0, 0, 0, 0.07999999821186066)",
|
|
68
|
+
"overlay-light-highest": "rgba(255, 255, 255, 0.75)",
|
|
69
|
+
"overlay-light-high": "rgba(255, 255, 255, 0.5)",
|
|
70
|
+
"overlay-light": "rgba(255, 255, 255, 0.25)",
|
|
71
|
+
"overlay-light-low": "rgba(255, 255, 255, 0.11999999731779099)",
|
|
72
|
+
"overlay-light-lowest": "rgba(255, 255, 255, 0.07999999821186066)"
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const designTokenTheme = { colors };
|
|
76
|
+
|
|
77
|
+
export { colors, designTokenTheme };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@theme static {
|
|
2
|
+
--color-brand-primary: #543B95;
|
|
3
|
+
--color-brand-primary-hover: #45317A;
|
|
4
|
+
--color-brand-primary-pressed: #45317A;
|
|
5
|
+
--color-brand-on-primary: #FFFFFF;
|
|
6
|
+
--color-brand-secondary: #E1D5FF;
|
|
7
|
+
--color-brand-secondary-hover: #D0BCFC;
|
|
8
|
+
--color-brand-secondary-pressed: #D0BCFC;
|
|
9
|
+
--color-brand-on-secondary: #3A276A;
|
|
10
|
+
--color-brand-tertiary: #F1F1F1;
|
|
11
|
+
--color-brand-tertiary-hover: #E3E3E3;
|
|
12
|
+
--color-brand-tertiary-pressed: #E3E3E3;
|
|
13
|
+
--color-brand-on-tertiary: #1D1B20;
|
|
14
|
+
--color-surface-surface: #FFFFFF;
|
|
15
|
+
--color-surface-on-surface: #1D1B20;
|
|
16
|
+
--color-surface-surface-variant: #FBF6FF;
|
|
17
|
+
--color-surface-on-surface-variant: #696470;
|
|
18
|
+
--color-surface-surface-disabled: #E8E8E8;
|
|
19
|
+
--color-surface-on-surface-disabled: #9893A6;
|
|
20
|
+
--color-surface-surface-primary: #D0BCFF;
|
|
21
|
+
--color-surface-on-surface-primary: #3A276A;
|
|
22
|
+
--color-surface-inverse-surface: #322F35;
|
|
23
|
+
--color-surface-inverse-on-surface: #FFFFFF;
|
|
24
|
+
--color-surface-surface-container-lowest: #FFFFFF;
|
|
25
|
+
--color-surface-surface-container-low: #F7F2FA;
|
|
26
|
+
--color-surface-surface-container: #F3EDF7;
|
|
27
|
+
--color-surface-surface-container-high: #ECE6F0;
|
|
28
|
+
--color-surface-surface-container-highest: #E6E0E9;
|
|
29
|
+
--color-surface-background: #FFFFFF;
|
|
30
|
+
--color-surface-on-background: #1D1B20;
|
|
31
|
+
--color-outline-outline: #79747E;
|
|
32
|
+
--color-outline-outline-variant: #CAC4D0;
|
|
33
|
+
--color-outline-outline-primary: #543B95;
|
|
34
|
+
--color-outline-outline-disabled: #9893A6;
|
|
35
|
+
--color-outline-outline-focus: #1722F9;
|
|
36
|
+
--color-states-info: #0288D1;
|
|
37
|
+
--color-states-info-hover: #0275B4;
|
|
38
|
+
--color-states-info-pressed: #0275B4;
|
|
39
|
+
--color-states-on-info: #FFFFFF;
|
|
40
|
+
--color-states-info-container: #BBE7FF;
|
|
41
|
+
--color-states-on-info-container: #013957;
|
|
42
|
+
--color-states-success: #15B31C;
|
|
43
|
+
--color-states-success-hover: #108C16;
|
|
44
|
+
--color-states-success-pressed: #108C16;
|
|
45
|
+
--color-states-on-success: #FFFFFF;
|
|
46
|
+
--color-states-success-container: #C9FFCB;
|
|
47
|
+
--color-states-on-success-container: #09480C;
|
|
48
|
+
--color-states-warning: #F57C00;
|
|
49
|
+
--color-states-warning-hover: #C26200;
|
|
50
|
+
--color-states-warning-pressed: #C26200;
|
|
51
|
+
--color-states-on-warning: #FFFFFF;
|
|
52
|
+
--color-states-warning-container: #FFE1C2;
|
|
53
|
+
--color-states-on-warning-container: #874400;
|
|
54
|
+
--color-states-error: #D12D24;
|
|
55
|
+
--color-states-error-hover: #AB251D;
|
|
56
|
+
--color-states-error-pressed: #AB251D;
|
|
57
|
+
--color-states-on-error: #FFFFFF;
|
|
58
|
+
--color-states-error-container: #F9DEDC;
|
|
59
|
+
--color-states-on-error-container: #852221;
|
|
60
|
+
--color-fixed-fixed-on-image: #FFFFFF;
|
|
61
|
+
--color-other-sale: #D12D24;
|
|
62
|
+
--color-other-shadow: #000000;
|
|
63
|
+
--color-overlay-dark-highest: rgba(0, 0, 0, 0.75);
|
|
64
|
+
--color-overlay-dark-high: rgba(0, 0, 0, 0.5);
|
|
65
|
+
--color-overlay-dark: rgba(0, 0, 0, 0.30000001192092896);
|
|
66
|
+
--color-overlay-dark-low: rgba(0, 0, 0, 0.11999999731779099);
|
|
67
|
+
--color-overlay-dark-lowest: rgba(0, 0, 0, 0.07999999821186066);
|
|
68
|
+
--color-overlay-light-highest: rgba(255, 255, 255, 0.75);
|
|
69
|
+
--color-overlay-light-high: rgba(255, 255, 255, 0.5);
|
|
70
|
+
--color-overlay-light: rgba(255, 255, 255, 0.25);
|
|
71
|
+
--color-overlay-light-low: rgba(255, 255, 255, 0.11999999731779099);
|
|
72
|
+
--color-overlay-light-lowest: rgba(255, 255, 255, 0.07999999821186066);
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/design-tokens",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Shopware Frontends design tokens as TypeScript and a Tailwind CSS v4 theme",
|
|
5
|
+
"author": "Shopware",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/shopware/frontends.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://developer.shopware.com/frontends/",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"shopware",
|
|
14
|
+
"design tokens",
|
|
15
|
+
"tailwindcss",
|
|
16
|
+
"css"
|
|
17
|
+
],
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/shopware/frontends/issues"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
25
|
+
"module": "./dist/index.mjs",
|
|
26
|
+
"types": "./dist/index.d.mts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"./tailwind.css": "./dist/tailwind.css"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@typescript/native-preview": "7.0.0-dev.20260205.1",
|
|
41
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
42
|
+
"tsconfig": "0.0.0",
|
|
43
|
+
"unbuild": "3.6.1",
|
|
44
|
+
"vitest": "5.0.5"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "unbuild",
|
|
48
|
+
"lint": "oxlint . && oxfmt --check .",
|
|
49
|
+
"lint:fix": "oxlint --fix . && oxfmt --write . && pnpm run typecheck",
|
|
50
|
+
"typecheck": "tsgo --noEmit",
|
|
51
|
+
"test": "vitest run",
|
|
52
|
+
"test:watch": "vitest"
|
|
53
|
+
}
|
|
6
54
|
}
|