@webstacks/ui 0.4.1 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstacks/ui",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "A shareable React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -17,9 +17,11 @@
17
17
  "default": "./dist/index.cjs"
18
18
  }
19
19
  },
20
- "./styles.css": "./dist/styles.css",
20
+ "./theme": "./src/styles/theme.css",
21
+ "./styles.css": "./dist/index.css",
21
22
  "./styles": "./src/styles/globals.css",
22
- "./fonts.css": "./src/styles/fonts.css"
23
+ "./fonts.css": "./src/styles/fonts.css",
24
+ "./dist/index.css": "./dist/index.css"
23
25
  },
24
26
  "files": [
25
27
  "dist",
@@ -99,6 +101,7 @@
99
101
  "recharts": "^2.15.4",
100
102
  "sonner": "^2.0.7",
101
103
  "tailwind-merge": "^2.2.0",
104
+ "tslib": "^2.8.1",
102
105
  "vaul": "^1.1.2",
103
106
  "zod": "^4.3.6"
104
107
  },
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @webstacks/ui — Tailwind v4 Theme
3
+ *
4
+ * Usage in your app's CSS:
5
+ * @import "tailwindcss";
6
+ * @import "@webstacks/ui/theme";
7
+ *
8
+ * Then wrap your app root with <BaseStyles> and you're done.
9
+ */
10
+
11
+ /* ── Design system foundations ── */
12
+ @import "./fonts.css";
13
+ @import "./color.css";
14
+ @import "./tokens.css";
15
+ @import "./typography.css";
16
+
17
+ /* ── Scan @webstacks/ui dist for class names ── */
18
+ @source "../../dist";
19
+
20
+ /* ── Register shadcn bridge variables with Tailwind v4 ── */
21
+ @theme inline {
22
+ /* Colors */
23
+ --color-background: var(--background);
24
+ --color-foreground: var(--foreground);
25
+
26
+ --color-card: var(--card);
27
+ --color-card-foreground: var(--card-foreground);
28
+
29
+ --color-popover: var(--popover);
30
+ --color-popover-foreground: var(--popover-foreground);
31
+
32
+ --color-primary: var(--primary);
33
+ --color-primary-foreground: var(--primary-foreground);
34
+
35
+ --color-secondary: var(--secondary);
36
+ --color-secondary-foreground: var(--secondary-foreground);
37
+
38
+ --color-muted: var(--muted);
39
+ --color-muted-foreground: var(--muted-foreground);
40
+
41
+ --color-accent: var(--accent);
42
+ --color-accent-foreground: var(--accent-foreground);
43
+
44
+ --color-destructive: var(--destructive);
45
+ --color-destructive-foreground: var(--destructive-foreground);
46
+
47
+ --color-border: var(--border);
48
+ --color-input: var(--input);
49
+ --color-ring: var(--ring);
50
+
51
+ /* Chart colors */
52
+ --color-chart-1: var(--chart-1);
53
+ --color-chart-2: var(--chart-2);
54
+ --color-chart-3: var(--chart-3);
55
+ --color-chart-4: var(--chart-4);
56
+ --color-chart-5: var(--chart-5);
57
+
58
+ /* Sidebar */
59
+ --color-sidebar: var(--sidebar-background);
60
+ --color-sidebar-foreground: var(--sidebar-foreground);
61
+ --color-sidebar-primary: var(--sidebar-primary);
62
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
63
+ --color-sidebar-accent: var(--sidebar-accent);
64
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
65
+ --color-sidebar-border: var(--sidebar-border);
66
+ --color-sidebar-ring: var(--sidebar-ring);
67
+
68
+ /* Border radius */
69
+ --radius-sm: calc(var(--radius) - 4px);
70
+ --radius-md: calc(var(--radius) - 2px);
71
+ --radius-lg: var(--radius);
72
+ --radius-xl: calc(var(--radius) + 4px);
73
+
74
+ /* Fonts */
75
+ --font-sans: var(--font-body);
76
+ --font-mono: var(--font-code);
77
+ --font-heading: var(--font-heading);
78
+ }