@vueless/storybook 1.1.3-beta.0 → 1.1.3-beta.10

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 (52) hide show
  1. package/.storybook-js/main.js +10 -0
  2. package/.storybook-js/manager-head.html +34 -0
  3. package/.storybook-js/manager.js +34 -0
  4. package/.storybook-js/preview.js +70 -0
  5. package/.storybook-js/public/favicons/favicon.ico +0 -0
  6. package/.storybook-js/public/favicons/favicon.svg +4 -0
  7. package/.storybook-js/public/images/vueless-logo-dark.svg +12 -0
  8. package/.storybook-js/public/images/vueless-logo-light.svg +12 -0
  9. package/.storybook-js/themes/manager.css +177 -0
  10. package/{.storybook/index.css → .storybook-js/themes/preview.css} +0 -1
  11. package/.storybook-js/themes/themeDark.js +44 -0
  12. package/.storybook-js/themes/themeLight.js +44 -0
  13. package/.storybook-js/themes/themeLightPreview.js +40 -0
  14. package/{.storybook → .storybook-js}/vite.config.js +1 -0
  15. package/.storybook-ts/env.d.ts +4 -0
  16. package/.storybook-ts/main.ts +10 -0
  17. package/.storybook-ts/manager-head.html +34 -0
  18. package/.storybook-ts/manager.ts +34 -0
  19. package/.storybook-ts/preview-head.html +11 -0
  20. package/.storybook-ts/preview.ts +73 -0
  21. package/.storybook-ts/public/favicons/favicon.ico +0 -0
  22. package/.storybook-ts/public/favicons/favicon.svg +4 -0
  23. package/.storybook-ts/public/images/vueless-logo-dark.svg +12 -0
  24. package/.storybook-ts/public/images/vueless-logo-light.svg +12 -0
  25. package/.storybook-ts/themes/manager.css +177 -0
  26. package/.storybook-ts/themes/preview.css +612 -0
  27. package/.storybook-ts/themes/themeDark.ts +45 -0
  28. package/.storybook-ts/themes/themeLight.ts +45 -0
  29. package/.storybook-ts/themes/themeLightPreview.ts +41 -0
  30. package/.storybook-ts/tsconfig.app.json +35 -0
  31. package/.storybook-ts/tsconfig.json +11 -0
  32. package/.storybook-ts/tsconfig.node.json +13 -0
  33. package/.storybook-ts/vite.config.ts +24 -0
  34. package/LICENSE +1 -1
  35. package/README.md +29 -2
  36. package/bin/index.js +89 -0
  37. package/decorators/storyDarkModeDecorator.js +37 -0
  38. package/index.d.ts +2 -0
  39. package/index.js +2 -114
  40. package/package.json +32 -27
  41. package/webTypes/index.js +0 -0
  42. package/.storybook/decorators/storyDarkModeDecorator.js +0 -49
  43. package/.storybook/main.js +0 -28
  44. package/.storybook/manager-head.html +0 -215
  45. package/.storybook/manager.js +0 -18
  46. package/.storybook/preview.js +0 -72
  47. package/.storybook/themes/tailwindColors.js +0 -290
  48. package/.storybook/themes/themeDark.js +0 -46
  49. package/.storybook/themes/themeLight.js +0 -46
  50. package/.storybook/themes/themeLightDocs.js +0 -41
  51. /package/{.storybook → .storybook-js}/preview-head.html +0 -0
  52. /package/{.storybook/decorators → decorators}/vue3SourceDecorator.js +0 -0
