@svadmin/ui 0.5.2 → 0.5.4

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 +49 -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.4",
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
@@ -9,6 +9,12 @@
9
9
  * - More polished dark mode
10
10
  */
11
11
 
12
+ /* Auto-register svadmin source files for Tailwind 4 content scanning.
13
+ * This ensures all utility classes used in @svadmin/ui and @svadmin/core
14
+ * components are generated without manual @source in consumer projects. */
15
+ @source "./**/*.{svelte,ts,js}";
16
+ @source "../../core/src/**/*.{svelte,ts,js}";
17
+
12
18
  @layer base {
13
19
  :root {
14
20
  --radius: 0.5rem;
@@ -98,3 +104,46 @@ body {
98
104
  ::-webkit-scrollbar-thumb:hover { background: oklch(0.65 0 0); }
99
105
  .dark ::-webkit-scrollbar-thumb { background: oklch(0.35 0 0); }
100
106
  .dark ::-webkit-scrollbar-thumb:hover { background: oklch(0.45 0 0); }
107
+
108
+ /* Tailwind CSS v4 — Map design tokens to utility classes
109
+ * This enables bg-primary, text-muted-foreground, border-input, etc.
110
+ * Without this, Tailwind 4 utility classes referencing these tokens are no-ops.
111
+ */
112
+ @theme inline {
113
+ --color-background: var(--background);
114
+ --color-foreground: var(--foreground);
115
+ --color-card: var(--card);
116
+ --color-card-foreground: var(--card-foreground);
117
+ --color-popover: var(--popover);
118
+ --color-popover-foreground: var(--popover-foreground);
119
+ --color-primary: var(--primary);
120
+ --color-primary-foreground: var(--primary-foreground);
121
+ --color-secondary: var(--secondary);
122
+ --color-secondary-foreground: var(--secondary-foreground);
123
+ --color-muted: var(--muted);
124
+ --color-muted-foreground: var(--muted-foreground);
125
+ --color-accent: var(--accent);
126
+ --color-accent-foreground: var(--accent-foreground);
127
+ --color-destructive: var(--destructive);
128
+ --color-destructive-foreground: var(--destructive-foreground);
129
+ --color-border: var(--border);
130
+ --color-input: var(--input);
131
+ --color-ring: var(--ring);
132
+ --color-chart-1: var(--chart-1);
133
+ --color-chart-2: var(--chart-2);
134
+ --color-chart-3: var(--chart-3);
135
+ --color-chart-4: var(--chart-4);
136
+ --color-chart-5: var(--chart-5);
137
+ --color-sidebar: var(--sidebar);
138
+ --color-sidebar-foreground: var(--sidebar-foreground);
139
+ --color-sidebar-primary: var(--sidebar-primary);
140
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
141
+ --color-sidebar-accent: var(--sidebar-accent);
142
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
143
+ --color-sidebar-border: var(--sidebar-border);
144
+ --color-sidebar-ring: var(--sidebar-ring);
145
+ --radius-sm: calc(var(--radius) - 4px);
146
+ --radius-md: calc(var(--radius) - 2px);
147
+ --radius-lg: var(--radius);
148
+ --radius-xl: calc(var(--radius) + 4px);
149
+ }