@bricks-toolkit/toolkit 0.1.7 → 0.1.9
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/dist/theme.css +62 -0
- package/package.json +5 -3
package/dist/theme.css
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* Brand & Status Colors */
|
|
3
|
+
--color-primary: var(--primary);
|
|
4
|
+
--color-primary-hover: var(--primary-hover);
|
|
5
|
+
--color-primary-active: var(--primary-active);
|
|
6
|
+
--color-secondary: var(--secondary);
|
|
7
|
+
--color-secondary-hover: var(--secondary-hover);
|
|
8
|
+
--color-accent: var(--accent);
|
|
9
|
+
--color-success: var(--success);
|
|
10
|
+
--color-warning: var(--warning);
|
|
11
|
+
--color-error: var(--error);
|
|
12
|
+
--color-info: var(--info);
|
|
13
|
+
|
|
14
|
+
/* Layout & Surface Colors */
|
|
15
|
+
--color-background: var(--background);
|
|
16
|
+
--color-surface: var(--surface);
|
|
17
|
+
--color-surface-secondary: var(--surface-secondary);
|
|
18
|
+
--color-border: var(--border);
|
|
19
|
+
--color-border-light: var(--border-light);
|
|
20
|
+
--color-divider: var(--divider);
|
|
21
|
+
|
|
22
|
+
/* Text Colors */
|
|
23
|
+
--color-text: var(--text);
|
|
24
|
+
--color-text-secondary: var(--text-secondary);
|
|
25
|
+
--color-text-muted: var(--text-muted);
|
|
26
|
+
--color-text-inverse: var(--text-inverse);
|
|
27
|
+
|
|
28
|
+
/* Interaction Colors */
|
|
29
|
+
--color-hover: var(--hover);
|
|
30
|
+
--color-active: var(--active);
|
|
31
|
+
--color-focus: var(--focus);
|
|
32
|
+
--color-disabled: var(--disabled);
|
|
33
|
+
|
|
34
|
+
/* Semantic Mappings (Shadcn-like) */
|
|
35
|
+
--color-primary-foreground: var(--text-inverse);
|
|
36
|
+
--color-secondary-foreground: var(--text);
|
|
37
|
+
--color-muted: var(--surface-secondary);
|
|
38
|
+
--color-muted-foreground: var(--text-muted);
|
|
39
|
+
--color-accent-foreground: var(--text-inverse);
|
|
40
|
+
--color-destructive: var(--error);
|
|
41
|
+
--color-destructive-foreground: var(--text-inverse);
|
|
42
|
+
|
|
43
|
+
/* Shadows */
|
|
44
|
+
--shadow-sm: var(--shadow-sm);
|
|
45
|
+
--shadow-md: var(--shadow-md);
|
|
46
|
+
--shadow-lg: var(--shadow-lg);
|
|
47
|
+
--shadow-xl: var(--shadow-xl);
|
|
48
|
+
--shadow-2xl: var(--shadow-2xl);
|
|
49
|
+
--shadow-premium: var(--shadow-premium);
|
|
50
|
+
|
|
51
|
+
/* Durations */
|
|
52
|
+
--duration-fast: 150ms;
|
|
53
|
+
--duration-normal: 250ms;
|
|
54
|
+
--duration-slow: 400ms;
|
|
55
|
+
|
|
56
|
+
/* Z-Index */
|
|
57
|
+
--z-index-dropdown: 1000;
|
|
58
|
+
--z-index-sticky: 1020;
|
|
59
|
+
--z-index-popover: 1030;
|
|
60
|
+
--z-index-modal: 1050;
|
|
61
|
+
--z-index-tooltip: 1100;
|
|
62
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bricks-toolkit/toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Micro-modularized, fully independent, type-safe UI component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ITProfound",
|
|
@@ -365,7 +365,9 @@
|
|
|
365
365
|
"default": "./dist/tooltip/index.cjs"
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
|
-
"./styles.css": "./dist/styles.css"
|
|
368
|
+
"./styles.css": "./dist/styles.css",
|
|
369
|
+
"./theme.css": "./dist/theme.css"
|
|
370
|
+
|
|
369
371
|
},
|
|
370
372
|
"files": [
|
|
371
373
|
"dist",
|
|
@@ -374,7 +376,7 @@
|
|
|
374
376
|
],
|
|
375
377
|
"scripts": {
|
|
376
378
|
"storybook": "storybook dev -p 6006 --no-version-updates",
|
|
377
|
-
"build": "tsup",
|
|
379
|
+
"build": "tsup && copy src\\styles\\theme.css dist\\theme.css",
|
|
378
380
|
"build:watch": "tsup --watch",
|
|
379
381
|
"build:storybook": "storybook build",
|
|
380
382
|
"test": "vitest run",
|