@code-coaching/vuetiful 0.0.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.
Files changed (78) hide show
  1. package/README.md +143 -0
  2. package/dist/style.css +1 -0
  3. package/dist/styles/all.css +4645 -0
  4. package/dist/types/components/atoms/VButton.vue.d.ts +86 -0
  5. package/dist/types/components/atoms/index.d.ts +2 -0
  6. package/dist/types/components/index.d.ts +2 -0
  7. package/dist/types/constants/MyConstants.d.ts +1 -0
  8. package/dist/types/constants/index.d.ts +2 -0
  9. package/dist/types/index.d.ts +12 -0
  10. package/dist/types/types/index.d.ts +1 -0
  11. package/dist/types/types/tailwind.d.ts +4 -0
  12. package/dist/types/utils/MyUtil.d.ts +5 -0
  13. package/dist/types/utils/dark-mode/dark-mode.d.ts +18 -0
  14. package/dist/types/utils/dark-mode/dark-mode.vue.d.ts +91 -0
  15. package/dist/types/utils/index.d.ts +6 -0
  16. package/dist/types/utils/platform/platform.d.ts +4 -0
  17. package/dist/types/utils/theme/theme-switcher.vue.d.ts +106 -0
  18. package/dist/types/utils/theme/theme.d.ts +9 -0
  19. package/dist/vuetiful.es.mjs +515 -0
  20. package/dist/vuetiful.umd.js +17 -0
  21. package/package.json +47 -0
  22. package/src/assets/fonts/myfont.woff +0 -0
  23. package/src/assets/main.css +17 -0
  24. package/src/components/atoms/VButton.vue +78 -0
  25. package/src/components/atoms/index.ts +3 -0
  26. package/src/components/index.ts +3 -0
  27. package/src/constants/MyConstants.ts +1 -0
  28. package/src/constants/index.ts +5 -0
  29. package/src/env.d.ts +8 -0
  30. package/src/index.ts +29 -0
  31. package/src/styles/all.css +21 -0
  32. package/src/styles/core.css +65 -0
  33. package/src/styles/elements/alerts.css +17 -0
  34. package/src/styles/elements/badges.css +31 -0
  35. package/src/styles/elements/breadcrumbs.css +26 -0
  36. package/src/styles/elements/buttons.css +103 -0
  37. package/src/styles/elements/cards.css +32 -0
  38. package/src/styles/elements/chips.css +22 -0
  39. package/src/styles/elements/forms.css +268 -0
  40. package/src/styles/elements/lists.css +48 -0
  41. package/src/styles/elements/logo-clouds.css +29 -0
  42. package/src/styles/elements/modals.css +15 -0
  43. package/src/styles/elements/placeholders.css +17 -0
  44. package/src/styles/elements/popups.css +16 -0
  45. package/src/styles/elements/tables.css +102 -0
  46. package/src/styles/elements.css +19 -0
  47. package/src/styles/highlight-js.css +116 -0
  48. package/src/styles/tailwind.css +16 -0
  49. package/src/styles/typography.css +101 -0
  50. package/src/styles/variants.css +156 -0
  51. package/src/tailwind/core.cjs +37 -0
  52. package/src/tailwind/generated/intellisense-classes.cjs +558 -0
  53. package/src/tailwind/intellisense.cjs +21 -0
  54. package/src/tailwind/settings.cjs +20 -0
  55. package/src/tailwind/theme/colors.cjs +20 -0
  56. package/src/tailwind/tokens/backgrounds.cjs +48 -0
  57. package/src/tailwind/tokens/border-radius.cjs +21 -0
  58. package/src/tailwind/tokens/borders.cjs +24 -0
  59. package/src/tailwind/tokens/fills.cjs +20 -0
  60. package/src/tailwind/tokens/rings.cjs +50 -0
  61. package/src/tailwind/tokens/text.cjs +35 -0
  62. package/src/tailwind/vuetiful.cjs +19 -0
  63. package/src/themes/theme-modern.css +127 -0
  64. package/src/themes/theme-rocket.css +119 -0
  65. package/src/themes/theme-sahara.css +128 -0
  66. package/src/themes/theme-seafoam.css +121 -0
  67. package/src/themes/theme-seasonal.css +115 -0
  68. package/src/themes/theme-vintage.css +125 -0
  69. package/src/themes/theme-vuetiful.css +118 -0
  70. package/src/types/index.ts +1 -0
  71. package/src/types/tailwind.ts +7 -0
  72. package/src/utils/MyUtil.ts +7 -0
  73. package/src/utils/dark-mode/dark-mode.ts +90 -0
  74. package/src/utils/dark-mode/dark-mode.vue +133 -0
  75. package/src/utils/index.ts +7 -0
  76. package/src/utils/platform/platform.ts +10 -0
  77. package/src/utils/theme/theme-switcher.vue +155 -0
  78. package/src/utils/theme/theme.ts +65 -0
