design-system-silkhaus 0.0.4 → 0.0.6

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.
@@ -0,0 +1,331 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ content: ['./lib/**/*.{ts,tsx}'],
4
+ theme: {
5
+ screens: {
6
+ mobile: '449px',
7
+ tablet: '768px',
8
+ desktop: '1280px',
9
+ wide_desktop: '1440px',
10
+ },
11
+ extend: {
12
+ colors: {
13
+ white: 'var(--white)',
14
+ black: 'var(--black)',
15
+ Fills: {
16
+ black: 'var(--fills-black)',
17
+ white: 'var(--fills-white)',
18
+ secondary: 'var(--fills-secondary)',
19
+ terciary: 'var(--fills-terciary)',
20
+ quadrutery: 'var(--fills-quadrutery)',
21
+ quintiary: 'var(--fills-quintiary)',
22
+ },
23
+ Text: {
24
+ primary: 'var(--text-primary)',
25
+ secondary: 'var(--text-secondary)',
26
+ tertiary: 'var(--text-tertiary)',
27
+ secondaryDark: 'var(--text-secondary-dark)',
28
+ textTertiaryDark: 'var(--text-tertiary-dark)',
29
+ textSecondaryPlusDark: 'var(--text-secondary-plus-dark)',
30
+ textPrimaryDark: 'var(--text-primary-dark)',
31
+ },
32
+ Background: {
33
+ accentEggplant: {
34
+ 100: 'var(--accent-eggplant-100)',
35
+ 50: 'var(--accent-eggplant-50)',
36
+ 20: 'var(--accent-eggplant-20)',
37
+ 5: 'var(--accent-eggplant-5)',
38
+ highlight: 'var(--accent-eggplant-highlight)',
39
+ darkened: 'var(--accent-eggplant-darkened)',
40
+ },
41
+ accentMustard: {
42
+ 100: 'var(--accent-mustard-100)',
43
+ 50: 'var(--accent-mustard-50)',
44
+ 25: 'var(--accent-mustard-25)',
45
+ },
46
+ accentTeal: {
47
+ 100: 'var(--accent-teal-100)',
48
+ 50: 'var(--accent-teal-50)',
49
+ 25: 'var(--accent-teal-25)',
50
+ },
51
+ accentCarrot: {
52
+ 100: 'var(--accent-carrot-100)',
53
+ 50: 'var(--accent-carrot-50)',
54
+ 25: 'var(--accent-carrot-25)',
55
+ },
56
+ enabled: 'var(--accent-eggplant-100)',
57
+ hover: 'rgba(109, 54, 169, 1)',
58
+ active: 'rgba(52, 26, 83, 1)',
59
+ focus: 'var(--accent-eggplant-100)',
60
+ },
61
+ System: {
62
+ red: '#FF453A',
63
+ green: '#28CD41',
64
+ },
65
+ },
66
+ spacing: {
67
+ space0: '0rem',
68
+ space025: '0.125rem',
69
+ space050: '0.25rem',
70
+ space075: '0.375rem',
71
+ space100: '0.5rem',
72
+ space150: '0.75rem',
73
+ space200: '1rem',
74
+ space250: '1.25rem',
75
+ space300: '1.5rem',
76
+ space400: '2rem',
77
+ space500: '2.5rem',
78
+ space600: '3rem',
79
+ space800: '4rem',
80
+ space1000: '5rem',
81
+ space1200: '6rem',
82
+ space1600: '8rem',
83
+ },
84
+
85
+ fontSize: {
86
+ xLargeHeroTitle: [
87
+ 'var(--text-xLarge-heroTitle)',
88
+ { lineHeight: 'var(--text-xLarge-heroTitle-lineHeight)' },
89
+ ],
90
+ xLargeLargeTitle: [
91
+ 'var(--text-xLarge-largeTitle)',
92
+ { lineHeight: 'var(--text-xLarge-largeTitle-lineHeight)' },
93
+ ],
94
+ xLargeTitle1: [
95
+ 'var(--text-xLarge-title1)',
96
+ { lineHeight: 'var(--text-xLarge-title1-lineHeight)' },
97
+ ],
98
+ xLargeTitle2: [
99
+ 'var(--text-xLarge-title2)',
100
+ { lineHeight: 'var(--text-xLarge-title2-lineHeight)' },
101
+ ],
102
+ xLargeTitle3: [
103
+ 'var(--text-xLarge-title3)',
104
+ { lineHeight: 'var(--text-xLarge-title3-lineHeight)' },
105
+ ],
106
+ xLargeHeadLine: [
107
+ 'var(--text-xLarge-headLine)',
108
+ { lineHeight: 'var(--text-xLarge-headLine-lineHeight)' },
109
+ ],
110
+ xLargeBody: [
111
+ 'var(--text-xLarge-body)',
112
+ { lineHeight: 'var(--text-xLarge-body-lineHeight)' },
113
+ ],
114
+ xLargeCallout: [
115
+ 'var(--text-xLarge-callout)',
116
+ { lineHeight: 'var(--text-xLarge-callout-lineHeight)' },
117
+ ],
118
+ xLargeSubHead: [
119
+ 'var(--text-xLarge-subHead)',
120
+ { lineHeight: 'var(--text-xLarge-subHead-lineHeight)' },
121
+ ],
122
+ xLargeFootNote: [
123
+ 'var(--text-xLarge-footNote)',
124
+ { lineHeight: 'var(--text-xLarge-footNote-lineHeight)' },
125
+ ],
126
+ xLargeCaption1: [
127
+ 'var(--text-xLarge-caption1)',
128
+ { lineHeight: 'var(--text-xLarge-caption1-lineHeight)' },
129
+ ],
130
+ xLargeCaption2: [
131
+ 'var(--text-xLarge-caption2)',
132
+ { lineHeight: 'var(--text-xLarge-caption2-lineHeight)' },
133
+ ],
134
+
135
+ largeHeroTitle: [
136
+ 'var(--text-large-heroTitle)',
137
+ { lineHeight: 'var(--text-large-heroTitle-lineHeight)' },
138
+ ],
139
+ largeLargeTitle: [
140
+ 'var(--text-large-largeTitle)',
141
+ { lineHeight: 'var(--text-large-largeTitle-lineHeight)' },
142
+ ],
143
+ largeTitle1: [
144
+ 'var(--text-large-title1)',
145
+ { lineHeight: 'var(--text-large-title1-lineHeight)' },
146
+ ],
147
+ largeTitle2: [
148
+ 'var(--text-large-title2)',
149
+ { lineHeight: 'var(--text-large-title2-lineHeight)' },
150
+ ],
151
+ largeTitle3: [
152
+ 'var(--text-large-title3)',
153
+ { lineHeight: 'var(--text-large-title3-lineHeight)' },
154
+ ],
155
+ largeHeadLine: [
156
+ 'var(--text-large-headLine)',
157
+ { lineHeight: 'var(--text-large-headLine-lineHeight)' },
158
+ ],
159
+ largeBody: ['var(--text-large-body)', { lineHeight: 'var(--text-large-body-lineHeight)' }],
160
+ largeCallout: [
161
+ 'var(--text-large-callout)',
162
+ { lineHeight: 'var(--text-large-callout-lineHeight)' },
163
+ ],
164
+ largeSubHead: [
165
+ 'var(--text-large-subHead)',
166
+ { lineHeight: 'var(--text-large-subHead-lineHeight)' },
167
+ ],
168
+ largeFootNote: [
169
+ 'var(--text-large-footNote)',
170
+ { lineHeight: 'var(--text-large-footNote-lineHeight)' },
171
+ ],
172
+ largeCaption1: [
173
+ 'var(--text-large-caption1)',
174
+ { lineHeight: 'var(--text-large-caption1-lineHeight)' },
175
+ ],
176
+ largeCaption2: [
177
+ 'var(--text-large-caption2)',
178
+ { lineHeight: 'var(--text-large-caption2-lineHeight)' },
179
+ ],
180
+
181
+ mediumHeroTitle: [
182
+ 'var(--text-medium-heroTitle)',
183
+ { lineHeight: 'var(--text-medium-heroTitle-lineHeight)' },
184
+ ],
185
+ mediumLargeTitle: [
186
+ 'var(--text-medium-largeTitle)',
187
+ { lineHeight: 'var(--text-medium-largeTitle-lineHeight)' },
188
+ ],
189
+ mediumTitle1: [
190
+ 'var(--text-medium-title1)',
191
+ { lineHeight: 'var(--text-medium-title1-lineHeight)' },
192
+ ],
193
+ mediumTitle2: [
194
+ 'var(--text-medium-title2)',
195
+ { lineHeight: 'var(--text-medium-title2-lineHeight)' },
196
+ ],
197
+ mediumTitle3: [
198
+ 'var(--text-medium-title3)',
199
+ { lineHeight: 'var(--text-medium-title3-lineHeight)' },
200
+ ],
201
+ mediumHeadLine: [
202
+ 'var(--text-medium-headLine)',
203
+ { lineHeight: 'var(--text-medium-headLine-lineHeight)' },
204
+ ],
205
+ mediumBody: [
206
+ 'var(--text-medium-body)',
207
+ { lineHeight: 'var(--text-medium-body-lineHeight)' },
208
+ ],
209
+ mediumCallout: [
210
+ 'var(--text-medium-callout)',
211
+ { lineHeight: 'var(--text-medium-callout-lineHeight)' },
212
+ ],
213
+ mediumSubHead: [
214
+ 'var(--text-medium-subHead)',
215
+ { lineHeight: 'var(--text-medium-subHead-lineHeight)' },
216
+ ],
217
+ mediumFootNote: [
218
+ 'var(--text-medium-footNote)',
219
+ { lineHeight: 'var(--text-medium-footNote-lineHeight)' },
220
+ ],
221
+ mediumCaption1: [
222
+ 'var(--text-medium-caption1)',
223
+ { lineHeight: 'var(--text-medium-caption1-lineHeight)' },
224
+ ],
225
+ mediumCaption2: [
226
+ 'var(--text-medium-caption2)',
227
+ { lineHeight: 'var(--text-medium-caption2-lineHeight)' },
228
+ ],
229
+
230
+ smallHeroTitle: [
231
+ 'var(--text-small-heroTitle)',
232
+ { lineHeight: 'var(--text-small-heroTitle-lineHeight)' },
233
+ ],
234
+ smallLargeTitle: [
235
+ 'var(--text-small-largeTitle)',
236
+ { lineHeight: 'var(--text-small-largeTitle-lineHeight)' },
237
+ ],
238
+ smallTitle1: [
239
+ 'var(--text-small-title1)',
240
+ { lineHeight: 'var(--text-small-title1-lineHeight)' },
241
+ ],
242
+ smallTitle2: [
243
+ 'var(--text-small-title2)',
244
+ { lineHeight: 'var(--text-small-title2-lineHeight)' },
245
+ ],
246
+ smallTitle3: [
247
+ 'var(--text-small-title3)',
248
+ { lineHeight: 'var(--text-small-title3-lineHeight)' },
249
+ ],
250
+ smallHeadLine: [
251
+ 'var(--text-small-headLine)',
252
+ { lineHeight: 'var(--text-small-headLine-lineHeight)' },
253
+ ],
254
+ smallBody: ['var(--text-small-body)', { lineHeight: 'var(--text-small-body-lineHeight)' }],
255
+ smallCallout: [
256
+ 'var(--text-small-callout)',
257
+ { lineHeight: 'var(--text-small-callout-lineHeight)' },
258
+ ],
259
+ smallSubHead: [
260
+ 'var(--text-small-subHead)',
261
+ { lineHeight: 'var(--text-small-subHead-lineHeight)' },
262
+ ],
263
+ smallFootNote: [
264
+ 'var(--text-small-footNote)',
265
+ { lineHeight: 'var(--text-small-footNote-lineHeight)' },
266
+ ],
267
+ smallCaption1: [
268
+ 'var(--text-small-caption1)',
269
+ { lineHeight: 'var(--text-small-caption1-lineHeight)' },
270
+ ],
271
+ smallCaption2: [
272
+ 'var(--text-small-caption2)',
273
+ { lineHeight: 'var(--text-small-caption2-lineHeight)' },
274
+ ],
275
+
276
+ xSmallHeroTitle: [
277
+ 'var(--text-xSmall-heroTitle)',
278
+ { lineHeight: 'var(--text-xSmall-heroTitle-lineHeight)' },
279
+ ],
280
+ xSmallLargeTitle: [
281
+ 'var(--text-xSmall-largeTitle)',
282
+ { lineHeight: 'var(--text-xSmall-largeTitle-lineHeight)' },
283
+ ],
284
+ xSmallTitle1: [
285
+ 'var(--text-xSmall-title1)',
286
+ { lineHeight: 'var(--text-xSmall-title1-lineHeight)' },
287
+ ],
288
+ xSmallTitle2: [
289
+ 'var(--text-xSmall-title2)',
290
+ { lineHeight: 'var(--text-xSmall-title2-lineHeight)' },
291
+ ],
292
+ xSmallTitle3: [
293
+ 'var(--text-xSmall-title3)',
294
+ { lineHeight: 'var(--text-xSmall-title3-lineHeight)' },
295
+ ],
296
+ xSmallHeadLine: [
297
+ 'var(--text-xSmall-headLine)',
298
+ { lineHeight: 'var(--text-xSmall-headLine-lineHeight)' },
299
+ ],
300
+ xSmallBody: [
301
+ 'var(--text-xSmall-body)',
302
+ { lineHeight: 'var(--text-xSmall-body-lineHeight)' },
303
+ ],
304
+ xSmallCallout: [
305
+ 'var(--text-xSmall-callout)',
306
+ { lineHeight: 'var(--text-xSmall-callout-lineHeight)' },
307
+ ],
308
+ xSmallSubHead: [
309
+ 'var(--text-xSmall-subHead)',
310
+ { lineHeight: 'var(--text-xSmall-subHead-lineHeight)' },
311
+ ],
312
+ xSmallFootNote: [
313
+ 'var(--text-xSmall-footNote)',
314
+ { lineHeight: 'var(--text-xSmall-footNote-lineHeight)' },
315
+ ],
316
+ xSmallCaption1: [
317
+ 'var(--text-xSmall-caption1)',
318
+ { lineHeight: 'var(--text-xSmall-caption1-lineHeight)' },
319
+ ],
320
+ xSmallCaption2: [
321
+ 'var(--text-xSmall-caption2)',
322
+ { lineHeight: 'var(--text-xSmall-caption2-lineHeight)' },
323
+ ],
324
+ },
325
+ boxShadow: {
326
+ card: '',
327
+ },
328
+ },
329
+ },
330
+ plugins: [],
331
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-system-silkhaus",
3
3
  "private": false,
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "description": "A template for creating React component libraries with Vite, Tailwind, and Storybook.",
6
6
  "author": "meet-codevyasa",
7
7
  "license": "MIT",
@@ -26,7 +26,10 @@
26
26
  "default": "./dist/index.cjs"
27
27
  }
28
28
  },
29
- "./css": "./dist/style.css"
29
+ "./css": {
30
+ "import": "./dist/style.css",
31
+ "require": "./dist/style.css"
32
+ }
30
33
  },
31
34
  "scripts": {
32
35
  "dev": "storybook dev -p 6006",