opsfuse-ui 0.1.24 → 0.1.26

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/theme.css CHANGED
@@ -1,250 +1,253 @@
1
- /* ════════════════════════════════════════════════════════════════
2
- OPSFUSE — Tailwind v4 host preamble + theme map
3
-
4
- Prepended to `dist/style.css` when the library is built. Maps design tokens to
5
- Tailwind utilities and registers shadcn custom variants for hosts that
6
- re-process the bundle.
7
-
8
- ── CONSUME ────────────────────────────────────────────────────────────
9
- @import "tailwindcss";
10
- @import "opsfuse-ui/styles.css";
11
-
12
- Import `opsfuse-ui/theme.css` only when you need the map without components.
13
- ════════════════════════════════════════════════════════════════ */
14
-
15
- /* Do not register package JS as @source on the host — breaks data-active:* */
16
- @source not "./**/*.js";
17
-
18
- @custom-variant data-open {
19
- &:where([data-state="open"]),
20
- &:where([data-open]:not([data-open="false"])) {
21
- @slot;
22
- }
23
- }
24
-
25
- @custom-variant data-closed {
26
- &:where([data-state="closed"]),
27
- &:where([data-closed]:not([data-closed="false"])) {
28
- @slot;
29
- }
30
- }
31
-
32
- @custom-variant data-checked {
33
- &:where([data-state="checked"]),
34
- &:where([data-checked]:not([data-checked="false"])) {
35
- @slot;
36
- }
37
- }
38
-
39
- @custom-variant data-unchecked {
40
- &:where([data-state="unchecked"]),
41
- &:where([data-unchecked]:not([data-unchecked="false"])) {
42
- @slot;
43
- }
44
- }
45
-
46
- @custom-variant data-selected {
47
- &:where([data-selected="true"]) {
48
- @slot;
49
- }
50
- }
51
-
52
- @custom-variant data-disabled {
53
- &:where([data-disabled="true"]),
54
- &:where([data-disabled]:not([data-disabled="false"])) {
55
- @slot;
56
- }
57
- }
58
-
59
- @custom-variant data-active {
60
- &:where([data-state="active"]),
61
- &:where([data-active]:not([data-active="false"])) {
62
- @slot;
63
- }
64
- }
65
-
66
- @custom-variant data-horizontal {
67
- &:where([data-orientation="horizontal"]) {
68
- @slot;
69
- }
70
- }
71
-
72
- @custom-variant data-vertical {
73
- &:where([data-orientation="vertical"]) {
74
- @slot;
75
- }
76
- }
77
-
78
- @source inline("border-border-subtle");
79
- @source inline("border-border-strong");
80
- @source inline("border-(--border-subtle)");
81
- @source inline("border-(--border-strong)");
82
-
83
- @theme inline {
84
- /* ── Surfaces ───────────────────────────────────────────── */
85
- --color-background: var(--background);
86
- --color-foreground: var(--foreground);
87
- --color-card: var(--card);
88
- --color-card-foreground: var(--card-foreground);
89
- --color-popover: var(--popover);
90
- --color-popover-foreground: var(--popover-foreground);
91
- --color-muted: var(--muted);
92
- --color-muted-foreground: var(--muted-foreground);
93
- --color-accent: var(--accent);
94
- --color-accent-foreground: var(--accent-foreground);
95
- --color-secondary: var(--secondary);
96
- --color-secondary-foreground: var(--secondary-foreground);
97
-
98
- /* ── Text ───────────────────────────────────────────────── */
99
- --color-subtle-foreground: var(--subtle-foreground);
100
- --color-disabled-foreground: var(--disabled-foreground);
101
- /* legacy aliases kept for back-compat */
102
- --color-text-disabled: var(--disabled-foreground);
103
- --color-text-input-placeholder: var(--muted-foreground);
104
-
105
- /* ── Primary (+ tints) ──────────────────────────────────── */
106
- --color-primary: var(--primary);
107
- --color-primary-foreground: var(--primary-foreground);
108
- --color-primary-hover: var(--primary-hover);
109
- --color-primary-active: var(--primary-active);
110
- --color-primary-muted: var(--primary-muted);
111
- --color-primary-muted-hover: var(--primary-muted-hover);
112
- --color-primary-border: var(--primary-border);
113
- --color-primary-muted-foreground: var(--primary-muted-foreground);
114
-
115
- /* ── AI ─────────────────────────────────────────────────── */
116
- --color-ai: var(--ai);
117
- --color-ai-foreground: var(--ai-foreground);
118
- --color-ai-muted: var(--ai-muted);
119
- --color-ai-muted-hover: var(--ai-muted-hover);
120
- --color-ai-border: var(--ai-border);
121
- --color-ai-muted-foreground: var(--ai-muted-foreground);
122
-
123
- /* ── Success ────────────────────────────────────────────── */
124
- --color-success: var(--success);
125
- --color-success-foreground: var(--success-foreground);
126
- --color-success-muted: var(--success-muted);
127
- --color-success-border: var(--success-border);
128
- --color-success-muted-foreground: var(--success-muted-foreground);
129
-
130
- /* ── Warning ────────────────────────────────────────────── */
131
- --color-warning: var(--warning);
132
- --color-warning-foreground: var(--warning-foreground);
133
- --color-warning-muted: var(--warning-muted);
134
- --color-warning-border: var(--warning-border);
135
- --color-warning-muted-foreground: var(--warning-muted-foreground);
136
-
137
- /* ── Destructive ────────────────────────────────────────── */
138
- --color-destructive: var(--destructive);
139
- --color-destructive-foreground: var(--destructive-foreground);
140
- --color-destructive-muted: var(--destructive-muted);
141
- --color-destructive-border: var(--destructive-border);
142
- --color-destructive-muted-foreground: var(--destructive-muted-foreground);
143
-
144
- /* ── Info ───────────────────────────────────────────────── */
145
- --color-info: var(--info);
146
- --color-info-foreground: var(--info-foreground);
147
- --color-info-muted: var(--info-muted);
148
- --color-info-border: var(--info-border);
149
- --color-info-muted-foreground: var(--info-muted-foreground);
150
-
151
- /* ── Borders / Input / Ring ─────────────────────────────── */
152
- --color-border: var(--border);
153
- --color-border-subtle: var(--border-subtle);
154
- --color-border-strong: var(--border-strong);
155
- --color-input: var(--input);
156
- --color-ring: var(--ring);
157
-
158
- /* ── Sidebar ────────────────────────────────────────────── */
159
- --color-sidebar: var(--sidebar);
160
- --color-sidebar-foreground: var(--sidebar-foreground);
161
- --color-sidebar-primary: var(--sidebar-primary);
162
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
163
- --color-sidebar-accent: var(--sidebar-accent);
164
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
165
- --color-sidebar-border: var(--sidebar-border);
166
- --color-sidebar-ring: var(--sidebar-ring);
167
-
168
- /* ── Score ──────────────────────────────────────────────── */
169
- --color-score-excellent: var(--score-excellent);
170
- --color-score-good: var(--score-good);
171
- --color-score-average: var(--score-average);
172
- --color-score-below: var(--score-below);
173
- --color-score-poor: var(--score-poor);
174
-
175
- /* ── Charts ─────────────────────────────────────────────── */
176
- --color-chart-1: var(--chart-1);
177
- --color-chart-2: var(--chart-2);
178
- --color-chart-3: var(--chart-3);
179
- --color-chart-4: var(--chart-4);
180
- --color-chart-5: var(--chart-5);
181
- --color-chart-6: var(--chart-6);
182
- --color-chart-grid: var(--chart-grid);
183
- --color-chart-axis: var(--chart-axis);
184
-
185
- /* ── Shadows (elevation; use var(--shadow-*) or shadow-sm/md/lg utilities) ─ */
186
- --shadow-focus: var(--shadow-focus);
187
- --shadow-sm: var(--shadow-sm);
188
- --shadow-md: var(--shadow-md);
189
- --shadow-lg: var(--shadow-lg);
190
-
191
- /* ── Typography ─────────────────────────────────────────── */
192
- --font-heading: "Noto Serif", ui-serif, Georgia, serif;
193
-
194
- /* ── Type Scale (product-UI density) ──────────────────────
195
- Overrides Tailwind's stock web-page scale (16px base) with an
196
- application scale, calibrated between Stripe's dashboard (14px base)
197
- and Linear (13px base). Every `text-*` utility shifts down one notch:
198
- `text-sm` — the size ~90% of our components use — lands on 13px, and
199
- unclassed text inside `.opsfuse-ui` inherits 14px.
200
-
201
- xs 11px / 16 micro labels, kbd, table meta
202
- sm 13px / 18 DEFAULT UI TEXT — buttons, inputs, menus, rows
203
- base 14px / 20 body copy, card content
204
- lg 16px / 24 section headings, emphasized body
205
- xl 18px / 26 panel titles
206
- 2xl 20px / 28 page titles
207
- 3xl 24px / 32 view titles
208
- 4xl+ marketing / empty-state display only */
209
- --text-xs: 0.6875rem;
210
- --text-xs--line-height: 1rem;
211
- --text-sm: 0.8125rem;
212
- --text-sm--line-height: 1.125rem;
213
- --text-base: 0.875rem;
214
- --text-base--line-height: 1.25rem;
215
- --text-lg: 1rem;
216
- --text-lg--line-height: 1.5rem;
217
- --text-xl: 1.125rem;
218
- --text-xl--line-height: 1.625rem;
219
- --text-2xl: 1.25rem;
220
- --text-2xl--line-height: 1.75rem;
221
- --text-3xl: 1.5rem;
222
- --text-3xl--line-height: 2rem;
223
- --text-4xl: 1.875rem;
224
- --text-4xl--line-height: 2.25rem;
225
- --text-5xl: 2.25rem;
226
- --text-5xl--line-height: 2.5rem;
227
- --text-6xl: 2.75rem;
228
- --text-6xl--line-height: 1.1;
229
- --text-7xl: 3.5rem;
230
- --text-7xl--line-height: 1.05;
231
- --text-8xl: 4.5rem;
232
- --text-8xl--line-height: 1;
233
- --text-9xl: 6rem;
234
- --text-9xl--line-height: 1;
235
-
236
- /* Named steps — mirror the h4 / caption rules in index.css */
237
- --text-caption: 0.6875rem;
238
- --text-caption--line-height: 1.5;
239
- --text-h4: 1rem;
240
- --text-h4--line-height: 1.45;
241
-
242
- /* ── Radius scale ───────────────────────────────────────── */
243
- --radius-xs: var(--radius-xs);
244
- --radius-sm: var(--radius-sm);
245
- --radius-md: var(--radius);
246
- --radius-lg: var(--radius-lg);
247
- --radius-xl: var(--radius-xl);
248
- --radius-2xl: var(--radius-2xl);
249
- --radius-3xl: var(--radius-3xl);
250
- }
1
+ /* ════════════════════════════════════════════════════════════════
2
+ OPSFUSE — Tailwind v4 host preamble + theme map
3
+
4
+ Prepended to `dist/style.css` when the library is built. Maps design tokens to
5
+ Tailwind utilities and registers shadcn custom variants for hosts that
6
+ re-process the bundle.
7
+
8
+ ── CONSUME ────────────────────────────────────────────────────────────
9
+ @import "tailwindcss";
10
+ @import "opsfuse-ui/styles.css";
11
+
12
+ Import `opsfuse-ui/theme.css` only when you need the map without components.
13
+ ════════════════════════════════════════════════════════════════ */
14
+
15
+ /* Do not register package JS as @source on the host — breaks data-active:* */
16
+ @source not "./**/*.js";
17
+
18
+ /* Follow the `.dark` class, not the OS setting — hosts can force light while the OS is dark. */
19
+ @custom-variant dark (&:where(.dark, .dark *));
20
+
21
+ @custom-variant data-open {
22
+ &:where([data-state="open"]),
23
+ &:where([data-open]:not([data-open="false"])) {
24
+ @slot;
25
+ }
26
+ }
27
+
28
+ @custom-variant data-closed {
29
+ &:where([data-state="closed"]),
30
+ &:where([data-closed]:not([data-closed="false"])) {
31
+ @slot;
32
+ }
33
+ }
34
+
35
+ @custom-variant data-checked {
36
+ &:where([data-state="checked"]),
37
+ &:where([data-checked]:not([data-checked="false"])) {
38
+ @slot;
39
+ }
40
+ }
41
+
42
+ @custom-variant data-unchecked {
43
+ &:where([data-state="unchecked"]),
44
+ &:where([data-unchecked]:not([data-unchecked="false"])) {
45
+ @slot;
46
+ }
47
+ }
48
+
49
+ @custom-variant data-selected {
50
+ &:where([data-selected="true"]) {
51
+ @slot;
52
+ }
53
+ }
54
+
55
+ @custom-variant data-disabled {
56
+ &:where([data-disabled="true"]),
57
+ &:where([data-disabled]:not([data-disabled="false"])) {
58
+ @slot;
59
+ }
60
+ }
61
+
62
+ @custom-variant data-active {
63
+ &:where([data-state="active"]),
64
+ &:where([data-active]:not([data-active="false"])) {
65
+ @slot;
66
+ }
67
+ }
68
+
69
+ @custom-variant data-horizontal {
70
+ &:where([data-orientation="horizontal"]) {
71
+ @slot;
72
+ }
73
+ }
74
+
75
+ @custom-variant data-vertical {
76
+ &:where([data-orientation="vertical"]) {
77
+ @slot;
78
+ }
79
+ }
80
+
81
+ @source inline("border-border-subtle");
82
+ @source inline("border-border-strong");
83
+ @source inline("border-(--border-subtle)");
84
+ @source inline("border-(--border-strong)");
85
+
86
+ @theme inline {
87
+ /* ── Surfaces ───────────────────────────────────────────── */
88
+ --color-background: var(--background);
89
+ --color-foreground: var(--foreground);
90
+ --color-card: var(--card);
91
+ --color-card-foreground: var(--card-foreground);
92
+ --color-popover: var(--popover);
93
+ --color-popover-foreground: var(--popover-foreground);
94
+ --color-muted: var(--muted);
95
+ --color-muted-foreground: var(--muted-foreground);
96
+ --color-accent: var(--accent);
97
+ --color-accent-foreground: var(--accent-foreground);
98
+ --color-secondary: var(--secondary);
99
+ --color-secondary-foreground: var(--secondary-foreground);
100
+
101
+ /* ── Text ───────────────────────────────────────────────── */
102
+ --color-subtle-foreground: var(--subtle-foreground);
103
+ --color-disabled-foreground: var(--disabled-foreground);
104
+ /* legacy aliases kept for back-compat */
105
+ --color-text-disabled: var(--disabled-foreground);
106
+ --color-text-input-placeholder: var(--muted-foreground);
107
+
108
+ /* ── Primary (+ tints) ──────────────────────────────────── */
109
+ --color-primary: var(--primary);
110
+ --color-primary-foreground: var(--primary-foreground);
111
+ --color-primary-hover: var(--primary-hover);
112
+ --color-primary-active: var(--primary-active);
113
+ --color-primary-muted: var(--primary-muted);
114
+ --color-primary-muted-hover: var(--primary-muted-hover);
115
+ --color-primary-border: var(--primary-border);
116
+ --color-primary-muted-foreground: var(--primary-muted-foreground);
117
+
118
+ /* ── AI ─────────────────────────────────────────────────── */
119
+ --color-ai: var(--ai);
120
+ --color-ai-foreground: var(--ai-foreground);
121
+ --color-ai-muted: var(--ai-muted);
122
+ --color-ai-muted-hover: var(--ai-muted-hover);
123
+ --color-ai-border: var(--ai-border);
124
+ --color-ai-muted-foreground: var(--ai-muted-foreground);
125
+
126
+ /* ── Success ────────────────────────────────────────────── */
127
+ --color-success: var(--success);
128
+ --color-success-foreground: var(--success-foreground);
129
+ --color-success-muted: var(--success-muted);
130
+ --color-success-border: var(--success-border);
131
+ --color-success-muted-foreground: var(--success-muted-foreground);
132
+
133
+ /* ── Warning ────────────────────────────────────────────── */
134
+ --color-warning: var(--warning);
135
+ --color-warning-foreground: var(--warning-foreground);
136
+ --color-warning-muted: var(--warning-muted);
137
+ --color-warning-border: var(--warning-border);
138
+ --color-warning-muted-foreground: var(--warning-muted-foreground);
139
+
140
+ /* ── Destructive ────────────────────────────────────────── */
141
+ --color-destructive: var(--destructive);
142
+ --color-destructive-foreground: var(--destructive-foreground);
143
+ --color-destructive-muted: var(--destructive-muted);
144
+ --color-destructive-border: var(--destructive-border);
145
+ --color-destructive-muted-foreground: var(--destructive-muted-foreground);
146
+
147
+ /* ── Info ───────────────────────────────────────────────── */
148
+ --color-info: var(--info);
149
+ --color-info-foreground: var(--info-foreground);
150
+ --color-info-muted: var(--info-muted);
151
+ --color-info-border: var(--info-border);
152
+ --color-info-muted-foreground: var(--info-muted-foreground);
153
+
154
+ /* ── Borders / Input / Ring ─────────────────────────────── */
155
+ --color-border: var(--border);
156
+ --color-border-subtle: var(--border-subtle);
157
+ --color-border-strong: var(--border-strong);
158
+ --color-input: var(--input);
159
+ --color-ring: var(--ring);
160
+
161
+ /* ── Sidebar ────────────────────────────────────────────── */
162
+ --color-sidebar: var(--sidebar);
163
+ --color-sidebar-foreground: var(--sidebar-foreground);
164
+ --color-sidebar-primary: var(--sidebar-primary);
165
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
166
+ --color-sidebar-accent: var(--sidebar-accent);
167
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
168
+ --color-sidebar-border: var(--sidebar-border);
169
+ --color-sidebar-ring: var(--sidebar-ring);
170
+
171
+ /* ── Score ──────────────────────────────────────────────── */
172
+ --color-score-excellent: var(--score-excellent);
173
+ --color-score-good: var(--score-good);
174
+ --color-score-average: var(--score-average);
175
+ --color-score-below: var(--score-below);
176
+ --color-score-poor: var(--score-poor);
177
+
178
+ /* ── Charts ─────────────────────────────────────────────── */
179
+ --color-chart-1: var(--chart-1);
180
+ --color-chart-2: var(--chart-2);
181
+ --color-chart-3: var(--chart-3);
182
+ --color-chart-4: var(--chart-4);
183
+ --color-chart-5: var(--chart-5);
184
+ --color-chart-6: var(--chart-6);
185
+ --color-chart-grid: var(--chart-grid);
186
+ --color-chart-axis: var(--chart-axis);
187
+
188
+ /* ── Shadows (elevation; use var(--shadow-*) or shadow-sm/md/lg utilities) ─ */
189
+ --shadow-focus: var(--shadow-focus);
190
+ --shadow-sm: var(--shadow-sm);
191
+ --shadow-md: var(--shadow-md);
192
+ --shadow-lg: var(--shadow-lg);
193
+
194
+ /* ── Typography ─────────────────────────────────────────── */
195
+ --font-heading: "Noto Serif", ui-serif, Georgia, serif;
196
+
197
+ /* ── Type Scale (product-UI density) ──────────────────────
198
+ Overrides Tailwind's stock web-page scale (16px base) with an
199
+ application scale, calibrated between Stripe's dashboard (14px base)
200
+ and Linear (13px base). Every `text-*` utility shifts down one notch:
201
+ `text-sm` — the size ~90% of our components use — lands on 13px, and
202
+ unclassed text inside `.opsfuse-ui` inherits 14px.
203
+
204
+ xs 11px / 16 micro labels, kbd, table meta
205
+ sm 13px / 18 DEFAULT UI TEXT — buttons, inputs, menus, rows
206
+ base 14px / 20 body copy, card content
207
+ lg 16px / 24 section headings, emphasized body
208
+ xl 18px / 26 panel titles
209
+ 2xl 20px / 28 page titles
210
+ 3xl 24px / 32 view titles
211
+ 4xl+ marketing / empty-state display only */
212
+ --text-xs: 0.6875rem;
213
+ --text-xs--line-height: 1rem;
214
+ --text-sm: 0.8125rem;
215
+ --text-sm--line-height: 1.125rem;
216
+ --text-base: 0.875rem;
217
+ --text-base--line-height: 1.25rem;
218
+ --text-lg: 1rem;
219
+ --text-lg--line-height: 1.5rem;
220
+ --text-xl: 1.125rem;
221
+ --text-xl--line-height: 1.625rem;
222
+ --text-2xl: 1.25rem;
223
+ --text-2xl--line-height: 1.75rem;
224
+ --text-3xl: 1.5rem;
225
+ --text-3xl--line-height: 2rem;
226
+ --text-4xl: 1.875rem;
227
+ --text-4xl--line-height: 2.25rem;
228
+ --text-5xl: 2.25rem;
229
+ --text-5xl--line-height: 2.5rem;
230
+ --text-6xl: 2.75rem;
231
+ --text-6xl--line-height: 1.1;
232
+ --text-7xl: 3.5rem;
233
+ --text-7xl--line-height: 1.05;
234
+ --text-8xl: 4.5rem;
235
+ --text-8xl--line-height: 1;
236
+ --text-9xl: 6rem;
237
+ --text-9xl--line-height: 1;
238
+
239
+ /* Named steps — mirror the h4 / caption rules in index.css */
240
+ --text-caption: 0.6875rem;
241
+ --text-caption--line-height: 1.5;
242
+ --text-h4: 1rem;
243
+ --text-h4--line-height: 1.45;
244
+
245
+ /* ── Radius scale ───────────────────────────────────────── */
246
+ --radius-xs: var(--radius-xs);
247
+ --radius-sm: var(--radius-sm);
248
+ --radius-md: var(--radius);
249
+ --radius-lg: var(--radius-lg);
250
+ --radius-xl: var(--radius-xl);
251
+ --radius-2xl: var(--radius-2xl);
252
+ --radius-3xl: var(--radius-3xl);
253
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm install:*)",
5
- "Bash(node -e ' *)"
6
- ]
7
- }
8
- }