@pass-culture/design-system 0.1.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 +373 -0
- package/README.md +87 -0
- package/lib/global/font-faces.css +45 -0
- package/lib/global/font-preloads.js +8 -0
- package/lib/global/font-preloads.ts +12 -0
- package/lib/jeune/dark.mobile.js +167 -0
- package/lib/jeune/dark.mobile.ts +168 -0
- package/lib/jeune/dark.web.js +167 -0
- package/lib/jeune/dark.web.ts +168 -0
- package/lib/jeune/light.mobile.js +167 -0
- package/lib/jeune/light.mobile.ts +168 -0
- package/lib/jeune/light.web.js +167 -0
- package/lib/jeune/light.web.ts +168 -0
- package/lib/pro/dark.css +121 -0
- package/lib/pro/dark.web.js +167 -0
- package/lib/pro/dark.web.ts +168 -0
- package/lib/pro/light.css +121 -0
- package/lib/pro/light.web.js +167 -0
- package/lib/pro/light.web.ts +168 -0
- package/package.json +23 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
* Generated on Thu, 19 Jun 2025 13:34:05 GMT
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.theme = void 0;
|
|
8
|
+
exports.theme = {
|
|
9
|
+
"color": {
|
|
10
|
+
"text": {
|
|
11
|
+
"default": "#161617",
|
|
12
|
+
"subtle": "#696a6f",
|
|
13
|
+
"error": "#a20121",
|
|
14
|
+
"warning": "#664900",
|
|
15
|
+
"disabled": "#696a6f",
|
|
16
|
+
"success": "#15884f",
|
|
17
|
+
"brandPrimary": "#6123df",
|
|
18
|
+
"brandPrimaryHover": "#320096",
|
|
19
|
+
"brandSecondary": "#320096",
|
|
20
|
+
"brandSecondaryHover": "#25026c",
|
|
21
|
+
"inverted": "#ffffff",
|
|
22
|
+
"lockedInverted": "#ffffff",
|
|
23
|
+
"locked": "#161617"
|
|
24
|
+
},
|
|
25
|
+
"border": {
|
|
26
|
+
"default": "#90949d",
|
|
27
|
+
"subtle": "#cbcdd2",
|
|
28
|
+
"disabled": "#cbcdd2",
|
|
29
|
+
"error": "#a20121",
|
|
30
|
+
"success": "#15884f",
|
|
31
|
+
"selected": "#161617",
|
|
32
|
+
"focused": "#161617",
|
|
33
|
+
"brandPrimary": "#6123df",
|
|
34
|
+
"brandPrimaryHover": "#320096",
|
|
35
|
+
"brandSecondary": "#320096",
|
|
36
|
+
"brandSecondaryHover": "#25026c",
|
|
37
|
+
"inverted": "#ffffff",
|
|
38
|
+
"decorative01": "#d63d00",
|
|
39
|
+
"decorative02": "#14a0be",
|
|
40
|
+
"decorative03": "#0e8474",
|
|
41
|
+
"decorative04": "#320096",
|
|
42
|
+
"decorative05": "#eb0055"
|
|
43
|
+
},
|
|
44
|
+
"outline": {
|
|
45
|
+
"default": "#161617",
|
|
46
|
+
"error": "#a20121",
|
|
47
|
+
"inverted": "#ffffff"
|
|
48
|
+
},
|
|
49
|
+
"background": {
|
|
50
|
+
"default": "#ffffff",
|
|
51
|
+
"subtle": "#f1f1f4",
|
|
52
|
+
"disabled": "#f1f1f4",
|
|
53
|
+
"error": "#f8b2c0",
|
|
54
|
+
"success": "#91e1b5",
|
|
55
|
+
"warning": "#f9df81",
|
|
56
|
+
"info": "#f3edff",
|
|
57
|
+
"hover": "#f1f1f4",
|
|
58
|
+
"brandPrimary": "#6123df",
|
|
59
|
+
"brandPrimaryHover": "#320096",
|
|
60
|
+
"brandPrimarySelected": "#f3edff",
|
|
61
|
+
"brandSecondary": "#320096",
|
|
62
|
+
"brandSecondaryHover": "#25026c",
|
|
63
|
+
"locked": "#ffffff",
|
|
64
|
+
"lockedInverted": "#161617",
|
|
65
|
+
"lockedBrandPrimary": "#6123df",
|
|
66
|
+
"lockedBrandSecondary": "#320096",
|
|
67
|
+
"inverted": "#161617",
|
|
68
|
+
"decorative01": "#ffeae2",
|
|
69
|
+
"decorative02": "#9be3f3",
|
|
70
|
+
"decorative03": "#94f0d6",
|
|
71
|
+
"decorative04": "#c1a3ff",
|
|
72
|
+
"decorative05": "#ffa5c0",
|
|
73
|
+
"headline": "#f3edff",
|
|
74
|
+
"bookclub": "#dcf3f8"
|
|
75
|
+
},
|
|
76
|
+
"icon": {
|
|
77
|
+
"default": "#161617",
|
|
78
|
+
"disabled": "#696a6f",
|
|
79
|
+
"subtle": "#696a6f",
|
|
80
|
+
"info": "#320096",
|
|
81
|
+
"error": "#a20121",
|
|
82
|
+
"success": "#15884f",
|
|
83
|
+
"warning": "#e1a605",
|
|
84
|
+
"brandPrimary": "#6123df",
|
|
85
|
+
"brandPrimaryHover": "#320096",
|
|
86
|
+
"brandSecondary": "#320096",
|
|
87
|
+
"brandSecondaryHover": "#25026c",
|
|
88
|
+
"inverted": "#ffffff",
|
|
89
|
+
"lockedInverted": "#ffffff",
|
|
90
|
+
"headline": "#6123df",
|
|
91
|
+
"bookclub": "#14a0be"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"separator": {
|
|
95
|
+
"color": {
|
|
96
|
+
"default": "#90949d",
|
|
97
|
+
"subtle": "#cbcdd2"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"typography": {
|
|
101
|
+
"title1": {
|
|
102
|
+
"fontFamily": "Montserrat-Bold",
|
|
103
|
+
"fontSize": "1.75rem",
|
|
104
|
+
"lineHeight": "2.8rem"
|
|
105
|
+
},
|
|
106
|
+
"title2": {
|
|
107
|
+
"fontFamily": "Montserrat-Bold",
|
|
108
|
+
"fontSize": "1.3125rem",
|
|
109
|
+
"lineHeight": "2.1rem"
|
|
110
|
+
},
|
|
111
|
+
"title3": {
|
|
112
|
+
"fontFamily": "Montserrat-Bold",
|
|
113
|
+
"fontSize": "1.1875rem",
|
|
114
|
+
"lineHeight": "1.9rem"
|
|
115
|
+
},
|
|
116
|
+
"title4": {
|
|
117
|
+
"fontFamily": "Montserrat-Bold",
|
|
118
|
+
"fontSize": "1.0625rem",
|
|
119
|
+
"lineHeight": "1.7rem"
|
|
120
|
+
},
|
|
121
|
+
"body": {
|
|
122
|
+
"fontFamily": "Montserrat-Medium",
|
|
123
|
+
"fontSize": "1rem",
|
|
124
|
+
"lineHeight": "1.6rem"
|
|
125
|
+
},
|
|
126
|
+
"bodyS": {
|
|
127
|
+
"fontFamily": "Montserrat-Medium",
|
|
128
|
+
"fontSize": "0.875rem",
|
|
129
|
+
"lineHeight": "1.4rem"
|
|
130
|
+
},
|
|
131
|
+
"bodyXs": {
|
|
132
|
+
"fontFamily": "Montserrat-Medium",
|
|
133
|
+
"fontSize": "0.75rem",
|
|
134
|
+
"lineHeight": "1.2rem"
|
|
135
|
+
},
|
|
136
|
+
"bodyAccent": {
|
|
137
|
+
"fontFamily": "Montserrat-SemiBold",
|
|
138
|
+
"fontSize": "1rem",
|
|
139
|
+
"lineHeight": "1.6rem"
|
|
140
|
+
},
|
|
141
|
+
"bodyAccentS": {
|
|
142
|
+
"fontFamily": "Montserrat-SemiBold",
|
|
143
|
+
"fontSize": "0.875rem",
|
|
144
|
+
"lineHeight": "1.4rem"
|
|
145
|
+
},
|
|
146
|
+
"bodyAccentXs": {
|
|
147
|
+
"fontFamily": "Montserrat-SemiBold",
|
|
148
|
+
"fontSize": "0.75rem",
|
|
149
|
+
"lineHeight": "1.2rem"
|
|
150
|
+
},
|
|
151
|
+
"bodyItalic": {
|
|
152
|
+
"fontFamily": "Montserrat-MediumItalic",
|
|
153
|
+
"fontSize": "1rem",
|
|
154
|
+
"lineHeight": "1.6rem"
|
|
155
|
+
},
|
|
156
|
+
"bodyItalicAccent": {
|
|
157
|
+
"fontFamily": "Montserrat-SemiBoldItalic",
|
|
158
|
+
"fontSize": "1rem",
|
|
159
|
+
"lineHeight": "1.6rem"
|
|
160
|
+
},
|
|
161
|
+
"button": {
|
|
162
|
+
"fontFamily": "Montserrat-Bold",
|
|
163
|
+
"fontSize": "1rem",
|
|
164
|
+
"lineHeight": "1.6rem"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
* Generated on Thu, 19 Jun 2025 13:34:05 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const theme = {
|
|
7
|
+
"color": {
|
|
8
|
+
"text": {
|
|
9
|
+
"default": "#161617",
|
|
10
|
+
"subtle": "#696a6f",
|
|
11
|
+
"error": "#a20121",
|
|
12
|
+
"warning": "#664900",
|
|
13
|
+
"disabled": "#696a6f",
|
|
14
|
+
"success": "#15884f",
|
|
15
|
+
"brandPrimary": "#6123df",
|
|
16
|
+
"brandPrimaryHover": "#320096",
|
|
17
|
+
"brandSecondary": "#320096",
|
|
18
|
+
"brandSecondaryHover": "#25026c",
|
|
19
|
+
"inverted": "#ffffff",
|
|
20
|
+
"lockedInverted": "#ffffff",
|
|
21
|
+
"locked": "#161617"
|
|
22
|
+
},
|
|
23
|
+
"border": {
|
|
24
|
+
"default": "#90949d",
|
|
25
|
+
"subtle": "#cbcdd2",
|
|
26
|
+
"disabled": "#cbcdd2",
|
|
27
|
+
"error": "#a20121",
|
|
28
|
+
"success": "#15884f",
|
|
29
|
+
"selected": "#161617",
|
|
30
|
+
"focused": "#161617",
|
|
31
|
+
"brandPrimary": "#6123df",
|
|
32
|
+
"brandPrimaryHover": "#320096",
|
|
33
|
+
"brandSecondary": "#320096",
|
|
34
|
+
"brandSecondaryHover": "#25026c",
|
|
35
|
+
"inverted": "#ffffff",
|
|
36
|
+
"decorative01": "#d63d00",
|
|
37
|
+
"decorative02": "#14a0be",
|
|
38
|
+
"decorative03": "#0e8474",
|
|
39
|
+
"decorative04": "#320096",
|
|
40
|
+
"decorative05": "#eb0055"
|
|
41
|
+
},
|
|
42
|
+
"outline": {
|
|
43
|
+
"default": "#161617",
|
|
44
|
+
"error": "#a20121",
|
|
45
|
+
"inverted": "#ffffff"
|
|
46
|
+
},
|
|
47
|
+
"background": {
|
|
48
|
+
"default": "#ffffff",
|
|
49
|
+
"subtle": "#f1f1f4",
|
|
50
|
+
"disabled": "#f1f1f4",
|
|
51
|
+
"error": "#f8b2c0",
|
|
52
|
+
"success": "#91e1b5",
|
|
53
|
+
"warning": "#f9df81",
|
|
54
|
+
"info": "#f3edff",
|
|
55
|
+
"hover": "#f1f1f4",
|
|
56
|
+
"brandPrimary": "#6123df",
|
|
57
|
+
"brandPrimaryHover": "#320096",
|
|
58
|
+
"brandPrimarySelected": "#f3edff",
|
|
59
|
+
"brandSecondary": "#320096",
|
|
60
|
+
"brandSecondaryHover": "#25026c",
|
|
61
|
+
"locked": "#ffffff",
|
|
62
|
+
"lockedInverted": "#161617",
|
|
63
|
+
"lockedBrandPrimary": "#6123df",
|
|
64
|
+
"lockedBrandSecondary": "#320096",
|
|
65
|
+
"inverted": "#161617",
|
|
66
|
+
"decorative01": "#ffeae2",
|
|
67
|
+
"decorative02": "#9be3f3",
|
|
68
|
+
"decorative03": "#94f0d6",
|
|
69
|
+
"decorative04": "#c1a3ff",
|
|
70
|
+
"decorative05": "#ffa5c0",
|
|
71
|
+
"headline": "#f3edff",
|
|
72
|
+
"bookclub": "#dcf3f8"
|
|
73
|
+
},
|
|
74
|
+
"icon": {
|
|
75
|
+
"default": "#161617",
|
|
76
|
+
"disabled": "#696a6f",
|
|
77
|
+
"subtle": "#696a6f",
|
|
78
|
+
"info": "#320096",
|
|
79
|
+
"error": "#a20121",
|
|
80
|
+
"success": "#15884f",
|
|
81
|
+
"warning": "#e1a605",
|
|
82
|
+
"brandPrimary": "#6123df",
|
|
83
|
+
"brandPrimaryHover": "#320096",
|
|
84
|
+
"brandSecondary": "#320096",
|
|
85
|
+
"brandSecondaryHover": "#25026c",
|
|
86
|
+
"inverted": "#ffffff",
|
|
87
|
+
"lockedInverted": "#ffffff",
|
|
88
|
+
"headline": "#6123df",
|
|
89
|
+
"bookclub": "#14a0be"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"separator": {
|
|
93
|
+
"color": {
|
|
94
|
+
"default": "#90949d",
|
|
95
|
+
"subtle": "#cbcdd2"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"typography": {
|
|
99
|
+
"title1": {
|
|
100
|
+
"fontFamily": "Montserrat-Bold",
|
|
101
|
+
"fontSize": "1.75rem",
|
|
102
|
+
"lineHeight": "2.8rem"
|
|
103
|
+
},
|
|
104
|
+
"title2": {
|
|
105
|
+
"fontFamily": "Montserrat-Bold",
|
|
106
|
+
"fontSize": "1.3125rem",
|
|
107
|
+
"lineHeight": "2.1rem"
|
|
108
|
+
},
|
|
109
|
+
"title3": {
|
|
110
|
+
"fontFamily": "Montserrat-Bold",
|
|
111
|
+
"fontSize": "1.1875rem",
|
|
112
|
+
"lineHeight": "1.9rem"
|
|
113
|
+
},
|
|
114
|
+
"title4": {
|
|
115
|
+
"fontFamily": "Montserrat-Bold",
|
|
116
|
+
"fontSize": "1.0625rem",
|
|
117
|
+
"lineHeight": "1.7rem"
|
|
118
|
+
},
|
|
119
|
+
"body": {
|
|
120
|
+
"fontFamily": "Montserrat-Medium",
|
|
121
|
+
"fontSize": "1rem",
|
|
122
|
+
"lineHeight": "1.6rem"
|
|
123
|
+
},
|
|
124
|
+
"bodyS": {
|
|
125
|
+
"fontFamily": "Montserrat-Medium",
|
|
126
|
+
"fontSize": "0.875rem",
|
|
127
|
+
"lineHeight": "1.4rem"
|
|
128
|
+
},
|
|
129
|
+
"bodyXs": {
|
|
130
|
+
"fontFamily": "Montserrat-Medium",
|
|
131
|
+
"fontSize": "0.75rem",
|
|
132
|
+
"lineHeight": "1.2rem"
|
|
133
|
+
},
|
|
134
|
+
"bodyAccent": {
|
|
135
|
+
"fontFamily": "Montserrat-SemiBold",
|
|
136
|
+
"fontSize": "1rem",
|
|
137
|
+
"lineHeight": "1.6rem"
|
|
138
|
+
},
|
|
139
|
+
"bodyAccentS": {
|
|
140
|
+
"fontFamily": "Montserrat-SemiBold",
|
|
141
|
+
"fontSize": "0.875rem",
|
|
142
|
+
"lineHeight": "1.4rem"
|
|
143
|
+
},
|
|
144
|
+
"bodyAccentXs": {
|
|
145
|
+
"fontFamily": "Montserrat-SemiBold",
|
|
146
|
+
"fontSize": "0.75rem",
|
|
147
|
+
"lineHeight": "1.2rem"
|
|
148
|
+
},
|
|
149
|
+
"bodyItalic": {
|
|
150
|
+
"fontFamily": "Montserrat-MediumItalic",
|
|
151
|
+
"fontSize": "1rem",
|
|
152
|
+
"lineHeight": "1.6rem"
|
|
153
|
+
},
|
|
154
|
+
"bodyItalicAccent": {
|
|
155
|
+
"fontFamily": "Montserrat-SemiBoldItalic",
|
|
156
|
+
"fontSize": "1rem",
|
|
157
|
+
"lineHeight": "1.6rem"
|
|
158
|
+
},
|
|
159
|
+
"button": {
|
|
160
|
+
"fontFamily": "Montserrat-Bold",
|
|
161
|
+
"fontSize": "1rem",
|
|
162
|
+
"lineHeight": "1.6rem"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
} as const;
|
|
166
|
+
|
|
167
|
+
export type ColorsType = "#161617" | "#696a6f" | "#a20121" | "#664900" | "#15884f" | "#6123df" | "#320096" | "#25026c" | "#ffffff" | "#90949d" | "#cbcdd2" | "#d63d00" | "#14a0be" | "#0e8474" | "#eb0055" | "#f1f1f4" | "#f8b2c0" | "#91e1b5" | "#f9df81" | "#f3edff" | "#ffeae2" | "#9be3f3" | "#94f0d6" | "#c1a3ff" | "#ffa5c0" | "#dcf3f8" | "#e1a605";
|
|
168
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pass-culture/design-system",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"repository": "git@github.com:pass-culture/design-system.git",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"preversion": "yarn install && yarn run build && yarn run test-ci",
|
|
11
|
+
"build": "tsx src/build.ts && yarn run tsc lib/**/*.ts",
|
|
12
|
+
"test": "vitest",
|
|
13
|
+
"test-ci": "vitest run"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/node": "^20.19.1",
|
|
17
|
+
"style-dictionary": "^4.4.0",
|
|
18
|
+
"tsx": "^4.20.3",
|
|
19
|
+
"typescript": "^5.8.3",
|
|
20
|
+
"vitest": "^3.1.3"
|
|
21
|
+
},
|
|
22
|
+
"packageManager": "yarn@3.6.4"
|
|
23
|
+
}
|