@vueless/storybook 1.1.3-beta.1 → 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.
- package/.storybook-js/main.js +10 -0
- package/.storybook-js/manager-head.html +34 -0
- package/.storybook-js/manager.js +34 -0
- package/.storybook-js/preview.js +70 -0
- package/.storybook-js/public/favicons/favicon.ico +0 -0
- package/.storybook-js/public/favicons/favicon.svg +4 -0
- package/.storybook-js/public/images/vueless-logo-dark.svg +12 -0
- package/.storybook-js/public/images/vueless-logo-light.svg +12 -0
- package/.storybook-js/themes/manager.css +177 -0
- package/{.storybook/index.css → .storybook-js/themes/preview.css} +0 -1
- package/.storybook-js/themes/themeDark.js +44 -0
- package/.storybook-js/themes/themeLight.js +44 -0
- package/.storybook-js/themes/themeLightPreview.js +40 -0
- package/{.storybook → .storybook-js}/vite.config.js +1 -0
- package/.storybook-ts/env.d.ts +4 -0
- package/.storybook-ts/main.ts +10 -0
- package/.storybook-ts/manager-head.html +34 -0
- package/.storybook-ts/manager.ts +34 -0
- package/.storybook-ts/preview-head.html +11 -0
- package/.storybook-ts/preview.ts +73 -0
- package/.storybook-ts/public/favicons/favicon.ico +0 -0
- package/.storybook-ts/public/favicons/favicon.svg +4 -0
- package/.storybook-ts/public/images/vueless-logo-dark.svg +12 -0
- package/.storybook-ts/public/images/vueless-logo-light.svg +12 -0
- package/.storybook-ts/themes/manager.css +177 -0
- package/.storybook-ts/themes/preview.css +612 -0
- package/.storybook-ts/themes/themeDark.ts +45 -0
- package/.storybook-ts/themes/themeLight.ts +45 -0
- package/.storybook-ts/themes/themeLightPreview.ts +41 -0
- package/.storybook-ts/tsconfig.app.json +35 -0
- package/.storybook-ts/tsconfig.json +11 -0
- package/.storybook-ts/tsconfig.node.json +13 -0
- package/.storybook-ts/vite.config.ts +24 -0
- package/LICENSE +1 -1
- package/README.md +29 -2
- package/bin/index.js +89 -0
- package/decorators/storyDarkModeDecorator.js +37 -0
- package/index.d.ts +2 -0
- package/index.js +2 -114
- package/package.json +29 -22
- package/webTypes/index.js +0 -0
- package/.storybook/decorators/storyDarkModeDecorator.js +0 -49
- package/.storybook/main.js +0 -28
- package/.storybook/manager-head.html +0 -215
- package/.storybook/manager.js +0 -18
- package/.storybook/preview.js +0 -72
- package/.storybook/themes/tailwindColors.js +0 -290
- package/.storybook/themes/themeDark.js +0 -46
- package/.storybook/themes/themeLight.js +0 -46
- package/.storybook/themes/themeLightDocs.js +0 -41
- /package/{.storybook → .storybook-js}/preview-head.html +0 -0
- /package/{.storybook/decorators → decorators}/vue3SourceDecorator.js +0 -0
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Overrides content of storybook layout HTML page <head> tag,
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<link rel="shortcut icon" href="https://raw.githubusercontent.com/vuelessjs/vueless-storybook/main/public/favicons/favicon.ico">
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="https://raw.githubusercontent.com/vuelessjs/vueless-storybook/main/public/favicons/favicon.svg" />
|
|
7
|
-
|
|
8
|
-
<!--
|
|
9
|
-
Custom dark mode related vueless loader.
|
|
10
|
-
-->
|
|
11
|
-
<div id="sb-vueless-loader">
|
|
12
|
-
<img
|
|
13
|
-
class="sb-vueless-loader-img-dark"
|
|
14
|
-
src="https://raw.githubusercontent.com/vuelessjs/vueless-storybook/main/public/images/vueless-logo-dark.svg"
|
|
15
|
-
alt="Vueless UI"
|
|
16
|
-
width="250" />
|
|
17
|
-
|
|
18
|
-
<img
|
|
19
|
-
class="sb-vueless-loader-img-light"
|
|
20
|
-
src="https://raw.githubusercontent.com/vuelessjs/vueless-storybook/main/public/images/vueless-logo-light.svg"
|
|
21
|
-
alt="Vueless UI"
|
|
22
|
-
width="250" />
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
/* -------------------- Prevent showing users default storybook theme styles -------------------- */
|
|
27
|
-
|
|
28
|
-
html.dark {
|
|
29
|
-
background: #111827;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
#root {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
#sb-vueless-loader {
|
|
37
|
-
top: 0;
|
|
38
|
-
left: 0;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
position: fixed;
|
|
43
|
-
background: inherit;
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
z-index: 999;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.light #sb-vueless-loader {
|
|
50
|
-
background: #f1f5f9;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.dark #sb-vueless-loader {
|
|
54
|
-
background: #111827;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.sb-vueless-loader-img-dark,
|
|
58
|
-
.sb-vueless-loader-img-light {
|
|
59
|
-
display: none;
|
|
60
|
-
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.light .sb-vueless-loader-img-light {
|
|
64
|
-
display: block;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.dark .sb-vueless-loader-img-dark {
|
|
68
|
-
display: block;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@keyframes pulse {
|
|
72
|
-
0%, 100% {
|
|
73
|
-
opacity: 1;
|
|
74
|
-
}
|
|
75
|
-
50% {
|
|
76
|
-
opacity: .5;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* -------------------- Storybook config tooltip -------------------- */
|
|
81
|
-
|
|
82
|
-
div[data-testid="tooltip"] {
|
|
83
|
-
border-radius: 8px;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
div[data-testid="tooltip"] a[id]:hover,
|
|
88
|
-
div[data-testid="tooltip"] button[id]:hover {
|
|
89
|
-
background-color: rgb(17 24 39 / 5%) !important;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.dark div[data-testid="tooltip"] a[id]:hover,
|
|
93
|
-
.dark div[data-testid="tooltip"] button[id]:hover {
|
|
94
|
-
background-color: rgb(255 255 255 / 5%) !important;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* -------------------- Storybook sidebar -------------------- */
|
|
98
|
-
|
|
99
|
-
.dark .sidebar-container {
|
|
100
|
-
background: #020713;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.sidebar-header img {
|
|
104
|
-
width: 150px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.sidebar-header a:focus {
|
|
108
|
-
border: 1px solid transparent;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.sidebar-item {
|
|
112
|
-
border-radius: 6px !important;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.dark .sidebar-item:hover {
|
|
116
|
-
background: #101828 !important;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.dark .sidebar-item[data-selected="true"],
|
|
120
|
-
.dark .sidebar-item[data-selected="true"]:hover {
|
|
121
|
-
background: #1f2937 !important;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.search-field,
|
|
125
|
-
.search-result-item {
|
|
126
|
-
border-radius: 8px !important;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.sidebar-item,
|
|
130
|
-
.search-result-item {
|
|
131
|
-
text-transform: capitalize;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.light .sidebar-item svg[type="component"],
|
|
135
|
-
.light .search-result-item svg[type="component"],
|
|
136
|
-
.dark .search-result-item mark {
|
|
137
|
-
color: #10b981;
|
|
138
|
-
font-weight: 600;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.dark .sidebar-item svg[type="component"],
|
|
142
|
-
.dark .search-result-item svg[type="component"],
|
|
143
|
-
.light .search-result-item mark {
|
|
144
|
-
color: #059669;
|
|
145
|
-
font-weight: 600;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.light .sidebar-item svg[type="document"],
|
|
149
|
-
.light .sidebar-item svg[type="story"],
|
|
150
|
-
.light .search-result-item svg[type="document"],
|
|
151
|
-
.light .search-result-item svg[type="story"] {
|
|
152
|
-
color: #9ca3af;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.dark .sidebar-item svg[type="document"],
|
|
156
|
-
.dark .sidebar-item svg[type="story"],
|
|
157
|
-
.dark .search-result-item svg[type="document"],
|
|
158
|
-
.dark .search-result-item svg[type="story"] {
|
|
159
|
-
color: #4b5563;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.light .search-result-item--label {
|
|
163
|
-
color: #6b7280; /* text-gray-600 */
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.dark .search-result-item--label {
|
|
167
|
-
color: #a8abb0; /* text-gray-400 */
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
#sidebar-bottom-wrapper {
|
|
171
|
-
display: none;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/* -------------------- Storybook args -------------------- */
|
|
175
|
-
|
|
176
|
-
.dark,
|
|
177
|
-
.dark #panel-tab-content div,
|
|
178
|
-
.dark .docblock-argstable-body > tr > td {
|
|
179
|
-
background: #030712 !important;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.light,
|
|
183
|
-
.light #panel-tab-content div,
|
|
184
|
-
.light .docblock-argstable-body > tr > td {
|
|
185
|
-
background: #f9fafb !important;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.dark .docblock-argstable-head > tr {
|
|
189
|
-
background: #1e293b !important;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.dark .docblock-argstable-body tr > td textarea,
|
|
193
|
-
.dark .docblock-argstable-body tr > td select,
|
|
194
|
-
.dark .docblock-argstable-body tr > td:last-child button:not([tabindex="-1"]) {
|
|
195
|
-
background: #111827;
|
|
196
|
-
border: solid 1px #1f2937;
|
|
197
|
-
box-shadow: none;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.light .docblock-argstable-body tr > td:last-child button:not([tabindex="-1"]) {
|
|
201
|
-
background: white;
|
|
202
|
-
}
|
|
203
|
-
</style>
|
|
204
|
-
|
|
205
|
-
<script>
|
|
206
|
-
/* This trick prevents showing users default storybook theme */
|
|
207
|
-
(() => {
|
|
208
|
-
window.onload = function() {
|
|
209
|
-
setTimeout(() => {
|
|
210
|
-
document.getElementById("root").style.visibility = 'visible';
|
|
211
|
-
document.getElementById("sb-vueless-loader").style.display = 'none';
|
|
212
|
-
}, 1500);
|
|
213
|
-
};
|
|
214
|
-
})();
|
|
215
|
-
</script>
|
package/.storybook/manager.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { addons } from "storybook/manager-api";
|
|
2
|
-
import themeLight from "./themes/themeLight.js";
|
|
3
|
-
import themeDark from "./themes/themeDark.js";
|
|
4
|
-
|
|
5
|
-
const prefersColorSchemeDark = window.matchMedia("(prefers-color-scheme: dark)");
|
|
6
|
-
|
|
7
|
-
function setSystemTheme(theme) {
|
|
8
|
-
addons.setConfig({
|
|
9
|
-
theme: theme ? themeDark : themeLight,
|
|
10
|
-
panelPosition: "right",
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
setSystemTheme(prefersColorSchemeDark.matches);
|
|
15
|
-
|
|
16
|
-
prefersColorSchemeDark.addEventListener("change", (event) => {
|
|
17
|
-
setSystemTheme(event.matches);
|
|
18
|
-
});
|
package/.storybook/preview.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { setup } from "@storybook/vue3-vite";
|
|
2
|
-
|
|
3
|
-
import { getRandomId } from "vueless";
|
|
4
|
-
|
|
5
|
-
import themeLight from "./themes/themeLight.js";
|
|
6
|
-
import themeDark from "./themes/themeDark.js";
|
|
7
|
-
import themeLightDocs from "./themes/themeLightDocs.js";
|
|
8
|
-
|
|
9
|
-
import { storyDarkModeDecorator } from "./decorators/storyDarkModeDecorator.js";
|
|
10
|
-
import { vue3SourceDecorator } from "./decorators/vue3SourceDecorator.js";
|
|
11
|
-
|
|
12
|
-
/* Tailwind styles */
|
|
13
|
-
import "./index.css";
|
|
14
|
-
|
|
15
|
-
/* Vue plugins */
|
|
16
|
-
import { createVueless } from "vueless";
|
|
17
|
-
import { createRouter, createWebHistory } from "vue-router";
|
|
18
|
-
|
|
19
|
-
const vueless = createVueless();
|
|
20
|
-
const router = createRouter({ history: createWebHistory(), routes: [] });
|
|
21
|
-
|
|
22
|
-
/* Setup storybook */
|
|
23
|
-
setup((app) => {
|
|
24
|
-
app.config.idPrefix = getRandomId();
|
|
25
|
-
|
|
26
|
-
if (!app._context.config.globalProperties.$route) {
|
|
27
|
-
app.use(router);
|
|
28
|
-
app.use(vueless);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/* Set storybook decorators */
|
|
33
|
-
export const decorators = [vue3SourceDecorator, storyDarkModeDecorator()];
|
|
34
|
-
|
|
35
|
-
/* Set storybook tags */
|
|
36
|
-
export const tags = ["autodocs"];
|
|
37
|
-
|
|
38
|
-
/* Set storybook parameters */
|
|
39
|
-
export const parameters = {
|
|
40
|
-
layout: "fullscreen",
|
|
41
|
-
backgrounds: { disable: true },
|
|
42
|
-
docs: {
|
|
43
|
-
theme: themeLightDocs,
|
|
44
|
-
source: { language: "html" },
|
|
45
|
-
},
|
|
46
|
-
darkMode: {
|
|
47
|
-
light: themeLight,
|
|
48
|
-
dark: themeDark,
|
|
49
|
-
classTarget: "body",
|
|
50
|
-
stylePreview: true,
|
|
51
|
-
},
|
|
52
|
-
options: {
|
|
53
|
-
storySort: (a, b) => {
|
|
54
|
-
const idA = a.id.split("--")[0];
|
|
55
|
-
const idB = b.id.split("--")[0];
|
|
56
|
-
|
|
57
|
-
return idA.localeCompare(idB, undefined, { numeric: true });
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/* Reload the page on the error "Failed to fetch dynamically imported module..." */
|
|
63
|
-
window.addEventListener("error", (ev) => onFailedToFetchModule(ev.message));
|
|
64
|
-
window.addEventListener("unhandledrejection", (ev) => onFailedToFetchModule(ev?.reason?.message));
|
|
65
|
-
|
|
66
|
-
function onFailedToFetchModule(message) {
|
|
67
|
-
const isProd = import.meta.env.MODE === "production";
|
|
68
|
-
|
|
69
|
-
if (isProd && message?.includes("Failed to fetch dynamically imported module")) {
|
|
70
|
-
window.location.reload();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
/* Default tailwind colors */
|
|
2
|
-
export const TAILWIND_COLORS = {
|
|
3
|
-
white: "#ffffff",
|
|
4
|
-
slate: {
|
|
5
|
-
50: "#f8fafc",
|
|
6
|
-
100: "#f1f5f9",
|
|
7
|
-
200: "#e2e8f0",
|
|
8
|
-
300: "#cbd5e1",
|
|
9
|
-
400: "#94a3b8",
|
|
10
|
-
500: "#64748b",
|
|
11
|
-
600: "#475569",
|
|
12
|
-
700: "#334155",
|
|
13
|
-
800: "#1e293b",
|
|
14
|
-
900: "#0f172a",
|
|
15
|
-
950: "#020617",
|
|
16
|
-
},
|
|
17
|
-
gray: {
|
|
18
|
-
50: "#f9fafb",
|
|
19
|
-
100: "#f3f4f6",
|
|
20
|
-
200: "#e5e7eb",
|
|
21
|
-
300: "#d1d5db",
|
|
22
|
-
400: "#9ca3af",
|
|
23
|
-
500: "#6b7280",
|
|
24
|
-
600: "#4b5563",
|
|
25
|
-
700: "#374151",
|
|
26
|
-
800: "#1f2937",
|
|
27
|
-
900: "#111827",
|
|
28
|
-
950: "#030712",
|
|
29
|
-
},
|
|
30
|
-
zinc: {
|
|
31
|
-
50: "#fafafa",
|
|
32
|
-
100: "#f4f4f5",
|
|
33
|
-
200: "#e4e4e7",
|
|
34
|
-
300: "#d4d4d8",
|
|
35
|
-
400: "#a1a1aa",
|
|
36
|
-
500: "#71717a",
|
|
37
|
-
600: "#52525b",
|
|
38
|
-
700: "#3f3f46",
|
|
39
|
-
800: "#27272a",
|
|
40
|
-
900: "#18181b",
|
|
41
|
-
950: "#09090b",
|
|
42
|
-
},
|
|
43
|
-
neutral: {
|
|
44
|
-
50: "#fafafa",
|
|
45
|
-
100: "#f5f5f5",
|
|
46
|
-
200: "#e5e5e5",
|
|
47
|
-
300: "#d4d4d4",
|
|
48
|
-
400: "#a3a3a3",
|
|
49
|
-
500: "#737373",
|
|
50
|
-
600: "#525252",
|
|
51
|
-
700: "#404040",
|
|
52
|
-
800: "#262626",
|
|
53
|
-
900: "#171717",
|
|
54
|
-
950: "#0a0a0a",
|
|
55
|
-
},
|
|
56
|
-
stone: {
|
|
57
|
-
50: "#fafaf9",
|
|
58
|
-
100: "#f5f5f4",
|
|
59
|
-
200: "#e7e5e4",
|
|
60
|
-
300: "#d6d3d1",
|
|
61
|
-
400: "#a8a29e",
|
|
62
|
-
500: "#78716c",
|
|
63
|
-
600: "#57534e",
|
|
64
|
-
700: "#44403c",
|
|
65
|
-
800: "#292524",
|
|
66
|
-
900: "#1c1917",
|
|
67
|
-
950: "#0c0a09",
|
|
68
|
-
},
|
|
69
|
-
red: {
|
|
70
|
-
50: "#fef2f2",
|
|
71
|
-
100: "#fee2e2",
|
|
72
|
-
200: "#fecaca",
|
|
73
|
-
300: "#fca5a5",
|
|
74
|
-
400: "#f87171",
|
|
75
|
-
500: "#ef4444",
|
|
76
|
-
600: "#dc2626",
|
|
77
|
-
700: "#b91c1c",
|
|
78
|
-
800: "#991b1b",
|
|
79
|
-
900: "#7f1d1d",
|
|
80
|
-
950: "#450a0a",
|
|
81
|
-
},
|
|
82
|
-
orange: {
|
|
83
|
-
50: "#fff7ed",
|
|
84
|
-
100: "#ffedd5",
|
|
85
|
-
200: "#fed7aa",
|
|
86
|
-
300: "#fdba74",
|
|
87
|
-
400: "#fb923c",
|
|
88
|
-
500: "#f97316",
|
|
89
|
-
600: "#ea580c",
|
|
90
|
-
700: "#c2410c",
|
|
91
|
-
800: "#9a3412",
|
|
92
|
-
900: "#7c2d12",
|
|
93
|
-
950: "#431407",
|
|
94
|
-
},
|
|
95
|
-
amber: {
|
|
96
|
-
50: "#fffbeb",
|
|
97
|
-
100: "#fef3c7",
|
|
98
|
-
200: "#fde68a",
|
|
99
|
-
300: "#fcd34d",
|
|
100
|
-
400: "#fbbf24",
|
|
101
|
-
500: "#f59e0b",
|
|
102
|
-
600: "#d97706",
|
|
103
|
-
700: "#b45309",
|
|
104
|
-
800: "#92400e",
|
|
105
|
-
900: "#78350f",
|
|
106
|
-
950: "#451a03",
|
|
107
|
-
},
|
|
108
|
-
yellow: {
|
|
109
|
-
50: "#fefce8",
|
|
110
|
-
100: "#fef9c3",
|
|
111
|
-
200: "#fef08a",
|
|
112
|
-
300: "#fde047",
|
|
113
|
-
400: "#facc15",
|
|
114
|
-
500: "#eab308",
|
|
115
|
-
600: "#ca8a04",
|
|
116
|
-
700: "#a16207",
|
|
117
|
-
800: "#854d0e",
|
|
118
|
-
900: "#713f12",
|
|
119
|
-
950: "#422006",
|
|
120
|
-
},
|
|
121
|
-
lime: {
|
|
122
|
-
50: "#f7fee7",
|
|
123
|
-
100: "#ecfccb",
|
|
124
|
-
200: "#d9f99d",
|
|
125
|
-
300: "#bef264",
|
|
126
|
-
400: "#a3e635",
|
|
127
|
-
500: "#84cc16",
|
|
128
|
-
600: "#65a30d",
|
|
129
|
-
700: "#4d7c0f",
|
|
130
|
-
800: "#3f6212",
|
|
131
|
-
900: "#365314",
|
|
132
|
-
950: "#1a2e05",
|
|
133
|
-
},
|
|
134
|
-
green: {
|
|
135
|
-
50: "#f0fdf4",
|
|
136
|
-
100: "#dcfce7",
|
|
137
|
-
200: "#bbf7d0",
|
|
138
|
-
300: "#86efac",
|
|
139
|
-
400: "#4ade80",
|
|
140
|
-
500: "#22c55e",
|
|
141
|
-
600: "#16a34a",
|
|
142
|
-
700: "#15803d",
|
|
143
|
-
800: "#166534",
|
|
144
|
-
900: "#14532d",
|
|
145
|
-
950: "#052e16",
|
|
146
|
-
},
|
|
147
|
-
emerald: {
|
|
148
|
-
50: "#ecfdf5",
|
|
149
|
-
100: "#d1fae5",
|
|
150
|
-
200: "#a7f3d0",
|
|
151
|
-
300: "#6ee7b7",
|
|
152
|
-
400: "#34d399",
|
|
153
|
-
500: "#10b981",
|
|
154
|
-
600: "#059669",
|
|
155
|
-
700: "#047857",
|
|
156
|
-
800: "#065f46",
|
|
157
|
-
900: "#064e3b",
|
|
158
|
-
950: "#022c22",
|
|
159
|
-
},
|
|
160
|
-
teal: {
|
|
161
|
-
50: "#f0fdfa",
|
|
162
|
-
100: "#ccfbf1",
|
|
163
|
-
200: "#99f6e4",
|
|
164
|
-
300: "#5eead4",
|
|
165
|
-
400: "#2dd4bf",
|
|
166
|
-
500: "#14b8a6",
|
|
167
|
-
600: "#0d9488",
|
|
168
|
-
700: "#0f766e",
|
|
169
|
-
800: "#115e59",
|
|
170
|
-
900: "#134e4a",
|
|
171
|
-
950: "#042f2e",
|
|
172
|
-
},
|
|
173
|
-
cyan: {
|
|
174
|
-
50: "#ecfeff",
|
|
175
|
-
100: "#cffafe",
|
|
176
|
-
200: "#a5f3fc",
|
|
177
|
-
300: "#67e8f9",
|
|
178
|
-
400: "#22d3ee",
|
|
179
|
-
500: "#06b6d4",
|
|
180
|
-
600: "#0891b2",
|
|
181
|
-
700: "#0e7490",
|
|
182
|
-
800: "#155e75",
|
|
183
|
-
900: "#164e63",
|
|
184
|
-
950: "#083344",
|
|
185
|
-
},
|
|
186
|
-
sky: {
|
|
187
|
-
50: "#f0f9ff",
|
|
188
|
-
100: "#e0f2fe",
|
|
189
|
-
200: "#bae6fd",
|
|
190
|
-
300: "#7dd3fc",
|
|
191
|
-
400: "#38bdf8",
|
|
192
|
-
500: "#0ea5e9",
|
|
193
|
-
600: "#0284c7",
|
|
194
|
-
700: "#0369a1",
|
|
195
|
-
800: "#075985",
|
|
196
|
-
900: "#0c4a6e",
|
|
197
|
-
950: "#082f49",
|
|
198
|
-
},
|
|
199
|
-
blue: {
|
|
200
|
-
50: "#eff6ff",
|
|
201
|
-
100: "#dbeafe",
|
|
202
|
-
200: "#bfdbfe",
|
|
203
|
-
300: "#93c5fd",
|
|
204
|
-
400: "#60a5fa",
|
|
205
|
-
500: "#3b82f6",
|
|
206
|
-
600: "#2563eb",
|
|
207
|
-
700: "#1d4ed8",
|
|
208
|
-
800: "#1e40af",
|
|
209
|
-
900: "#1e3a8a",
|
|
210
|
-
950: "#172554",
|
|
211
|
-
},
|
|
212
|
-
indigo: {
|
|
213
|
-
50: "#eef2ff",
|
|
214
|
-
100: "#e0e7ff",
|
|
215
|
-
200: "#c7d2fe",
|
|
216
|
-
300: "#a5b4fc",
|
|
217
|
-
400: "#818cf8",
|
|
218
|
-
500: "#6366f1",
|
|
219
|
-
600: "#4f46e5",
|
|
220
|
-
700: "#4338ca",
|
|
221
|
-
800: "#3730a3",
|
|
222
|
-
900: "#312e81",
|
|
223
|
-
950: "#1e1b4b",
|
|
224
|
-
},
|
|
225
|
-
violet: {
|
|
226
|
-
50: "#f5f3ff",
|
|
227
|
-
100: "#ede9fe",
|
|
228
|
-
200: "#ddd6fe",
|
|
229
|
-
300: "#c4b5fd",
|
|
230
|
-
400: "#a78bfa",
|
|
231
|
-
500: "#8b5cf6",
|
|
232
|
-
600: "#7c3aed",
|
|
233
|
-
700: "#6d28d9",
|
|
234
|
-
800: "#5b21b6",
|
|
235
|
-
900: "#4c1d95",
|
|
236
|
-
950: "#2e1065",
|
|
237
|
-
},
|
|
238
|
-
purple: {
|
|
239
|
-
50: "#faf5ff",
|
|
240
|
-
100: "#f3e8ff",
|
|
241
|
-
200: "#e9d5ff",
|
|
242
|
-
300: "#d8b4fe",
|
|
243
|
-
400: "#c084fc",
|
|
244
|
-
500: "#a855f7",
|
|
245
|
-
600: "#9333ea",
|
|
246
|
-
700: "#7e22ce",
|
|
247
|
-
800: "#6b21a8",
|
|
248
|
-
900: "#581c87",
|
|
249
|
-
950: "#3b0764",
|
|
250
|
-
},
|
|
251
|
-
fuchsia: {
|
|
252
|
-
50: "#fdf4ff",
|
|
253
|
-
100: "#fae8ff",
|
|
254
|
-
200: "#f5d0fe",
|
|
255
|
-
300: "#f0abfc",
|
|
256
|
-
400: "#e879f9",
|
|
257
|
-
500: "#d946ef",
|
|
258
|
-
600: "#c026d3",
|
|
259
|
-
700: "#a21caf",
|
|
260
|
-
800: "#86198f",
|
|
261
|
-
900: "#701a75",
|
|
262
|
-
950: "#4a044e",
|
|
263
|
-
},
|
|
264
|
-
pink: {
|
|
265
|
-
50: "#fdf2f8",
|
|
266
|
-
100: "#fce7f3",
|
|
267
|
-
200: "#fbcfe8",
|
|
268
|
-
300: "#f9a8d4",
|
|
269
|
-
400: "#f472b6",
|
|
270
|
-
500: "#ec4899",
|
|
271
|
-
600: "#db2777",
|
|
272
|
-
700: "#be185d",
|
|
273
|
-
800: "#9d174d",
|
|
274
|
-
900: "#831843",
|
|
275
|
-
950: "#500724",
|
|
276
|
-
},
|
|
277
|
-
rose: {
|
|
278
|
-
50: "#fff1f2",
|
|
279
|
-
100: "#ffe4e6",
|
|
280
|
-
200: "#fecdd3",
|
|
281
|
-
300: "#fda4af",
|
|
282
|
-
400: "#fb7185",
|
|
283
|
-
500: "#f43f5e",
|
|
284
|
-
600: "#e11d48",
|
|
285
|
-
700: "#be123c",
|
|
286
|
-
800: "#9f1239",
|
|
287
|
-
900: "#881337",
|
|
288
|
-
950: "#4c0519",
|
|
289
|
-
},
|
|
290
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { create } from "storybook/theming/create";
|
|
2
|
-
import { TAILWIND_COLORS } from "./tailwindColors.js";
|
|
3
|
-
|
|
4
|
-
export default 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:
|
|
13
|
-
"https://raw.githubusercontent.com/vuelessjs/vueless-storybook/main/public/images/vueless-logo-dark.svg",
|
|
14
|
-
brandTarget: "_blank",
|
|
15
|
-
|
|
16
|
-
// Main colors
|
|
17
|
-
colorPrimary: TAILWIND_COLORS.gray["200"],
|
|
18
|
-
colorSecondary: TAILWIND_COLORS.gray["700"],
|
|
19
|
-
|
|
20
|
-
// UI
|
|
21
|
-
appBg: TAILWIND_COLORS.gray["900"],
|
|
22
|
-
appPreviewBg: TAILWIND_COLORS.gray["900"],
|
|
23
|
-
appBorderColor: TAILWIND_COLORS.gray["900"],
|
|
24
|
-
appBorderRadius: 0,
|
|
25
|
-
|
|
26
|
-
// Text colors
|
|
27
|
-
textColor: TAILWIND_COLORS.gray["300"],
|
|
28
|
-
textInverseColor: TAILWIND_COLORS.gray["800"],
|
|
29
|
-
|
|
30
|
-
// Toolbar default and active colors
|
|
31
|
-
barTextColor: TAILWIND_COLORS.gray["500"],
|
|
32
|
-
barHoverColor: TAILWIND_COLORS.gray["400"],
|
|
33
|
-
barSelectedColor: TAILWIND_COLORS.gray["300"],
|
|
34
|
-
barBg: TAILWIND_COLORS.gray["950"],
|
|
35
|
-
|
|
36
|
-
// Form colors
|
|
37
|
-
inputBg: TAILWIND_COLORS.gray["950"],
|
|
38
|
-
inputBorder: TAILWIND_COLORS.gray["600"],
|
|
39
|
-
inputTextColor: TAILWIND_COLORS.gray["100"],
|
|
40
|
-
inputBorderRadius: 4,
|
|
41
|
-
|
|
42
|
-
buttonBg: TAILWIND_COLORS.gray["800"],
|
|
43
|
-
buttonBorder: TAILWIND_COLORS.gray["800"],
|
|
44
|
-
booleanBg: TAILWIND_COLORS.gray["900"],
|
|
45
|
-
booleanSelectedBg: TAILWIND_COLORS.gray["800"],
|
|
46
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { create } from "storybook/theming/create";
|
|
2
|
-
import { TAILWIND_COLORS } from "./tailwindColors.js";
|
|
3
|
-
|
|
4
|
-
export default 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:
|
|
13
|
-
"https://raw.githubusercontent.com/vuelessjs/vueless-storybook/main/public/images/vueless-logo-light.svg",
|
|
14
|
-
brandTarget: "_blank",
|
|
15
|
-
|
|
16
|
-
// Main colors
|
|
17
|
-
colorPrimary: TAILWIND_COLORS.gray["900"],
|
|
18
|
-
colorSecondary: TAILWIND_COLORS.gray["500"],
|
|
19
|
-
|
|
20
|
-
// UI
|
|
21
|
-
appBg: TAILWIND_COLORS.white,
|
|
22
|
-
appPreviewBg: TAILWIND_COLORS.gray["50"],
|
|
23
|
-
appBorderColor: TAILWIND_COLORS.gray["300"],
|
|
24
|
-
appBorderRadius: 0,
|
|
25
|
-
|
|
26
|
-
// Text colors
|
|
27
|
-
textColor: TAILWIND_COLORS.gray["900"],
|
|
28
|
-
textInverseColor: TAILWIND_COLORS.gray["900"],
|
|
29
|
-
|
|
30
|
-
// Toolbar default and active colors
|
|
31
|
-
barTextColor: TAILWIND_COLORS.gray["500"],
|
|
32
|
-
barHoverColor: TAILWIND_COLORS.gray["600"],
|
|
33
|
-
barSelectedColor: TAILWIND_COLORS.gray["700"],
|
|
34
|
-
barBg: TAILWIND_COLORS.gray["50"],
|
|
35
|
-
|
|
36
|
-
// Form colors
|
|
37
|
-
inputBg: TAILWIND_COLORS.white,
|
|
38
|
-
inputBorder: TAILWIND_COLORS.gray["300"],
|
|
39
|
-
inputTextColor: TAILWIND_COLORS.gray["900"],
|
|
40
|
-
inputBorderRadius: 4,
|
|
41
|
-
|
|
42
|
-
buttonBg: TAILWIND_COLORS.gray["100"],
|
|
43
|
-
buttonBorder: TAILWIND_COLORS.gray["200"],
|
|
44
|
-
booleanBg: TAILWIND_COLORS.gray["50"],
|
|
45
|
-
booleanSelectedBg: TAILWIND_COLORS.gray["200"],
|
|
46
|
-
});
|