@still-void/ui 3.5.0 → 3.6.0
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/CHANGELOG.md +71 -0
- package/README.md +36 -0
- package/dist/css/app-shell.css +129 -0
- package/dist/css/base.css +27 -0
- package/dist/css/content.css +726 -0
- package/dist/css/controls.css +383 -0
- package/dist/css/data.css +190 -0
- package/dist/css/forms.css +318 -0
- package/dist/css/motion.css +49 -0
- package/dist/css/overlays.css +488 -0
- package/dist/css/toast.css +170 -0
- package/dist/react/_modules/behaviors/themeManager.js +10 -0
- package/dist/react/_modules/behaviors/themeManager.js.map +1 -0
- package/dist/react/_modules/components/ui/alert.js +14 -0
- package/dist/react/_modules/components/ui/alert.js.map +1 -0
- package/dist/react/_modules/components/ui/badge.js +9 -0
- package/dist/react/_modules/components/ui/badge.js.map +1 -0
- package/dist/react/_modules/components/ui/button.js +9 -0
- package/dist/react/_modules/components/ui/button.js.map +1 -0
- package/dist/react/_modules/components/ui/card.js +19 -0
- package/dist/react/_modules/components/ui/card.js.map +1 -0
- package/dist/react/_modules/components/ui/chart.js +18 -0
- package/dist/react/_modules/components/ui/chart.js.map +1 -0
- package/dist/react/_modules/components/ui/checkbox.js +8 -0
- package/dist/react/_modules/components/ui/checkbox.js.map +1 -0
- package/dist/react/_modules/components/ui/field.js +9 -0
- package/dist/react/_modules/components/ui/field.js.map +1 -0
- package/dist/react/_modules/components/ui/file-input.js +10 -0
- package/dist/react/_modules/components/ui/file-input.js.map +1 -0
- package/dist/react/_modules/components/ui/icon-set.js +11 -0
- package/dist/react/_modules/components/ui/icon-set.js.map +1 -0
- package/dist/react/_modules/components/ui/icon.js +9 -0
- package/dist/react/_modules/components/ui/icon.js.map +1 -0
- package/dist/react/_modules/components/ui/input.js +10 -0
- package/dist/react/_modules/components/ui/input.js.map +1 -0
- package/dist/react/_modules/components/ui/native-select.js +10 -0
- package/dist/react/_modules/components/ui/native-select.js.map +1 -0
- package/dist/react/_modules/components/ui/pagination.js +23 -0
- package/dist/react/_modules/components/ui/pagination.js.map +1 -0
- package/dist/react/_modules/components/ui/progress.js +8 -0
- package/dist/react/_modules/components/ui/progress.js.map +1 -0
- package/dist/react/_modules/components/ui/radio-group.js +12 -0
- package/dist/react/_modules/components/ui/radio-group.js.map +1 -0
- package/dist/react/_modules/components/ui/separator.js +8 -0
- package/dist/react/_modules/components/ui/separator.js.map +1 -0
- package/dist/react/_modules/components/ui/slot.js +7 -0
- package/dist/react/_modules/components/ui/slot.js.map +1 -0
- package/dist/react/_modules/components/ui/table.js +23 -0
- package/dist/react/_modules/components/ui/table.js.map +1 -0
- package/dist/react/_modules/components/ui/text-link.js +10 -0
- package/dist/react/_modules/components/ui/text-link.js.map +1 -0
- package/dist/react/_modules/components/ui/textarea.js +10 -0
- package/dist/react/_modules/components/ui/textarea.js.map +1 -0
- package/dist/react/_modules/lib/safe-href.js +9 -0
- package/dist/react/_modules/lib/safe-href.js.map +1 -0
- package/dist/react/_modules/lib/utils.js +7 -0
- package/dist/react/_modules/lib/utils.js.map +1 -0
- package/dist/react/_modules/react/components/Article.js +17 -0
- package/dist/react/_modules/react/components/Article.js.map +1 -0
- package/dist/react/_modules/react/components/Content.js +30 -0
- package/dist/react/_modules/react/components/Content.js.map +1 -0
- package/dist/react/_modules/react/components/PageHeader.js +8 -0
- package/dist/react/_modules/react/components/PageHeader.js.map +1 -0
- package/dist/react/_modules/react/components/Shell.js +17 -0
- package/dist/react/_modules/react/components/Shell.js.map +1 -0
- package/dist/react/_modules/react/components/ThemeScript.js +9 -0
- package/dist/react/_modules/react/components/ThemeScript.js.map +1 -0
- package/dist/react/_modules/recipes/article.js +34 -0
- package/dist/react/_modules/recipes/article.js.map +1 -0
- package/dist/react/_modules/recipes/content.js +34 -0
- package/dist/react/_modules/recipes/content.js.map +1 -0
- package/dist/react/_modules/recipes/cx.js +7 -0
- package/dist/react/_modules/recipes/cx.js.map +1 -0
- package/dist/react/_modules/recipes/field.js +12 -0
- package/dist/react/_modules/recipes/field.js.map +1 -0
- package/dist/react/_modules/recipes/shell.js +18 -0
- package/dist/react/_modules/recipes/shell.js.map +1 -0
- package/dist/react/_modules/recipes/table.js +9 -0
- package/dist/react/_modules/recipes/table.js.map +1 -0
- package/dist/react/_modules/tokens/categories.js +12 -0
- package/dist/react/_modules/tokens/categories.js.map +1 -0
- package/dist/react/_modules/tokens/colors.js +23 -0
- package/dist/react/_modules/tokens/colors.js.map +1 -0
- package/dist/react/_modules/tokens/motion.js +9 -0
- package/dist/react/_modules/tokens/motion.js.map +1 -0
- package/dist/react/_modules/tokens/spacing.js +9 -0
- package/dist/react/_modules/tokens/spacing.js.map +1 -0
- package/dist/react/_modules/tokens/typography.js +15 -0
- package/dist/react/_modules/tokens/typography.js.map +1 -0
- package/dist/react/_modules/tokens/zIndex.js +7 -0
- package/dist/react/_modules/tokens/zIndex.js.map +1 -0
- package/dist/react/chunk-2QRW4J2C.js +29 -0
- package/dist/react/chunk-2QRW4J2C.js.map +1 -0
- package/dist/react/chunk-3BWBG3BR.js +82 -0
- package/dist/react/chunk-3BWBG3BR.js.map +1 -0
- package/dist/react/chunk-563PKHIJ.js +48 -0
- package/dist/react/chunk-563PKHIJ.js.map +1 -0
- package/dist/react/chunk-5RPXXOD7.js +50 -0
- package/dist/react/chunk-5RPXXOD7.js.map +1 -0
- package/dist/react/chunk-6PF2SFKH.js +54 -0
- package/dist/react/chunk-6PF2SFKH.js.map +1 -0
- package/dist/react/chunk-7JIE3YAY.js +109 -0
- package/dist/react/chunk-7JIE3YAY.js.map +1 -0
- package/dist/react/chunk-7ZVSFBDK.js +26 -0
- package/dist/react/chunk-7ZVSFBDK.js.map +1 -0
- package/dist/react/chunk-AVAJOAL5.js +10 -0
- package/dist/react/chunk-AVAJOAL5.js.map +1 -0
- package/dist/react/chunk-BXKXO6FU.js +34 -0
- package/dist/react/chunk-BXKXO6FU.js.map +1 -0
- package/dist/react/chunk-CN3PNEZL.js +80 -0
- package/dist/react/chunk-CN3PNEZL.js.map +1 -0
- package/dist/react/chunk-EHJDOUXR.js +144 -0
- package/dist/react/chunk-EHJDOUXR.js.map +1 -0
- package/dist/react/chunk-FX2E23UV.js +28 -0
- package/dist/react/chunk-FX2E23UV.js.map +1 -0
- package/dist/react/chunk-GYGMM6RW.js +20 -0
- package/dist/react/chunk-GYGMM6RW.js.map +1 -0
- package/dist/react/chunk-H7DEOO3V.js +29 -0
- package/dist/react/chunk-H7DEOO3V.js.map +1 -0
- package/dist/react/chunk-HD7O5FNH.js +39 -0
- package/dist/react/chunk-HD7O5FNH.js.map +1 -0
- package/dist/react/chunk-HYLCMS2U.js +28 -0
- package/dist/react/chunk-HYLCMS2U.js.map +1 -0
- package/dist/react/chunk-HYXG2WF4.js +73 -0
- package/dist/react/chunk-HYXG2WF4.js.map +1 -0
- package/dist/react/chunk-KQK7SZ3K.js +52 -0
- package/dist/react/chunk-KQK7SZ3K.js.map +1 -0
- package/dist/react/chunk-KQZBK3XX.js +24 -0
- package/dist/react/chunk-KQZBK3XX.js.map +1 -0
- package/dist/react/chunk-L6WPFLSD.js +39 -0
- package/dist/react/chunk-L6WPFLSD.js.map +1 -0
- package/dist/react/chunk-LOVNG6RF.js +9 -0
- package/dist/react/chunk-LOVNG6RF.js.map +1 -0
- package/dist/react/chunk-M5FFVQKK.js +41 -0
- package/dist/react/chunk-M5FFVQKK.js.map +1 -0
- package/dist/react/chunk-MZEFPODP.js +77 -0
- package/dist/react/chunk-MZEFPODP.js.map +1 -0
- package/dist/react/chunk-NJQN37EG.js +37 -0
- package/dist/react/chunk-NJQN37EG.js.map +1 -0
- package/dist/react/chunk-OEFJMV7G.js +144 -0
- package/dist/react/chunk-OEFJMV7G.js.map +1 -0
- package/dist/react/chunk-P4M4LEI2.js +62 -0
- package/dist/react/chunk-P4M4LEI2.js.map +1 -0
- package/dist/react/chunk-PGDHKADW.js +60 -0
- package/dist/react/chunk-PGDHKADW.js.map +1 -0
- package/dist/react/chunk-QTVPXQ43.js +29 -0
- package/dist/react/chunk-QTVPXQ43.js.map +1 -0
- package/dist/react/chunk-QVOZHMVF.js +14 -0
- package/dist/react/chunk-QVOZHMVF.js.map +1 -0
- package/dist/react/chunk-SJ2YK4NJ.js +27 -0
- package/dist/react/chunk-SJ2YK4NJ.js.map +1 -0
- package/dist/react/chunk-SSMGCYPH.js +79 -0
- package/dist/react/chunk-SSMGCYPH.js.map +1 -0
- package/dist/react/chunk-SUT4G3TE.js +29 -0
- package/dist/react/chunk-SUT4G3TE.js.map +1 -0
- package/dist/react/chunk-SVLIJGBZ.js +14 -0
- package/dist/react/chunk-SVLIJGBZ.js.map +1 -0
- package/dist/react/chunk-SY7EEIC3.js +100 -0
- package/dist/react/chunk-SY7EEIC3.js.map +1 -0
- package/dist/react/chunk-TI3OPDCN.js +25 -0
- package/dist/react/chunk-TI3OPDCN.js.map +1 -0
- package/dist/react/chunk-U6L6J73Y.js +27 -0
- package/dist/react/chunk-U6L6J73Y.js.map +1 -0
- package/dist/react/chunk-VD5O66DN.js +54 -0
- package/dist/react/chunk-VD5O66DN.js.map +1 -0
- package/dist/react/chunk-YDGOXO6Q.js +74 -0
- package/dist/react/chunk-YDGOXO6Q.js.map +1 -0
- package/dist/react/chunk-YTTFCX3E.js +16 -0
- package/dist/react/chunk-YTTFCX3E.js.map +1 -0
- package/dist/react/chunk-YXV3UEL5.js +27 -0
- package/dist/react/chunk-YXV3UEL5.js.map +1 -0
- package/dist/react/client/_modules/behaviors/clipboard.js +8 -0
- package/dist/react/client/_modules/behaviors/clipboard.js.map +1 -0
- package/dist/react/client/_modules/behaviors/mediaQuery.js +8 -0
- package/dist/react/client/_modules/behaviors/mediaQuery.js.map +1 -0
- package/dist/react/client/_modules/behaviors/readingProgress.js +10 -0
- package/dist/react/client/_modules/behaviors/readingProgress.js.map +1 -0
- package/dist/react/client/_modules/behaviors/scrollSpy.js +8 -0
- package/dist/react/client/_modules/behaviors/scrollSpy.js.map +1 -0
- package/dist/react/client/_modules/behaviors/themeManager.js +11 -0
- package/dist/react/client/_modules/behaviors/themeManager.js.map +1 -0
- package/dist/react/client/_modules/components/ui/alert-dialog.js +30 -0
- package/dist/react/client/_modules/components/ui/alert-dialog.js.map +1 -0
- package/dist/react/client/_modules/components/ui/bottom-sheet.js +28 -0
- package/dist/react/client/_modules/components/ui/bottom-sheet.js.map +1 -0
- package/dist/react/client/_modules/components/ui/combobox.js +13 -0
- package/dist/react/client/_modules/components/ui/combobox.js.map +1 -0
- package/dist/react/client/_modules/components/ui/dialog.js +30 -0
- package/dist/react/client/_modules/components/ui/dialog.js.map +1 -0
- package/dist/react/client/_modules/components/ui/dropdown-menu.js +39 -0
- package/dist/react/client/_modules/components/ui/dropdown-menu.js.map +1 -0
- package/dist/react/client/_modules/components/ui/icon-set.js +12 -0
- package/dist/react/client/_modules/components/ui/icon-set.js.map +1 -0
- package/dist/react/client/_modules/components/ui/icon.js +10 -0
- package/dist/react/client/_modules/components/ui/icon.js.map +1 -0
- package/dist/react/client/_modules/components/ui/restore-focus.js +8 -0
- package/dist/react/client/_modules/components/ui/restore-focus.js.map +1 -0
- package/dist/react/client/_modules/components/ui/select.js +29 -0
- package/dist/react/client/_modules/components/ui/select.js.map +1 -0
- package/dist/react/client/_modules/components/ui/tabs.js +15 -0
- package/dist/react/client/_modules/components/ui/tabs.js.map +1 -0
- package/dist/react/client/_modules/components/ui/tooltip.js +15 -0
- package/dist/react/client/_modules/components/ui/tooltip.js.map +1 -0
- package/dist/react/client/_modules/lib/utils.js +8 -0
- package/dist/react/client/_modules/lib/utils.js.map +1 -0
- package/dist/react/client/_modules/react/client/CopyButton.js +11 -0
- package/dist/react/client/_modules/react/client/CopyButton.js.map +1 -0
- package/dist/react/client/_modules/react/client/ReadingProgress.js +14 -0
- package/dist/react/client/_modules/react/client/ReadingProgress.js.map +1 -0
- package/dist/react/client/_modules/react/client/SidebarProvider.js +26 -0
- package/dist/react/client/_modules/react/client/SidebarProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/TableOfContents.js +14 -0
- package/dist/react/client/_modules/react/client/TableOfContents.js.map +1 -0
- package/dist/react/client/_modules/react/client/ThemeProvider.js +12 -0
- package/dist/react/client/_modules/react/client/ThemeProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/ThemeToggle.js +14 -0
- package/dist/react/client/_modules/react/client/ThemeToggle.js.map +1 -0
- package/dist/react/client/_modules/react/client/ToastProvider.js +14 -0
- package/dist/react/client/_modules/react/client/ToastProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/hooks.js +17 -0
- package/dist/react/client/_modules/react/client/hooks.js.map +1 -0
- package/dist/react/client/_modules/react/client/shadcn.js +160 -0
- package/dist/react/client/_modules/react/client/shadcn.js.map +1 -0
- package/dist/react/client/_modules/recipes/article.js +35 -0
- package/dist/react/client/_modules/recipes/article.js.map +1 -0
- package/dist/react/client/_modules/recipes/cx.js +8 -0
- package/dist/react/client/_modules/recipes/cx.js.map +1 -0
- package/dist/react/client/_modules/recipes/field.js +13 -0
- package/dist/react/client/_modules/recipes/field.js.map +1 -0
- package/dist/react/client/_modules/tokens/colors.js +24 -0
- package/dist/react/client/_modules/tokens/colors.js.map +1 -0
- package/dist/react/client/chunk-3MVZ2ES4.js +83 -0
- package/dist/react/client/chunk-3MVZ2ES4.js.map +1 -0
- package/dist/react/client/chunk-7AU2DPOL.js +35 -0
- package/dist/react/client/chunk-7AU2DPOL.js.map +1 -0
- package/dist/react/client/chunk-ABWCVXOO.js +11 -0
- package/dist/react/client/chunk-ABWCVXOO.js.map +1 -0
- package/dist/react/client/chunk-AEXJWMUV.js +52 -0
- package/dist/react/client/chunk-AEXJWMUV.js.map +1 -0
- package/dist/react/client/chunk-CJQZ4BGO.js +125 -0
- package/dist/react/client/chunk-CJQZ4BGO.js.map +1 -0
- package/dist/react/client/chunk-CMMPIPNC.js +30 -0
- package/dist/react/client/chunk-CMMPIPNC.js.map +1 -0
- package/dist/react/client/chunk-CWA3N5RK.js +123 -0
- package/dist/react/client/chunk-CWA3N5RK.js.map +1 -0
- package/dist/react/client/chunk-ECOPTUZT.js +102 -0
- package/dist/react/client/chunk-ECOPTUZT.js.map +1 -0
- package/dist/react/client/chunk-GD7XJWKF.js +102 -0
- package/dist/react/client/chunk-GD7XJWKF.js.map +1 -0
- package/dist/react/client/chunk-JVVNV4DF.js +95 -0
- package/dist/react/client/chunk-JVVNV4DF.js.map +1 -0
- package/dist/react/client/chunk-LDOUB5IA.js +40 -0
- package/dist/react/client/chunk-LDOUB5IA.js.map +1 -0
- package/dist/react/client/chunk-M5QFSQYC.js +40 -0
- package/dist/react/client/chunk-M5QFSQYC.js.map +1 -0
- package/dist/react/client/chunk-MGR4F2BJ.js +67 -0
- package/dist/react/client/chunk-MGR4F2BJ.js.map +1 -0
- package/dist/react/client/chunk-MYTOL2RH.js +61 -0
- package/dist/react/client/chunk-MYTOL2RH.js.map +1 -0
- package/dist/react/client/chunk-N64GC5ZU.js +12 -0
- package/dist/react/client/chunk-N64GC5ZU.js.map +1 -0
- package/dist/react/client/chunk-NEAL74VV.js +130 -0
- package/dist/react/client/chunk-NEAL74VV.js.map +1 -0
- package/dist/react/client/chunk-OF6BMW2X.js +30 -0
- package/dist/react/client/chunk-OF6BMW2X.js.map +1 -0
- package/dist/react/client/chunk-OILITPDP.js +72 -0
- package/dist/react/client/chunk-OILITPDP.js.map +1 -0
- package/dist/react/client/chunk-OU4ACOFA.js +75 -0
- package/dist/react/client/chunk-OU4ACOFA.js.map +1 -0
- package/dist/react/client/chunk-OVMH25G3.js +23 -0
- package/dist/react/client/chunk-OVMH25G3.js.map +1 -0
- package/dist/react/client/chunk-P2UPL6Y3.js +205 -0
- package/dist/react/client/chunk-P2UPL6Y3.js.map +1 -0
- package/dist/react/client/chunk-PAOYY55O.js +41 -0
- package/dist/react/client/chunk-PAOYY55O.js.map +1 -0
- package/dist/react/client/chunk-PYG5NCEU.js +54 -0
- package/dist/react/client/chunk-PYG5NCEU.js.map +1 -0
- package/dist/react/client/chunk-RCZS37V5.js +239 -0
- package/dist/react/client/chunk-RCZS37V5.js.map +1 -0
- package/dist/react/client/chunk-RJFN4KXE.js +36 -0
- package/dist/react/client/chunk-RJFN4KXE.js.map +1 -0
- package/dist/react/client/chunk-RNMQZ6T2.js +62 -0
- package/dist/react/client/chunk-RNMQZ6T2.js.map +1 -0
- package/dist/react/client/chunk-TXL2US4Z.js +53 -0
- package/dist/react/client/chunk-TXL2US4Z.js.map +1 -0
- package/dist/react/client/chunk-U6FMZ32G.js +192 -0
- package/dist/react/client/chunk-U6FMZ32G.js.map +1 -0
- package/dist/react/client/chunk-WR7KQGBM.js +2 -0
- package/dist/react/client/chunk-WR7KQGBM.js.map +1 -0
- package/dist/react/client/chunk-XHL4YEVA.js +17 -0
- package/dist/react/client/chunk-XHL4YEVA.js.map +1 -0
- package/dist/react/client/index.cjs +400 -81
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +86 -5
- package/dist/react/client/index.d.ts +86 -5
- package/dist/react/client/index.js +141 -1426
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +368 -183
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +202 -23
- package/dist/react/index.d.ts +202 -23
- package/dist/react/index.js +206 -1231
- package/dist/react/index.js.map +1 -1
- package/dist/shadcn-overrides.css +27 -13
- package/dist/style.css +327 -25
- package/dist/theme.css +73 -24
- package/package.json +36 -6
package/dist/style.css
CHANGED
|
@@ -367,10 +367,13 @@ body.sv-body {
|
|
|
367
367
|
gap: var(--sv-space-4);
|
|
368
368
|
padding: var(--sv-space-16) 0 var(--sv-space-12);
|
|
369
369
|
}
|
|
370
|
+
/* DESIGN "Label" step: Manrope 600, 0.75rem, 0.08em tracking, uppercase — a
|
|
371
|
+
weight/tracking/case treatment, not a typeface change (Sparse-Display Rule). */
|
|
370
372
|
.sv-hero__eyebrow {
|
|
371
373
|
color: var(--sv-accent-ink);
|
|
372
|
-
font-family: var(--sv-font-
|
|
373
|
-
font-size: var(--sv-text-
|
|
374
|
+
font-family: var(--sv-font-body);
|
|
375
|
+
font-size: var(--sv-text-xs);
|
|
376
|
+
font-weight: 600;
|
|
374
377
|
letter-spacing: 0.08em;
|
|
375
378
|
text-transform: uppercase;
|
|
376
379
|
}
|
|
@@ -399,6 +402,79 @@ body.sv-body {
|
|
|
399
402
|
}
|
|
400
403
|
}
|
|
401
404
|
|
|
405
|
+
/* ---------- PageHeader ---------- */
|
|
406
|
+
/* Mobile first: title block and actions stack; side by side from 40rem. The
|
|
407
|
+
title row never wraps (a badge hopping lines when the web font swaps in
|
|
408
|
+
moves the whole page); a wide badge opts into `--stack` instead, which is
|
|
409
|
+
decided by viewport width only. */
|
|
410
|
+
.sv-page-header {
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
gap: var(--sv-space-4);
|
|
414
|
+
margin-bottom: var(--sv-space-6);
|
|
415
|
+
}
|
|
416
|
+
.sv-page-header__main {
|
|
417
|
+
min-width: 0;
|
|
418
|
+
}
|
|
419
|
+
.sv-page-header__leading {
|
|
420
|
+
margin-bottom: var(--sv-space-2);
|
|
421
|
+
}
|
|
422
|
+
.sv-page-header__title-row {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
gap: var(--sv-space-3);
|
|
426
|
+
}
|
|
427
|
+
.sv-page-header__title-row--stack {
|
|
428
|
+
flex-direction: column;
|
|
429
|
+
align-items: flex-start;
|
|
430
|
+
gap: var(--sv-space-2);
|
|
431
|
+
}
|
|
432
|
+
.sv-page-header__title {
|
|
433
|
+
min-width: 0;
|
|
434
|
+
margin: 0;
|
|
435
|
+
color: var(--sv-text);
|
|
436
|
+
font-family: var(--sv-font-display);
|
|
437
|
+
font-size: var(--sv-text-2xl);
|
|
438
|
+
font-weight: 600;
|
|
439
|
+
letter-spacing: -0.02em;
|
|
440
|
+
line-height: 1.15;
|
|
441
|
+
overflow-wrap: anywhere;
|
|
442
|
+
}
|
|
443
|
+
.sv-page-header__badge {
|
|
444
|
+
display: flex;
|
|
445
|
+
flex-wrap: wrap;
|
|
446
|
+
align-items: center;
|
|
447
|
+
gap: var(--sv-space-2);
|
|
448
|
+
}
|
|
449
|
+
.sv-page-header__description {
|
|
450
|
+
max-width: 68ch;
|
|
451
|
+
margin-top: var(--sv-space-1);
|
|
452
|
+
color: var(--sv-text-2);
|
|
453
|
+
font-size: var(--sv-text-sm);
|
|
454
|
+
}
|
|
455
|
+
.sv-page-header__actions {
|
|
456
|
+
display: flex;
|
|
457
|
+
flex-wrap: wrap;
|
|
458
|
+
align-items: center;
|
|
459
|
+
gap: var(--sv-space-2);
|
|
460
|
+
}
|
|
461
|
+
@media (width >= 40rem) {
|
|
462
|
+
.sv-page-header {
|
|
463
|
+
flex-direction: row;
|
|
464
|
+
align-items: flex-end;
|
|
465
|
+
justify-content: space-between;
|
|
466
|
+
}
|
|
467
|
+
.sv-page-header__title-row--stack {
|
|
468
|
+
flex-direction: row;
|
|
469
|
+
align-items: center;
|
|
470
|
+
gap: var(--sv-space-3);
|
|
471
|
+
}
|
|
472
|
+
.sv-page-header__actions {
|
|
473
|
+
flex-shrink: 0;
|
|
474
|
+
justify-content: flex-end;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
402
478
|
/* ---------- Skeleton ---------- */
|
|
403
479
|
.sv-skeleton-line {
|
|
404
480
|
height: var(--sv-space-4);
|
|
@@ -657,6 +733,24 @@ body.sv-body {
|
|
|
657
733
|
font-style: italic;
|
|
658
734
|
}
|
|
659
735
|
|
|
736
|
+
/* ---------- Link ---------- */
|
|
737
|
+
/* Inline text link outside Prose (TextLink): accent ink, underline on hover.
|
|
738
|
+
Touch sizing lives with the other targets (Touch targets section). */
|
|
739
|
+
.sv-link {
|
|
740
|
+
color: var(--sv-accent-ink);
|
|
741
|
+
text-decoration: underline;
|
|
742
|
+
text-decoration-color: color-mix(in srgb, var(--sv-accent-ink) 40%, transparent);
|
|
743
|
+
text-underline-offset: 3px;
|
|
744
|
+
transition: text-decoration-color var(--sv-duration-fast) var(--sv-ease-hover);
|
|
745
|
+
}
|
|
746
|
+
.sv-link:hover {
|
|
747
|
+
text-decoration-color: currentColor;
|
|
748
|
+
}
|
|
749
|
+
.sv-link:focus-visible {
|
|
750
|
+
outline: 2px solid var(--sv-accent-ink);
|
|
751
|
+
outline-offset: 2px;
|
|
752
|
+
}
|
|
753
|
+
|
|
660
754
|
/* ---------- Forms ---------- */
|
|
661
755
|
/* Single source of truth for the field frame. Input, Textarea, NativeSelect
|
|
662
756
|
and FileInput all render .sv-field, so border, radius, surface, typography
|
|
@@ -707,6 +801,24 @@ body.sv-body {
|
|
|
707
801
|
.sv-field--select[multiple] {
|
|
708
802
|
height: auto;
|
|
709
803
|
}
|
|
804
|
+
/* Native date/time inputs carry their own intrinsic minimum width (over
|
|
805
|
+
100px in iOS Safari), which ignores `width: 100%` and overflows a grid cell
|
|
806
|
+
or the viewport. `min-width: 0` lets them shrink to the container. On iOS
|
|
807
|
+
(the only engine with -webkit-touch-callout) the native appearance is
|
|
808
|
+
dropped so the value aligns left like every other field. */
|
|
809
|
+
.sv-field:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']) {
|
|
810
|
+
min-width: 0;
|
|
811
|
+
max-width: 100%;
|
|
812
|
+
}
|
|
813
|
+
@supports (-webkit-touch-callout: none) {
|
|
814
|
+
.sv-field:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']) {
|
|
815
|
+
-webkit-appearance: none;
|
|
816
|
+
appearance: none;
|
|
817
|
+
}
|
|
818
|
+
.sv-field::-webkit-date-and-time-value {
|
|
819
|
+
text-align: start;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
710
822
|
.sv-field--file {
|
|
711
823
|
height: auto;
|
|
712
824
|
padding: var(--sv-space-1) var(--sv-space-2);
|
|
@@ -735,6 +847,46 @@ body.sv-body {
|
|
|
735
847
|
cursor: pointer;
|
|
736
848
|
}
|
|
737
849
|
|
|
850
|
+
/* Select trigger: a <button> sharing the .sv-field frame. Buttons centre
|
|
851
|
+
their text by default; a field reads from the start, with the chevron
|
|
852
|
+
pushed to the end and a long value truncated instead of wrapping. */
|
|
853
|
+
.sv-field--trigger {
|
|
854
|
+
display: flex;
|
|
855
|
+
align-items: center;
|
|
856
|
+
justify-content: space-between;
|
|
857
|
+
gap: var(--sv-space-2);
|
|
858
|
+
text-align: start;
|
|
859
|
+
cursor: pointer;
|
|
860
|
+
}
|
|
861
|
+
.sv-field--trigger > span:first-child {
|
|
862
|
+
min-width: 0;
|
|
863
|
+
overflow: hidden;
|
|
864
|
+
text-overflow: ellipsis;
|
|
865
|
+
white-space: nowrap;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* Field: label + control + description + error, stacked. */
|
|
869
|
+
.sv-form-field {
|
|
870
|
+
display: flex;
|
|
871
|
+
flex-direction: column;
|
|
872
|
+
gap: var(--sv-space-2);
|
|
873
|
+
min-width: 0;
|
|
874
|
+
}
|
|
875
|
+
.sv-form-field > .sv-field-message {
|
|
876
|
+
margin-top: 0;
|
|
877
|
+
}
|
|
878
|
+
.sv-label {
|
|
879
|
+
color: var(--sv-text);
|
|
880
|
+
font-family: var(--sv-font-body);
|
|
881
|
+
font-size: var(--sv-text-sm);
|
|
882
|
+
font-weight: 500;
|
|
883
|
+
line-height: 1.4;
|
|
884
|
+
}
|
|
885
|
+
.sv-label__required {
|
|
886
|
+
margin-inline-start: var(--sv-space-1);
|
|
887
|
+
color: var(--sv-danger-ink);
|
|
888
|
+
}
|
|
889
|
+
|
|
738
890
|
/* Helper/error text sat under a field, associated via aria-describedby. */
|
|
739
891
|
.sv-field-message {
|
|
740
892
|
display: block;
|
|
@@ -959,11 +1111,11 @@ body.sv-body {
|
|
|
959
1111
|
}
|
|
960
1112
|
|
|
961
1113
|
.sv-btn--destructive {
|
|
962
|
-
background: var(--sv-danger);
|
|
1114
|
+
background: var(--sv-danger-ink);
|
|
963
1115
|
color: var(--sv-bg);
|
|
964
1116
|
}
|
|
965
1117
|
.sv-btn--destructive:hover {
|
|
966
|
-
background: color-mix(in srgb, var(--sv-danger) 90%,
|
|
1118
|
+
background: color-mix(in srgb, var(--sv-danger-ink) 90%, var(--sv-text));
|
|
967
1119
|
}
|
|
968
1120
|
|
|
969
1121
|
.sv-btn--outline {
|
|
@@ -1006,7 +1158,7 @@ body.sv-body {
|
|
|
1006
1158
|
color: var(--sv-bg);
|
|
1007
1159
|
}
|
|
1008
1160
|
.sv-btn--accent:hover {
|
|
1009
|
-
background: color-mix(in srgb, var(--sv-accent-ink) 90%,
|
|
1161
|
+
background: color-mix(in srgb, var(--sv-accent-ink) 90%, var(--sv-text));
|
|
1010
1162
|
}
|
|
1011
1163
|
|
|
1012
1164
|
.sv-btn--sm {
|
|
@@ -1024,9 +1176,10 @@ body.sv-body {
|
|
|
1024
1176
|
}
|
|
1025
1177
|
|
|
1026
1178
|
/* ---------- Touch targets ---------- */
|
|
1027
|
-
/*
|
|
1028
|
-
44x44px (WCAG 2.5.5).
|
|
1029
|
-
|
|
1179
|
+
/* Below 64rem (tablet) or on a coarse primary pointer every button and field
|
|
1180
|
+
reaches 44x44px (WCAG 2.5.5). A fine pointer on a wide window keeps the
|
|
1181
|
+
heights above. */
|
|
1182
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1030
1183
|
.sv-btn,
|
|
1031
1184
|
.sv-field {
|
|
1032
1185
|
min-height: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
@@ -1036,11 +1189,68 @@ body.sv-body {
|
|
|
1036
1189
|
}
|
|
1037
1190
|
/* A checkbox stays its drawn size; the label wrapping it is the target, since
|
|
1038
1191
|
tapping the label toggles the input. */
|
|
1039
|
-
label:has(> .sv-check)
|
|
1192
|
+
label:has(> .sv-check),
|
|
1193
|
+
label:has(> .sv-radio),
|
|
1194
|
+
.sv-choice {
|
|
1195
|
+
min-height: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
1196
|
+
}
|
|
1197
|
+
/* Bare icon controls keep their drawn size; an invisible 44x44px pseudo-element
|
|
1198
|
+
centred on the control extends the hit area without moving the icon. */
|
|
1199
|
+
.sv-dialog__close::after,
|
|
1200
|
+
.sv-toast__close::after,
|
|
1201
|
+
.sv-app-sidebar-trigger::after {
|
|
1202
|
+
content: '';
|
|
1203
|
+
position: absolute;
|
|
1204
|
+
top: 50%;
|
|
1205
|
+
left: 50%;
|
|
1206
|
+
width: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
1207
|
+
height: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
1208
|
+
transform: translate(-50%, -50%);
|
|
1209
|
+
}
|
|
1210
|
+
.sv-toast__close {
|
|
1211
|
+
position: relative;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/* WCAG 2.5.8 (AA) baseline at every width and pointer: every target this
|
|
1216
|
+
package draws is at least 24x24 CSS px, without changing the drawn icon or
|
|
1217
|
+
text. Up to 3.5.1 the logo measured 22px tall and the icon-only close
|
|
1218
|
+
buttons (Dialog, sidebar drawer, Toast) 16-24px. */
|
|
1219
|
+
.sv-logo,
|
|
1220
|
+
.sv-footer__link,
|
|
1221
|
+
.sv-link {
|
|
1222
|
+
min-height: var(--sv-space-6);
|
|
1223
|
+
}
|
|
1224
|
+
.sv-footer__link,
|
|
1225
|
+
.sv-link {
|
|
1226
|
+
display: inline-flex;
|
|
1227
|
+
align-items: center;
|
|
1228
|
+
}
|
|
1229
|
+
.sv-dialog__close,
|
|
1230
|
+
.sv-toast__close {
|
|
1231
|
+
min-width: var(--sv-space-6);
|
|
1232
|
+
min-height: var(--sv-space-6);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/* Same touch widening as above for the text targets: the logo, footer links
|
|
1236
|
+
and `.sv-link` reach 44px tall below 64rem or on a coarse pointer. */
|
|
1237
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1238
|
+
.sv-logo,
|
|
1239
|
+
.sv-footer__link,
|
|
1240
|
+
.sv-link {
|
|
1040
1241
|
min-height: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
1041
1242
|
}
|
|
1042
1243
|
}
|
|
1043
1244
|
|
|
1245
|
+
/* iOS Safari zooms the page when a focused field's font is below 16px, and
|
|
1246
|
+
--sv-text-base is 15px. Same narrow-or-touch scope as the other touch
|
|
1247
|
+
rules: fields render at 16px or more. */
|
|
1248
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1249
|
+
.sv-field {
|
|
1250
|
+
font-size: max(1rem, var(--sv-text-base));
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1044
1254
|
/* ---------- Card ---------- */
|
|
1045
1255
|
.sv-card {
|
|
1046
1256
|
border: 1px solid var(--sv-border);
|
|
@@ -1054,12 +1264,17 @@ body.sv-body {
|
|
|
1054
1264
|
gap: var(--sv-space-2);
|
|
1055
1265
|
padding: var(--sv-space-6);
|
|
1056
1266
|
}
|
|
1267
|
+
/* DESIGN "Title" step (same as PostCard): Sora 600, 1.375rem, line-height 1.3.
|
|
1268
|
+
Up to 3.5.1 this was Manrope at 1.75rem with line-height 1, so a title that
|
|
1269
|
+
wrapped had its lines touching. */
|
|
1057
1270
|
.sv-card__title {
|
|
1058
1271
|
margin: 0;
|
|
1059
|
-
font-
|
|
1272
|
+
font-family: var(--sv-font-display);
|
|
1273
|
+
font-size: var(--sv-text-xl);
|
|
1060
1274
|
font-weight: 600;
|
|
1061
|
-
line-height: 1;
|
|
1062
|
-
letter-spacing: -0.
|
|
1275
|
+
line-height: 1.3;
|
|
1276
|
+
letter-spacing: -0.02em;
|
|
1277
|
+
text-wrap: balance;
|
|
1063
1278
|
}
|
|
1064
1279
|
.sv-card__description {
|
|
1065
1280
|
margin: 0;
|
|
@@ -1165,21 +1380,23 @@ body.sv-body {
|
|
|
1165
1380
|
}
|
|
1166
1381
|
|
|
1167
1382
|
/* ---------- Badge ---------- */
|
|
1168
|
-
/*
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1383
|
+
/* Filled variants paint the *ink* step of their hue, never the surface step,
|
|
1384
|
+
under light text (`var(--sv-bg)`). The ink step is what makes a hue safe to
|
|
1385
|
+
pair with text: in dark mode `--sv-accent-ink`/`--sv-danger-ink` resolve to
|
|
1386
|
+
the very same values as `--sv-accent`/`--sv-danger` (so nothing changes
|
|
1387
|
+
there), and in light mode they are the darker per-hue steps that clear
|
|
1388
|
+
WCAG AA (≥4.5:1) against `--sv-bg`. Painting the surface step instead —
|
|
1389
|
+
what this rule did up to 3.5.1 — measured 1.79:1 (badge, cyan) and 2.93:1
|
|
1390
|
+
(destructive) in light mode: near-white text on a light fill. The default
|
|
1391
|
+
variant still follows [data-accent] (One-Accent Rule); `.sv-btn--accent`
|
|
1392
|
+
uses the same ink-fill pairing. Pairs are asserted in tests/contrast.test.ts. */
|
|
1176
1393
|
.sv-badge {
|
|
1177
1394
|
display: inline-flex;
|
|
1178
1395
|
align-items: center;
|
|
1179
1396
|
padding: var(--sv-space-1) var(--sv-space-2);
|
|
1180
1397
|
border: 1px solid transparent;
|
|
1181
1398
|
border-radius: var(--sv-radius-full);
|
|
1182
|
-
background: var(--sv-accent);
|
|
1399
|
+
background: var(--sv-accent-ink);
|
|
1183
1400
|
color: var(--sv-bg);
|
|
1184
1401
|
font-size: var(--sv-text-xs);
|
|
1185
1402
|
font-weight: 600;
|
|
@@ -1202,11 +1419,11 @@ body.sv-body {
|
|
|
1202
1419
|
}
|
|
1203
1420
|
|
|
1204
1421
|
.sv-badge--destructive {
|
|
1205
|
-
background: var(--sv-danger);
|
|
1422
|
+
background: var(--sv-danger-ink);
|
|
1206
1423
|
color: var(--sv-bg);
|
|
1207
1424
|
}
|
|
1208
1425
|
.sv-badge--destructive:hover {
|
|
1209
|
-
background: color-mix(in srgb, var(--sv-danger) 90%,
|
|
1426
|
+
background: color-mix(in srgb, var(--sv-danger-ink) 90%, var(--sv-text));
|
|
1210
1427
|
}
|
|
1211
1428
|
|
|
1212
1429
|
.sv-badge--outline {
|
|
@@ -1506,6 +1723,38 @@ body.sv-body {
|
|
|
1506
1723
|
height: var(--radix-select-trigger-height);
|
|
1507
1724
|
}
|
|
1508
1725
|
|
|
1726
|
+
/* Combobox: the list is in flow-positioned under the input (no portal), so it
|
|
1727
|
+
scrolls with its field; it reuses .sv-pop's surface and .sv-menu-item's rows. */
|
|
1728
|
+
.sv-combobox {
|
|
1729
|
+
position: relative;
|
|
1730
|
+
}
|
|
1731
|
+
.sv-combobox__list {
|
|
1732
|
+
position: absolute;
|
|
1733
|
+
inset-inline: 0;
|
|
1734
|
+
top: 100%;
|
|
1735
|
+
margin: var(--sv-space-1) 0 0;
|
|
1736
|
+
max-height: calc(var(--sv-space-16) * 4);
|
|
1737
|
+
overflow-y: auto;
|
|
1738
|
+
list-style: none;
|
|
1739
|
+
}
|
|
1740
|
+
.sv-combobox__list[hidden] {
|
|
1741
|
+
display: none;
|
|
1742
|
+
}
|
|
1743
|
+
.sv-combobox__option {
|
|
1744
|
+
flex-direction: column;
|
|
1745
|
+
align-items: flex-start;
|
|
1746
|
+
gap: 0;
|
|
1747
|
+
}
|
|
1748
|
+
.sv-combobox__description {
|
|
1749
|
+
color: var(--sv-text-2);
|
|
1750
|
+
font-size: var(--sv-text-sm);
|
|
1751
|
+
}
|
|
1752
|
+
.sv-combobox__status {
|
|
1753
|
+
margin-top: var(--sv-space-1);
|
|
1754
|
+
color: var(--sv-text-3);
|
|
1755
|
+
font-size: var(--sv-text-sm);
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1509
1758
|
/* ---------- Tooltip ---------- */
|
|
1510
1759
|
/* Declares only what differs from .sv-pop: a tooltip floats above every other
|
|
1511
1760
|
layer, holds one line of text rather than a list, and needs no min-width. */
|
|
@@ -1676,7 +1925,7 @@ body.sv-body {
|
|
|
1676
1925
|
/* Triggers reach 44px and a strip wider than the viewport scrolls inside
|
|
1677
1926
|
itself instead of widening the page. Declared after the base rules above so
|
|
1678
1927
|
the list's height override wins at equal specificity. */
|
|
1679
|
-
@media (width <
|
|
1928
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1680
1929
|
.sv-tabs__list {
|
|
1681
1930
|
height: auto;
|
|
1682
1931
|
max-width: 100%;
|
|
@@ -1804,7 +2053,7 @@ body.sv-body {
|
|
|
1804
2053
|
|
|
1805
2054
|
/* ---------- Pagination touch ---------- */
|
|
1806
2055
|
/* Page links and "load more" reach 44x44px on narrow or touch viewports. */
|
|
1807
|
-
@media (width <
|
|
2056
|
+
@media (width < 64rem), (pointer: coarse) {
|
|
1808
2057
|
.sv-pagination__link {
|
|
1809
2058
|
min-height: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
1810
2059
|
min-width: calc(var(--sv-space-10) + var(--sv-space-1));
|
|
@@ -1842,6 +2091,44 @@ body.sv-body {
|
|
|
1842
2091
|
.sv-chart__bar {
|
|
1843
2092
|
shape-rendering: crispEdges;
|
|
1844
2093
|
}
|
|
2094
|
+
/* Point markers (ChartLine markers): filled with the series color, ringed in
|
|
2095
|
+
the page background so overlapping series stay distinguishable. */
|
|
2096
|
+
.sv-chart__marker {
|
|
2097
|
+
stroke: var(--sv-bg);
|
|
2098
|
+
stroke-width: 2;
|
|
2099
|
+
}
|
|
2100
|
+
/* Legend: an HTML list next to the SVG (not inside it), so it wraps, reads as
|
|
2101
|
+
a list to assistive tech and uses the body font. */
|
|
2102
|
+
.sv-chart-legend {
|
|
2103
|
+
display: flex;
|
|
2104
|
+
flex-wrap: wrap;
|
|
2105
|
+
gap: var(--sv-space-2) var(--sv-space-4);
|
|
2106
|
+
margin: var(--sv-space-3) 0 0;
|
|
2107
|
+
padding: 0;
|
|
2108
|
+
list-style: none;
|
|
2109
|
+
color: var(--sv-text-2);
|
|
2110
|
+
font-family: var(--sv-font-body);
|
|
2111
|
+
font-size: var(--sv-text-xs);
|
|
2112
|
+
}
|
|
2113
|
+
.sv-chart-legend__item {
|
|
2114
|
+
display: inline-flex;
|
|
2115
|
+
align-items: center;
|
|
2116
|
+
gap: var(--sv-space-2);
|
|
2117
|
+
}
|
|
2118
|
+
.sv-chart-legend__swatch {
|
|
2119
|
+
flex-shrink: 0;
|
|
2120
|
+
width: var(--sv-space-4);
|
|
2121
|
+
height: 0;
|
|
2122
|
+
border-top: 2px solid var(--sv-series-color, var(--sv-text-2));
|
|
2123
|
+
}
|
|
2124
|
+
.sv-chart-legend__swatch--dashed {
|
|
2125
|
+
border-top-style: dashed;
|
|
2126
|
+
}
|
|
2127
|
+
.sv-chart-legend__swatch--bar {
|
|
2128
|
+
height: var(--sv-space-2);
|
|
2129
|
+
border-top: none;
|
|
2130
|
+
background: var(--sv-series-color, var(--sv-text-2));
|
|
2131
|
+
}
|
|
1845
2132
|
|
|
1846
2133
|
/* ---------- App Sidebar ---------- */
|
|
1847
2134
|
/* R5-02, R5-03, R5-04: Sidebar de aplicação responsiva.
|
|
@@ -1870,6 +2157,20 @@ body.sv-body {
|
|
|
1870
2157
|
border-right: 1px solid var(--sv-border);
|
|
1871
2158
|
}
|
|
1872
2159
|
|
|
2160
|
+
/* CSS-first first paint (SSR). Before hydration SidebarProvider omits
|
|
2161
|
+
`data-mobile` and SidebarPanel renders the in-flow <aside>, so desktop
|
|
2162
|
+
paints with the sidebar already in place (no layout shift). Below the
|
|
2163
|
+
default breakpoint (1024px, SidebarProvider's default) this hides that
|
|
2164
|
+
<aside> until JS mounts the drawer instead. A custom `breakpoint` prop gets
|
|
2165
|
+
the equivalent rule from the provider itself (scoped by `data-breakpoint`).
|
|
2166
|
+
`collapsible="none"` stays in flow at every width, as after hydration. */
|
|
2167
|
+
@media (width < 1024px) {
|
|
2168
|
+
.sv-app-shell:not([data-mobile]):not([data-breakpoint]):not([data-collapsible='none'])
|
|
2169
|
+
.sv-app-sidebar {
|
|
2170
|
+
display: none;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
|
|
1873
2174
|
.sv-app-sidebar__drawer {
|
|
1874
2175
|
position: fixed;
|
|
1875
2176
|
inset: 0;
|
|
@@ -1912,6 +2213,7 @@ body.sv-body {
|
|
|
1912
2213
|
}
|
|
1913
2214
|
|
|
1914
2215
|
.sv-app-sidebar-trigger {
|
|
2216
|
+
position: relative;
|
|
1915
2217
|
display: inline-flex;
|
|
1916
2218
|
align-items: center;
|
|
1917
2219
|
justify-content: center;
|
package/dist/theme.css
CHANGED
|
@@ -139,6 +139,43 @@
|
|
|
139
139
|
--sv-warning-ink: oklch(0.53 0.11 75);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
/* Nested dark island: `data-theme="dark"` on any element inside a light page.
|
|
143
|
+
Repeats the dark color tokens, because `:root` alone only applies at the
|
|
144
|
+
root. The two `*-ink` groups are re-pointed explicitly: custom properties
|
|
145
|
+
inherit as *resolved* values, so without this the island would inherit the
|
|
146
|
+
light page's darkened inks. In dark mode every ink equals its surface color,
|
|
147
|
+
so `--sv-accent-ink: var(--sv-accent)` follows the page's active accent
|
|
148
|
+
without needing `data-accent` on the island. (A light island inside a dark
|
|
149
|
+
page also needs `data-accent` on the island, for the same reason.) */
|
|
150
|
+
[data-theme='dark'] {
|
|
151
|
+
--sv-bg: #0a0a0c;
|
|
152
|
+
--sv-bg-elev: #111114;
|
|
153
|
+
--sv-surface: #16161b;
|
|
154
|
+
--sv-surface-2: #1c1c22;
|
|
155
|
+
--sv-border: rgba(255, 255, 255, 0.08);
|
|
156
|
+
--sv-border-strong: rgba(255, 255, 255, 0.14);
|
|
157
|
+
--sv-control-border: #6b6b76;
|
|
158
|
+
--sv-text: #ededf0;
|
|
159
|
+
--sv-text-2: #8b8b96;
|
|
160
|
+
--sv-text-3: #83838f;
|
|
161
|
+
--sv-accent-cyan-ink: var(--sv-accent-cyan);
|
|
162
|
+
--sv-accent-violet-ink: var(--sv-accent-violet);
|
|
163
|
+
--sv-accent-mint-ink: var(--sv-accent-mint);
|
|
164
|
+
--sv-accent-amber-ink: var(--sv-accent-amber);
|
|
165
|
+
--sv-accent-ink: var(--sv-accent);
|
|
166
|
+
--sv-danger-ink: var(--sv-danger);
|
|
167
|
+
--sv-success-ink: var(--sv-success);
|
|
168
|
+
--sv-info-ink: var(--sv-info);
|
|
169
|
+
--sv-warning-ink: var(--sv-warning);
|
|
170
|
+
color-scheme: dark;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* An island also re-sets its text color: `color` inherits as the page's
|
|
174
|
+
resolved value, so island text would otherwise keep the outer theme's ink. */
|
|
175
|
+
[data-theme]:not(:root) {
|
|
176
|
+
color: var(--sv-text);
|
|
177
|
+
}
|
|
178
|
+
|
|
142
179
|
/* Accent switching is pure CSS — works in Server Components. */
|
|
143
180
|
[data-accent='cyan'] {
|
|
144
181
|
--sv-accent: var(--sv-accent-cyan);
|
|
@@ -169,30 +206,42 @@
|
|
|
169
206
|
============================================================ */
|
|
170
207
|
|
|
171
208
|
/* .sv-gradient-border — the system's visual signature.
|
|
172
|
-
Never replace with box-shadow.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
var(--sv-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
209
|
+
Never replace with box-shadow.
|
|
210
|
+
|
|
211
|
+
Lives in Tailwind's `components` layer (the statement below fixes the
|
|
212
|
+
standard v4 order even when this file loads before Tailwind), so a
|
|
213
|
+
utility on the same element — `rounded-md`, `bg-*` — wins over the
|
|
214
|
+
default radius/background instead of losing to unlayered CSS. Up to 3.5.1
|
|
215
|
+
it was unlayered and beat those utilities. Without Tailwind, the only
|
|
216
|
+
difference is that the app's own unlayered CSS on the same element now
|
|
217
|
+
wins too. */
|
|
218
|
+
@layer theme, base, components, utilities;
|
|
219
|
+
|
|
220
|
+
@layer components {
|
|
221
|
+
.sv-gradient-border {
|
|
222
|
+
position: relative;
|
|
223
|
+
background: var(--sv-surface);
|
|
224
|
+
border-radius: var(--sv-radius-lg);
|
|
225
|
+
}
|
|
226
|
+
.sv-gradient-border::before {
|
|
227
|
+
content: '';
|
|
228
|
+
position: absolute;
|
|
229
|
+
inset: 0;
|
|
230
|
+
border-radius: inherit;
|
|
231
|
+
padding: 1px;
|
|
232
|
+
background: linear-gradient(
|
|
233
|
+
135deg,
|
|
234
|
+
var(--sv-accent) 0%,
|
|
235
|
+
transparent 40%,
|
|
236
|
+
transparent 60%,
|
|
237
|
+
var(--sv-border-strong) 100%
|
|
238
|
+
);
|
|
239
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
240
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
241
|
+
-webkit-mask-composite: xor;
|
|
242
|
+
mask-composite: exclude;
|
|
243
|
+
pointer-events: none;
|
|
244
|
+
}
|
|
196
245
|
}
|
|
197
246
|
|
|
198
247
|
/* Cards have no shadow — hover lifts via border/transform only. */
|