shirkasoft-ui-components 1.3.14 → 1.4.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.
- package/README.md +447 -67
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +7 -7
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +11 -11
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +6 -6
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +914 -0
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +8 -8
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +901 -753
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +5 -5
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +16 -9
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +646 -0
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-knob.mjs +44 -17
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +16 -16
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +42 -31
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +8 -8
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +79 -29
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +7 -7
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +50 -23
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +6 -6
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +4 -4
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +165 -111
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +21 -23
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +9 -9
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +63 -30
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +280 -0
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs +180 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +10 -22
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +60 -53
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +29 -11
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +22 -11
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +9 -10
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/package.json +33 -3
- package/src/baseline.css +2472 -0
- package/src/theme.css +15 -543
- package/src/themes/ocean.css +56 -0
- package/src/themes/sunset.css +55 -0
- package/src/themes/violet.css +25 -0
- package/src/tokens.css +612 -0
- package/types/shirkasoft-ui-components-button.d.ts +1 -1
- package/types/shirkasoft-ui-components-config.d.ts +368 -0
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +2 -1
- package/types/shirkasoft-ui-components-date-picker.d.ts +276 -224
- package/types/shirkasoft-ui-components-fieldset.d.ts +2 -1
- package/types/shirkasoft-ui-components-file-upload.d.ts +11 -5
- package/types/shirkasoft-ui-components-icons.d.ts +1422 -0
- package/types/shirkasoft-ui-components-knob.d.ts +28 -7
- package/types/shirkasoft-ui-components-modal.d.ts +11 -7
- package/types/shirkasoft-ui-components-notification.d.ts +2 -1
- package/types/shirkasoft-ui-components-price-input.d.ts +37 -9
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +3 -3
- package/types/shirkasoft-ui-components-select.d.ts +24 -8
- package/types/shirkasoft-ui-components-sidebar.d.ts +2 -1
- package/types/shirkasoft-ui-components-table.d.ts +91 -77
- package/types/shirkasoft-ui-components-tag.d.ts +1 -1
- package/types/shirkasoft-ui-components-text-field.d.ts +29 -13
- package/types/shirkasoft-ui-components-theme-picker.d.ts +83 -0
- package/types/shirkasoft-ui-components-theme.d.ts +88 -0
- package/types/shirkasoft-ui-components-timeline.d.ts +5 -4
- package/types/shirkasoft-ui-components-toggle.d.ts +20 -13
- package/types/shirkasoft-ui-components-tooltip.d.ts +6 -0
- package/types/shirkasoft-ui-components-utils.d.ts +16 -6
- package/types/shirkasoft-ui-components-wizard.d.ts +4 -3
package/src/theme.css
CHANGED
|
@@ -1,551 +1,23 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
|
-
Shirkasoft UI Components — Theme
|
|
2
|
+
Shirkasoft UI Components — Theme (tokens + CSS baseline)
|
|
3
3
|
============================================================
|
|
4
4
|
Import in your global styles.css:
|
|
5
|
-
@import '
|
|
5
|
+
@import 'shirkasoft-ui-components/theme.css';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
This entry is self-contained: tokens.css provides the custom
|
|
8
|
+
properties and hand-written utilities, baseline.css provides
|
|
9
|
+
the plain-CSS snapshot of the Tailwind utilities used by the
|
|
10
|
+
component templates. Consumers do not need Tailwind.
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
dark:[background-color:var(--shk-surface-800)]
|
|
14
|
-
focus:[--tw-ring-color:var(--shk-primary-500)]
|
|
12
|
+
If your app already generates those utilities (e.g. a
|
|
13
|
+
Tailwind 4 app that scans the library templates), import
|
|
14
|
+
`tokens.css` instead to avoid shipping the baseline twice.
|
|
15
15
|
============================================================ */
|
|
16
16
|
|
|
17
|
-
:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
--shk-primary-300: #6ee7b7;
|
|
22
|
-
--shk-primary-400: #34d399;
|
|
23
|
-
--shk-primary-500: #10b981;
|
|
24
|
-
--shk-primary-600: #059669;
|
|
25
|
-
--shk-primary-700: #047857;
|
|
26
|
-
--shk-primary-800: #065f46;
|
|
27
|
-
--shk-primary-900: #064e3b;
|
|
28
|
-
--shk-primary-950: #022c22;
|
|
17
|
+
/* Layer order: the hand-written `_shk-*` utilities (tokens.css) sort
|
|
18
|
+
before the generated baseline utilities, so `dark:`/`hover:` variants
|
|
19
|
+
in the templates can override them. Must come before the imports. */
|
|
20
|
+
@layer shk-tokens, shk-utilities;
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
--shk-surface-200: #e4e4e7;
|
|
33
|
-
--shk-surface-300: #d4d4d8;
|
|
34
|
-
--shk-surface-400: #a1a1aa;
|
|
35
|
-
--shk-surface-500: #71717a;
|
|
36
|
-
--shk-surface-600: #52525b;
|
|
37
|
-
--shk-surface-700: #3f3f46;
|
|
38
|
-
--shk-surface-800: #27272a;
|
|
39
|
-
--shk-surface-900: #18181b;
|
|
40
|
-
|
|
41
|
-
--shk-success-50: #f0fdf4;
|
|
42
|
-
--shk-success-400: #4ade80;
|
|
43
|
-
--shk-success-600: #16a34a;
|
|
44
|
-
--shk-success-800: #166534;
|
|
45
|
-
|
|
46
|
-
--shk-error-50: #fef2f2;
|
|
47
|
-
--shk-error-400: #fca5a5;
|
|
48
|
-
--shk-error-500: #ef4444;
|
|
49
|
-
--shk-error-600: #dc2626;
|
|
50
|
-
--shk-error-700: #b91c1c;
|
|
51
|
-
--shk-error-800: #991b1b;
|
|
52
|
-
|
|
53
|
-
--shk-warning-50: #fffbeb;
|
|
54
|
-
--shk-warning-400: #facc15;
|
|
55
|
-
--shk-warning-600: #ca8a04;
|
|
56
|
-
--shk-warning-800: #854d0e;
|
|
57
|
-
|
|
58
|
-
--shk-info-50: #eff6ff;
|
|
59
|
-
--shk-info-400: #60a5fa;
|
|
60
|
-
--shk-info-600: #2563eb;
|
|
61
|
-
--shk-info-800: #1e40af;
|
|
62
|
-
|
|
63
|
-
--shk-amber-50: #fffbeb;
|
|
64
|
-
--shk-amber-400: #fbbf24;
|
|
65
|
-
--shk-amber-600: #d97706;
|
|
66
|
-
--shk-amber-700: #b45309;
|
|
67
|
-
--shk-amber-900: #78350f;
|
|
68
|
-
|
|
69
|
-
--shk-emerald-400: #34d399;
|
|
70
|
-
--shk-emerald-600: #059669;
|
|
71
|
-
--shk-emerald-700: #047857;
|
|
72
|
-
|
|
73
|
-
--shk-bg-overlay: rgba(0, 0, 0, 0.4);
|
|
74
|
-
--shk-bg-overlay-light: rgba(0, 0, 0, 0.3);
|
|
75
|
-
--shk-tooltip-bg: #27272a;
|
|
76
|
-
--shk-tooltip-text: #fff;
|
|
77
|
-
--shk-scrollbar-thumb: #cbd5e1;
|
|
78
|
-
--shk-scrollbar-thumb-hover: #94a3b8;
|
|
79
|
-
|
|
80
|
-
--shk-skeleton-bg: var(--shk-surface-200);
|
|
81
|
-
--shk-skeleton-highlight: rgba(255, 255, 255, 0.6);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.dark {
|
|
85
|
-
--shk-surface-50: #18181b;
|
|
86
|
-
--shk-surface-100: #27272a;
|
|
87
|
-
--shk-surface-200: #3f3f46;
|
|
88
|
-
--shk-surface-300: #52525b;
|
|
89
|
-
--shk-surface-400: #71717a;
|
|
90
|
-
--shk-surface-500: #a1a1aa;
|
|
91
|
-
--shk-surface-600: #d4d4d8;
|
|
92
|
-
--shk-surface-700: #e4e4e7;
|
|
93
|
-
--shk-surface-800: #f4f4f5;
|
|
94
|
-
--shk-surface-900: #fafafa;
|
|
95
|
-
|
|
96
|
-
--shk-primary-50: #ecfdf5;
|
|
97
|
-
--shk-primary-100: #d1fae5;
|
|
98
|
-
--shk-primary-200: #a7f3d0;
|
|
99
|
-
--shk-primary-300: #6ee7b7;
|
|
100
|
-
--shk-primary-400: #34d399;
|
|
101
|
-
--shk-primary-500: #10b981;
|
|
102
|
-
--shk-primary-600: #059669;
|
|
103
|
-
--shk-primary-700: #047857;
|
|
104
|
-
--shk-primary-800: #065f46;
|
|
105
|
-
--shk-primary-900: #064e3b;
|
|
106
|
-
--shk-primary-950: #022c22;
|
|
107
|
-
|
|
108
|
-
--shk-success-50: #052e16;
|
|
109
|
-
--shk-success-400: #22c55e;
|
|
110
|
-
--shk-success-600: #22c55e;
|
|
111
|
-
--shk-success-800: #bbf7d0;
|
|
112
|
-
|
|
113
|
-
--shk-error-50: #450a0a;
|
|
114
|
-
--shk-error-400: #fca5a5;
|
|
115
|
-
--shk-error-500: #f87171;
|
|
116
|
-
--shk-error-600: #dc2626;
|
|
117
|
-
--shk-error-700: #b91c1c;
|
|
118
|
-
--shk-error-800: #fecaca;
|
|
119
|
-
|
|
120
|
-
--shk-warning-50: #422006;
|
|
121
|
-
--shk-warning-400: #facc15;
|
|
122
|
-
--shk-warning-600: #facc15;
|
|
123
|
-
--shk-warning-800: #fde68a;
|
|
124
|
-
|
|
125
|
-
--shk-info-50: #172554;
|
|
126
|
-
--shk-info-400: #60a5fa;
|
|
127
|
-
--shk-info-600: #60a5fa;
|
|
128
|
-
--shk-info-800: #bfdbfe;
|
|
129
|
-
|
|
130
|
-
--shk-amber-50: #451a03;
|
|
131
|
-
--shk-amber-400: #fbbf24;
|
|
132
|
-
--shk-amber-600: #f59e0b;
|
|
133
|
-
--shk-amber-700: #d97706;
|
|
134
|
-
--shk-amber-900: #78350f;
|
|
135
|
-
|
|
136
|
-
--shk-scrollbar-thumb: #475569;
|
|
137
|
-
--shk-scrollbar-thumb-hover: #64748b;
|
|
138
|
-
|
|
139
|
-
--shk-skeleton-bg: var(--shk-surface-100);
|
|
140
|
-
--shk-skeleton-highlight: rgba(255, 255, 255, 0.08);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/* ============================================================
|
|
144
|
-
Background
|
|
145
|
-
============================================================ */
|
|
146
|
-
._shk-bg-white {
|
|
147
|
-
background-color: #fff;
|
|
148
|
-
}
|
|
149
|
-
._shk-bg-overlay {
|
|
150
|
-
background-color: var(--shk-bg-overlay);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
._shk-bg-primary {
|
|
154
|
-
background-color: var(--shk-primary-600);
|
|
155
|
-
}
|
|
156
|
-
._shk-bg-primary-soft {
|
|
157
|
-
background-color: var(--shk-primary-50);
|
|
158
|
-
}
|
|
159
|
-
._shk-bg-primary-border {
|
|
160
|
-
background-color: var(--shk-primary-200);
|
|
161
|
-
}
|
|
162
|
-
.dark ._shk-bg-primary-soft {
|
|
163
|
-
background-color: color-mix(in srgb, var(--shk-primary-900) 30%, transparent);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* Active nav child in dark mode (30% primary-900 over transparent).
|
|
167
|
-
Must be a single token (no spaces) so it works with [class.X] bindings. */
|
|
168
|
-
.dark ._shk-bg-primary-soft-dark {
|
|
169
|
-
background-color: color-mix(in srgb, var(--shk-primary-900) 30%, transparent);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
._shk-bg-surface-50 {
|
|
173
|
-
background-color: var(--shk-surface-50);
|
|
174
|
-
}
|
|
175
|
-
._shk-bg-surface-100 {
|
|
176
|
-
background-color: var(--shk-surface-100);
|
|
177
|
-
}
|
|
178
|
-
._shk-bg-surface-200 {
|
|
179
|
-
background-color: var(--shk-surface-200);
|
|
180
|
-
}
|
|
181
|
-
._shk-bg-surface-300 {
|
|
182
|
-
background-color: var(--shk-surface-300);
|
|
183
|
-
}
|
|
184
|
-
._shk-bg-surface-700 {
|
|
185
|
-
background-color: var(--shk-surface-700);
|
|
186
|
-
}
|
|
187
|
-
._shk-bg-surface-800 {
|
|
188
|
-
background-color: var(--shk-surface-800);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
._shk-bg-red-soft {
|
|
192
|
-
background-color: var(--shk-error-50);
|
|
193
|
-
}
|
|
194
|
-
._shk-bg-green-soft {
|
|
195
|
-
background-color: var(--shk-success-50);
|
|
196
|
-
}
|
|
197
|
-
._shk-bg-blue-soft {
|
|
198
|
-
background-color: var(--shk-info-50);
|
|
199
|
-
}
|
|
200
|
-
._shk-bg-yellow-soft {
|
|
201
|
-
background-color: var(--shk-warning-50);
|
|
202
|
-
}
|
|
203
|
-
._shk-bg-amber-soft {
|
|
204
|
-
background-color: var(--shk-amber-50);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
._shk-bg-red-600 {
|
|
208
|
-
background-color: var(--shk-error-600);
|
|
209
|
-
}
|
|
210
|
-
._shk-bg-amber-600 {
|
|
211
|
-
background-color: var(--shk-amber-600);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
._shk-bg-tooltip {
|
|
215
|
-
background-color: var(--shk-tooltip-bg);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
._shk-bg-emerald {
|
|
219
|
-
background-color: var(--shk-emerald-600);
|
|
220
|
-
}
|
|
221
|
-
._shk-bg-emerald-hover {
|
|
222
|
-
background-color: var(--shk-emerald-700);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/* ============================================================
|
|
226
|
-
Tags (PrimeNG look)
|
|
227
|
-
============================================================ */
|
|
228
|
-
._shk-tag-secondary {
|
|
229
|
-
background-color: var(--shk-surface-100);
|
|
230
|
-
color: var(--shk-surface-600);
|
|
231
|
-
border: 1px solid color-mix(in srgb, var(--shk-surface-400) 25%, transparent);
|
|
232
|
-
}
|
|
233
|
-
._shk-tag-success {
|
|
234
|
-
background-color: var(--shk-success-50);
|
|
235
|
-
color: var(--shk-success-600);
|
|
236
|
-
border: 1px solid color-mix(in srgb, var(--shk-success-600) 15%, #fff);
|
|
237
|
-
}
|
|
238
|
-
._shk-tag-warn,
|
|
239
|
-
._shk-tag-warning {
|
|
240
|
-
background-color: var(--shk-warning-50);
|
|
241
|
-
color: var(--shk-warning-600);
|
|
242
|
-
border: 1px solid color-mix(in srgb, var(--shk-warning-600) 25%, #fff);
|
|
243
|
-
}
|
|
244
|
-
._shk-tag-info {
|
|
245
|
-
background-color: var(--shk-info-50);
|
|
246
|
-
color: var(--shk-info-600);
|
|
247
|
-
border: 1px solid color-mix(in srgb, var(--shk-info-600) 20%, #fff);
|
|
248
|
-
}
|
|
249
|
-
._shk-tag-danger {
|
|
250
|
-
background-color: var(--shk-error-50);
|
|
251
|
-
color: var(--shk-error-600);
|
|
252
|
-
border: 1px solid color-mix(in srgb, var(--shk-error-600) 20%, #fff);
|
|
253
|
-
}
|
|
254
|
-
._shk-tag-contrast {
|
|
255
|
-
background-color: var(--shk-surface-900);
|
|
256
|
-
color: var(--shk-surface-50);
|
|
257
|
-
}
|
|
258
|
-
._shk-tag-default {
|
|
259
|
-
background-color: var(--shk-surface-100);
|
|
260
|
-
color: var(--shk-surface-700);
|
|
261
|
-
}
|
|
262
|
-
.dark ._shk-tag-secondary {
|
|
263
|
-
background-color: var(--shk-surface-700);
|
|
264
|
-
color: var(--shk-surface-300);
|
|
265
|
-
border-color: color-mix(in srgb, var(--shk-surface-400) 20%, transparent);
|
|
266
|
-
}
|
|
267
|
-
.dark ._shk-tag-success {
|
|
268
|
-
background-color: var(--shk-success-50);
|
|
269
|
-
color: var(--shk-success-400);
|
|
270
|
-
border-color: color-mix(in srgb, var(--shk-success-400) 25%, transparent);
|
|
271
|
-
}
|
|
272
|
-
.dark ._shk-tag-warn,
|
|
273
|
-
.dark ._shk-tag-warning {
|
|
274
|
-
background-color: var(--shk-warning-50);
|
|
275
|
-
color: var(--shk-warning-400);
|
|
276
|
-
border-color: color-mix(in srgb, var(--shk-warning-400) 25%, transparent);
|
|
277
|
-
}
|
|
278
|
-
.dark ._shk-tag-info {
|
|
279
|
-
background-color: var(--shk-info-50);
|
|
280
|
-
color: var(--shk-info-400);
|
|
281
|
-
border-color: color-mix(in srgb, var(--shk-info-400) 25%, transparent);
|
|
282
|
-
}
|
|
283
|
-
.dark ._shk-tag-danger {
|
|
284
|
-
background-color: var(--shk-error-50);
|
|
285
|
-
color: var(--shk-error-400);
|
|
286
|
-
border-color: color-mix(in srgb, var(--shk-error-400) 25%, transparent);
|
|
287
|
-
}
|
|
288
|
-
.dark ._shk-tag-contrast {
|
|
289
|
-
background-color: var(--shk-surface-100);
|
|
290
|
-
color: var(--shk-surface-900);
|
|
291
|
-
}
|
|
292
|
-
.dark ._shk-tag-default {
|
|
293
|
-
background-color: var(--shk-surface-700);
|
|
294
|
-
color: var(--shk-surface-300);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/* ============================================================
|
|
298
|
-
Text
|
|
299
|
-
============================================================ */
|
|
300
|
-
._shk-text-white {
|
|
301
|
-
color: #fff;
|
|
302
|
-
}
|
|
303
|
-
._shk-text-tooltip {
|
|
304
|
-
color: var(--shk-tooltip-text);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
._shk-text-surface-200 {
|
|
308
|
-
color: var(--shk-surface-200);
|
|
309
|
-
}
|
|
310
|
-
._shk-text-surface-300 {
|
|
311
|
-
color: var(--shk-surface-300);
|
|
312
|
-
}
|
|
313
|
-
._shk-text-surface-400 {
|
|
314
|
-
color: var(--shk-surface-400);
|
|
315
|
-
}
|
|
316
|
-
._shk-text-surface-500 {
|
|
317
|
-
color: var(--shk-surface-500);
|
|
318
|
-
}
|
|
319
|
-
._shk-text-surface-600 {
|
|
320
|
-
color: var(--shk-surface-600);
|
|
321
|
-
}
|
|
322
|
-
._shk-text-surface-700 {
|
|
323
|
-
color: var(--shk-surface-700);
|
|
324
|
-
}
|
|
325
|
-
._shk-text-surface-800 {
|
|
326
|
-
color: var(--shk-surface-800);
|
|
327
|
-
}
|
|
328
|
-
._shk-text-surface-900 {
|
|
329
|
-
color: var(--shk-surface-900);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
._shk-text-primary {
|
|
333
|
-
color: var(--shk-primary-600);
|
|
334
|
-
}
|
|
335
|
-
._shk-text-primary-700 {
|
|
336
|
-
color: var(--shk-primary-700);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
._shk-text-red-500 {
|
|
340
|
-
color: var(--shk-error-500);
|
|
341
|
-
}
|
|
342
|
-
._shk-text-red-600 {
|
|
343
|
-
color: var(--shk-error-600);
|
|
344
|
-
}
|
|
345
|
-
._shk-text-red-800 {
|
|
346
|
-
color: var(--shk-error-800);
|
|
347
|
-
}
|
|
348
|
-
._shk-text-green-600 {
|
|
349
|
-
color: var(--shk-success-600);
|
|
350
|
-
}
|
|
351
|
-
._shk-text-green-800 {
|
|
352
|
-
color: var(--shk-success-800);
|
|
353
|
-
}
|
|
354
|
-
._shk-text-blue-600 {
|
|
355
|
-
color: var(--shk-info-600);
|
|
356
|
-
}
|
|
357
|
-
._shk-text-blue-800 {
|
|
358
|
-
color: var(--shk-info-800);
|
|
359
|
-
}
|
|
360
|
-
._shk-text-yellow-600 {
|
|
361
|
-
color: var(--shk-warning-600);
|
|
362
|
-
}
|
|
363
|
-
._shk-text-yellow-800 {
|
|
364
|
-
color: var(--shk-warning-800);
|
|
365
|
-
}
|
|
366
|
-
._shk-text-amber-600 {
|
|
367
|
-
color: var(--shk-amber-600);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/* ============================================================
|
|
371
|
-
Border
|
|
372
|
-
============================================================ */
|
|
373
|
-
._shk-border {
|
|
374
|
-
border-color: var(--shk-surface-200);
|
|
375
|
-
}
|
|
376
|
-
._shk-border-surface-300 {
|
|
377
|
-
border-color: var(--shk-surface-300);
|
|
378
|
-
}
|
|
379
|
-
._shk-border-surface-700 {
|
|
380
|
-
border-color: var(--shk-surface-700);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
._shk-border-primary {
|
|
384
|
-
border-color: var(--shk-primary-600);
|
|
385
|
-
}
|
|
386
|
-
._shk-border-primary-200 {
|
|
387
|
-
border-color: var(--shk-primary-200);
|
|
388
|
-
}
|
|
389
|
-
._shk-border-primary-500 {
|
|
390
|
-
border-color: var(--shk-primary-500);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
._shk-border-red {
|
|
394
|
-
border-color: var(--shk-error-500);
|
|
395
|
-
}
|
|
396
|
-
._shk-border-red-400 {
|
|
397
|
-
border-color: var(--shk-error-400);
|
|
398
|
-
}
|
|
399
|
-
._shk-border-green-400 {
|
|
400
|
-
border-color: var(--shk-success-400);
|
|
401
|
-
}
|
|
402
|
-
._shk-border-blue-400 {
|
|
403
|
-
border-color: var(--shk-info-400);
|
|
404
|
-
}
|
|
405
|
-
._shk-border-yellow-400 {
|
|
406
|
-
border-color: var(--shk-warning-400);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/* ============================================================
|
|
410
|
-
Icon colors
|
|
411
|
-
============================================================ */
|
|
412
|
-
._shk-icon-muted {
|
|
413
|
-
color: var(--shk-surface-400);
|
|
414
|
-
}
|
|
415
|
-
._shk-icon-subtle {
|
|
416
|
-
color: var(--shk-surface-300);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
/* ============================================================
|
|
420
|
-
Gradients (top accent bar)
|
|
421
|
-
============================================================ */
|
|
422
|
-
._shk-gradient-emerald {
|
|
423
|
-
background-image: linear-gradient(to right, var(--shk-emerald-400), var(--shk-emerald-600));
|
|
424
|
-
}
|
|
425
|
-
._shk-gradient-red {
|
|
426
|
-
background-image: linear-gradient(to right, var(--shk-error-400), var(--shk-error-600));
|
|
427
|
-
}
|
|
428
|
-
._shk-gradient-blue {
|
|
429
|
-
background-image: linear-gradient(to right, var(--shk-info-400), var(--shk-info-600));
|
|
430
|
-
}
|
|
431
|
-
._shk-gradient-amber {
|
|
432
|
-
background-image: linear-gradient(to right, var(--shk-amber-400), var(--shk-amber-600));
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/* ============================================================
|
|
436
|
-
Scrollbar (table, sidebar, dropdowns, …)
|
|
437
|
-
============================================================ */
|
|
438
|
-
._shk-scrollbar {
|
|
439
|
-
scrollbar-width: thin;
|
|
440
|
-
scrollbar-color: var(--shk-scrollbar-thumb) transparent;
|
|
441
|
-
}
|
|
442
|
-
._shk-scrollbar::-webkit-scrollbar {
|
|
443
|
-
width: 8px;
|
|
444
|
-
height: 8px;
|
|
445
|
-
}
|
|
446
|
-
._shk-scrollbar::-webkit-scrollbar-track {
|
|
447
|
-
background: transparent;
|
|
448
|
-
}
|
|
449
|
-
._shk-scrollbar::-webkit-scrollbar-thumb {
|
|
450
|
-
background: var(--shk-scrollbar-thumb);
|
|
451
|
-
border-radius: 9999px;
|
|
452
|
-
border: 2px solid transparent;
|
|
453
|
-
background-clip: content-box;
|
|
454
|
-
}
|
|
455
|
-
._shk-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
456
|
-
background: var(--shk-scrollbar-thumb-hover);
|
|
457
|
-
border: 2px solid transparent;
|
|
458
|
-
background-clip: content-box;
|
|
459
|
-
}
|
|
460
|
-
._shk-scrollbar::-webkit-scrollbar-corner {
|
|
461
|
-
background: transparent;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/* ============================================================
|
|
465
|
-
Form controls (text-field, price-input, select trigger…)
|
|
466
|
-
Soft focus ring + clearly distinguishable disabled state.
|
|
467
|
-
Element-qualified selectors so they win over the Tailwind
|
|
468
|
-
utilities used in the templates regardless of import order.
|
|
469
|
-
============================================================ */
|
|
470
|
-
:root {
|
|
471
|
-
--shk-ring: color-mix(in srgb, var(--shk-primary-500) 22%, transparent);
|
|
472
|
-
--shk-ring-error: color-mix(in srgb, var(--shk-error-500) 22%, transparent);
|
|
473
|
-
}
|
|
474
|
-
input.shk-control,
|
|
475
|
-
textarea.shk-control,
|
|
476
|
-
div.shk-control {
|
|
477
|
-
transition:
|
|
478
|
-
border-color 0.15s ease,
|
|
479
|
-
box-shadow 0.15s ease,
|
|
480
|
-
background-color 0.15s ease;
|
|
481
|
-
}
|
|
482
|
-
input.shk-control:focus,
|
|
483
|
-
textarea.shk-control:focus,
|
|
484
|
-
div.shk-control:focus,
|
|
485
|
-
div.shk-control:focus-within,
|
|
486
|
-
div.shk-control.open {
|
|
487
|
-
outline: none;
|
|
488
|
-
border-color: var(--shk-primary-500);
|
|
489
|
-
box-shadow: 0 0 0 3px var(--shk-ring);
|
|
490
|
-
}
|
|
491
|
-
/* Lift the focused field over an attached button (search, currency…) so
|
|
492
|
-
the ring isn't hidden on that side. */
|
|
493
|
-
input.shk-control.shk-control-addon:focus {
|
|
494
|
-
position: relative;
|
|
495
|
-
z-index: 1;
|
|
496
|
-
}
|
|
497
|
-
/* Field whose error was just fixed keeps its green state while focused. */
|
|
498
|
-
input.shk-control.shk-control-valid:focus,
|
|
499
|
-
textarea.shk-control.shk-control-valid:focus {
|
|
500
|
-
border-color: var(--shk-success-600);
|
|
501
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--shk-success-600) 22%, transparent);
|
|
502
|
-
}
|
|
503
|
-
/* Invalid field (validation error): red border in every state and theme.
|
|
504
|
-
Specificity (0,2,1) beats Tailwind `dark:[border-color:…]` utilities. */
|
|
505
|
-
input.shk-control[aria-invalid='true'],
|
|
506
|
-
textarea.shk-control[aria-invalid='true'],
|
|
507
|
-
div.shk-control[aria-invalid='true'],
|
|
508
|
-
div.shk-dropzone[aria-invalid='true'],
|
|
509
|
-
div.shk-dropzone[aria-invalid='true']:hover {
|
|
510
|
-
border-color: var(--shk-error-500);
|
|
511
|
-
}
|
|
512
|
-
input.shk-control[aria-invalid='true']:focus,
|
|
513
|
-
textarea.shk-control[aria-invalid='true']:focus,
|
|
514
|
-
div.shk-control[aria-invalid='true']:focus-within,
|
|
515
|
-
div.shk-control[aria-invalid='true'].open {
|
|
516
|
-
border-color: var(--shk-error-500);
|
|
517
|
-
box-shadow: 0 0 0 3px var(--shk-ring-error);
|
|
518
|
-
}
|
|
519
|
-
input.shk-control:disabled,
|
|
520
|
-
textarea.shk-control:disabled,
|
|
521
|
-
div.shk-control.shk-control-disabled {
|
|
522
|
-
background-color: var(--shk-surface-100);
|
|
523
|
-
border-color: var(--shk-surface-200);
|
|
524
|
-
color: var(--shk-surface-500);
|
|
525
|
-
cursor: not-allowed;
|
|
526
|
-
box-shadow: none;
|
|
527
|
-
}
|
|
528
|
-
.dark input.shk-control:disabled,
|
|
529
|
-
.dark textarea.shk-control:disabled,
|
|
530
|
-
.dark div.shk-control.shk-control-disabled {
|
|
531
|
-
background-color: var(--shk-surface-50);
|
|
532
|
-
color: var(--shk-surface-400);
|
|
533
|
-
}
|
|
534
|
-
div.shk-control.shk-control-disabled * {
|
|
535
|
-
cursor: not-allowed;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/* ============================================================
|
|
539
|
-
Reduced motion: honour the OS setting in every component.
|
|
540
|
-
Loading indicators (spinners, dots, bars) are essential feedback
|
|
541
|
-
and keep animating, otherwise the UI looks frozen.
|
|
542
|
-
============================================================ */
|
|
543
|
-
@media (prefers-reduced-motion: reduce) {
|
|
544
|
-
[class*='shk-']:not([class*='spin']):not([class*='shk-loading']),
|
|
545
|
-
[class*='shk-']:not([class*='spin']):not([class*='shk-loading'])::before,
|
|
546
|
-
[class*='shk-']:not([class*='spin']):not([class*='shk-loading'])::after {
|
|
547
|
-
animation-duration: 0.01ms !important;
|
|
548
|
-
animation-iteration-count: 1 !important;
|
|
549
|
-
transition-duration: 0.01ms !important;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
22
|
+
@import './tokens.css';
|
|
23
|
+
@import './baseline.css';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
Shirkasoft UI Components — Theme: Ocean
|
|
3
|
+
Slate surfaces + Sky accent.
|
|
4
|
+
Load after theme.css:
|
|
5
|
+
@import 'shirkasoft-ui-components/themes/ocean.css';
|
|
6
|
+
Activate: <html data-shk-theme="ocean">
|
|
7
|
+
============================================================ */
|
|
8
|
+
|
|
9
|
+
[data-shk-theme='ocean'] {
|
|
10
|
+
--shk-primary-50: #f0f9ff;
|
|
11
|
+
--shk-primary-100: #e0f2fe;
|
|
12
|
+
--shk-primary-200: #bae6fd;
|
|
13
|
+
--shk-primary-300: #7dd3fc;
|
|
14
|
+
--shk-primary-400: #38bdf8;
|
|
15
|
+
--shk-primary-500: #0ea5e9;
|
|
16
|
+
--shk-primary-600: #0284c7;
|
|
17
|
+
--shk-primary-700: #0369a1;
|
|
18
|
+
--shk-primary-800: #075985;
|
|
19
|
+
--shk-primary-900: #0c4a6e;
|
|
20
|
+
--shk-primary-950: #082f49;
|
|
21
|
+
|
|
22
|
+
--shk-surface-50: #f8fafc;
|
|
23
|
+
--shk-surface-100: #f1f5f9;
|
|
24
|
+
--shk-surface-200: #e2e8f0;
|
|
25
|
+
--shk-surface-300: #cbd5e1;
|
|
26
|
+
--shk-surface-400: #94a3b8;
|
|
27
|
+
--shk-surface-500: #64748b;
|
|
28
|
+
--shk-surface-600: #475569;
|
|
29
|
+
--shk-surface-700: #334155;
|
|
30
|
+
--shk-surface-800: #1e293b;
|
|
31
|
+
--shk-surface-900: #0f172a;
|
|
32
|
+
|
|
33
|
+
/* Keep the decorative gradient in the theme accent. */
|
|
34
|
+
--shk-emerald-400: #38bdf8;
|
|
35
|
+
--shk-emerald-600: #0284c7;
|
|
36
|
+
--shk-emerald-700: #0369a1;
|
|
37
|
+
|
|
38
|
+
--shk-scrollbar-thumb: #cbd5e1;
|
|
39
|
+
--shk-scrollbar-thumb-hover: #94a3b8;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
html.dark[data-shk-theme='ocean'] {
|
|
43
|
+
--shk-surface-50: #0f172a;
|
|
44
|
+
--shk-surface-100: #1e293b;
|
|
45
|
+
--shk-surface-200: #334155;
|
|
46
|
+
--shk-surface-300: #475569;
|
|
47
|
+
--shk-surface-400: #64748b;
|
|
48
|
+
--shk-surface-500: #94a3b8;
|
|
49
|
+
--shk-surface-600: #cbd5e1;
|
|
50
|
+
--shk-surface-700: #e2e8f0;
|
|
51
|
+
--shk-surface-800: #f1f5f9;
|
|
52
|
+
--shk-surface-900: #f8fafc;
|
|
53
|
+
|
|
54
|
+
--shk-scrollbar-thumb: #475569;
|
|
55
|
+
--shk-scrollbar-thumb-hover: #64748b;
|
|
56
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
Shirkasoft UI Components — Theme: Sunset
|
|
3
|
+
Stone surfaces + Orange accent.
|
|
4
|
+
Load after theme.css:
|
|
5
|
+
@import 'shirkasoft-ui-components/themes/sunset.css';
|
|
6
|
+
Activate: <html data-shk-theme="sunset">
|
|
7
|
+
============================================================ */
|
|
8
|
+
|
|
9
|
+
[data-shk-theme='sunset'] {
|
|
10
|
+
--shk-primary-50: #fff7ed;
|
|
11
|
+
--shk-primary-100: #ffedd5;
|
|
12
|
+
--shk-primary-200: #fed7aa;
|
|
13
|
+
--shk-primary-300: #fdba74;
|
|
14
|
+
--shk-primary-400: #fb923c;
|
|
15
|
+
--shk-primary-500: #f97316;
|
|
16
|
+
--shk-primary-600: #ea580c;
|
|
17
|
+
--shk-primary-700: #c2410c;
|
|
18
|
+
--shk-primary-800: #9a3412;
|
|
19
|
+
--shk-primary-900: #7c2d12;
|
|
20
|
+
--shk-primary-950: #431407;
|
|
21
|
+
|
|
22
|
+
--shk-surface-50: #fafaf9;
|
|
23
|
+
--shk-surface-100: #f5f5f4;
|
|
24
|
+
--shk-surface-200: #e7e5e4;
|
|
25
|
+
--shk-surface-300: #d6d3d1;
|
|
26
|
+
--shk-surface-400: #a8a29e;
|
|
27
|
+
--shk-surface-500: #78716c;
|
|
28
|
+
--shk-surface-600: #57534e;
|
|
29
|
+
--shk-surface-700: #44403c;
|
|
30
|
+
--shk-surface-800: #292524;
|
|
31
|
+
--shk-surface-900: #1c1917;
|
|
32
|
+
|
|
33
|
+
--shk-emerald-400: #fb923c;
|
|
34
|
+
--shk-emerald-600: #ea580c;
|
|
35
|
+
--shk-emerald-700: #c2410c;
|
|
36
|
+
|
|
37
|
+
--shk-scrollbar-thumb: #d6d3d1;
|
|
38
|
+
--shk-scrollbar-thumb-hover: #a8a29e;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
html.dark[data-shk-theme='sunset'] {
|
|
42
|
+
--shk-surface-50: #1c1917;
|
|
43
|
+
--shk-surface-100: #292524;
|
|
44
|
+
--shk-surface-200: #44403c;
|
|
45
|
+
--shk-surface-300: #57534e;
|
|
46
|
+
--shk-surface-400: #78716c;
|
|
47
|
+
--shk-surface-500: #a8a29e;
|
|
48
|
+
--shk-surface-600: #d6d3d1;
|
|
49
|
+
--shk-surface-700: #e7e5e4;
|
|
50
|
+
--shk-surface-800: #f5f5f4;
|
|
51
|
+
--shk-surface-900: #fafaf9;
|
|
52
|
+
|
|
53
|
+
--shk-scrollbar-thumb: #57534e;
|
|
54
|
+
--shk-scrollbar-thumb-hover: #78716c;
|
|
55
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
Shirkasoft UI Components — Theme: Violet
|
|
3
|
+
Zinc surfaces + Violet accent.
|
|
4
|
+
Load after theme.css:
|
|
5
|
+
@import 'shirkasoft-ui-components/themes/violet.css';
|
|
6
|
+
Activate: <html data-shk-theme="violet">
|
|
7
|
+
============================================================ */
|
|
8
|
+
|
|
9
|
+
[data-shk-theme='violet'] {
|
|
10
|
+
--shk-primary-50: #f5f3ff;
|
|
11
|
+
--shk-primary-100: #ede9fe;
|
|
12
|
+
--shk-primary-200: #ddd6fe;
|
|
13
|
+
--shk-primary-300: #c4b5fd;
|
|
14
|
+
--shk-primary-400: #a78bfa;
|
|
15
|
+
--shk-primary-500: #8b5cf6;
|
|
16
|
+
--shk-primary-600: #7c3aed;
|
|
17
|
+
--shk-primary-700: #6d28d9;
|
|
18
|
+
--shk-primary-800: #5b21b6;
|
|
19
|
+
--shk-primary-900: #4c1d95;
|
|
20
|
+
--shk-primary-950: #2e1065;
|
|
21
|
+
|
|
22
|
+
--shk-emerald-400: #a78bfa;
|
|
23
|
+
--shk-emerald-600: #7c3aed;
|
|
24
|
+
--shk-emerald-700: #6d28d9;
|
|
25
|
+
}
|