@lerianstudio/sindarian-ui 2.0.0-beta.20 → 2.0.0-beta.22
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/dist/components/ui/lerian-wordmark/index.d.ts +6 -0
- package/dist/components/ui/lerian-wordmark/index.d.ts.map +1 -0
- package/dist/components/ui/lerian-wordmark/index.js +7 -0
- package/dist/components/ui/sidebar/sidebar-root.js +1 -1
- package/dist/document.css +215 -0
- package/dist/esm/components/ui/lerian-wordmark/index.d.ts +6 -0
- package/dist/esm/components/ui/lerian-wordmark/index.d.ts.map +1 -0
- package/dist/esm/components/ui/lerian-wordmark/index.js +4 -0
- package/dist/esm/components/ui/sidebar/sidebar-root.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/fonts/OFL.txt +96 -0
- package/dist/fonts/ibm-plex-mono-latin-400.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-500.woff2 +0 -0
- package/dist/fonts/ibm-plex-serif-latin-400.woff2 +0 -0
- package/dist/fonts/ibm-plex-serif-latin-500.woff2 +0 -0
- package/dist/fonts/inter-latin.woff2 +0 -0
- package/dist/fonts.css +46 -0
- package/dist/globals.css +8 -357
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/public/wordmark.svg +1 -0
- package/dist/standalone.css +11 -0
- package/dist/tokens.css +367 -0
- package/package.json +3 -3
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: light; /* native widgets (form controls, scrollbars) follow the theme */
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Sidebar geometry. These were literals inside SidebarRoot's cva
|
|
7
|
+
(`w-[244px]` / `w-[72px]`), which a consumer could only override by
|
|
8
|
+
winning a specificity argument with `cn`. As custom properties the
|
|
9
|
+
default still ships with this sheet.
|
|
10
|
+
|
|
11
|
+
TWO places to re-point them, and only these two:
|
|
12
|
+
- on the rail, via `className="[--sidebar-width:280px]"`. SidebarRoot
|
|
13
|
+
copies exactly these two arbitrary-property classes onto the mobile
|
|
14
|
+
drawer's own element, so one class moves the rail AND the drawer.
|
|
15
|
+
- on `:root` or `html`, which every layout inherits from.
|
|
16
|
+
|
|
17
|
+
NOT on a React-tree wrapper above the rail: that reaches the rail, but
|
|
18
|
+
the mobile drawer is portalled into document.body, and custom properties
|
|
19
|
+
inherit down the DOM tree. A wrapper is not an ancestor of the portal;
|
|
20
|
+
`:root` is.
|
|
21
|
+
|
|
22
|
+
They are theme-independent on purpose: a rail is not wider in the dark.
|
|
23
|
+
*/
|
|
24
|
+
--sidebar-width: 244px;
|
|
25
|
+
--sidebar-width-collapsed: 72px;
|
|
26
|
+
|
|
27
|
+
/* Application tokens (from Figma ring-tokens) */
|
|
28
|
+
--body-surface: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
29
|
+
/*
|
|
30
|
+
--body-text and --container-text below both step one notch off base/500.
|
|
31
|
+
base/500 clears AA on white (4.86:1) but not on --body-surface, the
|
|
32
|
+
recessed page ground, where it read 4.43:1. That ground is exactly where
|
|
33
|
+
the components carrying these two tokens sit: the resting tabs trigger
|
|
34
|
+
(text-sm font-medium, and its hover fill is --card precisely because the
|
|
35
|
+
resting ground is not white), the breadcrumb page and separator, the
|
|
36
|
+
stepper item text and description. An axe crawl of the br-sfn cockpit
|
|
37
|
+
flagged .text-body-text on 2026-09-06; the ratio it printed does not
|
|
38
|
+
reproduce here, and the measured pair on this token's own ground is
|
|
39
|
+
4.40:1 at 8-bit precision (4.43:1 in float).
|
|
40
|
+
|
|
41
|
+
45% is the smallest step that clears it: 4.59:1 on --body-surface, up
|
|
42
|
+
from 4.43:1, and 5.04:1 on white. Both stay eleven notches clear of
|
|
43
|
+
--container-title (base/600), so the text-versus-title step holds.
|
|
44
|
+
|
|
45
|
+
Deliberately not stepped far enough to clear --muted (#E4E4E7), which
|
|
46
|
+
would take base/500 minus five notches and visibly darken tabs,
|
|
47
|
+
breadcrumbs and steppers. No component in THIS kit paints either token on
|
|
48
|
+
that fill. A consumer that does is a call-site fix on its side, not a
|
|
49
|
+
clean bill from here: product-console's extract-table pairs bg-muted with
|
|
50
|
+
text-body-text and reads 3.98:1 in light.
|
|
51
|
+
*/
|
|
52
|
+
--body-text: 240 4% 45%; /* one notch off base/500: #6E6E77, AA on body-surface */
|
|
53
|
+
--body-title: 240 5% 26%; /* base/700 = #3F3F46 */
|
|
54
|
+
--container-surface: 0 0% 100%; /* base/white = #FFFFFF */
|
|
55
|
+
--container-text: 240 4% 45%; /* one notch off base/500: #6E6E77, AA on body-surface */
|
|
56
|
+
--container-title: 240 5% 34%; /* base/600 = #52525B */
|
|
57
|
+
--container-border: 0 0% 100%; /* #FFFFFF */
|
|
58
|
+
--link: 240 4% 16%; /* base/800 = #27272A */
|
|
59
|
+
--link-hover: 240 4% 16%; /* #27272A with 80% opacity via /80 */
|
|
60
|
+
--link-mute: 240 4% 16%; /* #27272A with 40% opacity via /40 */
|
|
61
|
+
--button-primary-surface: 240 4% 16%; /* base/800 = #27272A */
|
|
62
|
+
--button-primary-text: 0 0% 100%; /* base/white */
|
|
63
|
+
|
|
64
|
+
/* Shadcn semantic tokens (aligned with Figma) */
|
|
65
|
+
--background: 0 0% 100%; /* base/white = #FFFFFF */
|
|
66
|
+
--foreground: 240 5% 26%; /* base/700 = #3F3F46 */
|
|
67
|
+
--card: 0 0% 100%; /* = container-surface (white) */
|
|
68
|
+
/* Held at base/500, the step --container-text just moved off: this token's
|
|
69
|
+
own ground is --card (white), where base/500 clears AA at 4.86:1. It
|
|
70
|
+
measures 3.84:1 over --muted, but no component in this kit renders it
|
|
71
|
+
there: the data table pins its own inks rather than inheriting this one
|
|
72
|
+
(`ui/table/index.tsx`: cells take text-foreground, heads take
|
|
73
|
+
text-muted-foreground), so the hovered-row ground never sits under this
|
|
74
|
+
token. */
|
|
75
|
+
--card-foreground: 240 4% 46%; /* base/500 = #71717A */
|
|
76
|
+
--popover: 0 0% 100%; /* base/white */
|
|
77
|
+
--popover-foreground: 240 5% 34%; /* base/600 = #52525B */
|
|
78
|
+
--primary: 240 4% 16%; /* base/800 = #27272A */
|
|
79
|
+
--primary-foreground: 0 0% 100%; /* base/white */
|
|
80
|
+
--secondary: 0 0% 100%; /* base/white */
|
|
81
|
+
--secondary-foreground: 240 5% 34%; /* base/600 = #52525B */
|
|
82
|
+
--muted: 240 5% 90%; /* base/200 = #E4E4E7 */
|
|
83
|
+
--muted-foreground: 240 5% 34%; /* base/600 = #52525B */
|
|
84
|
+
--accent: 56 99% 50%; /* #FEED02 (sunglow) */
|
|
85
|
+
--accent-foreground: 240 10% 4%; /* base/800 for contrast on yellow */
|
|
86
|
+
/*
|
|
87
|
+
Shadcn — Destructive. Darkened one step to red/600. red/500 under white
|
|
88
|
+
was 3.78:1, under AA, for both roles this token plays: the fill beneath
|
|
89
|
+
`--destructive-foreground` (the Critical badge, every destructive
|
|
90
|
+
button) and the plain body ink of a field/form error message on white.
|
|
91
|
+
red/600 lifts both to 4.80:1. The hue is unchanged; only the step moved.
|
|
92
|
+
*/
|
|
93
|
+
--destructive: 0 72% 51%; /* red/600 = #DC2626 */
|
|
94
|
+
--destructive-foreground: 0 0% 100%; /* white */
|
|
95
|
+
--border: 240 5% 90%; /* base/200 = #E4E4E7 */
|
|
96
|
+
--input: 0 0% 100%; /* base/white */
|
|
97
|
+
/* Lighter than --muted-foreground, which is also the label colour: a
|
|
98
|
+
placeholder that matches its own label has no hierarchy left to give.
|
|
99
|
+
Stepped off base/500 with --body-text, and for the same reason. The
|
|
100
|
+
field paints no fill of its own (`input/styles.css`: .input-wrapper is
|
|
101
|
+
border-only, .input-base is bg-transparent), so the hint sits on
|
|
102
|
+
whatever ground contains the form, and on --body-surface base/500 read
|
|
103
|
+
4.40:1. 45% brings that to 4.59:1 and 5.04:1 on white. The retired note
|
|
104
|
+
here claimed 4.4:1 was acceptable "on the shadcn-100 field", which named
|
|
105
|
+
a fill the component never paints. */
|
|
106
|
+
--input-placeholder: 240 4% 45%; /* one notch off base/500: #6E6E77, AA on body-surface */
|
|
107
|
+
/* Field boundary, held to the 3:1 non-text floor (SC 1.4.11) on every ground a
|
|
108
|
+
field sits on. base/400 read 2.56:1 on white and 2.34:1 on --body-surface. */
|
|
109
|
+
--input-border: 240 4% 46%; /* base/500 = #71717A, 4.86:1 on white, 4.43:1 on body-surface */
|
|
110
|
+
/*
|
|
111
|
+
Focus ring. base/400 read 2.55:1 on white and 2.33:1 on --body-surface,
|
|
112
|
+
under the 3:1 floor a focus indicator answers to (SC 1.4.11), and this is
|
|
113
|
+
the ring every input, button and trigger in the kit paints: the wrapper
|
|
114
|
+
border on :focus-within, and the ring itself at ring-offset-0, both of
|
|
115
|
+
which touch the page ground directly. base/500 clears it on every light
|
|
116
|
+
ground: 4.84:1 on white (which is also --card and --popover here) and
|
|
117
|
+
4.40:1 on --body-surface.
|
|
118
|
+
|
|
119
|
+
It does NOT serve both themes. On the dark container surface base/500
|
|
120
|
+
measures 2.16:1, so .dark keeps the old channel as its own declaration,
|
|
121
|
+
where it reads 5.81:1 on --background and 4.08:1 on --card.
|
|
122
|
+
|
|
123
|
+
No single value clears both themes with margin, and none is a palette
|
|
124
|
+
step: the best one channel does is an off-scale 240 5% 57%, which clears
|
|
125
|
+
3:1 on all four grounds but by 0.04 on two of them. The per-theme pair
|
|
126
|
+
sits at 4.4+ light and 4.0+ dark, each half gated in
|
|
127
|
+
`__tests__/tokens-contract.test.ts`.
|
|
128
|
+
*/
|
|
129
|
+
--ring: 240 4% 46%; /* base/500 = #71717A */
|
|
130
|
+
--radius: 0.5rem;
|
|
131
|
+
|
|
132
|
+
/* Accent variants */
|
|
133
|
+
--accent-hover: 56 99% 50%; /* #FEED02 - opacity handled via /70 */
|
|
134
|
+
--accent-mute: 56 99% 50%; /* #FEED02 - opacity handled via /50 */
|
|
135
|
+
|
|
136
|
+
/* System tokens (light mode — dark overrides in .dark) */
|
|
137
|
+
--system-error: 0 84% 60%; /* red/500 = #EF4444 */
|
|
138
|
+
--system-error-surface: 0 86% 97%; /* red/50 = #FEF2F2 */
|
|
139
|
+
--system-error-h1a: 0 74% 35%; /* red/800 = #991B1B */
|
|
140
|
+
--system-error-border: 0 84% 60% / 0.5; /* #EF4444 50% */
|
|
141
|
+
--system-error-text: 0 74% 35%; /* #991B1B */
|
|
142
|
+
--system-success: 142 76% 36%; /* green/600 = #16A34A */
|
|
143
|
+
--system-success-surface: 139 76% 97%; /* green/50 = #F0FDF4 */
|
|
144
|
+
--system-success-h1a: 143 64% 24%; /* green/800 = #166534 */
|
|
145
|
+
--system-success-border: 142 76% 36% / 0.5; /* #16A34A 50% */
|
|
146
|
+
--system-success-text: 143 64% 24%; /* #166534 */
|
|
147
|
+
--system-info: 221 83% 53%; /* blue/600 = #2563EB */
|
|
148
|
+
--system-info-surface: 214 100% 97%; /* blue/50 = #EFF6FF */
|
|
149
|
+
--system-info-h1a: 224 76% 40%; /* blue/800 = #1E40AF */
|
|
150
|
+
--system-info-border: 221 83% 53% / 0.5; /* #2563EB 50% */
|
|
151
|
+
--system-info-text: 224 76% 40%; /* #1E40AF */
|
|
152
|
+
--system-alert: 48 96% 47%; /* yellow/500 = #EAB308 */
|
|
153
|
+
--system-alert-surface: 55 92% 95%; /* yellow/50 = #FEFCE8 */
|
|
154
|
+
--system-alert-h1a: 36 92% 29%; /* yellow/800 = #854D0E */
|
|
155
|
+
--system-alert-border: 48 96% 47% / 0.5; /* #EAB308 50% */
|
|
156
|
+
--system-alert-text: 36 92% 29%; /* #854D0E */
|
|
157
|
+
--system-purple: 271 81% 56%; /* purple/600 = #9333EA */
|
|
158
|
+
--system-purple-surface: 270 100% 98%; /* purple/50 = #FAF5FF */
|
|
159
|
+
--system-purple-h1a: 273 67% 39%; /* purple/800 = #6B21A8 */
|
|
160
|
+
--system-purple-border: 271 81% 56% / 0.5; /* #9333EA 50% */
|
|
161
|
+
--system-purple-text: 273 67% 39%; /* #6B21A8 */
|
|
162
|
+
|
|
163
|
+
/* Shadow color token for dark mode adaptation */
|
|
164
|
+
--shadow-color: 0 0% 0%;
|
|
165
|
+
|
|
166
|
+
/*
|
|
167
|
+
Ledger credit semantic — deliberately DISTINCT from --destructive, not an
|
|
168
|
+
alias: --destructive is an error/alarm, --credit is the accounting reading
|
|
169
|
+
of a credit amount. Deeper than --destructive (red/700 vs red/500) so the
|
|
170
|
+
two never read as the same signal. --credit-foreground mirrors --credit:
|
|
171
|
+
the red itself carries the role as text.
|
|
172
|
+
*/
|
|
173
|
+
--credit: 0 74% 42%; /* red/700 = #B91C1C */
|
|
174
|
+
--credit-foreground: 0 74% 42%; /* mirrors --credit */
|
|
175
|
+
|
|
176
|
+
/*
|
|
177
|
+
Reconciliation matte fills — the recessed track behind a balance bar, one
|
|
178
|
+
neutral step apart. Deliberately hue-neutral: the matched/unmatched signal
|
|
179
|
+
is carried by the bar's leading edge, so a tinted wall would double-encode.
|
|
180
|
+
*/
|
|
181
|
+
--matched-surface: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
182
|
+
--unmatched-surface: 240 5% 90%; /* base/200 = #E4E4E7 */
|
|
183
|
+
|
|
184
|
+
/*
|
|
185
|
+
Chart series palette — 8 categorical slots drawn from the brand scales
|
|
186
|
+
(de-york, sunglow, cod-gray) plus the system hues, ordered so no adjacent
|
|
187
|
+
pair shares a hue neighbourhood.
|
|
188
|
+
*/
|
|
189
|
+
--chart-1: 143 59% 36%; /* de-york-600 = #26934F */
|
|
190
|
+
--chart-2: 0 72% 51%; /* red/600 = #DC2626 */
|
|
191
|
+
--chart-3: 39 98% 40%; /* sunglow-600 = #CC8402 */
|
|
192
|
+
--chart-4: 221 83% 53%; /* blue/600 = #2563EB */
|
|
193
|
+
--chart-5: 333 71% 51%; /* pink/600 = #DB2777 */
|
|
194
|
+
--chart-6: 193 82% 31%; /* cyan/700 = #0E7490 */
|
|
195
|
+
--chart-7: 272 72% 47%; /* purple/700 = #7E22CE */
|
|
196
|
+
--chart-8: 351 9% 43%; /* cod-gray-500 = #776366 */
|
|
197
|
+
|
|
198
|
+
/* Plain-CSS twins of the @theme font slots in globals.css, for pages without
|
|
199
|
+
Tailwind; each must equal its --font-* value there. */
|
|
200
|
+
--font-stack-sans:
|
|
201
|
+
var(--font-inter, 'Inter'), 'Inter', ui-sans-serif, system-ui, sans-serif;
|
|
202
|
+
--font-stack-serif:
|
|
203
|
+
var(--font-plex-serif, ui-serif), ui-serif, Georgia, Cambria,
|
|
204
|
+
'Times New Roman', Times, serif;
|
|
205
|
+
--font-stack-mono:
|
|
206
|
+
var(--font-plex-mono, ui-monospace), ui-monospace, SFMono-Regular, Menlo,
|
|
207
|
+
Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.dark {
|
|
211
|
+
color-scheme: dark; /* native widgets (form controls, scrollbars) follow the theme */
|
|
212
|
+
|
|
213
|
+
/* Custom — Layout */
|
|
214
|
+
--link-hover: 240 5% 96%; /* #F4F4F5 80% (opacity via /80) */
|
|
215
|
+
--link-mute: 240 5% 96%; /* #F4F4F5 40% (opacity via /40) */
|
|
216
|
+
--container-surface: 240 5% 26%; /* base/700 = #3F3F46 */
|
|
217
|
+
--container-text: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
218
|
+
--container-title: 0 0% 100%; /* base/white */
|
|
219
|
+
--body-surface: 240 4% 16%; /* base/800 = #27272A */
|
|
220
|
+
--body-text: 240 5% 84%; /* base/300 = #D4D4D8 */
|
|
221
|
+
--body-title: 0 0% 100%; /* base/white */
|
|
222
|
+
--link: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
223
|
+
--button-primary-surface: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
224
|
+
--button-primary-text: 240 4% 16%; /* base/800 = #27272A */
|
|
225
|
+
--container-border: var(--border); /* shadcn/--border */
|
|
226
|
+
|
|
227
|
+
/* Shadcn — Core */
|
|
228
|
+
--background: 240 4% 16%; /* base/800 = #27272A */
|
|
229
|
+
--foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
230
|
+
--muted: 240 5% 34%; /* base/600 = #52525B */
|
|
231
|
+
/*
|
|
232
|
+
Lifted off the base scale. base/400 read 4.09:1 on --container-surface
|
|
233
|
+
(which --card aliases) and 3.01:1 on --muted, both under the 4.5 AA floor
|
|
234
|
+
for normal text, and this is the kit's universal secondary ink: every
|
|
235
|
+
TableHead column label (text-sm font-medium inside a text-sm Table),
|
|
236
|
+
every empty-state line, every form label through LABEL_VOICE_CLASS, every
|
|
237
|
+
MoneyText caption. An axe crawl of the br-sfn cockpit measured both pairs
|
|
238
|
+
on 2026-09-06; every console on this library inherited them.
|
|
239
|
+
|
|
240
|
+
80% is the smallest round step that clears both: 6.36:1 on
|
|
241
|
+
--container-surface and 4.68:1 on --muted. base/300 is the nearest scale
|
|
242
|
+
step that would also clear, but it is byte-identical to this theme's
|
|
243
|
+
--body-text, so adopting it would collapse the muted-versus-body step the
|
|
244
|
+
two tokens exist to express. Staying on the scale is worth less than
|
|
245
|
+
keeping that step, so the value leaves the scale instead.
|
|
246
|
+
|
|
247
|
+
That step is now thin, and the trade was made with eyes open: 80% sits at
|
|
248
|
+
L* 81 against --body-text at L* 85, so the two inks are 1.12:1 apart and
|
|
249
|
+
barely separable side by side. Legibility won because the weight is all
|
|
250
|
+
on one side: this token has 86 call sites and is read as prose on every
|
|
251
|
+
surface, while --body-text has one (an uppercase sidebar group label) plus
|
|
252
|
+
two derived theme keys. A reader who needs the step to be visible should
|
|
253
|
+
move --body-text, which is cheap to reposition, rather than push this one
|
|
254
|
+
back under the AA floor.
|
|
255
|
+
|
|
256
|
+
Repairs a fourth pair on the way: the disabled chip in autocomplete and
|
|
257
|
+
multiple-select paints text-muted on bg-muted-foreground, 3.01:1 before
|
|
258
|
+
and 4.68:1 now.
|
|
259
|
+
*/
|
|
260
|
+
--muted-foreground: 240 5% 80%; /* between base/400 and base/300: #C9C9CF, AA on container-surface and muted */
|
|
261
|
+
--card: var(--container-surface);
|
|
262
|
+
--card-foreground: var(--container-text);
|
|
263
|
+
--popover: 240 4% 16%; /* base/800 = #27272A */
|
|
264
|
+
--popover-foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
265
|
+
--border: 240 5% 34%; /* base/600 = #52525B */
|
|
266
|
+
--input: 240 4% 16%; /* base/800 = #27272A */
|
|
267
|
+
/* Held at base/400 rather than stepped down with the light theme: on the
|
|
268
|
+
dark field that is already only 5.8:1, and going lighter here means
|
|
269
|
+
darker, which would push the hint under the AA floor. */
|
|
270
|
+
--input-placeholder: 240 5% 80%; /* between base/400 and base/300: #C9C9CF, AA on card (6.3:1); base/400 read 4.07:1 there */
|
|
271
|
+
--input-border: 240 5% 65%; /* base/400 = #A1A1AA, 4.09:1 on card; light's base/500 reads 2.15:1 there */
|
|
272
|
+
/* Held at base/400, which light had to leave: on this ground the two
|
|
273
|
+
directions disagree. base/400 reads 5.81:1 on --background and 4.08:1 on
|
|
274
|
+
--card here, while light's base/500 would read 2.16:1 on --card. */
|
|
275
|
+
--ring: 240 5% 65%; /* base/400 = #A1A1AA */
|
|
276
|
+
--primary: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
277
|
+
--primary-foreground: 240 4% 16%; /* base/800 = #27272A */
|
|
278
|
+
--secondary: 240 4% 16%; /* base/800 = #27272A */
|
|
279
|
+
--secondary-foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
|
|
280
|
+
|
|
281
|
+
/* Shadcn — Accent (Brand Lerian) */
|
|
282
|
+
--accent: 46 98% 57%; /* sunglow/400 = #FDCB28 */
|
|
283
|
+
--accent-hover: 46 98% 57%; /* sunglow/400 = #FDCB28 - opacity via /70 */
|
|
284
|
+
--accent-mute: 46 98% 57%; /* sunglow/400 = #FDCB28 - opacity via /50 */
|
|
285
|
+
|
|
286
|
+
/*
|
|
287
|
+
Shadcn — Destructive. Lifted to red/400 like every other red in this
|
|
288
|
+
block (--system-error, --credit, --chart-2): the light red/500 inherited
|
|
289
|
+
here before, which left `text-destructive` at 2.76:1 on a --card surface
|
|
290
|
+
and `bg-destructive`/`text-destructive-foreground` at 3.78:1. The
|
|
291
|
+
foreground inverts to red/950 — the deep end this theme already uses as
|
|
292
|
+
--system-error-surface — so the pair reads 5.94:1.
|
|
293
|
+
*/
|
|
294
|
+
--destructive: 0 91% 71%; /* red/400 = #F87171 */
|
|
295
|
+
--destructive-foreground: 0 75% 15%; /* red/950 = #450A0A */
|
|
296
|
+
|
|
297
|
+
/* Shadcn — System Error */
|
|
298
|
+
--system-error: 0 91% 71%; /* red/400 = #F87171 */
|
|
299
|
+
--system-error-surface: 0 75% 15%; /* red/950 = #450A0A */
|
|
300
|
+
--system-error-text: 0 94% 82%; /* red/300 = #FCA5A5 */
|
|
301
|
+
--system-error-h1a: 0 96% 89%; /* red/200 = #FECACA */
|
|
302
|
+
--system-error-border: 0 94% 82% / 0.3; /* #FCA5A5 30% */
|
|
303
|
+
|
|
304
|
+
/* Shadcn — System Success */
|
|
305
|
+
--system-success: 142 69% 58%; /* green/400 = #4ADE80 */
|
|
306
|
+
--system-success-surface: 145 80% 10%; /* green/950 = #052E16 */
|
|
307
|
+
--system-success-text: 142 77% 73%; /* green/300 = #86EFAC */
|
|
308
|
+
--system-success-h1a: 141 79% 85%; /* green/200 = #BBF7D0 */
|
|
309
|
+
--system-success-border: 142 69% 58% / 0.3; /* #4ADE80 30% */
|
|
310
|
+
|
|
311
|
+
/* Shadcn — System Info */
|
|
312
|
+
--system-info: 213 94% 68%; /* blue/400 = #60A5FA */
|
|
313
|
+
--system-info-surface: 226 57% 21%; /* blue/950 = #172554 */
|
|
314
|
+
--system-info-text: 212 96% 78%; /* blue/300 = #93C5FD */
|
|
315
|
+
--system-info-h1a: 213 97% 87%; /* blue/200 = #BFDBFE */
|
|
316
|
+
--system-info-border: 213 94% 68% / 0.3; /* #60A5FA 30% */
|
|
317
|
+
|
|
318
|
+
/* Shadcn — System Alert */
|
|
319
|
+
--system-alert: 48 96% 53%; /* yellow/400 = #FACC15 */
|
|
320
|
+
--system-alert-surface: 26 83% 14%; /* yellow/950 = #422006 */
|
|
321
|
+
--system-alert-text: 48 97% 77%; /* yellow/300 = #FDE68A */
|
|
322
|
+
--system-alert-h1a: 53 98% 77%; /* yellow/200 = #FEF08A */
|
|
323
|
+
--system-alert-border: 48 96% 53% / 0.3; /* #FACC15 30% */
|
|
324
|
+
|
|
325
|
+
/* Shadcn — System Purple */
|
|
326
|
+
--system-purple: 270 95% 75%; /* purple/400 = #C084FC */
|
|
327
|
+
--system-purple-surface: 266 86% 13%; /* purple/950 = #3B0764 */
|
|
328
|
+
--system-purple-text: 269 97% 85%; /* purple/300 = #D8B4FE */
|
|
329
|
+
--system-purple-h1a: 269 100% 92%; /* purple/200 = #E9D5FF */
|
|
330
|
+
--system-purple-border: 270 95% 75% / 0.3; /* #C084FC 30% */
|
|
331
|
+
|
|
332
|
+
/* Shadow color for dark mode */
|
|
333
|
+
--shadow-color: 0 0% 100%;
|
|
334
|
+
|
|
335
|
+
/*
|
|
336
|
+
Ledger credit semantic — lifted for the dark canvas; foreground mirrors.
|
|
337
|
+
Sized by the composite the mirror actually produces, not by the plain
|
|
338
|
+
pair: components write `bg-credit/10` + `text-credit`, so the real
|
|
339
|
+
measurement is credit-as-text over a 10% credit tint composited on
|
|
340
|
+
--card. red/400 read only 3.34:1 there. red/300 — the channel this block
|
|
341
|
+
already uses for --system-error-text — reaches 4.59:1, and 5.54:1 as
|
|
342
|
+
plain text on --card.
|
|
343
|
+
|
|
344
|
+
Credit stays one step further from the canvas than --destructive
|
|
345
|
+
(red/400 here), the way light keeps credit at red/700 against a red/500
|
|
346
|
+
destructive: on a dark ground "further from the canvas" means lighter,
|
|
347
|
+
so the direction inverts but the separation holds and the two never read
|
|
348
|
+
as the same signal.
|
|
349
|
+
*/
|
|
350
|
+
--credit: 0 94% 82%; /* red/300 = #FCA5A5 */
|
|
351
|
+
--credit-foreground: 0 94% 82%; /* mirrors --credit */
|
|
352
|
+
|
|
353
|
+
/* Reconciliation matte fills — raised surfaces over base/800, one step apart. */
|
|
354
|
+
--matched-surface: 240 5% 26%; /* base/700 = #3F3F46 */
|
|
355
|
+
--unmatched-surface: 240 5% 34%; /* base/600 = #52525B */
|
|
356
|
+
|
|
357
|
+
/* Chart series palette — same families, lifted for the dark canvas. */
|
|
358
|
+
--chart-1: 143 53% 58%; /* de-york-400 = #5BCD86 */
|
|
359
|
+
--chart-2: 0 91% 71%; /* red/400 = #F87171 */
|
|
360
|
+
--chart-3: 46 98% 57%; /* sunglow-400 = #FDCB28 */
|
|
361
|
+
--chart-4: 213 94% 68%; /* blue/400 = #60A5FA */
|
|
362
|
+
--chart-5: 329 86% 70%; /* pink/400 = #F472B6 */
|
|
363
|
+
--chart-6: 188 86% 53%; /* cyan/400 = #22D3EE */
|
|
364
|
+
--chart-7: 270 95% 75%; /* purple/400 = #C084FC */
|
|
365
|
+
--chart-8: 351 9% 69%; /* cod-gray-300 = #B7A9AB */
|
|
366
|
+
}
|
|
367
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lerianstudio/sindarian-ui",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.22",
|
|
4
4
|
"description": "Sindarian UI - A UI library for Midaz Console",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"author": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"build": "npm run build:cjs && npm run build:esm && npm run copy:assets && npm run copy:styles",
|
|
42
42
|
"build:cjs": "tsc && tsc-alias -p tsconfig.json && copyfiles -u 1 \"src/**/*.cjs\" \"src/**/*.d.cts\" \"src/**/*.json\" dist",
|
|
43
43
|
"build:esm": "tsc -p tsconfig.esm.json && tsc-alias -p tsconfig.esm.json --resolve-full-paths && copyfiles -u 1 \"src/**/*.cjs\" \"src/**/*.d.cts\" \"src/**/*.json\" dist/esm && node -e \"require('fs').writeFileSync('dist/esm/package.json',JSON.stringify({type:'module'}))\" && node scripts/check-esm-output.mjs",
|
|
44
|
-
"copy:assets": "copyfiles -f src/public
|
|
45
|
-
"copy:styles": "copyfiles -u 1 src/**/*.css dist",
|
|
44
|
+
"copy:assets": "copyfiles -f \"src/public/**/*\" dist/public && copyfiles -u 1 \"src/fonts/*\" dist",
|
|
45
|
+
"copy:styles": "copyfiles -u 1 \"src/**/*.css\" dist",
|
|
46
46
|
"lint": "eslint .",
|
|
47
47
|
"lint:fix": "eslint . --fix",
|
|
48
48
|
"storybook": "storybook dev -p 6007",
|