@@ -0,0 +1,558 @@
1
+ /* This file is generated by Code Coaching scripts/convert-css-to-tailwind-intellisense.js */
2
+ module.exports = {
3
+ ".hide-scrollbar::-webkit-scrollbar": {
4
+ "display": "none",
5
+ },
6
+ ".hide-scrollbar": {
7
+ "-ms-overflow-style": "none ",
8
+ "scrollbar-width": "none ",
9
+ },
10
+ ".divider-vertical": {
11
+ "@apply inline-block border-l border-solid border-surface-300-600-token min-h-[10px] mx-auto": {},
12
+ },
13
+ ".hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_": {
14
+ "@apply text-red-400": {},
15
+ },
16
+ ".hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_": {
17
+ "@apply text-purple-400": {},
18
+ },
19
+ ".hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable": {
20
+ "@apply text-sky-300": {},
21
+ },
22
+ ".hljs-meta .hljs-string,.hljs-regexp,.hljs-string": {
23
+ "@apply text-blue-400": {},
24
+ },
25
+ ".hljs-built_in,.hljs-symbol": {
26
+ "@apply text-amber-400": {},
27
+ },
28
+ ".hljs-code,.hljs-comment,.hljs-formula": {
29
+ "@apply text-neutral-500": {},
30
+ },
31
+ ".hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag": {
32
+ "@apply text-green-400": {},
33
+ },
34
+ ".hljs-subst": {
35
+ "@apply text-pink-300": {},
36
+ },
37
+ ".hljs-section": {
38
+ "@apply font-bold text-sky-400": {},
39
+ },
40
+ ".hljs-bullet": {
41
+ "@apply text-yellow-400": {},
42
+ },
43
+ ".hljs-emphasis": {
44
+ "@apply italic text-neutral-200": {},
45
+ },
46
+ ".hljs-strong": {
47
+ "@apply font-bold text-neutral-200": {},
48
+ },
49
+ ".hljs-addition": {
50
+ "@apply text-lime-300 bg-green-700": {},
51
+ },
52
+ ".hljs-deletion": {
53
+ "@apply text-rose-300 bg-rose-700": {},
54
+ },
55
+ ".variant-outline-primary": {
56
+ "@apply ring-[1px] ring-primary-500 dark:ring-primary-500 ring-inset": {},
57
+ },
58
+ ".variant-outline-secondary": {
59
+ "@apply ring-[1px] ring-secondary-500 dark:ring-secondary-500 ring-inset": {},
60
+ },
61
+ ".variant-outline-tertiary": {
62
+ "@apply ring-[1px] ring-tertiary-500 dark:ring-tertiary-500 ring-inset": {},
63
+ },
64
+ ".variant-outline-success": {
65
+ "@apply ring-[1px] ring-success-500 dark:ring-success-500 ring-inset": {},
66
+ },
67
+ ".variant-outline-warning": {
68
+ "@apply ring-[1px] ring-warning-500 dark:ring-warning-500 ring-inset": {},
69
+ },
70
+ ".variant-outline-error": {
71
+ "@apply ring-[1px] ring-error-500 dark:ring-error-500 ring-inset": {},
72
+ },
73
+ ".variant-outline,.variant-outline-surface": {
74
+ "@apply ring-[1px] ring-surface-500 dark:ring-surface-500 ring-inset": {},
75
+ },
76
+ ".variant-filled": {
77
+ "@apply bg-surface-900-50-token text-surface-50-900-token": {},
78
+ },
79
+ ".variant-filled-primary": {
80
+ "@apply bg-primary-500 dark:bg-primary-500 text-on-primary-token dark:text-on-primary-token": {},
81
+ },
82
+ ".variant-filled-secondary": {
83
+ "@apply bg-secondary-500 dark:bg-secondary-500 text-on-secondary-token dark:text-on-secondary-token": {},
84
+ },
85
+ ".variant-filled-tertiary": {
86
+ "@apply bg-tertiary-500 dark:bg-tertiary-500 text-on-tertiary-token dark:text-on-tertiary-token": {},
87
+ },
88
+ ".variant-filled-success": {
89
+ "@apply bg-success-500 dark:bg-success-500 text-on-success-token dark:text-on-success-token": {},
90
+ },
91
+ ".variant-filled-warning": {
92
+ "@apply bg-warning-500 dark:bg-warning-500 text-on-warning-token dark:text-on-warning-token": {},
93
+ },
94
+ ".variant-filled-error": {
95
+ "@apply bg-error-500 dark:bg-error-500 text-on-error-token dark:text-on-error-token": {},
96
+ },
97
+ ".variant-filled-surface": {
98
+ "@apply bg-surface-400-500-token text-on-surface-token dark:text-on-surface-token": {},
99
+ },
100
+ ".variant-ringed": {
101
+ "@apply bg-transparent dark:bg-transparent variant-outline": {},
102
+ },
103
+ ".variant-ringed-primary": {
104
+ "@apply bg-transparent dark:bg-transparent variant-outline-primary": {},
105
+ },
106
+ ".variant-ringed-secondary": {
107
+ "@apply bg-transparent dark:bg-transparent variant-outline-secondary": {},
108
+ },
109
+ ".variant-ringed-tertiary": {
110
+ "@apply bg-transparent dark:bg-transparent variant-outline-tertiary": {},
111
+ },
112
+ ".variant-ringed-success": {
113
+ "@apply bg-transparent dark:bg-transparent variant-outline-success": {},
114
+ },
115
+ ".variant-ringed-warning": {
116
+ "@apply bg-transparent dark:bg-transparent variant-outline-warning": {},
117
+ },
118
+ ".variant-ringed-error": {
119
+ "@apply bg-transparent dark:bg-transparent variant-outline-error": {},
120
+ },
121
+ ".variant-ringed-surface": {
122
+ "@apply bg-transparent dark:bg-transparent variant-outline-surface": {},
123
+ },
124
+ ".variant-ghost-primary": {
125
+ "@apply bg-primary-500/20 dark:bg-primary-500/20 variant-outline-primary": {},
126
+ },
127
+ ".variant-ghost-secondary": {
128
+ "@apply bg-secondary-500/20 dark:bg-secondary-500/20 variant-outline-secondary": {},
129
+ },
130
+ ".variant-ghost-tertiary": {
131
+ "@apply bg-tertiary-500/20 dark:bg-tertiary-500/20 variant-outline-tertiary": {},
132
+ },
133
+ ".variant-ghost-success": {
134
+ "@apply bg-success-500/20 dark:bg-success-500/20 variant-outline-success": {},
135
+ },
136
+ ".variant-ghost-warning": {
137
+ "@apply bg-warning-500/20 dark:bg-warning-500/20 variant-outline-warning": {},
138
+ },
139
+ ".variant-ghost-error": {
140
+ "@apply bg-error-500/20 dark:bg-error-500/20 variant-outline-error": {},
141
+ },
142
+ ".variant-ghost,.variant-ghost-surface": {
143
+ "@apply bg-surface-500/20 dark:bg-surface-500/20 variant-outline-surface": {},
144
+ },
145
+ ".variant-soft-primary": {
146
+ "@apply bg-primary-400/20 dark:bg-primary-500/20 text-primary-700-200-token !ring-0": {},
147
+ },
148
+ ".variant-soft-secondary": {
149
+ "@apply bg-secondary-400/20 dark:bg-secondary-500/20 text-secondary-700-200-token !ring-0": {},
150
+ },
151
+ ".variant-soft-tertiary": {
152
+ "@apply bg-tertiary-400/20 dark:bg-tertiary-500/20 text-tertiary-700-200-token !ring-0": {},
153
+ },
154
+ ".variant-soft-success": {
155
+ "@apply bg-success-400/20 dark:bg-success-500/20 text-success-700-200-token !ring-0": {},
156
+ },
157
+ ".variant-soft-warning": {
158
+ "@apply bg-warning-400/20 dark:bg-warning-500/20 text-warning-700-200-token !ring-0": {},
159
+ },
160
+ ".variant-soft-error": {
161
+ "@apply bg-error-400/20 dark:bg-error-500/20 text-error-700-200-token !ring-0": {},
162
+ },
163
+ ".variant-soft,.variant-soft-surface": {
164
+ "@apply bg-surface-400/20 dark:bg-surface-500/20 text-surface-700-200-token !ring-0": {},
165
+ },
166
+ ".variant-glass-primary": {
167
+ "@apply bg-primary-500/20 dark:bg-primary-500/20 backdrop-blur-lg": {},
168
+ },
169
+ ".variant-glass-secondary": {
170
+ "@apply bg-secondary-500/20 dark:bg-secondary-500/20 backdrop-blur-lg": {},
171
+ },
172
+ ".variant-glass-tertiary": {
173
+ "@apply bg-tertiary-500/20 dark:bg-tertiary-500/20 backdrop-blur-lg": {},
174
+ },
175
+ ".variant-glass-success": {
176
+ "@apply bg-success-500/20 dark:bg-success-500/20 backdrop-blur-lg": {},
177
+ },
178
+ ".variant-glass-warning": {
179
+ "@apply bg-warning-500/20 dark:bg-warning-500/20 backdrop-blur-lg": {},
180
+ },
181
+ ".variant-glass-error": {
182
+ "@apply bg-error-500/20 dark:bg-error-500/20 backdrop-blur-lg": {},
183
+ },
184
+ ".variant-glass-surface": {
185
+ "@apply bg-surface-500/20 dark:bg-surface-500/20 backdrop-blur-lg": {},
186
+ },
187
+ ".variant-glass": {
188
+ "@apply bg-surface-50/30 dark:bg-surface-900/30 backdrop-blur-lg": {},
189
+ },
190
+ ".alert": {
191
+ "@apply flex flex-col items-start lg:items-center lg:flex-row p-4 space-y-4 lg:space-y-0 lg:space-x-4": {},
192
+ "@apply text-surface-900-50-token": {},
193
+ "@apply rounded-container-token": {},
194
+ },
195
+ ".alert-message": {
196
+ "@apply flex-auto space-y-2": {},
197
+ },
198
+ ".alert-actions": {
199
+ "@apply flex items-center space-x-2": {},
200
+ },
201
+ ".badge": {
202
+ "@apply inline-flex justify-center items-center space-x-2 whitespace-nowrap": {},
203
+ "@apply font-semibold text-xs": {},
204
+ "@apply px-2 py-1": {},
205
+ "@apply rounded-token": {},
206
+ },
207
+ ".badge-icon": {
208
+ "@apply w-5 h-5 flex justify-center items-center rounded-full": {},
209
+ "@apply font-semibold text-xs": {},
210
+ "@apply shadow": {},
211
+ },
212
+ ".badge-glass": {
213
+ "@apply bg-surface-500/20 dark:bg-surface-500/20 backdrop-blur-lg": {},
214
+ "@apply ring-[1px] ring-neutral-900/5 dark:ring-neutral-50/5 ring-inset": {},
215
+ },
216
+ ".breadcrumb,.breadcrumb-nonresponsive": {
217
+ "@apply flex items-center space-x-4 w-full hide-scrollbar overflow-x-auto": {},
218
+ },
219
+ ".crumb": {
220
+ "@apply flex justify-center items-center space-x-2": {},
221
+ },
222
+ ".crumb-separator": {
223
+ "@apply flex text-surface-700-200-token opacity-50": {},
224
+ },
225
+ ".breadcrumb li": {
226
+ "@apply hidden md:block": {},
227
+ },
228
+ ".breadcrumb li:nth-last-child(3),.breadcrumb li:nth-last-child(2),.breadcrumb li:nth-last-child(1)": {
229
+ "@apply block": {},
230
+ },
231
+ ".button-base-styles": {
232
+ "@apply text-base px-5 py-[9px]": {},
233
+ "@apply text-center whitespace-nowrap": {},
234
+ "@apply inline-flex justify-center items-center space-x-2": {},
235
+ "@apply hover:brightness-[1.15]": {},
236
+ "@apply transition-all": {},
237
+ },
238
+ ".btn": {
239
+ "@apply button-base-styles rounded-token active:scale-[95%] active:brightness-90": {},
240
+ },
241
+ ".btn-sm": {
242
+ "@apply text-sm px-3 py-1.5": {},
243
+ },
244
+ ".btn-lg": {
245
+ "@apply text-lg px-7 py-3": {},
246
+ },
247
+ ".btn-xl": {
248
+ "@apply text-xl px-9 py-4": {},
249
+ },
250
+ ".btn-icon": {
251
+ "@apply btn": {},
252
+ "@apply text-base aspect-square w-[43px]": {},
253
+ "@apply rounded-full": {},
254
+ },
255
+ ".btn-icon-sm": {
256
+ "@apply text-sm aspect-square w-[33px]": {},
257
+ },
258
+ ".btn-icon-base": {
259
+ "@apply text-base aspect-square w-[43px]": {},
260
+ },
261
+ ".btn-icon-lg": {
262
+ "@apply text-lg aspect-square w-[53px]": {},
263
+ },
264
+ ".btn-icon-xl": {
265
+ "@apply text-xl aspect-square w-[63px]": {},
266
+ },
267
+ ".btn-group": {
268
+ "@apply inline-flex flex-row space-x-0 overflow-hidden rounded-token": {},
269
+ "isolation": "isolate",
270
+ },
271
+ ".btn-group-vertical": {
272
+ "@apply btn-group flex-col space-y-0 rounded-container-token": {},
273
+ "isolation": "isolate",
274
+ },
275
+ ".btn-group button,.btn-group a,.btn-group-vertical button,.btn-group-vertical a": {
276
+ "@apply button-base-styles hover:bg-surface-50/[3%] active:bg-surface-900/[3%]": {},
277
+ "@apply !no-underline !text-inherit": {},
278
+ },
279
+ ".btn-group * + *": {
280
+ "@apply border-t-0 border-l border-surface-500/20": {},
281
+ },
282
+ ".btn-group-vertical * + *": {
283
+ "@apply border-t border-l-0 border-surface-500/20": {},
284
+ },
285
+ ".card": {
286
+ "@apply bg-surface-100-800-token": {},
287
+ "@apply ring-outline-token": {},
288
+ "@apply rounded-container-token": {},
289
+ },
290
+ ".card-header": {
291
+ "@apply p-4 pb-0": {},
292
+ },
293
+ ".card-footer": {
294
+ "@apply p-4 pt-0": {},
295
+ },
296
+ ".card-hover": {
297
+ "@apply transition-all hover:scale-[101%] hover:shadow-xl": {},
298
+ },
299
+ ".chip": {
300
+ "@apply px-3 py-1.5 whitespace-nowrap cursor-pointer": {},
301
+ "@apply text-xs text-center": {},
302
+ "@apply rounded": {},
303
+ "@apply inline-flex justify-center items-center space-x-2": {},
304
+ "@apply hover:brightness-[1.15]": {},
305
+ "@apply transition-all": {},
306
+ },
307
+ ".chip-disabled,.chip:disabled": {
308
+ "@apply !opacity-50 !cursor-not-allowed active:scale-100": {},
309
+ },
310
+ ".legend": {
311
+ "@apply font-heading-token text-xl md:text-2xl": {},
312
+ },
313
+ ".label": {
314
+ "@apply space-y-1": {},
315
+ },
316
+ ".input,.textarea,.select,.input-group": {
317
+ "@apply w-full transition duration-200": {},
318
+ "@apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105": {},
319
+ "@apply !ring-0": {},
320
+ "@apply border-token border-surface-400-500-token focus-within:border-primary-500": {},
321
+ },
322
+ ".input,.input-group": {
323
+ "@apply rounded-token": {},
324
+ },
325
+ ".textarea,.select": {
326
+ "@apply rounded-container-token": {},
327
+ },
328
+ ".select": {
329
+ "@apply p-2 pr-8 space-y-1": {},
330
+ },
331
+ ".select[size]": {
332
+ "@apply bg-none": {},
333
+ },
334
+ ".select optgroup": {
335
+ "@apply space-y-1 font-bold": {},
336
+ },
337
+ ".select optgroup option": {
338
+ "@apply ml-0 pl-0": {},
339
+ },
340
+ ".select optgroup option:first-of-type": {
341
+ "@apply mt-3": {},
342
+ },
343
+ ".select optgroup option:last-child": {
344
+ "@apply !mb-3": {},
345
+ },
346
+ ".select option": {
347
+ "@apply bg-surface-200-700-token px-4 py-2 rounded-token cursor-pointer": {},
348
+ },
349
+ ".select option:checked": {
350
+ "background": "rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);",
351
+ "@apply text-on-primary-token": {},
352
+ },
353
+ ".checkbox,.radio": {
354
+ "@apply w-5 h-5 !ring-0 rounded cursor-pointer": {},
355
+ "@apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105": {},
356
+ "@apply border-token border-surface-400-500-token focus:border-primary-500": {},
357
+ },
358
+ ".checkbox:checked,.radio:checked": {
359
+ "@apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0": {},
360
+ },
361
+ ".radio": {
362
+ "@apply rounded-token": {},
363
+ },
364
+ ".input[type='file']": {
365
+ "@apply p-1": {},
366
+ },
367
+ ".input[type='color']": {
368
+ "@apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer": {},
369
+ "-webkit-appearance": "none ",
370
+ },
371
+ ".input[type='color']::-webkit-color-swatch-wrapper": {
372
+ "@apply p-0": {},
373
+ },
374
+ ".input[type='color']::-webkit-color-swatch": {
375
+ "@apply border-none hover:brightness-110": {},
376
+ },
377
+ ".input[type='color']::-moz-color-swatch": {
378
+ "@apply border-none": {},
379
+ },
380
+ ".input:disabled,.textarea:disabled,.select:disabled": {
381
+ "@apply !opacity-50 !cursor-not-allowed hover:!brightness-100": {},
382
+ },
383
+ ".input[readonly],.textarea[readonly],.select[readonly]": {
384
+ "@apply !border-0 !cursor-not-allowed hover:!brightness-100": {},
385
+ },
386
+ ".input-group": {
387
+ "@apply grid overflow-hidden": {},
388
+ },
389
+ ".input-group input,.input-group select": {
390
+ "@apply border-0 ring-0 bg-transparent": {},
391
+ },
392
+ ".input-group select option": {
393
+ "@apply bg-surface-200-700-token": {},
394
+ },
395
+ ".input-group div,.input-group a,.input-group button": {
396
+ "@apply px-4 flex justify-between items-center": {},
397
+ },
398
+ ".input-group-divider input,.input-group-divider select,.input-group-divider div,.input-group-divider a": {
399
+ "@apply border-l border-surface-400-500-token focus:border-surface-400-500-token": {},
400
+ "@apply !ring-0": {},
401
+ "@apply !min-w-fit": {},
402
+ },
403
+ ".input-group-divider *:first-child": {
404
+ "@apply !border-l-0": {},
405
+ },
406
+ ".input-group-shim": {
407
+ "@apply bg-surface-400/10 text-surface-600-300-token": {},
408
+ },
409
+ ".input-success": {
410
+ "@apply !bg-success-200 !border-success-500 !text-success-700": {},
411
+ },
412
+ ".input-success::-moz-placeholder": {
413
+ "@apply text-success-700": {},
414
+ },
415
+ ".input-success:-ms-input-placeholder": {
416
+ "@apply text-success-700": {},
417
+ },
418
+ ".input-success::placeholder": {
419
+ "@apply text-success-700": {},
420
+ },
421
+ ".input-warning": {
422
+ "@apply !bg-warning-200 !border-warning-500 !text-warning-700": {},
423
+ },
424
+ ".input-warning::-moz-placeholder": {
425
+ "@apply text-warning-700": {},
426
+ },
427
+ ".input-warning:-ms-input-placeholder": {
428
+ "@apply text-warning-700": {},
429
+ },
430
+ ".input-warning::placeholder": {
431
+ "@apply text-warning-700": {},
432
+ },
433
+ ".input-error": {
434
+ "@apply !bg-error-200 !border-error-500 !text-error-500": {},
435
+ },
436
+ ".input-error::-moz-placeholder": {
437
+ "@apply text-error-500": {},
438
+ },
439
+ ".input-error:-ms-input-placeholder": {
440
+ "@apply text-error-500": {},
441
+ },
442
+ ".input-error::placeholder": {
443
+ "@apply text-error-500": {},
444
+ },
445
+ ".variant-form-material": {
446
+ "@apply !rounded-tl !rounded-tr !rounded-bl-none !rounded-br-none": {},
447
+ "@apply bg-surface-500/10 dark:bg-surface-500/20": {},
448
+ "@apply border-0 border-b-2": {},
449
+ "@apply backdrop-blur": {},
450
+ },
451
+ ".variant-form-material[type='file']": {
452
+ "@apply !py-1.5": {},
453
+ },
454
+ ".list,.list-dl,.list-nav ul": {
455
+ "@apply list-none": {},
456
+ "@apply space-y-1": {},
457
+ },
458
+ ".list li": {
459
+ "@apply flex items-center space-x-4 whitespace-nowrap": {},
460
+ "@apply p-2": {},
461
+ "@apply rounded-token": {},
462
+ },
463
+ ".list-dl div": {
464
+ "@apply flex items-center space-x-4 whitespace-nowrap": {},
465
+ "@apply p-2": {},
466
+ "@apply rounded-token": {},
467
+ },
468
+ ".list-nav a,.list-nav button,.list-option": {
469
+ "@apply flex items-center space-x-4 whitespace-nowrap": {},
470
+ "@apply px-4 py-2": {},
471
+ "@apply bg-primary-hover-token": {},
472
+ "@apply cursor-pointer": {},
473
+ "@apply rounded-token": {},
474
+ },
475
+ ".logo-cloud": {
476
+ "@apply grid overflow-hidden": {},
477
+ "@apply rounded-container-token": {},
478
+ },
479
+ ".logo-item": {
480
+ "@apply: flex-auto text-center space-x-4 shadow": {},
481
+ "@apply flex justify-center items-center space-x-4": {},
482
+ "@apply bg-surface-100-800-token": {},
483
+ "@apply text-base font-bold text-black dark:text-white": {},
484
+ "@apply py-4 md:py-8": {},
485
+ },
486
+ ".w-modal-slim": {
487
+ "@apply w-full max-w-[400px]": {},
488
+ },
489
+ ".w-modal": {
490
+ "@apply w-full max-w-[640px]": {},
491
+ },
492
+ ".w-modal-wide": {
493
+ "@apply w-full max-w-[80%]": {},
494
+ },
495
+ ".placeholder": {
496
+ "@apply bg-surface-300-600-token h-5": {},
497
+ "@apply rounded-token": {},
498
+ },
499
+ ".placeholder-circle": {
500
+ "@apply bg-surface-300-600-token aspect-square rounded-full": {},
501
+ },
502
+ ".table-container": {
503
+ "@apply overflow-x-auto w-full rounded-container-token": {},
504
+ },
505
+ ".table": {
506
+ "@apply w-full overflow-hidden table-auto": {},
507
+ "@apply bg-surface-100-800-token": {},
508
+ "@apply rounded-container-token": {},
509
+ },
510
+ ".table-hover tbody tr": {
511
+ "@apply hover:bg-surface-500/20 even:hover:bg-surface-500/20": {},
512
+ },
513
+ ".table-interactive tbody tr": {
514
+ "@apply hover:bg-primary-hover-token even:hover:bg-primary-hover-token cursor-pointer": {},
515
+ },
516
+ ".table-sort-asc": {
517
+ "@apply after:opacity-50 after:!content-['↓']": {},
518
+ },
519
+ ".table-sort-dsc": {
520
+ "@apply after:opacity-50 after:!content-['↑']": {},
521
+ },
522
+ ".table thead": {
523
+ "@apply bg-surface-200-700-token border-b border-surface-500/20": {},
524
+ },
525
+ ".table thead tr": {
526
+ "@apply capitalize text-left": {},
527
+ },
528
+ ".table thead th": {
529
+ "@apply font-bold p-4": {},
530
+ },
531
+ ".table tbody tr": {
532
+ "@apply border-b border-surface-500/20 even:bg-surface-500/5": {},
533
+ },
534
+ ".table tbody td": {
535
+ "@apply text-sm px-3 py-4 align-top whitespace-nowrap lg:whitespace-normal": {},
536
+ },
537
+ ".table-compact tbody td": {
538
+ "@apply !py-3": {},
539
+ },
540
+ ".table-comfortable tbody td": {
541
+ "@apply !py-5": {},
542
+ },
543
+ ".table tfoot": {
544
+ "@apply bg-surface-100-800-token": {},
545
+ },
546
+ ".table tfoot tr": {
547
+ "@apply capitalize text-left": {},
548
+ },
549
+ ".table tfoot th,.table tfoot td": {
550
+ "@apply p-4": {},
551
+ },
552
+ ".table-row-checked": {
553
+ "@apply !bg-secondary-500/20": {},
554
+ },
555
+ ".table-cell-fit": {
556
+ "@apply w-[1%] whitespace-nowrap": {},
557
+ },
558
+ };
@@ -0,0 +1,21 @@
1
+ // The Vuetiful Intellisense Tailwind Plugin
2
+ // Tailwind Docs: https://tailwindcss.com/docs/plugins
3
+ // Vuetiful Docs: https://www.vuetiful.dev/docs/get-started
4
+
5
+ const plugin = require("tailwindcss/plugin");
6
+
7
+ module.exports = plugin(({ addComponents }) => {
8
+ // The following will generate the non-token classes PURELY for Intellisense.
9
+ // These are excluded from production, which means we still need to lean into
10
+ // using the `all.css` stylesheet to import non-token styles.
11
+ if (process.env.NODE_ENV !== "production") {
12
+ // try/catch because it will throw when allComponents.cjs isn't generated yet
13
+ try {
14
+ const all = require("./generated/intellisense-classes.cjs");
15
+ addComponents(all, {
16
+ respectImportant: true,
17
+ respectPrefix: true,
18
+ });
19
+ } catch {}
20
+ }
21
+ });
@@ -0,0 +1,20 @@
1
+ // Common Shared Settings and Constants
2
+
3
+ module.exports = {
4
+ colorNames: ['primary', 'secondary', 'tertiary', 'success', 'warning', 'error', 'surface'],
5
+ colorShades: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
6
+ colorPairings: [
7
+ // forward:
8
+ { light: 50, dark: 900 },
9
+ { light: 100, dark: 800 },
10
+ { light: 200, dark: 700 },
11
+ { light: 300, dark: 600 },
12
+ { light: 400, dark: 500 },
13
+ // backwards
14
+ { light: 900, dark: 50 },
15
+ { light: 800, dark: 100 },
16
+ { light: 700, dark: 200 },
17
+ { light: 600, dark: 300 },
18
+ { light: 500, dark: 400 }
19
+ ]
20
+ };
@@ -0,0 +1,20 @@
1
+ // Extends Tailwind with Vuetiful theme-specific colors values
2
+ // Doc: https://tailwindcss.com/docs/customizing-colors#using-css-variables
3
+
4
+ const settings = require("../settings.cjs");
5
+
6
+ // ex: `50: 'rgb(var(--color-primary-50) / <alpha-value>)'`
7
+ function generatePaletteShades(colorName) {
8
+ const shadeObj = {};
9
+ settings.colorShades.forEach(
10
+ (s) => (shadeObj[s] = `rgb(var(--color-${colorName}-${s}) / <alpha-value>)`)
11
+ );
12
+ return shadeObj;
13
+ }
14
+
15
+ // Generate a a color shade palette 50-900 per each color available
16
+ module.exports = () => {
17
+ const paletteObj = {};
18
+ settings.colorNames.forEach((n) => (paletteObj[n] = generatePaletteShades(n)));
19
+ return paletteObj;
20
+ };
@@ -0,0 +1,48 @@
1
+ // Design Tokens: Background
2
+ // Doc: https://www.vuetiful.dev/docs/tokens
3
+
4
+ const settings = require("../settings.cjs");
5
+
6
+ // Defaults
7
+ const backdropAlpha = 0.7;
8
+ const hoverAlpha = 0.1;
9
+
10
+ module.exports = () => {
11
+ const classes = {};
12
+ settings.colorNames.forEach((n) => {
13
+ // Backdrops
14
+ // Example: .bg-primary-backdrop-token
15
+ classes[`.bg-${n}-backdrop-token`] = {
16
+ "background-color": `rgb(var(--color-${n}-400) / ${backdropAlpha})`,
17
+ };
18
+ classes[`.dark .bg-${n}-backdrop-token`] = {
19
+ "background-color": `rgb(var(--color-${n}-900) / ${backdropAlpha})`,
20
+ };
21
+
22
+ // Hover
23
+ // Example: .bg-primary-hover-token
24
+ classes[`.bg-${n}-hover-token:hover`] = {
25
+ "background-color": `rgb(var(--color-${n}-500) / ${hoverAlpha})`,
26
+ };
27
+
28
+ // Active
29
+ // Example: .bg-primary-active-token
30
+ classes[`.bg-${n}-active-token`] = {
31
+ "background-color": `rgb(var(--color-${n}-500)) !important`,
32
+ color: `rgb(var(--on-${n}))`,
33
+ fill: `rgb(var(--on-${n}))`,
34
+ };
35
+
36
+ // Color Pairings
37
+ // Example: .bg-primary-50-900-token | .bg-primary-900-50-token
38
+ settings.colorPairings.forEach((p) => {
39
+ classes[`.bg-${n}-${p.light}-${p.dark}-token`] = {
40
+ "background-color": `rgb(var(--color-${n}-${p.light}))`,
41
+ };
42
+ classes[`.dark .bg-${n}-${p.light}-${p.dark}-token`] = {
43
+ "background-color": `rgb(var(--color-${n}-${p.dark}))`,
44
+ };
45
+ });
46
+ });
47
+ return classes;
48
+ };
@@ -0,0 +1,21 @@
1
+ // Design Tokens: Border Radius
2
+ // Doc: https://www.vuetiful.dev/docs/tokens
3
+
4
+ // const settings = require('../settings.cjs');
5
+
6
+ module.exports = () => {
7
+ return {
8
+ // Base
9
+ '.rounded-token': { 'border-radius': 'var(--theme-rounded-base)' },
10
+ '.rounded-tl-token': { 'border-top-left-radius': 'var(--theme-rounded-base)' },
11
+ '.rounded-tr-token': { 'border-top-right-radius': 'var(--theme-rounded-base)' },
12
+ '.rounded-bl-token': { 'border-bottom-left-radius': 'var(--theme-rounded-base)' },
13
+ '.rounded-br-token': { 'border-bottom-right-radius': 'var(--theme-rounded-base)' },
14
+ // Container
15
+ '.rounded-container-token': { 'border-radius': 'var(--theme-rounded-container)' },
16
+ '.rounded-tl-container-token': { 'border-top-left-radius': 'var(--theme-rounded-container)' },
17
+ '.rounded-tr-container-token': { 'border-top-right-radius': 'var(--theme-rounded-container)' },
18
+ '.rounded-bl-container-token': { 'border-bottom-left-radius': 'var(--theme-rounded-container)' },
19
+ '.rounded-br-container-token': { 'border-bottom-right-radius': 'var(--theme-rounded-container)' }
20
+ };
21
+ };