@myelmut/design-system 0.1.2 → 0.1.3
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 +30 -5
- package/assets/fonts/PPMori-Regular.woff2 +0 -0
- package/assets/fonts/PPMori-RegularItalic.woff2 +0 -0
- package/assets/fonts/PPMori-SemiBold.woff2 +0 -0
- package/assets/fonts/PPPangaia-Medium.woff2 +0 -0
- package/assets/fonts/PPPangaia-MediumItalic.woff2 +0 -0
- package/assets/fonts/PPPangaia-Ultralight.woff2 +0 -0
- package/assets/illustrations/balls-light.webp +0 -0
- package/assets/illustrations/balls.webp +0 -0
- package/assets/illustrations/basket-light.webp +0 -0
- package/assets/illustrations/basket.webp +0 -0
- package/assets/illustrations/bowl-2-light.webp +0 -0
- package/assets/illustrations/bowl-2.webp +0 -0
- package/assets/illustrations/bowl-light.webp +0 -0
- package/assets/illustrations/bowl.webp +0 -0
- package/assets/illustrations/box-2-light.webp +0 -0
- package/assets/illustrations/box-2.webp +0 -0
- package/assets/illustrations/box-light.webp +0 -0
- package/assets/illustrations/box.webp +0 -0
- package/assets/illustrations/calendar-light.webp +0 -0
- package/assets/illustrations/calendar.webp +0 -0
- package/assets/illustrations/can-light.webp +0 -0
- package/assets/illustrations/can.webp +0 -0
- package/assets/illustrations/carrot-light.webp +0 -0
- package/assets/illustrations/carrot.webp +0 -0
- package/assets/illustrations/cat-light.webp +0 -0
- package/assets/illustrations/cat.webp +0 -0
- package/assets/illustrations/check-rounded.webp +0 -0
- package/assets/illustrations/chicken-light.webp +0 -0
- package/assets/illustrations/chicken.webp +0 -0
- package/assets/illustrations/cross-rounded.webp +0 -0
- package/assets/illustrations/crown-light.webp +0 -0
- package/assets/illustrations/crown.webp +0 -0
- package/assets/illustrations/dog-light.webp +0 -0
- package/assets/illustrations/dog.webp +0 -0
- package/assets/illustrations/face-light.webp +0 -0
- package/assets/illustrations/face.webp +0 -0
- package/assets/illustrations/food-bag-light.webp +0 -0
- package/assets/illustrations/food-bag.webp +0 -0
- package/assets/illustrations/france-light.webp +0 -0
- package/assets/illustrations/france.webp +0 -0
- package/assets/illustrations/fridge-light.webp +0 -0
- package/assets/illustrations/fridge.webp +0 -0
- package/assets/illustrations/glasses-light.webp +0 -0
- package/assets/illustrations/glasses.webp +0 -0
- package/assets/illustrations/half-label-light.webp +0 -0
- package/assets/illustrations/half-label.webp +0 -0
- package/assets/illustrations/kitten-light.webp +0 -0
- package/assets/illustrations/kitten.webp +0 -0
- package/assets/illustrations/label-light.webp +0 -0
- package/assets/illustrations/label.webp +0 -0
- package/assets/illustrations/leaf-light.webp +0 -0
- package/assets/illustrations/leaf.webp +0 -0
- package/assets/illustrations/liquid-light.webp +0 -0
- package/assets/illustrations/liquid.webp +0 -0
- package/assets/illustrations/magnifying-glass-light.webp +0 -0
- package/assets/illustrations/magnifying-glass.webp +0 -0
- package/assets/illustrations/meat-light.webp +0 -0
- package/assets/illustrations/meat.webp +0 -0
- package/assets/illustrations/molecule-light.webp +0 -0
- package/assets/illustrations/molecule.webp +0 -0
- package/assets/illustrations/paws-light.webp +0 -0
- package/assets/illustrations/paws.webp +0 -0
- package/assets/illustrations/plate-light.webp +0 -0
- package/assets/illustrations/plate.webp +0 -0
- package/assets/illustrations/pot-big-2-light.webp +0 -0
- package/assets/illustrations/pot-big-2.webp +0 -0
- package/assets/illustrations/pot-big-light.webp +0 -0
- package/assets/illustrations/pot-big.webp +0 -0
- package/assets/illustrations/pot-light.webp +0 -0
- package/assets/illustrations/pot.webp +0 -0
- package/assets/illustrations/puppy-light.webp +0 -0
- package/assets/illustrations/puppy.webp +0 -0
- package/assets/illustrations/quantity-light.webp +0 -0
- package/assets/illustrations/quantity.webp +0 -0
- package/assets/illustrations/sausage-light.webp +0 -0
- package/assets/illustrations/sausage.webp +0 -0
- package/assets/illustrations/sausages-light.webp +0 -0
- package/assets/illustrations/sausages.webp +0 -0
- package/assets/illustrations/skeleton-light.webp +0 -0
- package/assets/illustrations/skeleton.webp +0 -0
- package/assets/illustrations/sofa-light.webp +0 -0
- package/assets/illustrations/sofa.webp +0 -0
- package/assets/illustrations/sport-light.webp +0 -0
- package/assets/illustrations/sport.webp +0 -0
- package/assets/illustrations/steak-light.webp +0 -0
- package/assets/illustrations/steak.webp +0 -0
- package/assets/illustrations/truck-light.webp +0 -0
- package/assets/illustrations/truck.webp +0 -0
- package/assets/illustrations/warning-light.webp +0 -0
- package/assets/illustrations/warning.webp +0 -0
- package/assets/images/cat.webp +0 -0
- package/assets/images/dog.webp +0 -0
- package/assets/images/dogs/milou-mobile.webp +0 -0
- package/assets/images/dogs/milou-mobile@2x.webp +0 -0
- package/assets/images/dogs/milou.webp +0 -0
- package/assets/images/dogs/milou@2x.webp +0 -0
- package/assets/images/elmut-sausage-chicken.webp +0 -0
- package/assets/images/elmut-sausage-chicken@2x.webp +0 -0
- package/assets/images/home-video-placeholder-mobile.webp +0 -0
- package/assets/images/home-video-placeholder-mobile@2x.webp +0 -0
- package/assets/images/home-video-placeholder.webp +0 -0
- package/assets/images/home-video-placeholder@2x.webp +0 -0
- package/assets/images/ingredients/beef.webp +0 -0
- package/assets/images/ingredients/carrot.webp +0 -0
- package/assets/images/ingredients/chicken.webp +0 -0
- package/assets/images/ingredients/courgette.webp +0 -0
- package/assets/images/ingredients/dry-apple.webp +0 -0
- package/assets/images/ingredients/dry-carrot.webp +0 -0
- package/assets/images/ingredients/dry-potatoe.webp +0 -0
- package/assets/images/ingredients/duck.webp +0 -0
- package/assets/images/ingredients/fish.webp +0 -0
- package/assets/images/ingredients/lactoserum.webp +0 -0
- package/assets/images/ingredients/oil.webp +0 -0
- package/assets/images/ingredients/pork.webp +0 -0
- package/assets/images/ingredients/potatoe.webp +0 -0
- package/assets/images/ingredients/quinoa.webp +0 -0
- package/assets/images/ingredients/turkey.webp +0 -0
- package/assets/images/ingredients/vegetal-oil.webp +0 -0
- package/assets/images/ingredients/vitamines.webp +0 -0
- package/assets/images/ingredients-parralax-mobile.webp +0 -0
- package/assets/images/ingredients-parralax-mobile@2x.webp +0 -0
- package/assets/images/ingredients-parralax.webp +0 -0
- package/assets/images/ingredients-parralax@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-1-mobile.webp +0 -0
- package/assets/images/polaroids/polaroid-1-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-1.webp +0 -0
- package/assets/images/polaroids/polaroid-1@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-2-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-2-mobilex.webp +0 -0
- package/assets/images/polaroids/polaroid-2.webp +0 -0
- package/assets/images/polaroids/polaroid-2@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-3.webp +0 -0
- package/assets/images/polaroids/polaroid-3@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-4-mobile.webp +0 -0
- package/assets/images/polaroids/polaroid-4-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-4.webp +0 -0
- package/assets/images/polaroids/polaroid-4@2x.webp +0 -0
- package/assets/images/testimonials/testimonial-1-mobile.webp +0 -0
- package/assets/images/testimonials/testimonial-1-mobile@2x.webp +0 -0
- package/assets/images/testimonials/testimonial-1.webp +0 -0
- package/assets/images/testimonials/testimonial-1@2x.webp +0 -0
- package/assets/images/tips/claudine-head.webp +0 -0
- package/assets/images/tips/claudine-tips-mobile.webp +0 -0
- package/assets/images/tips/claudine-tips-mobile@2x.webp +0 -0
- package/assets/images/tips/claudine-tips.webp +0 -0
- package/assets/images/tips/claudine-tips@2x.webp +0 -0
- package/assets/images/trash/claudine-polaroid.webp +0 -0
- package/assets/images/trash/payment-card.webp +0 -0
- package/assets/images/trash/polaroid.webp +0 -0
- package/assets/images/trash/recette.webp +0 -0
- package/assets/images/trash/testimonial.webp +0 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +993 -2500
- package/dist/index.es.js.map +1 -1
- package/package.json +9 -4
- package/styles/globals.css +187 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myelmut/design-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Design system for Elmut project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
"style": "dist/index.css",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"files": [
|
|
18
|
-
"dist"
|
|
18
|
+
"dist",
|
|
19
|
+
"styles",
|
|
20
|
+
"assets"
|
|
19
21
|
],
|
|
20
22
|
"peerDependencies": {
|
|
21
23
|
"react": "^18.0.0",
|
|
22
|
-
"react-dom": "^18.0.0"
|
|
24
|
+
"react-dom": "^18.0.0",
|
|
25
|
+
"i18next": "^25.0.0",
|
|
26
|
+
"react-i18next": "^16.0.0"
|
|
23
27
|
},
|
|
24
28
|
"devDependencies": {
|
|
25
29
|
"@storybook/addon-docs": "^9.1.10",
|
|
@@ -65,7 +69,8 @@
|
|
|
65
69
|
},
|
|
66
70
|
"scripts": {
|
|
67
71
|
"dev": "vite",
|
|
68
|
-
"build": "vite build",
|
|
72
|
+
"build": "vite build && pnpm run copy-static-assets",
|
|
73
|
+
"copy-static-assets": "cp -r src/styles styles && cp -r src/assets assets",
|
|
69
74
|
"build:with-assets": "vite build && pnpm run copy-assets",
|
|
70
75
|
"copy-assets": "mkdir -p dist/public/assets && cp -r src/assets/* dist/public/assets/ && cp -r dist/public/assets/* ../public/design-system/",
|
|
71
76
|
"storybook": "storybook dev -p 6006",
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Pangaia';
|
|
5
|
+
src: url('../assets/fonts/PPPangaia-Medium.woff2') format('woff2');
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-display: swap;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'Pangaia';
|
|
13
|
+
src: url('../assets/fonts/PPPangaia-MediumItalic.woff2') format('woff2');
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-style: italic;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: 'Pangaia';
|
|
21
|
+
src: url('../assets/fonts/PPPangaia-Ultralight.woff2') format('woff2');
|
|
22
|
+
font-weight: 300;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: 'Mori';
|
|
29
|
+
src: url('../assets/fonts/PPMori-Regular.woff2') format('woff2');
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-display: swap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: 'Mori';
|
|
37
|
+
src: url('../assets/fonts/PPMori-Semibold.woff2') format('woff2');
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-display: swap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: 'Mori';
|
|
45
|
+
src: url('../assets/fonts/PPMori-RegularItalic.woff2') format('woff2');
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
font-style: italic;
|
|
48
|
+
font-display: swap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@theme {
|
|
52
|
+
/* Colors */
|
|
53
|
+
--color-claret-violet-dark: #671a36; /* Claret Violet 500 */
|
|
54
|
+
--color-claret-violet-light: #802948; /* Claret Violet 400 */
|
|
55
|
+
--color-pink-oyster-dark: #eeaeb4; /* Pink Oyster 600 */
|
|
56
|
+
--color-pink-oyster-light: #f7c8cc; /* Pink Oyster 500 */
|
|
57
|
+
--color-beige-ultra-light: #fffbf3; /* Beige Ultra Light */
|
|
58
|
+
--color-beige-dark: #f0e4c8; /* Beige 600 */
|
|
59
|
+
--color-beige-light: #f7efdc; /* Beige 500 */
|
|
60
|
+
--color-beige-ultra-dark: #dfd0ac; /* Beige ultra dark */
|
|
61
|
+
--color-lavender-blue-dark: #adadf0; /* Lavender Blue 600 */
|
|
62
|
+
--color-lavender-blue-light: #c3c3fe; /* Lavender Blue 500 */
|
|
63
|
+
--color-red-error: #b1002c;
|
|
64
|
+
/* Fonts */
|
|
65
|
+
--font-pangaia: 'Pangaia', serif;
|
|
66
|
+
--font-mori: 'Mori', sans-serif;
|
|
67
|
+
|
|
68
|
+
/* Title font sizes */
|
|
69
|
+
--text-display-xl: 8rem; /* Display 01 */
|
|
70
|
+
--text-display-xl-mobile: 2.5rem; /* Display */
|
|
71
|
+
--text-display-lg: 6rem; /* Display 02 */
|
|
72
|
+
--text-display-lg-mobile: 1.5rem; /* Heading 01 */
|
|
73
|
+
--text-display-md: 3rem; /* Display 03 */
|
|
74
|
+
--text-display-md-mobile: 1.5rem; /* Heading 01 italic */
|
|
75
|
+
--text-heading-xl: 4rem; /* Heading 01 */
|
|
76
|
+
--text-heading-xl-mobile: 1.25rem; /* Heading 02 */
|
|
77
|
+
--text-heading-lg: 3rem; /* Heading 02 */
|
|
78
|
+
--text-heading-lg-mobile: 1rem; /* Heading 03 | Big text when semibold */
|
|
79
|
+
--text-heading-md: 2rem; /* Heading 03 */
|
|
80
|
+
--text-heading-md-mobile: 0.875rem; /* Regular Text */
|
|
81
|
+
|
|
82
|
+
/* Body font sizes */
|
|
83
|
+
--text-xl: 1.25rem; /* Big text */
|
|
84
|
+
--text-xl-mobile: 0.875rem; /* Button */
|
|
85
|
+
--text-lg: 1.25rem; /* Big Text */
|
|
86
|
+
--text-lg-mobile: 0.75rem; /* Small Text */
|
|
87
|
+
--text-md: 1rem; /* Regular Text */
|
|
88
|
+
--text-md-mobile: 0.75rem; /* Small Text */
|
|
89
|
+
--text-sm: 0.875rem; /* Small Text */
|
|
90
|
+
--text-sm-mobile: 0.625rem; /* Overline */
|
|
91
|
+
--text-legend: 0.875rem; /* Legend */
|
|
92
|
+
--text-button: 1rem; /* Button */
|
|
93
|
+
--text-button-mobile: 0.875rem; /* Button */
|
|
94
|
+
|
|
95
|
+
/* Border radius */
|
|
96
|
+
--radius-card: 1.25rem;
|
|
97
|
+
--radius-illustrated-card-button: 1.125rem;
|
|
98
|
+
--radius-card-button-mobile: 0.625rem;
|
|
99
|
+
--radius-input: 0.625rem;
|
|
100
|
+
--radius-food-card: 1rem;
|
|
101
|
+
--radius-table: 1.875rem;
|
|
102
|
+
|
|
103
|
+
/* Custom breakpoints (affect all @md, @lg, etc. utilities) */
|
|
104
|
+
--breakpoint-xs: 155;
|
|
105
|
+
|
|
106
|
+
/* Custom container widths */
|
|
107
|
+
--container-xs: 100vw;
|
|
108
|
+
--container-sm: 640px;
|
|
109
|
+
--container-md: 768px;
|
|
110
|
+
--container-lg: 1024px;
|
|
111
|
+
--container-xl: 1280px;
|
|
112
|
+
--container-2xl: 1536px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@layer base {
|
|
116
|
+
html {
|
|
117
|
+
font-family: var(--font-mori);
|
|
118
|
+
color: var(--color-claret-violet-dark);
|
|
119
|
+
background-color: var(--color-beige-light);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@layer utilities {
|
|
124
|
+
/* Delete the arrows on the number inputs */
|
|
125
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
126
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
127
|
+
@apply m-0 appearance-none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
input[type='number'] {
|
|
131
|
+
@apply [appearance:textfield]; /* standard + Firefox */
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@keyframes fade-in {
|
|
135
|
+
from {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
to {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@keyframes fade-out {
|
|
144
|
+
from {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
to {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.animate-fade-in {
|
|
153
|
+
animation: fade-in 300ms ease-in;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.animate-fade-out {
|
|
157
|
+
animation: fade-out 150ms ease-out;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@utility container {
|
|
162
|
+
width: 100%;
|
|
163
|
+
margin-inline: auto;
|
|
164
|
+
padding-inline: 1.5rem;
|
|
165
|
+
max-width: var(--container-xs);
|
|
166
|
+
|
|
167
|
+
@variant sm {
|
|
168
|
+
max-width: var(--container-sm);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@variant md {
|
|
172
|
+
padding-inline: 2rem;
|
|
173
|
+
max-width: var(--container-md);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@variant lg {
|
|
177
|
+
max-width: var(--container-lg);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@variant xl {
|
|
181
|
+
max-width: var(--container-xl);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@variant 2xl {
|
|
185
|
+
max-width: var(--container-2xl);
|
|
186
|
+
}
|
|
187
|
+
}
|