@svadmin/ui 0.5.2 → 0.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.css +43 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/ui",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Pre-built admin UI components — AdminApp, AutoTable, AutoForm, Sidebar, Layout",
5
5
  "type": "module",
6
6
  "sideEffects": [
package/src/app.css CHANGED
@@ -98,3 +98,46 @@ body {
98
98
  ::-webkit-scrollbar-thumb:hover { background: oklch(0.65 0 0); }
99
99
  .dark ::-webkit-scrollbar-thumb { background: oklch(0.35 0 0); }
100
100
  .dark ::-webkit-scrollbar-thumb:hover { background: oklch(0.45 0 0); }
101
+
102
+ /* Tailwind CSS v4 — Map design tokens to utility classes
103
+ * This enables bg-primary, text-muted-foreground, border-input, etc.
104
+ * Without this, Tailwind 4 utility classes referencing these tokens are no-ops.
105
+ */
106
+ @theme inline {
107
+ --color-background: var(--background);
108
+ --color-foreground: var(--foreground);
109
+ --color-card: var(--card);
110
+ --color-card-foreground: var(--card-foreground);
111
+ --color-popover: var(--popover);
112
+ --color-popover-foreground: var(--popover-foreground);
113
+ --color-primary: var(--primary);
114
+ --color-primary-foreground: var(--primary-foreground);
115
+ --color-secondary: var(--secondary);
116
+ --color-secondary-foreground: var(--secondary-foreground);
117
+ --color-muted: var(--muted);
118
+ --color-muted-foreground: var(--muted-foreground);
119
+ --color-accent: var(--accent);
120
+ --color-accent-foreground: var(--accent-foreground);
121
+ --color-destructive: var(--destructive);
122
+ --color-destructive-foreground: var(--destructive-foreground);
123
+ --color-border: var(--border);
124
+ --color-input: var(--input);
125
+ --color-ring: var(--ring);
126
+ --color-chart-1: var(--chart-1);
127
+ --color-chart-2: var(--chart-2);
128
+ --color-chart-3: var(--chart-3);
129
+ --color-chart-4: var(--chart-4);
130
+ --color-chart-5: var(--chart-5);
131
+ --color-sidebar: var(--sidebar);
132
+ --color-sidebar-foreground: var(--sidebar-foreground);
133
+ --color-sidebar-primary: var(--sidebar-primary);
134
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
135
+ --color-sidebar-accent: var(--sidebar-accent);
136
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
137
+ --color-sidebar-border: var(--sidebar-border);
138
+ --color-sidebar-ring: var(--sidebar-ring);
139
+ --radius-sm: calc(var(--radius) - 4px);
140
+ --radius-md: calc(var(--radius) - 2px);
141
+ --radius-lg: var(--radius);
142
+ --radius-xl: calc(var(--radius) + 4px);
143
+ }