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/.claude/skills/brief-to-tasks/SKILL.md +74 -74
- package/.claude/skills/design-brief/SKILL.md +120 -120
- package/.claude/skills/design-flow/SKILL.md +124 -124
- package/.claude/skills/design-review/SKILL.md +249 -249
- package/.claude/skills/design-tokens/SKILL.md +198 -198
- package/.claude/skills/frontend-design/SKILL.md +144 -144
- package/.claude/skills/grill-me/SKILL.md +21 -21
- package/.claude/skills/information-architecture/SKILL.md +111 -111
- package/.claude/skills/opsfuse-color-theme/SKILL.md +257 -257
- package/.claude/skills/opsfuse-components/SKILL.md +1494 -1494
- package/.claude/skills/opsfuse-setup/SKILL.md +169 -169
- package/.claude/skills/opsfuse-ui-consistency/SKILL.md +169 -169
- package/LICENSE +17 -17
- package/README.md +214 -214
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/core.js +2 -2
- package/dist/extended.js +2 -2
- package/dist/index.js +3 -3
- package/dist/{input-group-DsOYhBRV.js → input-group-BFEABA03.js} +16 -0
- package/dist/{input-otp-B3Ht2pOf.js → input-otp-kzcY4B1V.js} +1 -1
- package/dist/style.css +256 -253
- package/dist/{toggle-group-BLGOVp8G.js → toggle-group-qup4FMjO.js} +1 -1
- package/package.json +151 -151
- package/scripts/postinstall.mjs +66 -66
- package/scripts/unwrap-css-layers.mjs +36 -36
- package/theme.css +253 -250
- package/.claude/settings.local.json +0 -8
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@source inline("border-
|
|
82
|
-
|
|
83
|
-
@
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
--color-
|
|
89
|
-
--color-
|
|
90
|
-
--color-
|
|
91
|
-
--color-
|
|
92
|
-
--color-
|
|
93
|
-
--color-
|
|
94
|
-
--color-
|
|
95
|
-
--color-
|
|
96
|
-
--color-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
--color-
|
|
100
|
-
|
|
101
|
-
/*
|
|
102
|
-
--color-
|
|
103
|
-
--color-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
--color-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
--color-primary
|
|
110
|
-
--color-primary-
|
|
111
|
-
--color-primary-
|
|
112
|
-
--color-primary-
|
|
113
|
-
--color-primary-muted
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
--color-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
--color-ai
|
|
120
|
-
--color-ai-
|
|
121
|
-
--color-ai-muted
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
--color-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
--color-success
|
|
128
|
-
--color-success-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
--color-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
--color-warning
|
|
135
|
-
--color-warning-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
--color-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
--color-destructive
|
|
142
|
-
--color-destructive-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
--color-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
--color-info
|
|
149
|
-
--color-info-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
--color-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
--color-
|
|
156
|
-
--color-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
--color-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
--color-sidebar
|
|
163
|
-
--color-sidebar-
|
|
164
|
-
--color-sidebar-
|
|
165
|
-
--color-sidebar-
|
|
166
|
-
--color-sidebar-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
--color-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
--color-score-
|
|
173
|
-
--color-score-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
--color-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
--color-chart-
|
|
180
|
-
--color-chart-
|
|
181
|
-
--color-chart-
|
|
182
|
-
--color-chart-
|
|
183
|
-
--color-chart-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
--
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
--shadow-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
--
|
|
193
|
-
|
|
194
|
-
/* ──
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
--text-
|
|
213
|
-
--text-
|
|
214
|
-
--text-
|
|
215
|
-
--text-
|
|
216
|
-
--text-
|
|
217
|
-
--text-
|
|
218
|
-
--text-
|
|
219
|
-
--text-
|
|
220
|
-
--text-
|
|
221
|
-
--text-
|
|
222
|
-
--text-
|
|
223
|
-
--text-
|
|
224
|
-
--text-
|
|
225
|
-
--text-
|
|
226
|
-
--text-
|
|
227
|
-
--text-
|
|
228
|
-
--text-
|
|
229
|
-
--text-
|
|
230
|
-
--text-
|
|
231
|
-
--text-
|
|
232
|
-
--text-
|
|
233
|
-
--text-
|
|
234
|
-
--text-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
--text-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
--text-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
--
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
--radius-
|
|
247
|
-
--radius-
|
|
248
|
-
--radius-
|
|
249
|
-
--radius-
|
|
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
|
+
}
|