@ashwa-io/ui 0.0.1 → 0.0.2

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/styles/index.css +153 -153
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashwa-io/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Ashwa design system: locked React components on shadcn/ui (Base UI) and Tailwind v4, with per-org brand theming.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,155 +1,155 @@
1
- @import 'tailwindcss';
2
- @import 'tw-animate-css';
3
- @import './shadcn.css';
4
- @import '@fontsource-variable/inter';
5
-
6
- /* Consumers compile our classes from the published JS: Tailwind skips node_modules
7
- unless told. Path is relative to this file inside the package. */
8
- @source '../../dist';
9
-
10
- @custom-variant dark (&:is(.dark *));
11
-
12
- @theme inline {
13
- --font-heading: var(--font-sans);
14
- --font-sans: 'Inter Variable', sans-serif;
15
- --color-sidebar-ring: var(--sidebar-ring);
16
- --color-sidebar-border: var(--sidebar-border);
17
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
18
- --color-sidebar-accent: var(--sidebar-accent);
19
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
20
- --color-sidebar-primary: var(--sidebar-primary);
21
- --color-sidebar-foreground: var(--sidebar-foreground);
22
- --color-sidebar: var(--sidebar);
23
- --color-chart-5: var(--chart-5);
24
- --color-chart-4: var(--chart-4);
25
- --color-chart-3: var(--chart-3);
26
- --color-chart-2: var(--chart-2);
27
- --color-chart-1: var(--chart-1);
28
- --color-ring: var(--ring);
29
- --color-input: var(--input);
30
- --color-border: var(--border);
31
- --color-destructive: var(--destructive);
32
- --color-accent-foreground: var(--accent-foreground);
33
- --color-accent: var(--accent);
34
- --color-muted-foreground: var(--muted-foreground);
35
- --color-muted: var(--muted);
36
- --color-secondary-foreground: var(--secondary-foreground);
37
- --color-secondary: var(--secondary);
38
- --color-primary-foreground: var(--primary-foreground);
39
- --color-primary: var(--primary);
40
- --color-popover-foreground: var(--popover-foreground);
41
- --color-popover: var(--popover);
42
- --color-card-foreground: var(--card-foreground);
43
- --color-card: var(--card);
44
- --color-foreground: var(--foreground);
45
- --color-background: var(--background);
46
- --color-brand: var(--brand);
47
- --color-brand-foreground: var(--brand-foreground);
48
- --color-brand-text: var(--brand-text);
49
- --color-brand-tint: var(--brand-tint);
50
- --color-brand-tint-foreground: var(--brand-tint-foreground);
51
- /* Radius scale matches nigam_platform (user decision 2026-11-08). */
52
- --radius-sm: calc(var(--radius) - 4px);
53
- --radius-md: calc(var(--radius) - 2px);
54
- --radius-lg: var(--radius);
55
- --radius-xl: calc(var(--radius) + 4px);
56
- --radius-2xl: calc(var(--radius) + 8px);
57
- --radius-3xl: calc(var(--radius) + 12px);
58
- --radius-4xl: calc(var(--radius) + 16px);
59
- }
60
-
61
- :root {
62
- /* Brand group: defaults = brandTheme(DEFAULT_BRAND_HEX). Per-org values come from
63
- brandThemeCss(hex) in @ashwa-io/ui/theme, injected at runtime, and outrank these. */
64
- --brand: oklch(0.585 0.233 293);
65
- --brand-foreground: oklch(1 0 0);
66
- --brand-text: oklch(0.585 0.233 293);
67
- --brand-tint: oklch(0.965 0.018 293);
68
- --brand-tint-foreground: oklch(0.565 0.233 293);
69
- --brand-map: #8750f6;
70
-
71
- --background: oklch(1 0 0);
72
- --foreground: oklch(0.145 0 0);
73
- --card: oklch(1 0 0);
74
- --card-foreground: oklch(0.145 0 0);
75
- --popover: oklch(1 0 0);
76
- --popover-foreground: oklch(0.145 0 0);
77
- --primary: var(--brand);
78
- --primary-foreground: var(--brand-foreground);
79
- --secondary: oklch(0.97 0 0);
80
- --secondary-foreground: oklch(0.205 0 0);
81
- --muted: oklch(0.97 0 0);
82
- --muted-foreground: oklch(0.556 0 0);
83
- --accent: oklch(0.97 0 0);
84
- --accent-foreground: oklch(0.205 0 0);
1
+ @import 'tailwindcss';
2
+ @import 'tw-animate-css';
3
+ @import './shadcn.css';
4
+ @import '@fontsource-variable/inter';
5
+
6
+ /* Consumers compile our classes from the published JS: Tailwind skips node_modules
7
+ unless told. Path is relative to this file inside the package. */
8
+ @source '../../dist';
9
+
10
+ @custom-variant dark (&:is(.dark *));
11
+
12
+ @theme inline {
13
+ --font-heading: var(--font-sans);
14
+ --font-sans: 'Inter Variable', sans-serif;
15
+ --color-sidebar-ring: var(--sidebar-ring);
16
+ --color-sidebar-border: var(--sidebar-border);
17
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
18
+ --color-sidebar-accent: var(--sidebar-accent);
19
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
20
+ --color-sidebar-primary: var(--sidebar-primary);
21
+ --color-sidebar-foreground: var(--sidebar-foreground);
22
+ --color-sidebar: var(--sidebar);
23
+ --color-chart-5: var(--chart-5);
24
+ --color-chart-4: var(--chart-4);
25
+ --color-chart-3: var(--chart-3);
26
+ --color-chart-2: var(--chart-2);
27
+ --color-chart-1: var(--chart-1);
28
+ --color-ring: var(--ring);
29
+ --color-input: var(--input);
30
+ --color-border: var(--border);
31
+ --color-destructive: var(--destructive);
32
+ --color-accent-foreground: var(--accent-foreground);
33
+ --color-accent: var(--accent);
34
+ --color-muted-foreground: var(--muted-foreground);
35
+ --color-muted: var(--muted);
36
+ --color-secondary-foreground: var(--secondary-foreground);
37
+ --color-secondary: var(--secondary);
38
+ --color-primary-foreground: var(--primary-foreground);
39
+ --color-primary: var(--primary);
40
+ --color-popover-foreground: var(--popover-foreground);
41
+ --color-popover: var(--popover);
42
+ --color-card-foreground: var(--card-foreground);
43
+ --color-card: var(--card);
44
+ --color-foreground: var(--foreground);
45
+ --color-background: var(--background);
46
+ --color-brand: var(--brand);
47
+ --color-brand-foreground: var(--brand-foreground);
48
+ --color-brand-text: var(--brand-text);
49
+ --color-brand-tint: var(--brand-tint);
50
+ --color-brand-tint-foreground: var(--brand-tint-foreground);
51
+ /* Radius scale matches nigam_platform (user decision 2026-11-08). */
52
+ --radius-sm: calc(var(--radius) - 4px);
53
+ --radius-md: calc(var(--radius) - 2px);
54
+ --radius-lg: var(--radius);
55
+ --radius-xl: calc(var(--radius) + 4px);
56
+ --radius-2xl: calc(var(--radius) + 8px);
57
+ --radius-3xl: calc(var(--radius) + 12px);
58
+ --radius-4xl: calc(var(--radius) + 16px);
59
+ }
60
+
61
+ :root {
62
+ /* Brand group: defaults = brandTheme(DEFAULT_BRAND_HEX). Per-org values come from
63
+ brandThemeCss(hex) in @ashwa-io/ui/theme, injected at runtime, and outrank these. */
64
+ --brand: oklch(0.585 0.233 293);
65
+ --brand-foreground: oklch(1 0 0);
66
+ --brand-text: oklch(0.585 0.233 293);
67
+ --brand-tint: oklch(0.965 0.018 293);
68
+ --brand-tint-foreground: oklch(0.565 0.233 293);
69
+ --brand-map: #8750f6;
70
+
71
+ --background: oklch(1 0 0);
72
+ --foreground: oklch(0.145 0 0);
73
+ --card: oklch(1 0 0);
74
+ --card-foreground: oklch(0.145 0 0);
75
+ --popover: oklch(1 0 0);
76
+ --popover-foreground: oklch(0.145 0 0);
77
+ --primary: var(--brand);
78
+ --primary-foreground: var(--brand-foreground);
79
+ --secondary: oklch(0.97 0 0);
80
+ --secondary-foreground: oklch(0.205 0 0);
81
+ --muted: oklch(0.97 0 0);
82
+ --muted-foreground: oklch(0.556 0 0);
83
+ --accent: oklch(0.97 0 0);
84
+ --accent-foreground: oklch(0.205 0 0);
85
85
  /* Tailwind red-700, darker than base-nova's red-600: destructive text on its 10% tint
86
86
  (Button destructive) must reach WCAG AA 4.5:1; red-600 only reached 4:1. */
87
- --destructive: oklch(0.505 0.213 27.518);
88
- --border: oklch(0.922 0 0);
89
- --input: oklch(0.922 0 0);
90
- --ring: var(--brand);
91
- --chart-1: var(--brand);
92
- --chart-2: oklch(0.556 0 0);
93
- --chart-3: oklch(0.439 0 0);
94
- --chart-4: oklch(0.371 0 0);
95
- --chart-5: oklch(0.269 0 0);
96
- --radius: 0.5rem;
97
- --sidebar: oklch(0.985 0 0);
98
- --sidebar-foreground: oklch(0.145 0 0);
99
- --sidebar-primary: var(--brand);
100
- --sidebar-primary-foreground: var(--brand-foreground);
101
- --sidebar-accent: oklch(0.97 0 0);
102
- --sidebar-accent-foreground: oklch(0.205 0 0);
103
- --sidebar-border: oklch(0.922 0 0);
104
- --sidebar-ring: var(--brand);
105
- }
106
-
107
- .dark {
108
- --brand: oklch(0.585 0.233 293);
109
- --brand-foreground: oklch(1 0 0);
110
- --brand-text: oklch(0.625 0.223 293);
111
- --brand-tint: oklch(0.3 0.04 293);
112
- --brand-tint-foreground: oklch(0.685 0.183 293);
113
- --brand-map: #8750f6;
114
-
115
- --background: oklch(0.145 0 0);
116
- --foreground: oklch(0.985 0 0);
117
- --card: oklch(0.205 0 0);
118
- --card-foreground: oklch(0.985 0 0);
119
- --popover: oklch(0.205 0 0);
120
- --popover-foreground: oklch(0.985 0 0);
121
- --secondary: oklch(0.269 0 0);
122
- --secondary-foreground: oklch(0.985 0 0);
123
- --muted: oklch(0.269 0 0);
124
- --muted-foreground: oklch(0.708 0 0);
125
- --accent: oklch(0.269 0 0);
126
- --accent-foreground: oklch(0.985 0 0);
127
- --destructive: oklch(0.704 0.191 22.216);
128
- --border: oklch(1 0 0 / 10%);
129
- --input: oklch(1 0 0 / 15%);
130
- --chart-2: oklch(0.556 0 0);
131
- --chart-3: oklch(0.439 0 0);
132
- --chart-4: oklch(0.371 0 0);
133
- --chart-5: oklch(0.269 0 0);
134
- --sidebar: oklch(0.205 0 0);
135
- --sidebar-foreground: oklch(0.985 0 0);
136
- --sidebar-accent: oklch(0.269 0 0);
137
- --sidebar-accent-foreground: oklch(0.985 0 0);
138
- --sidebar-border: oklch(1 0 0 / 10%);
139
- }
140
-
141
- @layer base {
142
- * {
143
- @apply border-border outline-ring/50;
144
- }
145
- body {
146
- @apply bg-background text-foreground;
147
- }
148
- button:not(:disabled),
149
- [role='button']:not(:disabled) {
150
- cursor: pointer;
151
- }
152
- html {
153
- @apply font-sans;
154
- }
155
- }
87
+ --destructive: oklch(0.505 0.213 27.518);
88
+ --border: oklch(0.922 0 0);
89
+ --input: oklch(0.922 0 0);
90
+ --ring: var(--brand);
91
+ --chart-1: var(--brand);
92
+ --chart-2: oklch(0.556 0 0);
93
+ --chart-3: oklch(0.439 0 0);
94
+ --chart-4: oklch(0.371 0 0);
95
+ --chart-5: oklch(0.269 0 0);
96
+ --radius: 0.5rem;
97
+ --sidebar: oklch(0.985 0 0);
98
+ --sidebar-foreground: oklch(0.145 0 0);
99
+ --sidebar-primary: var(--brand);
100
+ --sidebar-primary-foreground: var(--brand-foreground);
101
+ --sidebar-accent: oklch(0.97 0 0);
102
+ --sidebar-accent-foreground: oklch(0.205 0 0);
103
+ --sidebar-border: oklch(0.922 0 0);
104
+ --sidebar-ring: var(--brand);
105
+ }
106
+
107
+ .dark {
108
+ --brand: oklch(0.585 0.233 293);
109
+ --brand-foreground: oklch(1 0 0);
110
+ --brand-text: oklch(0.625 0.223 293);
111
+ --brand-tint: oklch(0.3 0.04 293);
112
+ --brand-tint-foreground: oklch(0.685 0.183 293);
113
+ --brand-map: #8750f6;
114
+
115
+ --background: oklch(0.145 0 0);
116
+ --foreground: oklch(0.985 0 0);
117
+ --card: oklch(0.205 0 0);
118
+ --card-foreground: oklch(0.985 0 0);
119
+ --popover: oklch(0.205 0 0);
120
+ --popover-foreground: oklch(0.985 0 0);
121
+ --secondary: oklch(0.269 0 0);
122
+ --secondary-foreground: oklch(0.985 0 0);
123
+ --muted: oklch(0.269 0 0);
124
+ --muted-foreground: oklch(0.708 0 0);
125
+ --accent: oklch(0.269 0 0);
126
+ --accent-foreground: oklch(0.985 0 0);
127
+ --destructive: oklch(0.704 0.191 22.216);
128
+ --border: oklch(1 0 0 / 10%);
129
+ --input: oklch(1 0 0 / 15%);
130
+ --chart-2: oklch(0.556 0 0);
131
+ --chart-3: oklch(0.439 0 0);
132
+ --chart-4: oklch(0.371 0 0);
133
+ --chart-5: oklch(0.269 0 0);
134
+ --sidebar: oklch(0.205 0 0);
135
+ --sidebar-foreground: oklch(0.985 0 0);
136
+ --sidebar-accent: oklch(0.269 0 0);
137
+ --sidebar-accent-foreground: oklch(0.985 0 0);
138
+ --sidebar-border: oklch(1 0 0 / 10%);
139
+ }
140
+
141
+ @layer base {
142
+ * {
143
+ @apply border-border outline-ring/50;
144
+ }
145
+ body {
146
+ @apply bg-background text-foreground;
147
+ }
148
+ button:not(:disabled),
149
+ [role='button']:not(:disabled) {
150
+ cursor: pointer;
151
+ }
152
+ html {
153
+ @apply font-sans;
154
+ }
155
+ }