@@ -0,0 +1,612 @@
1
+ @import "tailwindcss";
2
+ @import "vueless";
3
+
4
+ /* -------------------- Storybook Preview UI -------------------- */
5
+ /* -------------------- General -------------------- */
6
+
7
+ ::-webkit-scrollbar {
8
+ width: 0.75rem; /* w-3 */
9
+ height: 0.75rem; /* h-3 */
10
+ }
11
+
12
+ ::-webkit-scrollbar-track {
13
+ transition: all 0.2s; /* transition */
14
+ }
15
+
16
+ ::-webkit-scrollbar-thumb {
17
+ border-radius: 0.125rem; /* rounded-xs */
18
+ transition: all 0.2s; /* transition */
19
+ }
20
+
21
+ .light::-webkit-scrollbar-track,
22
+ .light ::-webkit-scrollbar-track {
23
+ background-color: #f9fafb; /* bg-gray-50 */
24
+ }
25
+
26
+ .light::-webkit-scrollbar-track:hover,
27
+ .light ::-webkit-scrollbar-track:hover {
28
+ background-color: #e5e7eb; /* hover:bg-gray-200 */
29
+ }
30
+
31
+ .light::-webkit-scrollbar-thumb,
32
+ .light ::-webkit-scrollbar-thumb {
33
+ background-color: #9ca3af; /* bg-gray-400 */
34
+ }
35
+
36
+ .light::-webkit-scrollbar-thumb:hover,
37
+ .light ::-webkit-scrollbar-thumb:hover {
38
+ background-color: #6b7280; /* hover:bg-gray-500 */
39
+ }
40
+
41
+ .dark::-webkit-scrollbar-track,
42
+ .dark ::-webkit-scrollbar-track {
43
+ background-color: #030712; /* bg-gray-950 */
44
+ }
45
+
46
+ .dark::-webkit-scrollbar-track:hover,
47
+ .dark ::-webkit-scrollbar-track:hover {
48
+ background-color: #1f2937; /* hover:bg-gray-800 */
49
+ }
50
+
51
+ .dark::-webkit-scrollbar-thumb,
52
+ .dark ::-webkit-scrollbar-thumb {
53
+ background-color: #4b5563; /* bg-gray-600 */
54
+ }
55
+
56
+ .dark::-webkit-scrollbar-thumb:hover,
57
+ .dark ::-webkit-scrollbar-thumb:hover {
58
+ background-color: #6b7280; /* hover:bg-gray-500 */
59
+ }
60
+
61
+ @supports (-moz-appearance: none) {
62
+ .light * {
63
+ scrollbar-width: thin;
64
+ scrollbar-color: #9ca3af #f9fafb; /* thumb color track color */
65
+ }
66
+
67
+ .dark * {
68
+ scrollbar-width: thin;
69
+ scrollbar-color: #4b5563 #030712; /* thumb color track color */
70
+ }
71
+ }
72
+
73
+ html.dark {
74
+ background-color: #030712; /* bg-gray-950 */
75
+ }
76
+
77
+ html.light {
78
+ background-color: #f9fafb; /* bg-gray-50 */
79
+ }
80
+
81
+ html.vl-dark #storybook-root {
82
+ background-color: #111827; /* bg-gray-900 */
83
+ }
84
+
85
+ body {
86
+ font-family: Roboto, sans-serif;
87
+ }
88
+
89
+ .light .sbdocs .sbdocs-content > h1,
90
+ .light .sbdocs .sbdocs-content > h2,
91
+ .light .sbdocs .sbdocs-content > h3,
92
+ .light .sbdocs .sbdocs-content > .sb-anchor > h3,
93
+ .light .sbdocs .sbdocs-content > .sb-anchor > p,
94
+ .light .sbdocs .sbdocs-content > ul > li,
95
+ .light .sbdocs .sbdocs-content > p,
96
+ .light .sbdocs .sbdocs-content > table th,
97
+ .light .sbdocs .sbdocs-content > table td {
98
+ color: #111827 !important; /* !text-gray-900 */
99
+ }
100
+
101
+ .dark .sbdocs .sbdocs-content > h1,
102
+ .dark .sbdocs .sbdocs-content > h2,
103
+ .dark .sbdocs .sbdocs-content > h3,
104
+ .dark .sbdocs .sbdocs-content > .sb-anchor > h3,
105
+ .dark .sbdocs .sbdocs-content > .sb-anchor > p,
106
+ .dark .sbdocs .sbdocs-content > ul > li,
107
+ .dark .sbdocs .sbdocs-content > p,
108
+ .dark .sbdocs .sbdocs-content > table th,
109
+ .dark .sbdocs .sbdocs-content > table td {
110
+ color: #e5e7eb !important; /* !text-gray-200 */
111
+ }
112
+
113
+ .sbdocs .sbdocs-content > table tr {
114
+ border-style: none; /* border-none */
115
+ }
116
+
117
+ .sbdocs .sbdocs-content > table th,
118
+ .sbdocs .sbdocs-content > table td {
119
+ border-left-width: 0; /* border-l-0 */
120
+ border-top-width: 0; /* border-t-0 */
121
+ text-align: left; /* text-left */
122
+ }
123
+
124
+ .sbdocs .sbdocs-content > table th:last-child,
125
+ .sbdocs .sbdocs-content > table td:last-child {
126
+ border-right-width: 0; /* border-r-0 */
127
+ }
128
+
129
+ .sbdocs .sbdocs-content > table tbody tr:last-child td {
130
+ border-bottom-width: 0; /* border-b-0 */
131
+ }
132
+
133
+ .light .sbdocs .sbdocs-content > table th {
134
+ background-color: #f3f4f6; /* bg-gray-100 */
135
+ border-color: #e5e7eb; /* border-gray-200 */
136
+ }
137
+
138
+ .light .sbdocs .sbdocs-content > table td {
139
+ background-color: #ffffff; /* bg-white */
140
+ border-color: #e5e7eb; /* border-gray-200 */
141
+ }
142
+
143
+ .light .sbdocs .sbdocs-content > table {
144
+ border-radius: 0.5rem; /* rounded-lg */
145
+ outline: 1px solid #e5e7eb; /* outline-1 outline-gray-200 */
146
+ overflow: hidden; /* overflow-hidden */
147
+ }
148
+
149
+ .dark .sbdocs .sbdocs-content > table th {
150
+ background-color: #1f2937; /* bg-gray-800 */
151
+ border-color: #374151; /* border-gray-700 */
152
+ }
153
+
154
+ .dark .sbdocs .sbdocs-content > table td {
155
+ background-color: #111827; /* bg-gray-900 */
156
+ border-color: #374151; /* border-gray-700 */
157
+ }
158
+
159
+ .dark .sbdocs .sbdocs-content > table {
160
+ border-radius: 0.5rem; /* rounded-lg */
161
+ outline: 1px solid #374151; /* outline-1 outline-gray-700 */
162
+ overflow: hidden; /* overflow-hidden */
163
+ }
164
+
165
+ /* -------------------- Storybook preview skeleton -------------------- */
166
+
167
+ .light .sb-preparing-docs,
168
+ .light .sb-preparing-story {
169
+ background-color: #f9fafb; /* bg-gray-50 */
170
+ }
171
+
172
+ .light .sb-previewBlock {
173
+ background-color: #ffffff; /* bg-white */
174
+ border-color: #e5e7eb; /* border-gray-200 */
175
+ border-radius: 0.5rem; /* rounded-lg */
176
+ box-shadow: none !important;
177
+ }
178
+
179
+ .light .sb-previewBlock_header {
180
+ border-style: solid; /* border-solid */
181
+ border-bottom-width: 1px; /* border-b */
182
+ border-bottom-color: #e5e7eb !important; /* !border-b-gray-200 */
183
+ box-shadow: none !important;
184
+ }
185
+
186
+ .light .sb-previewBlock_icon {
187
+ background-color: #d1d5db; /* bg-gray-300 */
188
+ }
189
+
190
+ .light .sb-argstableBlock-body {
191
+ border-radius: 0.125rem; /* rounded-sm */
192
+ box-shadow: rgb(0 0 0 / 5%) 0 1px 3px 1px, rgb(0 0 0 / 4%) 0 0 0 1px;
193
+ }
194
+
195
+ .light .sb-argstableBlock-body td {
196
+ background-color: #ffffff; /* bg-white */
197
+ border-style: solid; /* border-solid */
198
+ border-bottom-width: 1px; /* border-b */
199
+ border-bottom-color: #e5e7eb !important; /* !border-b-gray-200 */
200
+ }
201
+
202
+ .light .sb-argstableBlock-body tr:last-child td {
203
+ border-bottom-width: 0px; /* border-b-0 */
204
+ }
205
+
206
+ .light .sb-argstableBlock span,
207
+ .light .sb-argstableBlock button {
208
+ background-color: #e5e7eb; /* bg-gray-200 */
209
+ }
210
+
211
+ .dark .sb-preparing-docs,
212
+ .dark .sb-preparing-story {
213
+ background-color: #030712; /* bg-gray-950 */
214
+ }
215
+
216
+ .dark .sb-previewBlock {
217
+ background-color: #111827; /* bg-gray-900 */
218
+ border-color: #1f2937; /* border-gray-800 */
219
+ border-radius: 0.5rem; /* rounded-lg */
220
+ box-shadow: none !important;
221
+ }
222
+
223
+ .dark .sb-previewBlock_header {
224
+ border-style: solid; /* border-solid */
225
+ border-bottom-width: 1px; /* border-b */
226
+ border-bottom-color: #1f2937 !important; /* !border-b-gray-800 */
227
+ box-shadow: none !important;
228
+ }
229
+
230
+ .dark .sb-previewBlock_icon {
231
+ background-color: #374151; /* bg-gray-700 */
232
+ }
233
+
234
+ .dark .sb-argstableBlock-body {
235
+ border-radius: 0.125rem; /* rounded-sm */
236
+ box-shadow: rgb(255 255 255 / 10%) 0 1px 3px 1px, rgb(255 255 255 / 7%) 0 0 0 1px;
237
+ }
238
+
239
+ .dark .sb-argstableBlock-body td {
240
+ background-color: #111827; /* bg-gray-900 */
241
+ border-style: solid; /* border-solid */
242
+ border-bottom-width: 1px; /* border-b */
243
+ border-bottom-color: #1f2937 !important; /* !border-b-gray-800 */
244
+ }
245
+
246
+ .dark .sb-argstableBlock-body tr:last-child td {
247
+ border-bottom-width: 0px; /* border-b-0 */
248
+ }
249
+
250
+ .dark .sb-argstableBlock span,
251
+ .dark .sb-argstableBlock button {
252
+ background-color: #374151; /* bg-gray-700 */
253
+ }
254
+
255
+ /* -------------------- All docs block -------------------- */
256
+
257
+ .dark .sbdocs {
258
+ background-color: #030712; /* bg-gray-950 */
259
+ }
260
+
261
+ /* -------------------- Main story -------------------- */
262
+
263
+ .sb-anchor {
264
+ margin-top: 0.5rem; /* mt-2 */
265
+ }
266
+
267
+ .sb-anchor > p {
268
+ margin-top: -0.5rem; /* mt-2 */
269
+ margin-bottom: -0.5rem; /* -mt-2 */
270
+ }
271
+
272
+ .dark .sb-anchor > p > a {
273
+ color: #4ade80; /* text-green-400 */
274
+ text-decoration: underline dashed #4ade80;
275
+ }
276
+
277
+ .light .sb-anchor > p > a {
278
+ color: #16a34a; /* text-green-600 */
279
+ text-decoration: underline dashed #16a34a;
280
+ }
281
+
282
+ .sb-bar,
283
+ .docs-story {
284
+ background-color: #ffffff; /* bg-white */
285
+ }
286
+
287
+ .vl-dark .sb-bar,
288
+ .vl-dark .docs-story,
289
+ .vl-dark .docs-story + div {
290
+ background-color: #111827 !important; /* !bg-gray-900 */
291
+ }
292
+
293
+ /* prevents showing scrollbar in buttons stories */
294
+ .docs-story > div > div {
295
+ overflow-y: hidden;
296
+ }
297
+
298
+ .sb-bar {
299
+ border-width: 0; /* border-0 */
300
+ }
301
+
302
+ .dark .sb-bar {
303
+ border-bottom: 1px solid #d1d5db; /* border-b border-gray-300 */
304
+ box-shadow: none !important;
305
+ }
306
+
307
+ .vl-dark .sb-bar {
308
+ border-bottom: 1px solid #1f2937; /* border-b border-gray-800 */
309
+ box-shadow: none !important;
310
+ }
311
+
312
+ .sbdocs.sbdocs-preview .prismjs {
313
+ border-top: 1px solid #374151; /* border-t border-t-gray-700 */
314
+ background-color: #1f2937; /* bg-gray-800 */
315
+ }
316
+
317
+ .vl-dark .docblock-code-toggle {
318
+ background-color: #1f2937; /* bg-gray-800 */
319
+ border-color: #1f2937; /* border-gray-800 */
320
+ color: #9ca3af; /* text-gray-400 */
321
+ }
322
+
323
+ .vl-light .docblock-code-toggle {
324
+ border: 1px solid #d1d5db !important; /* !border border-gray-300 */
325
+ }
326
+
327
+ .vl-dark .docblock-code-toggle {
328
+ border: 1px solid #374151 !important; /* !border border-gray-700 */
329
+ }
330
+
331
+ .docblock-code-toggle,
332
+ .docblock-source > div > button,
333
+ .docs-story > div > button,
334
+ .docs-story + div > div > button {
335
+ margin: 0 4px 4px 0 !important;
336
+ border-radius: 8px !important;
337
+ box-shadow: none !important;
338
+ }
339
+
340
+ .docblock-code-toggle,
341
+ .docblock-source > div,
342
+ .docs-story > div,
343
+ .docs-story + div > div {
344
+ background: transparent !important;
345
+ }
346
+
347
+ .sbdocs-preview {
348
+ border-radius: 8px !important;
349
+ box-shadow: none !important;
350
+ }
351
+
352
+ .dark .sbdocs.sbdocs-preview,
353
+ .vl-dark .sbdocs.sbdocs-preview {
354
+ border-color: #1f2937; /* border-gray-800 */
355
+ }
356
+
357
+ /* -------------------- Args table -------------------- */
358
+
359
+ @media screen and (max-width: 600px) {
360
+ div:has(> .docblock-argstable) {
361
+ margin-bottom: 2.5rem !important;
362
+ overflow-x: scroll;
363
+ }
364
+
365
+ .docblock-argstable {
366
+ margin-bottom: 0 !important;
367
+ }
368
+ }
369
+
370
+ .dark .docblock-argstable,
371
+ .dark .docblock-argstable-head th {
372
+ color: rgb(229, 231, 235) !important; /* text-gray-200 */
373
+ }
374
+
375
+ .docblock-argstable-body {
376
+ border-radius: 0.5rem; /* rounded-lg */
377
+ filter: none !important;
378
+ }
379
+
380
+ .docblock-argstable-body tr td {
381
+ border-radius: 0 !important; /* !rounded-none */
382
+ }
383
+
384
+ .docblock-argstable-body tr:not([title]) > td {
385
+ background-color: #fff !important; /* bg-white */
386
+ }
387
+
388
+ .dark .docblock-argstable-body tr > td {
389
+ border-top: 1px solid rgb(31, 41, 55) !important;
390
+ border-bottom: 1px solid rgb(31, 41, 55) !important; /* border-b border-gray-800 */
391
+ background-color: rgb(17, 24, 39) !important; /* bg-gray-900 */
392
+ border-inline-start-style: solid;
393
+ border-inline-start-width: 0;
394
+ border-inline-end-style: solid;
395
+ border-inline-end-width: 0;
396
+ }
397
+
398
+ .dark .docblock-argstable-body tr > td:first-child,
399
+ .dark .docblock-argstable-body tr > td:last-child {
400
+ border-inline-start-color: rgb(31, 41, 55) !important; /* border-s-gray-800 */
401
+ border-inline-end-color: rgb(31, 41, 55) !important; /* border-s-gray-800 */
402
+ }
403
+
404
+ .dark .docblock-argstable-body {
405
+ border-bottom: 1px solid rgb(31, 41, 55); /* border-b-gray-800 */
406
+ }
407
+
408
+ .dark .docblock-argstable-body tr[title] > td {
409
+ background-color: rgb(31, 41, 55) !important;
410
+ color: rgb(156, 163, 175) !important; /* text-gray-400 */
411
+ }
412
+
413
+ .dark .docblock-argstable-body tr[title] > td svg {
414
+ color: rgb(156, 163, 175) !important; /* text-gray-400 */
415
+ }
416
+
417
+ .light .sbdocs .sbdocs-content code,
418
+ .light .docblock-argstable-body tr > td > div + div > span[class],
419
+ .light .docblock-argstable-body tr > td > div + div > div > span,
420
+ .light .docblock-argstable-body tr > td:nth-child(2) > div > div > span[class],
421
+ .light .docblock-argstable-body tr > td:nth-child(3) > div > span[class],
422
+ .light .docblock-argstable-body tr > td:nth-child(3) > span[class] {
423
+ background-color: rgb(243, 244, 246); /* bg-gray-100 */
424
+ border-color: rgb(229, 231, 235); /* border-gray-200 */
425
+ color: rgb(31, 41, 55); /* text-gray-800 */
426
+ }
427
+
428
+ .dark .rejt-value-node:hover .rejt-value,
429
+ .dark .sbdocs .sbdocs-content code,
430
+ .dark .docblock-argstable-body tr > td > div + div > span[class],
431
+ .dark .docblock-argstable-body tr > td > div + div > div > span,
432
+ .dark .docblock-argstable-body tr > td:nth-child(2) > div > div > span[class],
433
+ .dark .docblock-argstable-body tr > td:nth-child(3) > div > span[class],
434
+ .dark .docblock-argstable-body tr > td:nth-child(3) > span[class] {
435
+ background-color: rgb(31, 41, 55); /* bg-gray-800 */
436
+ border-color: rgba(55, 65, 81, 0.5); /* border-gray-700/50 */
437
+ color: rgb(156, 163, 175); /* text-gray-400 */
438
+ border-radius: 4px !important;
439
+ }
440
+
441
+ .dark .sb-story code,
442
+ .light .sb-story code {
443
+ background-color: inherit !important;
444
+ color: inherit !important;
445
+ border-radius: 4px !important;
446
+ }
447
+
448
+ .dark .docblock-argstable-body tr > td > div + div > span:not([class]) {
449
+ color: rgb(156, 163, 175); /* text-gray-400 */
450
+ }
451
+
452
+ .dark .docblock-argstable-body tr > td .rejt-edit-form,
453
+ .dark .docblock-argstable-body tr > td input:not([type="checkbox"]),
454
+ .dark .docblock-argstable-body tr > td textarea,
455
+ .dark .docblock-argstable-body tr > td select,
456
+ .dark .docblock-argstable-body tr > td:nth-child(4) button {
457
+ color: rgb(229, 231, 235); /* text-gray-200 */
458
+ background-color: rgb(31, 41, 55); /* bg-gray-800 */
459
+ border: 1px solid rgba(55, 65, 81, 0.5); /* border-gray-700/50 */
460
+ font-size: 13px;
461
+ box-shadow: none !important;
462
+ color-scheme: dark;
463
+ }
464
+
465
+ .dark .docblock-argstable-body tr > td .rejt-edit-form:hover,
466
+ .dark .docblock-argstable-body tr > td input:hover,
467
+ .dark .docblock-argstable-body tr > td textarea:hover,
468
+ .dark .docblock-argstable-body tr > td select:hover,
469
+ .dark .docblock-argstable-body tr > td:nth-child(4) button:hover {
470
+ border: 1px solid #4b5563; /* border-gray-600 */
471
+ }
472
+
473
+ .dark .docblock-argstable-body tr > td .rejt-edit-form:focus,
474
+ .dark .docblock-argstable-body tr > td input:focus,
475
+ .dark .docblock-argstable-body tr > td textarea:focus,
476
+ .dark .docblock-argstable-body tr > td select:focus,
477
+ .dark .docblock-argstable-body tr > td:nth-child(4) button:focus {
478
+ border: 1px solid rgb(107, 114, 128); /* border-gray-500 */
479
+ }
480
+
481
+ .docblock-argstable-body tr > td .rejt-add-value-node button {
482
+ padding-left: 0.375rem; /* px-1.5 */
483
+ padding-right: 0.375rem;
484
+ padding-top: 0.125rem; /* py-0.5 */
485
+ padding-bottom: 0.125rem;
486
+ line-height: 1;
487
+ }
488
+
489
+ .light .docblock-argstable-body tr > td .rejt-add-value-node button[type="submit"] {
490
+ background-color: #fff;
491
+ }
492
+
493
+ .light .docblock-argstable-body tr > td .rejt-edit-form,
494
+ .light .docblock-argstable-body tr > td input:not([type="checkbox"]),
495
+ .light .docblock-argstable-body tr > td textarea,
496
+ .light .docblock-argstable-body tr > td select,
497
+ .light .docblock-argstable-body tr > td:nth-child(4) button {
498
+ color: rgb(17, 24, 39); /* text-gray-900 */
499
+ border: 1px solid rgb(209, 213, 219); /* border-gray-300 */
500
+ font-size: 13px;
501
+ box-shadow: none !important;
502
+ }
503
+
504
+ .light .docblock-argstable-body tr > td .rejt-edit-form:hover,
505
+ .light .docblock-argstable-body tr > td input:hover,
506
+ .light .docblock-argstable-body tr > td textarea:hover,
507
+ .light .docblock-argstable-body tr > td select:hover,
508
+ .light .docblock-argstable-body tr > td:nth-child(4) button:hover {
509
+ border: 1px solid rgb(156, 163, 175); /* border-gray-400 */
510
+ }
511
+
512
+ .light .docblock-argstable-body tr > td .rejt-edit-form:focus,
513
+ .light .docblock-argstable-body tr > td input:focus,
514
+ .light .docblock-argstable-body tr > td textarea:focus,
515
+ .light .docblock-argstable-body tr > td select:focus,
516
+ .light .docblock-argstable-body tr > td:nth-child(4) button:focus {
517
+ border: 1px solid rgb(107, 114, 128); /* border-gray-500 */
518
+ }
519
+
520
+ .dark .docblock-argstable-body label[aria-disabled] {
521
+ background-color: rgb(31, 41, 55); /* bg-gray-800 */
522
+ }
523
+
524
+ .dark .docblock-argstable-body label[aria-disabled] span {
525
+ color: rgb(229, 231, 235); /* text-gray-200 */
526
+ }
527
+
528
+ .dark .docblock-argstable-body [type='checkbox'],
529
+ .dark .docblock-argstable-body [type='radio'] {
530
+ border: 1px solid rgb(55, 65, 81) !important; /* border-gray-700 */
531
+ box-shadow: none !important;
532
+ }
533
+
534
+ .dark .docblock-argstable-body [type='radio']:checked {
535
+ background-color: rgb(17, 24, 39); /* bg-gray-900 */
536
+ }
537
+
538
+ .light .docblock-argstable-body [type='radio']:checked {
539
+ background-color: rgb(17, 24, 39) !important; /* bg-gray-900 */
540
+ }
541
+
542
+ .docblock-argstable [type='checkbox']:focus,
543
+ .docblock-argstable [type='radio']:focus {
544
+ outline-color: rgb(209, 213, 219) !important; /* ring-gray-300 */
545
+ }
546
+
547
+ .dark .rejt-name,
548
+ .dark .rejt-collapsed-text {
549
+ color: rgb(156, 163, 175) !important; /* text-gray-400 */
550
+ }
551
+
552
+ .dark .rejt-value {
553
+ color: rgb(229, 231, 235) !important; /* text-gray-200 */
554
+ }
555
+
556
+ /* -------------------- Code block and user markdown -------------------- */
557
+
558
+ #storybook-docs h2 {
559
+ margin-top: 2rem; /* mt-8 */
560
+ margin-bottom: 1.5rem; /* mb-6 */
561
+ padding-bottom: 0.5rem; /* pb-2 */
562
+ font-weight: 700; /* font-bold */
563
+ }
564
+
565
+ .dark h2 {
566
+ border-bottom-color: rgb(31, 41, 55); /* border-b-gray-800 */
567
+ }
568
+
569
+ .docblock-source {
570
+ background-color: rgb(31, 41, 55) !important; /* !bg-gray-800 */
571
+ border-color: rgb(31, 41, 55); /* border-gray-800 */
572
+ box-shadow: none !important;
573
+ border-radius: 8px !important;
574
+ }
575
+
576
+ .dark .docblock-source {
577
+ background-color: rgb(17, 24, 39) !important; /* !bg-gray-900 */
578
+ border-color: rgb(31, 41, 55) !important; /* !border-gray-800 */
579
+ }
580
+
581
+ .dark .docblock-source button {
582
+ background-color: rgb(31, 41, 55); /* bg-gray-800 */
583
+ border-color: rgb(31, 41, 55); /* border-gray-800 */
584
+ color: rgb(156, 163, 175); /* text-gray-400 */
585
+ border-top-left-radius: 0; /* rounded-tl-none */
586
+ }
587
+
588
+ .dark a.sbdocs.sbdocs-a {
589
+ color: #6b7280; /* text-gray-500 */
590
+ }
591
+
592
+ .light a.sbdocs.sbdocs-a {
593
+ color: #6b7280; /* text-gray-500 */
594
+ }
595
+
596
+ .light a.sbdocs.sbdocs-a:hover,
597
+ .dark a.sbdocs.sbdocs-a:hover{
598
+ text-decoration: underline dashed #6b7280; /* text-gray-500 */
599
+ text-underline-offset: 3px;
600
+ }
601
+
602
+ /* -------------------- Storybook story preview -------------------- */
603
+
604
+ .vl-dark {
605
+ min-height: 100%; /* min-h-full */
606
+ background-color: rgb(17, 24, 39); /* bg-gray-900 */
607
+ }
608
+
609
+ .vl-light {
610
+ min-height: 100%; /* min-h-full */
611
+ background-color: #ffffff; /* bg-white */
612
+ }
@@ -0,0 +1,45 @@
1
+ import { create } from "storybook/theming/create";
2
+ import type { ThemeVars } from "storybook/theming";
3
+
4
+ export const themeDark: ThemeVars = create({
5
+ base: "dark",
6
+ // Typography
7
+ fontBase: '"Roboto", sans-serif',
8
+ fontCode: "monospace",
9
+
10
+ brandTitle: "Vueless UI",
11
+ brandUrl: "https://vueless.com",
12
+ brandImage: "./images/vueless-logo-dark.svg",
13
+ brandTarget: "_blank",
14
+
15
+ // Main colors
16
+ colorPrimary: "#e5e7eb", // gray-200
17
+ colorSecondary: "#374151", // gray-700
18
+
19
+ // UI
20
+ appBg: "#111827", // gray-900
21
+ appPreviewBg: "#111827", // gray-900
22
+ appBorderColor: "#111827", // gray-900
23
+ appBorderRadius: 0,
24
+
25
+ // Text colors
26
+ textColor: "#d1d5db", // gray-300
27
+ textInverseColor: "#1f2937", // gray-800
28
+
29
+ // Toolbar default and active colors
30
+ barTextColor: "#6b7280", // gray-500
31
+ barHoverColor: "#9ca3af", // gray-400
32
+ barSelectedColor: "#d1d5db", // gray-300
33
+ barBg: "#030712", // gray-950
34
+
35
+ // Form colors
36
+ inputBg: "#030712", // gray-950
37
+ inputBorder: "#4b5563", // gray-600
38
+ inputTextColor: "#f3f4f6", // gray-100
39
+ inputBorderRadius: 4,
40
+
41
+ buttonBg: "#1f2937", // gray-800
42
+ buttonBorder: "#1f2937", // gray-800
43
+ booleanBg: "#111827", // gray-900
44
+ booleanSelectedBg: "#1f2937", // gray-800
45
+ });
@@ -0,0 +1,45 @@
1
+ import { create } from "storybook/theming/create";
2
+ import type { ThemeVars } from "storybook/theming";
3
+
4
+ export const themeLight: ThemeVars = create({
5
+ base: "light",
6
+ // Typography
7
+ fontBase: '"Roboto", sans-serif',
8
+ fontCode: "monospace",
9
+
10
+ brandTitle: "Vueless UI",
11
+ brandUrl: "https://vueless.com",
12
+ brandImage: "./images/vueless-logo-light.svg",
13
+ brandTarget: "_blank",
14
+
15
+ // Main colors
16
+ colorPrimary: "#111827", // gray-900
17
+ colorSecondary: "#6b7280", // gray-500
18
+
19
+ // UI
20
+ appBg: "#ffffff", // white
21
+ appPreviewBg: "#f9fafb", // gray-50
22
+ appBorderColor: "#d1d5db", // gray-300
23
+ appBorderRadius: 0,
24
+
25
+ // Text colors
26
+ textColor: "#111827", // gray-900
27
+ textInverseColor: "#111827", // gray-900
28
+
29
+ // Toolbar default and active colors
30
+ barTextColor: "#6b7280", // gray-500
31
+ barHoverColor: "#4b5563", // gray-600
32
+ barSelectedColor: "#374151", // gray-700
33
+ barBg: "#f9fafb", // gray-50
34
+
35
+ // Form colors
36
+ inputBg: "#ffffff", // white
37
+ inputBorder: "#d1d5db", // gray-300
38
+ inputTextColor: "#111827", // gray-900
39
+ inputBorderRadius: 4,
40
+
41
+ buttonBg: "#f3f4f6", // gray-100
42
+ buttonBorder: "#e5e7eb", // gray-200
43
+ booleanBg: "#f9fafb", // gray-50
44
+ booleanSelectedBg: "#e5e7eb", // gray-200
45
+ });