@zonsh/ui 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +76 -2
- package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
- package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
- package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
- package/assets/illustrations/drawing/bracket-construction.svg +77 -0
- package/assets/illustrations/drawing/crescent-dark.svg +28 -0
- package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
- package/assets/illustrations/drawing/crescent-guides.svg +33 -0
- package/assets/illustrations/drawing/crescent.svg +28 -0
- package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
- package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
- package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
- package/assets/illustrations/drawing/eclipse.svg +187 -0
- package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
- package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
- package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
- package/assets/illustrations/drawing/elevation-guides.svg +31 -0
- package/assets/illustrations/drawing/horizon-dark.svg +30 -0
- package/assets/illustrations/drawing/horizon.svg +30 -0
- package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
- package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
- package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
- package/assets/illustrations/drawing/nib-study.svg +107 -0
- package/assets/illustrations/editorial/assistant-640.webp +0 -0
- package/assets/illustrations/editorial/assistant.webp +0 -0
- package/assets/illustrations/editorial/automation-640.webp +0 -0
- package/assets/illustrations/editorial/automation.webp +0 -0
- package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
- package/assets/illustrations/editorial/bracket-left.webp +0 -0
- package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
- package/assets/illustrations/editorial/bracket-right.webp +0 -0
- package/assets/illustrations/editorial/custom-software-640.webp +0 -0
- package/assets/illustrations/editorial/custom-software.webp +0 -0
- package/assets/illustrations/editorial/digitalization-640.webp +0 -0
- package/assets/illustrations/editorial/digitalization.webp +0 -0
- package/assets/illustrations/editorial/integration-640.webp +0 -0
- package/assets/illustrations/editorial/integration.webp +0 -0
- package/assets/illustrations/editorial/problem-640.webp +0 -0
- package/assets/illustrations/editorial/problem.webp +0 -0
- package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
- package/assets/illustrations/editorial/process-analysis.webp +0 -0
- package/assets/illustrations/editorial/process-concept-640.webp +0 -0
- package/assets/illustrations/editorial/process-concept.webp +0 -0
- package/assets/illustrations/editorial/process-development-640.webp +0 -0
- package/assets/illustrations/editorial/process-development.webp +0 -0
- package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
- package/assets/illustrations/editorial/process-discovery.webp +0 -0
- package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
- package/assets/illustrations/editorial/process-maintenance.webp +0 -0
- package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
- package/assets/illustrations/editorial/process-prototype.webp +0 -0
- package/assets/illustrations/editorial/process-testing-640.webp +0 -0
- package/assets/illustrations/editorial/process-testing.webp +0 -0
- package/assets/illustrations/iso/automation-dark.svg +6 -0
- package/assets/illustrations/iso/automation.svg +6 -0
- package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
- package/assets/illustrations/iso/bar-chart.svg +6 -0
- package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
- package/assets/illustrations/iso/brackets-classic.svg +6 -0
- package/assets/illustrations/iso/brackets-dark.svg +6 -0
- package/assets/illustrations/iso/brackets.svg +6 -0
- package/assets/illustrations/iso/city-dark.svg +6 -0
- package/assets/illustrations/iso/city.svg +6 -0
- package/assets/illustrations/iso/conveyor-dark.svg +6 -0
- package/assets/illustrations/iso/conveyor.svg +6 -0
- package/assets/illustrations/iso/database-dark.svg +6 -0
- package/assets/illustrations/iso/database.svg +6 -0
- package/assets/illustrations/iso/documents-dark.svg +6 -0
- package/assets/illustrations/iso/documents.svg +6 -0
- package/assets/illustrations/iso/inbox-dark.svg +6 -0
- package/assets/illustrations/iso/inbox.svg +6 -0
- package/assets/illustrations/iso/laptop-dark.svg +6 -0
- package/assets/illustrations/iso/laptop.svg +6 -0
- package/assets/illustrations/iso/monitor-dark.svg +6 -0
- package/assets/illustrations/iso/monitor.svg +6 -0
- package/assets/illustrations/iso/pipeline-dark.svg +6 -0
- package/assets/illustrations/iso/pipeline.svg +6 -0
- package/assets/illustrations/iso/platform-dark.svg +6 -0
- package/assets/illustrations/iso/platform.svg +6 -0
- package/assets/illustrations/iso/server-dark.svg +6 -0
- package/assets/illustrations/iso/server.svg +6 -0
- package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
- package/assets/illustrations/iso/spreadsheet.svg +6 -0
- package/assets/illustrations/iso/timeline-dark.svg +6 -0
- package/assets/illustrations/iso/timeline.svg +6 -0
- package/assets/illustrations/sheet/construction.svg +115 -0
- package/assets/illustrations/sheet/crescent.svg +40 -0
- package/assets/illustrations/sheet/limb.svg +42 -0
- package/assets/illustrations/sheet/stress-axis.svg +119 -0
- package/assets/illustrations/sheet/totality.svg +215 -0
- package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
- package/assets/logo-left.svg +1 -0
- package/assets/logo-right.svg +1 -0
- package/assets/logo.svg +1 -0
- package/dist/components/_overlay.d.ts +47 -0
- package/dist/components/_overlay.js +59 -0
- package/dist/components/accordion.d.ts +32 -0
- package/dist/components/accordion.js +39 -0
- package/dist/components/alert-dialog.d.ts +45 -0
- package/dist/components/alert-dialog.js +56 -0
- package/dist/components/alert.d.ts +35 -0
- package/dist/components/alert.js +42 -0
- package/dist/components/ascii-field.d.ts +34 -0
- package/dist/components/ascii-field.js +410 -0
- package/dist/components/aspect-ratio.d.ts +14 -0
- package/dist/components/aspect-ratio.js +17 -0
- package/dist/components/avatar.d.ts +42 -0
- package/dist/components/avatar.js +55 -0
- package/dist/components/badge.d.ts +70 -0
- package/dist/components/badge.js +62 -0
- package/dist/components/breadcrumb.d.ts +22 -0
- package/dist/components/breadcrumb.js +32 -0
- package/dist/components/button-group.d.ts +30 -0
- package/dist/components/button-group.js +47 -0
- package/dist/components/button.d.ts +53 -0
- package/dist/components/button.js +130 -0
- package/dist/components/calendar.d.ts +26 -0
- package/dist/components/calendar.js +164 -0
- package/dist/components/card.d.ts +42 -0
- package/dist/components/card.js +76 -0
- package/dist/components/carousel.d.ts +90 -0
- package/dist/components/carousel.js +213 -0
- package/dist/components/chart.d.ts +180 -0
- package/dist/components/chart.js +286 -0
- package/dist/components/checkbox.d.ts +23 -0
- package/dist/components/checkbox.js +43 -0
- package/dist/components/code-block.d.ts +45 -0
- package/dist/components/code-block.js +58 -0
- package/dist/components/code-highlight.d.ts +13 -0
- package/dist/components/code-highlight.js +107 -0
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.js +32 -0
- package/dist/components/color-picker.d.ts +85 -0
- package/dist/components/color-picker.js +407 -0
- package/dist/components/combobox.d.ts +81 -0
- package/dist/components/combobox.js +100 -0
- package/dist/components/command.d.ts +112 -0
- package/dist/components/command.js +212 -0
- package/dist/components/context-menu.d.ts +29 -0
- package/dist/components/context-menu.js +35 -0
- package/dist/components/conversation.d.ts +27 -0
- package/dist/components/conversation.js +293 -0
- package/dist/components/copy-button.d.ts +46 -0
- package/dist/components/copy-button.js +118 -0
- package/dist/components/data-table.d.ts +175 -0
- package/dist/components/data-table.js +302 -0
- package/dist/components/date-picker.d.ts +91 -0
- package/dist/components/date-picker.js +207 -0
- package/dist/components/dialog.d.ts +48 -0
- package/dist/components/dialog.js +92 -0
- package/dist/components/direction.d.ts +16 -0
- package/dist/components/direction.js +18 -0
- package/dist/components/drawer.d.ts +60 -0
- package/dist/components/drawer.js +76 -0
- package/dist/components/empty.d.ts +31 -0
- package/dist/components/empty.js +50 -0
- package/dist/components/feature-list.d.ts +54 -0
- package/dist/components/feature-list.js +43 -0
- package/dist/components/field.d.ts +15 -0
- package/dist/components/field.js +36 -0
- package/dist/components/file-drop.d.ts +55 -0
- package/dist/components/file-drop.js +197 -0
- package/dist/components/filter-bar.d.ts +106 -0
- package/dist/components/filter-bar.js +296 -0
- package/dist/components/form.d.ts +33 -0
- package/dist/components/form.js +34 -0
- package/dist/components/graph.d.ts +105 -0
- package/dist/components/graph.js +786 -0
- package/dist/components/illustration.d.ts +85 -0
- package/dist/components/illustration.js +165 -0
- package/dist/components/input-group.d.ts +127 -0
- package/dist/components/input-group.js +292 -0
- package/dist/components/input.d.ts +16 -0
- package/dist/components/input.js +25 -0
- package/dist/components/item.d.ts +64 -0
- package/dist/components/item.js +116 -0
- package/dist/components/kbd.d.ts +33 -0
- package/dist/components/kbd.js +38 -0
- package/dist/components/label.d.ts +12 -0
- package/dist/components/label.js +24 -0
- package/dist/components/layout.d.ts +136 -0
- package/dist/components/layout.js +162 -0
- package/dist/components/logo.d.ts +54 -0
- package/dist/components/logo.js +96 -0
- package/dist/components/menu.d.ts +60 -0
- package/dist/components/menu.js +138 -0
- package/dist/components/menubar.d.ts +62 -0
- package/dist/components/menubar.js +223 -0
- package/dist/components/message.d.ts +42 -0
- package/dist/components/message.js +56 -0
- package/dist/components/meter.d.ts +31 -0
- package/dist/components/meter.js +25 -0
- package/dist/components/native-select.d.ts +26 -0
- package/dist/components/native-select.js +35 -0
- package/dist/components/navigation-menu.d.ts +42 -0
- package/dist/components/navigation-menu.js +97 -0
- package/dist/components/number-field.d.ts +36 -0
- package/dist/components/number-field.js +153 -0
- package/dist/components/otp-field.d.ts +35 -0
- package/dist/components/otp-field.js +94 -0
- package/dist/components/pagination.d.ts +31 -0
- package/dist/components/pagination.js +70 -0
- package/dist/components/pdf-viewer.d.ts +69 -0
- package/dist/components/pdf-viewer.js +929 -0
- package/dist/components/popover.d.ts +33 -0
- package/dist/components/popover.js +48 -0
- package/dist/components/preview-card.d.ts +25 -0
- package/dist/components/preview-card.js +22 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +23 -0
- package/dist/components/prompt-input.d.ts +131 -0
- package/dist/components/prompt-input.js +403 -0
- package/dist/components/quote.d.ts +22 -0
- package/dist/components/quote.js +15 -0
- package/dist/components/radio-group.d.ts +18 -0
- package/dist/components/radio-group.js +34 -0
- package/dist/components/reasoning.d.ts +31 -0
- package/dist/components/reasoning.js +70 -0
- package/dist/components/resizable.d.ts +38 -0
- package/dist/components/resizable.js +41 -0
- package/dist/components/response.d.ts +30 -0
- package/dist/components/response.js +538 -0
- package/dist/components/scroll-area.d.ts +33 -0
- package/dist/components/scroll-area.js +31 -0
- package/dist/components/select.d.ts +35 -0
- package/dist/components/select.js +60 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +17 -0
- package/dist/components/sidebar.d.ts +147 -0
- package/dist/components/sidebar.js +489 -0
- package/dist/components/site-header.d.ts +59 -0
- package/dist/components/site-header.js +67 -0
- package/dist/components/skeleton.d.ts +31 -0
- package/dist/components/skeleton.js +29 -0
- package/dist/components/slider.d.ts +24 -0
- package/dist/components/slider.js +129 -0
- package/dist/components/sources.d.ts +25 -0
- package/dist/components/sources.js +35 -0
- package/dist/components/spinner.d.ts +36 -0
- package/dist/components/spinner.js +72 -0
- package/dist/components/suggestions.d.ts +20 -0
- package/dist/components/suggestions.js +18 -0
- package/dist/components/switch.d.ts +14 -0
- package/dist/components/switch.js +26 -0
- package/dist/components/table.d.ts +162 -0
- package/dist/components/table.js +758 -0
- package/dist/components/tabs.d.ts +25 -0
- package/dist/components/tabs.js +162 -0
- package/dist/components/tag.d.ts +41 -0
- package/dist/components/tag.js +88 -0
- package/dist/components/tags-input.d.ts +40 -0
- package/dist/components/tags-input.js +239 -0
- package/dist/components/textarea.d.ts +13 -0
- package/dist/components/textarea.js +16 -0
- package/dist/components/theme.d.ts +41 -0
- package/dist/components/theme.js +112 -0
- package/dist/components/time-field.d.ts +51 -0
- package/dist/components/time-field.js +437 -0
- package/dist/components/timeline.d.ts +76 -0
- package/dist/components/timeline.js +99 -0
- package/dist/components/toast.d.ts +72 -0
- package/dist/components/toast.js +196 -0
- package/dist/components/toggle-group.d.ts +41 -0
- package/dist/components/toggle-group.js +140 -0
- package/dist/components/toggle.d.ts +23 -0
- package/dist/components/toggle.js +35 -0
- package/dist/components/tool-call.d.ts +52 -0
- package/dist/components/tool-call.js +57 -0
- package/dist/components/toolbar.d.ts +17 -0
- package/dist/components/toolbar.js +34 -0
- package/dist/components/tooltip.d.ts +42 -0
- package/dist/components/tooltip.js +47 -0
- package/dist/components/tree.d.ts +75 -0
- package/dist/components/tree.js +636 -0
- package/dist/components/typography.d.ts +134 -0
- package/dist/components/typography.js +176 -0
- package/dist/components/video-player.d.ts +276 -0
- package/dist/components/video-player.js +1352 -0
- package/dist/components/whiteboard.d.ts +80 -0
- package/dist/components/whiteboard.js +389 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +86 -0
- package/dist/lib/cn.d.ts +20 -0
- package/dist/lib/cn.js +38 -0
- package/dist/lib/code-highlight.d.ts +31 -0
- package/dist/lib/code-highlight.js +24 -0
- package/dist/lib/code-theme.d.ts +19 -0
- package/dist/lib/code-theme.js +140 -0
- package/dist/lib/collapse-row.d.ts +9 -0
- package/dist/lib/collapse-row.js +129 -0
- package/dist/lib/digit-roll.d.ts +21 -0
- package/dist/lib/digit-roll.js +31 -0
- package/dist/lib/editorial-assets.d.ts +16 -0
- package/dist/lib/editorial-assets.js +56 -0
- package/dist/lib/figure/catalog.d.ts +127 -0
- package/dist/lib/figure/catalog.js +130 -0
- package/dist/lib/figure/figures/automation.d.ts +7 -0
- package/dist/lib/figure/figures/automation.js +143 -0
- package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
- package/dist/lib/figure/figures/bar-chart.js +99 -0
- package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
- package/dist/lib/figure/figures/brackets-classic.js +170 -0
- package/dist/lib/figure/figures/brackets.d.ts +8 -0
- package/dist/lib/figure/figures/brackets.js +84 -0
- package/dist/lib/figure/figures/city.d.ts +7 -0
- package/dist/lib/figure/figures/city.js +93 -0
- package/dist/lib/figure/figures/conveyor.d.ts +7 -0
- package/dist/lib/figure/figures/conveyor.js +97 -0
- package/dist/lib/figure/figures/database.d.ts +7 -0
- package/dist/lib/figure/figures/database.js +65 -0
- package/dist/lib/figure/figures/documents.d.ts +7 -0
- package/dist/lib/figure/figures/documents.js +83 -0
- package/dist/lib/figure/figures/inbox.d.ts +7 -0
- package/dist/lib/figure/figures/inbox.js +92 -0
- package/dist/lib/figure/figures/laptop.d.ts +7 -0
- package/dist/lib/figure/figures/laptop.js +67 -0
- package/dist/lib/figure/figures/monitor.d.ts +7 -0
- package/dist/lib/figure/figures/monitor.js +59 -0
- package/dist/lib/figure/figures/pipeline.d.ts +8 -0
- package/dist/lib/figure/figures/pipeline.js +117 -0
- package/dist/lib/figure/figures/platform.d.ts +7 -0
- package/dist/lib/figure/figures/platform.js +117 -0
- package/dist/lib/figure/figures/server.d.ts +7 -0
- package/dist/lib/figure/figures/server.js +115 -0
- package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
- package/dist/lib/figure/figures/spreadsheet.js +87 -0
- package/dist/lib/figure/figures/timeline.d.ts +7 -0
- package/dist/lib/figure/figures/timeline.js +65 -0
- package/dist/lib/figure/kernel.d.ts +152 -0
- package/dist/lib/figure/kernel.js +576 -0
- package/dist/lib/figure/parts.d.ts +42 -0
- package/dist/lib/figure/parts.js +126 -0
- package/dist/lib/form-reset.d.ts +11 -0
- package/dist/lib/form-reset.js +22 -0
- package/dist/lib/glide.d.ts +53 -0
- package/dist/lib/glide.js +138 -0
- package/dist/lib/graph-layout.d.ts +58 -0
- package/dist/lib/graph-layout.js +200 -0
- package/dist/lib/illustration-drawings.d.ts +89 -0
- package/dist/lib/illustration-drawings.js +539 -0
- package/dist/lib/illustration-info.d.ts +37 -0
- package/dist/lib/illustration-info.js +22 -0
- package/dist/lib/illustration-library.d.ts +87 -0
- package/dist/lib/illustration-library.js +352 -0
- package/dist/lib/logo-geometry.d.ts +29 -0
- package/dist/lib/logo-geometry.js +67 -0
- package/dist/lib/markdown-guard.d.ts +16 -0
- package/dist/lib/markdown-guard.js +123 -0
- package/dist/lib/merge-refs.d.ts +10 -0
- package/dist/lib/merge-refs.js +26 -0
- package/dist/lib/motion.d.ts +6 -0
- package/dist/lib/motion.js +12 -0
- package/dist/lib/pdf-worker.d.ts +1 -0
- package/dist/lib/pdf-worker.js +6 -0
- package/dist/lib/pdf.d.ts +19 -0
- package/dist/lib/pdf.js +58 -0
- package/dist/lib/platform.d.ts +33 -0
- package/dist/lib/platform.js +68 -0
- package/dist/lib/room.d.ts +25 -0
- package/dist/lib/room.js +46 -0
- package/dist/lib/table-fit.d.ts +143 -0
- package/dist/lib/table-fit.js +577 -0
- package/dist/lib/theme-script.d.ts +18 -0
- package/dist/lib/theme-script.js +29 -0
- package/dist/styles/expressive.css +188 -0
- package/dist/styles/fonts.css +145 -0
- package/dist/styles/index.css +206 -0
- package/dist/styles/material.css +313 -0
- package/dist/styles/parts/ai.css +360 -0
- package/dist/styles/parts/brand.css +75 -0
- package/dist/styles/parts/controls.css +725 -0
- package/dist/styles/parts/data.css +222 -0
- package/dist/styles/parts/editorial.css +120 -0
- package/dist/styles/parts/feedback.css +273 -0
- package/dist/styles/parts/foundations.css +166 -0
- package/dist/styles/parts/graph.css +214 -0
- package/dist/styles/parts/inputs.css +261 -0
- package/dist/styles/parts/isometric.css +124 -0
- package/dist/styles/parts/navigation.css +232 -0
- package/dist/styles/parts/overlays.css +250 -0
- package/dist/styles/parts/pdf.css +154 -0
- package/dist/styles/parts/react-flow.css +519 -0
- package/dist/styles/parts/whiteboard.css +855 -0
- package/dist/styles/tokens.css +290 -0
- package/dist/vite.d.ts +116 -0
- package/dist/vite.js +129 -0
- package/package.json +189 -3
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Expressive layer — the drawing-board vocabulary shared by zon.sh and zon.sh:
|
|
3
|
+
* grain, blueprint grids, dot fields, rails, crosshair marks, and the motion that
|
|
4
|
+
* drives scroll-linked illustrations.
|
|
5
|
+
*
|
|
6
|
+
* Everything here is decorative: pointer-events none, aria-hidden at the call site,
|
|
7
|
+
* and static under prefers-reduced-motion.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/* ── Grain ─────────────────────────────────────────────────────────────────── */
|
|
11
|
+
|
|
12
|
+
@layer base {
|
|
13
|
+
:root {
|
|
14
|
+
/* The film-grain tile zon.sh uses: grey fractal noise, 200px, seamless. */
|
|
15
|
+
--grain-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* The page ground, on every page by default — zon.sh's resting background: the grain, still,
|
|
20
|
+
* fixed to the viewport behind everything, under a faint light from above (--page-glow). The
|
|
21
|
+
* two layers sit at z-index -1 in the root stacking context, so they texture the ground and
|
|
22
|
+
* never a card, a field or the text, which all paint above them. Still on purpose: a moving
|
|
23
|
+
* page would never let the eye rest. Overlay on dark grounds, as zon.sh; multiply on light
|
|
24
|
+
* ones, where overlay shows nothing (--page-grain-blend).
|
|
25
|
+
*
|
|
26
|
+
* Anything opaque in --background between the body and the content hides it, so page-level
|
|
27
|
+
* wrappers stay transparent. Opt out with `body::before, body::after { content: none }`.
|
|
28
|
+
*/
|
|
29
|
+
body {
|
|
30
|
+
background-image: radial-gradient(110% 65% at 50% -10%, var(--page-glow), transparent 60%);
|
|
31
|
+
background-attachment: fixed;
|
|
32
|
+
}
|
|
33
|
+
body::before,
|
|
34
|
+
body::after {
|
|
35
|
+
content: "";
|
|
36
|
+
position: fixed;
|
|
37
|
+
inset: 0;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
background-image: var(--grain-noise);
|
|
41
|
+
background-size: 200px auto;
|
|
42
|
+
}
|
|
43
|
+
body::before {
|
|
44
|
+
mix-blend-mode: var(--page-grain-blend);
|
|
45
|
+
opacity: var(--page-grain-opacity);
|
|
46
|
+
}
|
|
47
|
+
body::after {
|
|
48
|
+
mix-blend-mode: screen;
|
|
49
|
+
opacity: calc(var(--grain-opacity) * 0.35);
|
|
50
|
+
/* Offset, so the two layers never line up into a visible tile. */
|
|
51
|
+
background-position: 97px 61px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* The moving grain: an overlay for large or dark expressive regions (`<Grain />`). */
|
|
56
|
+
@utility grain {
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: 0;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
|
|
62
|
+
&::before,
|
|
63
|
+
&::after {
|
|
64
|
+
content: "";
|
|
65
|
+
position: absolute;
|
|
66
|
+
inset: -40%;
|
|
67
|
+
background-image: var(--grain-noise);
|
|
68
|
+
background-size: 200px auto;
|
|
69
|
+
animation: ep-grain 0.8s steps(5) infinite;
|
|
70
|
+
}
|
|
71
|
+
&::before {
|
|
72
|
+
mix-blend-mode: overlay;
|
|
73
|
+
opacity: calc(var(--grain-opacity) * 1.5);
|
|
74
|
+
}
|
|
75
|
+
&::after {
|
|
76
|
+
mix-blend-mode: screen;
|
|
77
|
+
opacity: calc(var(--grain-opacity) * 0.35);
|
|
78
|
+
animation-delay: -0.4s;
|
|
79
|
+
}
|
|
80
|
+
/* Still grain, for a picture rather than a region: a sheet in a carousel or a grid. */
|
|
81
|
+
&[data-still]::before,
|
|
82
|
+
&[data-still]::after {
|
|
83
|
+
animation: none;
|
|
84
|
+
}
|
|
85
|
+
@media (prefers-reduced-motion: reduce) {
|
|
86
|
+
&::before,
|
|
87
|
+
&::after {
|
|
88
|
+
animation: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@keyframes ep-grain {
|
|
94
|
+
0% { transform: translate(0); }
|
|
95
|
+
20% { transform: translate(-6%, 4%); }
|
|
96
|
+
40% { transform: translate(5%, -7%); }
|
|
97
|
+
60% { transform: translate(-3%, 8%); }
|
|
98
|
+
80% { transform: translate(7%, 2%); }
|
|
99
|
+
100% { transform: translate(0); }
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ── Blueprint grid (lights up under the pointer when data-lit="true") ───────── */
|
|
103
|
+
|
|
104
|
+
@utility blueprint {
|
|
105
|
+
--cell: 64px;
|
|
106
|
+
position: relative;
|
|
107
|
+
isolation: isolate;
|
|
108
|
+
background-image:
|
|
109
|
+
linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
|
|
110
|
+
linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
|
|
111
|
+
background-size: var(--cell) var(--cell);
|
|
112
|
+
background-position: -1px -1px;
|
|
113
|
+
|
|
114
|
+
&::before,
|
|
115
|
+
&::after {
|
|
116
|
+
content: "";
|
|
117
|
+
position: absolute;
|
|
118
|
+
inset: 0;
|
|
119
|
+
z-index: -1;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
opacity: 0;
|
|
122
|
+
transition: opacity 0.7s var(--ease);
|
|
123
|
+
}
|
|
124
|
+
&::before {
|
|
125
|
+
background-image: radial-gradient(circle 380px at var(--mx, 70%) var(--my, 30%), var(--glow), transparent 70%);
|
|
126
|
+
}
|
|
127
|
+
&::after {
|
|
128
|
+
background-image:
|
|
129
|
+
linear-gradient(to right, var(--grid-bright) 1px, transparent 1px),
|
|
130
|
+
linear-gradient(to bottom, var(--grid-bright) 1px, transparent 1px);
|
|
131
|
+
background-size: var(--cell) var(--cell);
|
|
132
|
+
background-position: -1px -1px;
|
|
133
|
+
mask-image: radial-gradient(circle 240px at var(--mx, 70%) var(--my, 30%), #000, transparent 75%);
|
|
134
|
+
}
|
|
135
|
+
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
|
|
136
|
+
&[data-lit="true"]::before,
|
|
137
|
+
&[data-lit="true"]::after {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@utility dots {
|
|
144
|
+
background-image: radial-gradient(circle at center, var(--grid-bright) 1px, transparent 1.4px);
|
|
145
|
+
background-size: 24px 24px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ── Rails: two hairlines framing the page column ──────────────────────────── */
|
|
149
|
+
|
|
150
|
+
@utility rails {
|
|
151
|
+
position: relative;
|
|
152
|
+
|
|
153
|
+
&::before,
|
|
154
|
+
&::after {
|
|
155
|
+
content: "";
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 0;
|
|
158
|
+
bottom: 0;
|
|
159
|
+
width: 1px;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
pointer-events: none;
|
|
162
|
+
background: color-mix(in oklab, var(--border) 70%, transparent);
|
|
163
|
+
}
|
|
164
|
+
&::before {
|
|
165
|
+
left: 0;
|
|
166
|
+
}
|
|
167
|
+
&::after {
|
|
168
|
+
right: 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* ── Reveal (scroll-in) ────────────────────────────────────────────────────── */
|
|
173
|
+
|
|
174
|
+
@keyframes ep-reveal {
|
|
175
|
+
from {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
translate: 0 var(--reveal-distance, 16px);
|
|
178
|
+
}
|
|
179
|
+
to {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
translate: 0 0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@keyframes ep-draw {
|
|
186
|
+
from { stroke-dashoffset: var(--len, 1000); }
|
|
187
|
+
to { stroke-dashoffset: 0; }
|
|
188
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* zon faces.
|
|
3
|
+
*
|
|
4
|
+
* Licht, Licht Sans and Licht Mono are zon's own faces and are still in development. They are NOT
|
|
5
|
+
* vendored: they are requested from the app's own origin at /licht/fonts/*.woff2 and proxied
|
|
6
|
+
* server-side to zon.sh/licht/fonts, so every visit gets the current release and the
|
|
7
|
+
* visitor's browser never talks to a third-party host. Use `zonFonts()` from
|
|
8
|
+
* `@zonsh/ui/vite` (or an equivalent rewrite on your host) to set up the proxy.
|
|
9
|
+
*
|
|
10
|
+
* Licht (the serif, LichtSerif-Light) is used in its Light cut only. It is declared at
|
|
11
|
+
* 300–700 against that one file so heading weights keep the Light appearance. Never
|
|
12
|
+
* synthesise a heavier cut.
|
|
13
|
+
*
|
|
14
|
+
* Licht Sans and Licht Mono ship real cuts from Light (300) to Bold (700), one file each, named
|
|
15
|
+
* by weight (LichtSans-Regular, LichtMono-Regular …); Licht Sans has an italic for each. The
|
|
16
|
+
* browser only fetches the weights and styles a page uses.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: "Licht";
|
|
21
|
+
src: url("/licht/fonts/LichtSerif-Light.woff2") format("woff2");
|
|
22
|
+
font-weight: 300 700;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: "Licht Sans";
|
|
29
|
+
src: url("/licht/fonts/LichtSans-Light.woff2") format("woff2");
|
|
30
|
+
font-weight: 300;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-display: swap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: "Licht Sans";
|
|
37
|
+
src: url("/licht/fonts/LichtSans-LightItalic.woff2") format("woff2");
|
|
38
|
+
font-weight: 300;
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-display: swap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: "Licht Sans";
|
|
45
|
+
src: url("/licht/fonts/LichtSans-Regular.woff2") format("woff2");
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
font-display: swap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: "Licht Sans";
|
|
53
|
+
src: url("/licht/fonts/LichtSans-Italic.woff2") format("woff2");
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-style: italic;
|
|
56
|
+
font-display: swap;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@font-face {
|
|
60
|
+
font-family: "Licht Sans";
|
|
61
|
+
src: url("/licht/fonts/LichtSans-Medium.woff2") format("woff2");
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-display: swap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@font-face {
|
|
68
|
+
font-family: "Licht Sans";
|
|
69
|
+
src: url("/licht/fonts/LichtSans-MediumItalic.woff2") format("woff2");
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
font-style: italic;
|
|
72
|
+
font-display: swap;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@font-face {
|
|
76
|
+
font-family: "Licht Sans";
|
|
77
|
+
src: url("/licht/fonts/LichtSans-SemiBold.woff2") format("woff2");
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-display: swap;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@font-face {
|
|
84
|
+
font-family: "Licht Sans";
|
|
85
|
+
src: url("/licht/fonts/LichtSans-SemiBoldItalic.woff2") format("woff2");
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
font-style: italic;
|
|
88
|
+
font-display: swap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@font-face {
|
|
92
|
+
font-family: "Licht Sans";
|
|
93
|
+
src: url("/licht/fonts/LichtSans-Bold.woff2") format("woff2");
|
|
94
|
+
font-weight: 700;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-display: swap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@font-face {
|
|
100
|
+
font-family: "Licht Sans";
|
|
101
|
+
src: url("/licht/fonts/LichtSans-BoldItalic.woff2") format("woff2");
|
|
102
|
+
font-weight: 700;
|
|
103
|
+
font-style: italic;
|
|
104
|
+
font-display: swap;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@font-face {
|
|
108
|
+
font-family: "Licht Mono";
|
|
109
|
+
src: url("/licht/fonts/LichtMono-Light.woff2") format("woff2");
|
|
110
|
+
font-weight: 300;
|
|
111
|
+
font-style: normal;
|
|
112
|
+
font-display: swap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@font-face {
|
|
116
|
+
font-family: "Licht Mono";
|
|
117
|
+
src: url("/licht/fonts/LichtMono-Regular.woff2") format("woff2");
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-display: swap;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@font-face {
|
|
124
|
+
font-family: "Licht Mono";
|
|
125
|
+
src: url("/licht/fonts/LichtMono-Medium.woff2") format("woff2");
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-display: swap;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@font-face {
|
|
132
|
+
font-family: "Licht Mono";
|
|
133
|
+
src: url("/licht/fonts/LichtMono-SemiBold.woff2") format("woff2");
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
font-style: normal;
|
|
136
|
+
font-display: swap;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@font-face {
|
|
140
|
+
font-family: "Licht Mono";
|
|
141
|
+
src: url("/licht/fonts/LichtMono-Bold.woff2") format("woff2");
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
font-style: normal;
|
|
144
|
+
font-display: swap;
|
|
145
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @zonsh/ui — stylesheet entry.
|
|
3
|
+
*
|
|
4
|
+
* Usage (Tailwind v4 app):
|
|
5
|
+
* @import "tailwindcss";
|
|
6
|
+
* @import "@zonsh/ui/styles.css";
|
|
7
|
+
*
|
|
8
|
+
* Order matters: import Tailwind first so the component utilities layer after preflight.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* The components' Tailwind classes live in the JS beside this folder; a consumer's Tailwind
|
|
12
|
+
does not scan node_modules on its own, so point it there. The path holds in src and in dist. */
|
|
13
|
+
@source "../";
|
|
14
|
+
|
|
15
|
+
@import "./tokens.css";
|
|
16
|
+
@import "./fonts.css";
|
|
17
|
+
@import "./material.css";
|
|
18
|
+
@import "./expressive.css";
|
|
19
|
+
@import "./parts/controls.css";
|
|
20
|
+
@import "./parts/overlays.css";
|
|
21
|
+
@import "./parts/navigation.css";
|
|
22
|
+
@import "./parts/foundations.css";
|
|
23
|
+
@import "./parts/brand.css";
|
|
24
|
+
@import "./parts/editorial.css";
|
|
25
|
+
@import "./parts/isometric.css";
|
|
26
|
+
@import "./parts/feedback.css";
|
|
27
|
+
@import "./parts/data.css";
|
|
28
|
+
@import "./parts/inputs.css";
|
|
29
|
+
@import "./parts/pdf.css";
|
|
30
|
+
@import "./parts/ai.css";
|
|
31
|
+
@import "./parts/react-flow.css";
|
|
32
|
+
@import "./parts/graph.css";
|
|
33
|
+
@import "./parts/whiteboard.css";
|
|
34
|
+
|
|
35
|
+
/* Let Tailwind see the classes used inside this package. */
|
|
36
|
+
@source "../components";
|
|
37
|
+
@source "../lib";
|
|
38
|
+
|
|
39
|
+
@custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *, .theme-dark, .theme-dark *, .theme-night, .theme-night *));
|
|
40
|
+
|
|
41
|
+
@theme inline {
|
|
42
|
+
--color-background: var(--background);
|
|
43
|
+
--color-foreground: var(--foreground);
|
|
44
|
+
--color-foreground-soft: var(--foreground-soft);
|
|
45
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
46
|
+
--color-card: var(--card);
|
|
47
|
+
--color-card-foreground: var(--card-foreground);
|
|
48
|
+
--color-popover: var(--popover);
|
|
49
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
50
|
+
--color-primary: var(--primary);
|
|
51
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
52
|
+
--color-secondary: var(--secondary);
|
|
53
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
54
|
+
--color-muted: var(--muted);
|
|
55
|
+
--color-accent: var(--accent);
|
|
56
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
57
|
+
--color-destructive: var(--destructive);
|
|
58
|
+
--color-success: var(--success);
|
|
59
|
+
--color-warning: var(--warning);
|
|
60
|
+
--color-info: var(--info);
|
|
61
|
+
--color-tone-blue: var(--tone-blue);
|
|
62
|
+
--color-tone-aqua: var(--tone-aqua);
|
|
63
|
+
--color-tone-violet: var(--tone-violet);
|
|
64
|
+
--color-tone-magenta: var(--tone-magenta);
|
|
65
|
+
--color-tone-orange: var(--tone-orange);
|
|
66
|
+
--color-tone-lime: var(--tone-lime);
|
|
67
|
+
--color-border: var(--border);
|
|
68
|
+
--color-input: var(--input);
|
|
69
|
+
--color-ring: var(--ring);
|
|
70
|
+
|
|
71
|
+
--color-control-surface: var(--control-surface);
|
|
72
|
+
--color-control-hover: var(--control-hover);
|
|
73
|
+
--color-control-pressed: var(--control-pressed);
|
|
74
|
+
--color-primary-fill-pressed: var(--primary-fill-pressed);
|
|
75
|
+
--color-control-edge: var(--control-edge);
|
|
76
|
+
--color-control-highlight: var(--control-highlight);
|
|
77
|
+
--color-control-inner-edge: var(--control-inner-edge);
|
|
78
|
+
--color-control-menu: var(--control-menu);
|
|
79
|
+
--color-control-muted: var(--control-muted);
|
|
80
|
+
--color-control-focus: var(--control-focus);
|
|
81
|
+
--color-field-surface: var(--field-surface);
|
|
82
|
+
--color-field-edge: var(--field-edge);
|
|
83
|
+
--color-grid-line: var(--grid-line);
|
|
84
|
+
--color-grid-bright: var(--grid-bright);
|
|
85
|
+
--color-guide: var(--guide);
|
|
86
|
+
|
|
87
|
+
--color-chart-1: var(--chart-1);
|
|
88
|
+
--color-chart-2: var(--chart-2);
|
|
89
|
+
--color-chart-3: var(--chart-3);
|
|
90
|
+
--color-chart-4: var(--chart-4);
|
|
91
|
+
--color-chart-5: var(--chart-5);
|
|
92
|
+
|
|
93
|
+
--font-heading: var(--font-heading);
|
|
94
|
+
--font-body: var(--font-body);
|
|
95
|
+
--font-sans: var(--font-body);
|
|
96
|
+
--font-mono: var(--font-mono);
|
|
97
|
+
|
|
98
|
+
--radius-button: var(--radius-button);
|
|
99
|
+
--radius-control: var(--radius-control);
|
|
100
|
+
--radius-item: var(--radius-item);
|
|
101
|
+
--radius-checkbox: var(--radius-checkbox);
|
|
102
|
+
--radius-card: var(--radius-card);
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* The material's shadows as utilities (`shadow-raised`, `shadow-checked` …). Inlined, so the
|
|
106
|
+
* var() colours resolve where they are used and stay right inside .theme-dark regions.
|
|
107
|
+
* Never retype these as shadow-[…]: use the utility.
|
|
108
|
+
*/
|
|
109
|
+
--shadow-raised:
|
|
110
|
+
0 0 0 1px var(--control-edge), inset 0 1px 0 var(--control-highlight), inset 0 0 0 1px var(--control-inner-edge);
|
|
111
|
+
--shadow-raised-pressed:
|
|
112
|
+
0 0 0 1px var(--control-edge), inset 0 2px 4px #0000002e, inset 0 0 0 1px var(--control-inner-edge);
|
|
113
|
+
--shadow-raised-current:
|
|
114
|
+
0 0 0 1px var(--control-focus), inset 0 1px 0 var(--control-highlight), inset 0 0 0 1px var(--control-inner-edge);
|
|
115
|
+
--shadow-key:
|
|
116
|
+
0 0 0 1px var(--control-edge), inset 0 1px 0 var(--control-highlight), inset 0 -1px 0 var(--control-inner-edge);
|
|
117
|
+
--shadow-checked: 0 0 0 1px var(--control-edge), inset 0 2px 3px #fff3, inset 0 -2px 3px #0000001f;
|
|
118
|
+
--shadow-thumb: 0 0 0 1px var(--control-edge), 0 1px 3px #00000040, inset 0 1px 0 var(--control-highlight);
|
|
119
|
+
--shadow-field: inset 0 1px 2px var(--field-inset), 0 1px 0 var(--control-highlight);
|
|
120
|
+
--shadow-highlight: inset 0 1px 0 var(--control-highlight);
|
|
121
|
+
--shadow-invalid: 0 0 0 3px color-mix(in srgb, var(--destructive) 18%, transparent);
|
|
122
|
+
--shadow-overlay: inset 0 1px 0 var(--control-highlight), 0 12px 32px #0003, 0 2px 6px #0000001a;
|
|
123
|
+
--shadow-card: inset 0 1px 0 var(--control-highlight), 0 4px 16px #0000000a;
|
|
124
|
+
|
|
125
|
+
--ease-brand: var(--ease);
|
|
126
|
+
--container-page: var(--container);
|
|
127
|
+
|
|
128
|
+
--text-body: 17px;
|
|
129
|
+
--text-body--line-height: 1.6;
|
|
130
|
+
--text-eyebrow: 12px;
|
|
131
|
+
--text-eyebrow--line-height: 1.4;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@layer base {
|
|
135
|
+
html {
|
|
136
|
+
-webkit-text-size-adjust: 100%;
|
|
137
|
+
text-rendering: optimizeLegibility;
|
|
138
|
+
-webkit-font-smoothing: antialiased;
|
|
139
|
+
-moz-osx-font-smoothing: grayscale;
|
|
140
|
+
}
|
|
141
|
+
body {
|
|
142
|
+
background-color: var(--background);
|
|
143
|
+
color: var(--foreground);
|
|
144
|
+
font-family: var(--font-body);
|
|
145
|
+
font-size: 17px;
|
|
146
|
+
line-height: 1.6;
|
|
147
|
+
}
|
|
148
|
+
h1,
|
|
149
|
+
h2,
|
|
150
|
+
h3,
|
|
151
|
+
h4 {
|
|
152
|
+
font-family: var(--font-heading);
|
|
153
|
+
font-weight: 300;
|
|
154
|
+
font-kerning: normal;
|
|
155
|
+
letter-spacing: -0.02em;
|
|
156
|
+
text-wrap: balance;
|
|
157
|
+
}
|
|
158
|
+
::selection {
|
|
159
|
+
background-color: var(--foreground);
|
|
160
|
+
color: var(--background);
|
|
161
|
+
}
|
|
162
|
+
/* Native scrollbars (the page, tables, overflow-auto panels) echo ScrollArea: a 4px round
|
|
163
|
+
--field-edge thumb on a transparent track, no arrow buttons. Chrome, Edge and Safari draw
|
|
164
|
+
that from the ::-webkit-scrollbar parts — Chrome ignores them, and draws its own arrows,
|
|
165
|
+
once an element sets scrollbar-width or scrollbar-color, so those are left to Firefox,
|
|
166
|
+
which has no arrows. ScrollArea hides all of these and draws its own. */
|
|
167
|
+
@supports selector(::-webkit-scrollbar) {
|
|
168
|
+
::-webkit-scrollbar {
|
|
169
|
+
width: 10px;
|
|
170
|
+
height: 10px;
|
|
171
|
+
}
|
|
172
|
+
::-webkit-scrollbar-track,
|
|
173
|
+
::-webkit-scrollbar-corner {
|
|
174
|
+
background: transparent;
|
|
175
|
+
}
|
|
176
|
+
/* A rounded scroller sets --scrollbar-inset to its radius, so the bar starts and ends where
|
|
177
|
+
the corners do instead of running over them. */
|
|
178
|
+
::-webkit-scrollbar-track:vertical {
|
|
179
|
+
margin-block: var(--scrollbar-inset, 0px);
|
|
180
|
+
}
|
|
181
|
+
::-webkit-scrollbar-track:horizontal {
|
|
182
|
+
margin-inline: var(--scrollbar-inset, 0px);
|
|
183
|
+
}
|
|
184
|
+
::-webkit-scrollbar-thumb {
|
|
185
|
+
border: 3px solid transparent;
|
|
186
|
+
border-radius: 9999px;
|
|
187
|
+
background: var(--field-edge) padding-box;
|
|
188
|
+
}
|
|
189
|
+
::-webkit-scrollbar-thumb:hover {
|
|
190
|
+
background-color: var(--control-focus);
|
|
191
|
+
}
|
|
192
|
+
::-webkit-scrollbar-button {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
197
|
+
* {
|
|
198
|
+
scrollbar-width: thin;
|
|
199
|
+
scrollbar-color: var(--field-edge) transparent;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
:focus-visible {
|
|
203
|
+
outline: 2px solid var(--control-focus);
|
|
204
|
+
outline-offset: 0;
|
|
205
|
+
}
|
|
206
|
+
}
|