@zonsh/ui 0.5.0 → 0.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 +639 -0
- package/README.md +49 -21
- package/dist/brand.d.ts +3 -0
- package/dist/brand.js +7 -0
- package/dist/components/_breadcrumb-more.d.ts +6 -0
- package/dist/components/_breadcrumb-more.js +5 -0
- package/dist/components/_drawing-svg.d.ts +11 -0
- package/dist/components/_drawing-svg.js +30 -0
- package/dist/components/_media.d.ts +159 -0
- package/dist/components/_media.js +266 -0
- package/dist/components/_overlay.d.ts +8 -5
- package/dist/components/_overlay.js +11 -6
- package/dist/components/_scheduler-calendar.d.ts +71 -0
- package/dist/components/_scheduler-calendar.js +940 -0
- package/dist/components/_scheduler-editor.d.ts +29 -0
- package/dist/components/_scheduler-editor.js +111 -0
- package/dist/components/_scheduler-menu.d.ts +16 -0
- package/dist/components/_scheduler-menu.js +18 -0
- package/dist/components/_scheduler-parts.d.ts +164 -0
- package/dist/components/_scheduler-parts.js +327 -0
- package/dist/components/_suggest-list.d.ts +142 -0
- package/dist/components/_suggest-list.js +159 -0
- package/dist/components/_toolbar-more.d.ts +24 -0
- package/dist/components/_toolbar-more.js +25 -0
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +6 -6
- package/dist/components/action-sheet.d.ts +88 -0
- package/dist/components/action-sheet.js +124 -0
- package/dist/components/alert-dialog.js +3 -1
- package/dist/components/alert.d.ts +11 -18
- package/dist/components/alert.js +9 -6
- package/dist/components/app-bar.d.ts +93 -0
- package/dist/components/app-bar.js +175 -0
- package/dist/components/audio-player.d.ts +134 -0
- package/dist/components/audio-player.js +618 -0
- package/dist/components/avatar.d.ts +6 -6
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.d.ts +12 -12
- package/dist/components/badge.js +7 -5
- package/dist/components/bottom-nav.d.ts +53 -11
- package/dist/components/bottom-nav.js +388 -23
- package/dist/components/breadcrumb.d.ts +11 -2
- package/dist/components/breadcrumb.js +60 -6
- package/dist/components/button-group.js +5 -1
- package/dist/components/button.d.ts +23 -6
- package/dist/components/button.js +63 -7
- package/dist/components/calendar.js +8 -6
- package/dist/components/card.d.ts +10 -8
- package/dist/components/card.js +15 -14
- package/dist/components/carousel.d.ts +2 -2
- package/dist/components/carousel.js +21 -8
- package/dist/components/chart.d.ts +27 -1
- package/dist/components/chart.js +15 -5
- package/dist/components/checkbox.js +2 -2
- package/dist/components/code-block.d.ts +9 -2
- package/dist/components/code-block.js +26 -7
- package/dist/components/collapsible.js +3 -3
- package/dist/components/color-picker.d.ts +2 -2
- package/dist/components/color-picker.js +5 -5
- package/dist/components/combobox.d.ts +26 -7
- package/dist/components/combobox.js +32 -13
- package/dist/components/command.d.ts +29 -5
- package/dist/components/command.js +35 -10
- package/dist/components/context-menu.d.ts +5 -2
- package/dist/components/context-menu.js +24 -3
- package/dist/components/conversation.d.ts +1 -1
- package/dist/components/conversation.js +67 -13
- package/dist/components/copy-button.d.ts +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.d.ts +6 -6
- package/dist/components/data-table.js +41 -15
- package/dist/components/date-picker.d.ts +31 -9
- package/dist/components/date-picker.js +100 -18
- package/dist/components/dialog.d.ts +17 -10
- package/dist/components/dialog.js +20 -13
- package/dist/components/drawer.d.ts +26 -8
- package/dist/components/drawer.js +75 -16
- package/dist/components/drawing.d.ts +25 -0
- package/dist/components/drawing.js +32 -0
- package/dist/components/empty.js +2 -2
- package/dist/components/feature-list.d.ts +65 -13
- package/dist/components/feature-list.js +116 -15
- package/dist/components/field.js +2 -2
- package/dist/components/file-drop.d.ts +9 -7
- package/dist/components/file-drop.js +8 -43
- package/dist/components/filter-bar.d.ts +10 -9
- package/dist/components/filter-bar.js +42 -25
- package/dist/components/graph.d.ts +19 -3
- package/dist/components/graph.js +170 -25
- package/dist/components/illustration.js +3 -28
- package/dist/components/input-group.d.ts +5 -10
- package/dist/components/input-group.js +16 -16
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +3 -3
- package/dist/components/item.d.ts +9 -6
- package/dist/components/item.js +13 -8
- package/dist/components/kbd.d.ts +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/lightbox.d.ts +76 -9
- package/dist/components/lightbox.js +333 -45
- package/dist/components/locale.d.ts +6 -6
- package/dist/components/logo.d.ts +21 -1
- package/dist/components/logo.js +32 -2
- package/dist/components/markdown-editor.d.ts +275 -0
- package/dist/components/markdown-editor.js +831 -0
- package/dist/components/mentions.d.ts +153 -0
- package/dist/components/mentions.js +507 -0
- package/dist/components/menu.d.ts +2 -1
- package/dist/components/menu.js +5 -4
- package/dist/components/menubar.d.ts +23 -5
- package/dist/components/menubar.js +97 -22
- package/dist/components/message.d.ts +62 -11
- package/dist/components/message.js +49 -13
- package/dist/components/meter.js +1 -1
- package/dist/components/money-input.d.ts +1 -1
- package/dist/components/money-input.js +1 -1
- package/dist/components/native-select.d.ts +2 -2
- package/dist/components/native-select.js +4 -4
- package/dist/components/navigation-menu.d.ts +3 -1
- package/dist/components/navigation-menu.js +23 -12
- package/dist/components/number-field.d.ts +2 -9
- package/dist/components/number-field.js +86 -36
- package/dist/components/number-roll.d.ts +26 -0
- package/dist/components/number-roll.js +81 -0
- package/dist/components/otp-field.d.ts +1 -1
- package/dist/components/otp-field.js +24 -3
- package/dist/components/pagination.d.ts +11 -3
- package/dist/components/pagination.js +59 -13
- package/dist/components/pdf-viewer.d.ts +1 -1
- package/dist/components/pdf-viewer.js +8 -8
- package/dist/components/phone-input.d.ts +1 -1
- package/dist/components/phone-input.js +2 -2
- package/dist/components/popover.js +5 -3
- package/dist/components/preview-card.d.ts +37 -2
- package/dist/components/preview-card.js +226 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/prompt-input.d.ts +1 -1
- package/dist/components/prompt-input.js +24 -14
- package/dist/components/pull-to-refresh.d.ts +50 -0
- package/dist/components/pull-to-refresh.js +189 -0
- package/dist/components/quote.d.ts +6 -1
- package/dist/components/quote.js +3 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/rating.d.ts +4 -1
- package/dist/components/rating.js +131 -10
- package/dist/components/reasoning.d.ts +1 -1
- package/dist/components/reasoning.js +7 -3
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.js +2 -2
- package/dist/components/response.d.ts +1 -1
- package/dist/components/response.js +18 -6
- package/dist/components/scheduler.d.ts +352 -0
- package/dist/components/scheduler.js +1717 -0
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select.d.ts +17 -4
- package/dist/components/select.js +140 -9
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +3 -3
- package/dist/components/sidebar.d.ts +44 -3
- package/dist/components/sidebar.js +57 -17
- package/dist/components/site-header.d.ts +18 -13
- package/dist/components/site-header.js +23 -11
- package/dist/components/skeleton.d.ts +17 -7
- package/dist/components/skeleton.js +22 -7
- package/dist/components/slider.js +2 -2
- package/dist/components/sortable.d.ts +55 -4
- package/dist/components/sortable.js +172 -103
- package/dist/components/sources.d.ts +1 -1
- package/dist/components/sources.js +2 -2
- package/dist/components/spinner.d.ts +4 -4
- package/dist/components/spinner.js +4 -4
- package/dist/components/stat.d.ts +21 -4
- package/dist/components/stat.js +17 -8
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +8 -7
- package/dist/components/suggestions.d.ts +11 -3
- package/dist/components/suggestions.js +10 -4
- package/dist/components/swipe-actions.d.ts +66 -0
- package/dist/components/swipe-actions.js +292 -0
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +12 -6
- package/dist/components/table.js +78 -30
- package/dist/components/tabs.js +7 -4
- package/dist/components/tag.d.ts +19 -20
- package/dist/components/tag.js +9 -5
- package/dist/components/tags-input.d.ts +2 -7
- package/dist/components/tags-input.js +11 -8
- package/dist/components/textarea.d.ts +3 -2
- package/dist/components/textarea.js +4 -3
- package/dist/components/theme.d.ts +49 -6
- package/dist/components/theme.js +147 -9
- package/dist/components/time-field.d.ts +4 -9
- package/dist/components/time-field.js +6 -6
- package/dist/components/timeline.d.ts +19 -3
- package/dist/components/timeline.js +21 -9
- package/dist/components/tippy.d.ts +17 -1
- package/dist/components/tippy.js +95 -15
- package/dist/components/toast.d.ts +2 -7
- package/dist/components/toast.js +12 -8
- package/dist/components/toggle-group.d.ts +7 -1
- package/dist/components/toggle-group.js +16 -5
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.js +3 -2
- package/dist/components/tool-call.d.ts +1 -1
- package/dist/components/tool-call.js +4 -4
- package/dist/components/toolbar.d.ts +57 -4
- package/dist/components/toolbar.js +216 -16
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +4 -2
- package/dist/components/tour.d.ts +1 -1
- package/dist/components/tour.js +36 -15
- package/dist/components/tree.js +5 -5
- package/dist/components/typography.d.ts +31 -8
- package/dist/components/typography.js +21 -10
- package/dist/components/video-player.d.ts +7 -2
- package/dist/components/video-player.js +121 -220
- package/dist/index.d.ts +99 -92
- package/dist/index.js +99 -92
- package/dist/lib/calendar.d.ts +153 -0
- package/dist/lib/calendar.js +312 -0
- package/dist/lib/cn.d.ts +3 -1
- package/dist/lib/cn.js +5 -0
- package/dist/lib/code-highlight.d.ts +14 -0
- package/dist/lib/code-highlight.js +81 -18
- package/dist/lib/drag.d.ts +39 -0
- package/dist/lib/drag.js +96 -0
- package/dist/lib/editorial-assets.js +16 -8
- package/dist/lib/figure/figures/automation.js +25 -6
- package/dist/lib/figure/figures/bar-chart.js +6 -1
- package/dist/lib/figure/figures/brackets-classic.js +4 -1
- package/dist/lib/figure/figures/city.js +12 -2
- package/dist/lib/figure/figures/conveyor.js +17 -4
- package/dist/lib/figure/figures/database.js +5 -2
- package/dist/lib/figure/figures/documents.js +11 -3
- package/dist/lib/figure/figures/inbox.js +5 -2
- package/dist/lib/figure/figures/laptop.js +3 -1
- package/dist/lib/figure/figures/pipeline.js +45 -10
- package/dist/lib/figure/figures/platform.js +62 -7
- package/dist/lib/figure/figures/server.js +21 -5
- package/dist/lib/figure/figures/spreadsheet.js +29 -5
- package/dist/lib/figure/kernel.d.ts +4 -2
- package/dist/lib/figure/kernel.js +10 -5
- package/dist/lib/figure/parts.js +6 -2
- package/dist/lib/files.d.ts +31 -0
- package/dist/lib/files.js +60 -0
- package/dist/lib/gesture.d.ts +70 -0
- package/dist/lib/gesture.js +141 -0
- package/dist/lib/glide.d.ts +5 -0
- package/dist/lib/glide.js +9 -1
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +6 -0
- package/dist/lib/illustration-library.js +1 -6
- package/dist/lib/markdown-edit.d.ts +112 -0
- package/dist/lib/markdown-edit.js +557 -0
- package/dist/lib/markdown-rich-editor.d.ts +188 -0
- package/dist/lib/markdown-rich-editor.js +1153 -0
- package/dist/lib/markdown-rich.d.ts +63 -0
- package/dist/lib/markdown-rich.js +534 -0
- package/dist/lib/mentions.d.ts +100 -0
- package/dist/lib/mentions.js +246 -0
- package/dist/lib/motion.d.ts +18 -0
- package/dist/lib/motion.js +43 -5
- package/dist/lib/number-roll.d.ts +89 -0
- package/dist/lib/number-roll.js +391 -0
- package/dist/lib/platform.d.ts +6 -0
- package/dist/lib/platform.js +14 -0
- package/dist/lib/portal-container.d.ts +9 -0
- package/dist/lib/portal-container.js +10 -0
- package/dist/lib/press.d.ts +5 -0
- package/dist/lib/press.js +186 -0
- package/dist/lib/scheduler.d.ts +128 -0
- package/dist/lib/scheduler.js +272 -0
- package/dist/lib/scroll-edges.d.ts +9 -0
- package/dist/lib/scroll-edges.js +50 -0
- package/dist/lib/table-fit.d.ts +1 -1
- package/dist/lib/table-fit.js +65 -8
- package/dist/lib/theme-preset.d.ts +267 -0
- package/dist/lib/theme-preset.js +1046 -0
- package/dist/lib/theme-script.d.ts +23 -3
- package/dist/lib/theme-script.js +17 -5
- package/dist/lib/tippy/sprite.d.ts +36 -4
- package/dist/lib/tippy/sprite.js +188 -15
- package/dist/lib/tone.d.ts +4 -0
- package/dist/lib/tone.js +1 -0
- package/dist/messages/de.d.ts +3 -3
- package/dist/messages/de.js +274 -3
- package/dist/skills/zon-ui/SKILL.md +279 -0
- package/dist/skills/zon-ui/references/authoring.md +265 -0
- package/dist/skills/zon-ui/references/brand.md +416 -0
- package/dist/skills/zon-ui/references/components/accordion.md +199 -0
- package/dist/skills/zon-ui/references/components/action-sheet.md +268 -0
- package/dist/skills/zon-ui/references/components/alert-dialog.md +276 -0
- package/dist/skills/zon-ui/references/components/alert.md +167 -0
- package/dist/skills/zon-ui/references/components/app-bar.md +307 -0
- package/dist/skills/zon-ui/references/components/ascii-field.md +121 -0
- package/dist/skills/zon-ui/references/components/aspect-ratio.md +112 -0
- package/dist/skills/zon-ui/references/components/audio-player.md +231 -0
- package/dist/skills/zon-ui/references/components/avatar.md +98 -0
- package/dist/skills/zon-ui/references/components/badge.md +227 -0
- package/dist/skills/zon-ui/references/components/bottom-nav.md +709 -0
- package/dist/skills/zon-ui/references/components/breadcrumb.md +143 -0
- package/dist/skills/zon-ui/references/components/button-group.md +216 -0
- package/dist/skills/zon-ui/references/components/button.md +309 -0
- package/dist/skills/zon-ui/references/components/calendar.md +296 -0
- package/dist/skills/zon-ui/references/components/card.md +158 -0
- package/dist/skills/zon-ui/references/components/carousel.md +297 -0
- package/dist/skills/zon-ui/references/components/chart.md +739 -0
- package/dist/skills/zon-ui/references/components/chat.md +417 -0
- package/dist/skills/zon-ui/references/components/checkbox.md +219 -0
- package/dist/skills/zon-ui/references/components/code-block.md +143 -0
- package/dist/skills/zon-ui/references/components/code-highlight.md +118 -0
- package/dist/skills/zon-ui/references/components/collapsible.md +146 -0
- package/dist/skills/zon-ui/references/components/color-picker.md +200 -0
- package/dist/skills/zon-ui/references/components/combobox.md +455 -0
- package/dist/skills/zon-ui/references/components/command.md +326 -0
- package/dist/skills/zon-ui/references/components/contact-form.md +562 -0
- package/dist/skills/zon-ui/references/components/context-menu.md +159 -0
- package/dist/skills/zon-ui/references/components/conversation.md +146 -0
- package/dist/skills/zon-ui/references/components/copy-button.md +162 -0
- package/dist/skills/zon-ui/references/components/crm.md +1022 -0
- package/dist/skills/zon-ui/references/components/dashboard.md +612 -0
- package/dist/skills/zon-ui/references/components/data-table.md +776 -0
- package/dist/skills/zon-ui/references/components/date-picker.md +444 -0
- package/dist/skills/zon-ui/references/components/dialog.md +335 -0
- package/dist/skills/zon-ui/references/components/direction.md +165 -0
- package/dist/skills/zon-ui/references/components/drawer.md +276 -0
- package/dist/skills/zon-ui/references/components/drawing.md +94 -0
- package/dist/skills/zon-ui/references/components/empty.md +225 -0
- package/dist/skills/zon-ui/references/components/feature-list.md +412 -0
- package/dist/skills/zon-ui/references/components/field.md +209 -0
- package/dist/skills/zon-ui/references/components/file-drop.md +234 -0
- package/dist/skills/zon-ui/references/components/filter-bar.md +485 -0
- package/dist/skills/zon-ui/references/components/form.md +970 -0
- package/dist/skills/zon-ui/references/components/graph.md +339 -0
- package/dist/skills/zon-ui/references/components/illustration.md +497 -0
- package/dist/skills/zon-ui/references/components/inbox.md +263 -0
- package/dist/skills/zon-ui/references/components/input-group.md +339 -0
- package/dist/skills/zon-ui/references/components/input.md +189 -0
- package/dist/skills/zon-ui/references/components/item.md +277 -0
- package/dist/skills/zon-ui/references/components/kanban.md +626 -0
- package/dist/skills/zon-ui/references/components/kbd.md +116 -0
- package/dist/skills/zon-ui/references/components/label.md +104 -0
- package/dist/skills/zon-ui/references/components/layout.md +291 -0
- package/dist/skills/zon-ui/references/components/lightbox.md +235 -0
- package/dist/skills/zon-ui/references/components/locale.md +279 -0
- package/dist/skills/zon-ui/references/components/logo.md +257 -0
- package/dist/skills/zon-ui/references/components/markdown-editor.md +558 -0
- package/dist/skills/zon-ui/references/components/mentions.md +512 -0
- package/dist/skills/zon-ui/references/components/menu.md +218 -0
- package/dist/skills/zon-ui/references/components/menubar.md +292 -0
- package/dist/skills/zon-ui/references/components/message.md +243 -0
- package/dist/skills/zon-ui/references/components/meter.md +105 -0
- package/dist/skills/zon-ui/references/components/money-input.md +333 -0
- package/dist/skills/zon-ui/references/components/native-select.md +197 -0
- package/dist/skills/zon-ui/references/components/navigation-menu.md +253 -0
- package/dist/skills/zon-ui/references/components/number-field.md +210 -0
- package/dist/skills/zon-ui/references/components/number-roll.md +175 -0
- package/dist/skills/zon-ui/references/components/onboarding.md +896 -0
- package/dist/skills/zon-ui/references/components/otp-field.md +166 -0
- package/dist/skills/zon-ui/references/components/pagination.md +109 -0
- package/dist/skills/zon-ui/references/components/pdf-viewer.md +177 -0
- package/dist/skills/zon-ui/references/components/phone-input.md +252 -0
- package/dist/skills/zon-ui/references/components/popover.md +176 -0
- package/dist/skills/zon-ui/references/components/preview-card.md +193 -0
- package/dist/skills/zon-ui/references/components/pricing.md +724 -0
- package/dist/skills/zon-ui/references/components/progress.md +92 -0
- package/dist/skills/zon-ui/references/components/prompt-input.md +307 -0
- package/dist/skills/zon-ui/references/components/pull-to-refresh.md +188 -0
- package/dist/skills/zon-ui/references/components/quote.md +115 -0
- package/dist/skills/zon-ui/references/components/radio-group.md +215 -0
- package/dist/skills/zon-ui/references/components/rating.md +260 -0
- package/dist/skills/zon-ui/references/components/reasoning.md +102 -0
- package/dist/skills/zon-ui/references/components/resizable.md +213 -0
- package/dist/skills/zon-ui/references/components/response.md +170 -0
- package/dist/skills/zon-ui/references/components/scheduler.md +732 -0
- package/dist/skills/zon-ui/references/components/scroll-area.md +122 -0
- package/dist/skills/zon-ui/references/components/select.md +351 -0
- package/dist/skills/zon-ui/references/components/separator.md +103 -0
- package/dist/skills/zon-ui/references/components/settings.md +793 -0
- package/dist/skills/zon-ui/references/components/shop.md +1715 -0
- package/dist/skills/zon-ui/references/components/sidebar.md +813 -0
- package/dist/skills/zon-ui/references/components/sign-in.md +1639 -0
- package/dist/skills/zon-ui/references/components/site-header.md +303 -0
- package/dist/skills/zon-ui/references/components/skeleton.md +256 -0
- package/dist/skills/zon-ui/references/components/slider.md +172 -0
- package/dist/skills/zon-ui/references/components/sortable.md +405 -0
- package/dist/skills/zon-ui/references/components/sources.md +106 -0
- package/dist/skills/zon-ui/references/components/spinner.md +222 -0
- package/dist/skills/zon-ui/references/components/stat.md +267 -0
- package/dist/skills/zon-ui/references/components/stepper.md +285 -0
- package/dist/skills/zon-ui/references/components/suggestions.md +146 -0
- package/dist/skills/zon-ui/references/components/swipe-actions.md +344 -0
- package/dist/skills/zon-ui/references/components/switch.md +160 -0
- package/dist/skills/zon-ui/references/components/table.md +999 -0
- package/dist/skills/zon-ui/references/components/tabs.md +258 -0
- package/dist/skills/zon-ui/references/components/tag.md +115 -0
- package/dist/skills/zon-ui/references/components/tags-input.md +216 -0
- package/dist/skills/zon-ui/references/components/textarea.md +95 -0
- package/dist/skills/zon-ui/references/components/theme-editor.md +3940 -0
- package/dist/skills/zon-ui/references/components/theme.md +362 -0
- package/dist/skills/zon-ui/references/components/time-field.md +222 -0
- package/dist/skills/zon-ui/references/components/timeline.md +285 -0
- package/dist/skills/zon-ui/references/components/tippy.md +243 -0
- package/dist/skills/zon-ui/references/components/toast.md +220 -0
- package/dist/skills/zon-ui/references/components/toggle-group.md +261 -0
- package/dist/skills/zon-ui/references/components/toggle.md +167 -0
- package/dist/skills/zon-ui/references/components/tool-call.md +146 -0
- package/dist/skills/zon-ui/references/components/toolbar.md +260 -0
- package/dist/skills/zon-ui/references/components/tooltip.md +172 -0
- package/dist/skills/zon-ui/references/components/tour.md +423 -0
- package/dist/skills/zon-ui/references/components/tree.md +481 -0
- package/dist/skills/zon-ui/references/components/typography.md +347 -0
- package/dist/skills/zon-ui/references/components/video-player.md +386 -0
- package/dist/skills/zon-ui/references/marketing.md +467 -0
- package/dist/skills/zon-ui/references/motion.md +455 -0
- package/dist/skills/zon-ui/references/recipes.md +1232 -0
- package/dist/skills/zon-ui/references/tokens.md +866 -0
- package/dist/sources/accordion.css +4 -0
- package/dist/sources/action-sheet.css +11 -0
- package/dist/sources/alert-dialog.css +6 -0
- package/dist/sources/alert.css +3 -0
- package/dist/sources/app-bar.css +14 -0
- package/dist/sources/ascii-field.css +3 -0
- package/dist/sources/aspect-ratio.css +3 -0
- package/dist/sources/audio-player.css +20 -0
- package/dist/sources/avatar.css +3 -0
- package/dist/sources/badge.css +3 -0
- package/dist/sources/bottom-nav.css +9 -0
- package/dist/sources/breadcrumb.css +14 -0
- package/dist/sources/button-group.css +3 -0
- package/dist/sources/button.css +9 -0
- package/dist/sources/calendar.css +13 -0
- package/dist/sources/card.css +3 -0
- package/dist/sources/carousel.css +11 -0
- package/dist/sources/chart.css +5 -0
- package/dist/sources/checkbox.css +6 -0
- package/dist/sources/code-block.css +13 -0
- package/dist/sources/collapsible.css +4 -0
- package/dist/sources/color-picker.css +13 -0
- package/dist/sources/combobox.css +13 -0
- package/dist/sources/command.css +13 -0
- package/dist/sources/context-menu.css +12 -0
- package/dist/sources/conversation.css +10 -0
- package/dist/sources/copy-button.css +10 -0
- package/dist/sources/data-table.css +27 -0
- package/dist/sources/date-picker.css +20 -0
- package/dist/sources/dialog.css +9 -0
- package/dist/sources/direction.css +2 -0
- package/dist/sources/drawer.css +9 -0
- package/dist/sources/drawing.css +5 -0
- package/dist/sources/empty.css +3 -0
- package/dist/sources/feature-list.css +4 -0
- package/dist/sources/field.css +4 -0
- package/dist/sources/file-drop.css +15 -0
- package/dist/sources/filter-bar.css +30 -0
- package/dist/sources/form.css +4 -0
- package/dist/sources/graph.css +19 -0
- package/dist/sources/illustration.css +28 -0
- package/dist/sources/input-group.css +7 -0
- package/dist/sources/input.css +3 -0
- package/dist/sources/item.css +4 -0
- package/dist/sources/kbd.css +5 -0
- package/dist/sources/label.css +3 -0
- package/dist/sources/layout.css +3 -0
- package/dist/sources/lightbox.css +33 -0
- package/dist/sources/locale.css +2 -0
- package/dist/sources/logo.css +4 -0
- package/dist/sources/markdown-editor.css +41 -0
- package/dist/sources/mentions.css +13 -0
- package/dist/sources/menu.css +11 -0
- package/dist/sources/menubar.css +14 -0
- package/dist/sources/message.css +16 -0
- package/dist/sources/meter.css +4 -0
- package/dist/sources/money-input.css +10 -0
- package/dist/sources/native-select.css +4 -0
- package/dist/sources/navigation-menu.css +8 -0
- package/dist/sources/number-field.css +8 -0
- package/dist/sources/number-roll.css +6 -0
- package/dist/sources/otp-field.css +5 -0
- package/dist/sources/pagination.css +11 -0
- package/dist/sources/pdf-viewer.css +30 -0
- package/dist/sources/phone-input.css +20 -0
- package/dist/sources/popover.css +7 -0
- package/dist/sources/preview-card.css +7 -0
- package/dist/sources/progress.css +4 -0
- package/dist/sources/prompt-input.css +15 -0
- package/dist/sources/pull-to-refresh.css +14 -0
- package/dist/sources/quote.css +3 -0
- package/dist/sources/radio-group.css +5 -0
- package/dist/sources/rating.css +6 -0
- package/dist/sources/reasoning.css +6 -0
- package/dist/sources/resizable.css +4 -0
- package/dist/sources/response.css +16 -0
- package/dist/sources/scheduler.css +44 -0
- package/dist/sources/scroll-area.css +3 -0
- package/dist/sources/select.css +12 -0
- package/dist/sources/separator.css +3 -0
- package/dist/sources/sidebar.css +19 -0
- package/dist/sources/site-header.css +15 -0
- package/dist/sources/skeleton.css +3 -0
- package/dist/sources/slider.css +6 -0
- package/dist/sources/sortable.css +12 -0
- package/dist/sources/sources.css +6 -0
- package/dist/sources/spinner.css +6 -0
- package/dist/sources/stat.css +9 -0
- package/dist/sources/stepper.css +6 -0
- package/dist/sources/suggestions.css +10 -0
- package/dist/sources/swipe-actions.css +20 -0
- package/dist/sources/switch.css +5 -0
- package/dist/sources/table.css +7 -0
- package/dist/sources/tabs.css +5 -0
- package/dist/sources/tag.css +3 -0
- package/dist/sources/tags-input.css +6 -0
- package/dist/sources/textarea.css +3 -0
- package/dist/sources/theme.css +13 -0
- package/dist/sources/time-field.css +7 -0
- package/dist/sources/timeline.css +7 -0
- package/dist/sources/tippy.css +6 -0
- package/dist/sources/toast.css +6 -0
- package/dist/sources/toggle-group.css +5 -0
- package/dist/sources/toggle.css +3 -0
- package/dist/sources/tool-call.css +16 -0
- package/dist/sources/toolbar.css +14 -0
- package/dist/sources/tooltip.css +6 -0
- package/dist/sources/tour.css +14 -0
- package/dist/sources/tree.css +6 -0
- package/dist/sources/typography.css +4 -0
- package/dist/sources/video-player.css +21 -0
- package/dist/styles/ai.css +3 -0
- package/dist/styles/brand.css +98 -0
- package/dist/styles/core.css +266 -0
- package/dist/styles/editor.css +3 -0
- package/dist/styles/expressive.css +35 -56
- package/dist/styles/fonts.css +61 -117
- package/dist/styles/graph.css +4 -0
- package/dist/styles/illustration.css +4 -0
- package/dist/styles/index.css +11 -201
- package/dist/styles/material.css +138 -12
- package/dist/styles/parts/ai.css +18 -13
- package/dist/styles/parts/brand.css +2 -2
- package/dist/styles/parts/controls.css +29 -20
- package/dist/styles/parts/data.css +13 -9
- package/dist/styles/parts/editor.css +372 -0
- package/dist/styles/parts/feedback.css +32 -2
- package/dist/styles/parts/foundations.css +12 -7
- package/dist/styles/parts/graph.css +25 -9
- package/dist/styles/parts/inputs.css +172 -9
- package/dist/styles/parts/isometric.css +6 -5
- package/dist/styles/parts/navigation.css +206 -27
- package/dist/styles/parts/overlays.css +19 -4
- package/dist/styles/parts/pdf.css +2 -2
- package/dist/styles/pdf.css +3 -0
- package/dist/styles/prose.css +3 -0
- package/dist/styles/tokens.css +89 -14
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +5 -0
- package/dist/vite.d.ts +48 -59
- package/dist/vite.js +54 -21
- package/package.json +69 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* @zonsh/ui — the files tour is built from, for Tailwind to scan. */
|
|
2
|
+
@source "../components/_overlay.js";
|
|
3
|
+
@source "../components/button.js";
|
|
4
|
+
@source "../components/locale.js";
|
|
5
|
+
@source "../components/spinner.js";
|
|
6
|
+
@source "../components/tour.js";
|
|
7
|
+
@source "../lib/cn.js";
|
|
8
|
+
@source "../lib/collapse-row.js";
|
|
9
|
+
@source "../lib/icons.js";
|
|
10
|
+
@source "../lib/logo-geometry.js";
|
|
11
|
+
@source "../lib/merge-refs.js";
|
|
12
|
+
@source "../lib/motion.js";
|
|
13
|
+
@source "../lib/portal-container.js";
|
|
14
|
+
@source "../lib/room.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* @zonsh/ui — the files video-player is built from, for Tailwind to scan. */
|
|
2
|
+
@source "../components/_media.js";
|
|
3
|
+
@source "../components/_overlay.js";
|
|
4
|
+
@source "../components/button.js";
|
|
5
|
+
@source "../components/direction.js";
|
|
6
|
+
@source "../components/kbd.js";
|
|
7
|
+
@source "../components/locale.js";
|
|
8
|
+
@source "../components/menu.js";
|
|
9
|
+
@source "../components/skeleton.js";
|
|
10
|
+
@source "../components/spinner.js";
|
|
11
|
+
@source "../components/tooltip.js";
|
|
12
|
+
@source "../components/video-player.js";
|
|
13
|
+
@source "../lib/cn.js";
|
|
14
|
+
@source "../lib/collapse-row.js";
|
|
15
|
+
@source "../lib/icons.js";
|
|
16
|
+
@source "../lib/logo-geometry.js";
|
|
17
|
+
@source "../lib/merge-refs.js";
|
|
18
|
+
@source "../lib/motion.js";
|
|
19
|
+
@source "../lib/platform.js";
|
|
20
|
+
@source "../lib/portal-container.js";
|
|
21
|
+
@source "../lib/room.js";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @zonsh/ui/brand.css — zon.sh's own look, opt-in. Import it after the library's styles:
|
|
3
|
+
*
|
|
4
|
+
* @import "tailwindcss";
|
|
5
|
+
* @import "@zonsh/ui/styles.css";
|
|
6
|
+
* @import "@zonsh/ui/brand.css";
|
|
7
|
+
*
|
|
8
|
+
* `styles.css` alone is the design system: every component, its material and its tokens, on a
|
|
9
|
+
* plain --background page. This adds what makes a page zon.sh's rather than any app's:
|
|
10
|
+
*
|
|
11
|
+
* - the page ground: still grain fixed to the viewport, under a faint light from above, on
|
|
12
|
+
* html and body; the bars that stand on the ground (surface-page, SiteHeader, BottomNav)
|
|
13
|
+
* take the same grain and light, so they stay indistinguishable from the page;
|
|
14
|
+
* - html past the page's edges in --page-tone, the ground's average, as the browser's bars;
|
|
15
|
+
* - the glow orb and the starfield's twinkle (parts/brand.css).
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@import "./parts/brand.css";
|
|
19
|
+
|
|
20
|
+
/* ── The ground's light and grain, per theme ───────────────────────────────────
|
|
21
|
+
Unlayered, like tokens.css, and later, so these win over its neutral values (no light, no
|
|
22
|
+
grain). Each scheme sets them again: they are worked out from that scheme's --grain-opacity. */
|
|
23
|
+
|
|
24
|
+
:root,
|
|
25
|
+
.theme-light {
|
|
26
|
+
/* None on a light page: white on white. */
|
|
27
|
+
--page-glow: transparent;
|
|
28
|
+
--page-grain-opacity: 0.1;
|
|
29
|
+
--page-grain-screen: calc(var(--grain-opacity) * 0.35);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dark,
|
|
33
|
+
[data-theme="dark"],
|
|
34
|
+
.theme-dark,
|
|
35
|
+
.theme-night {
|
|
36
|
+
--page-glow: rgb(255 255 255 / 0.035);
|
|
37
|
+
--page-grain-opacity: calc(var(--grain-opacity) * 1.5);
|
|
38
|
+
--page-grain-screen: calc(var(--grain-opacity) * 0.35);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@layer base {
|
|
42
|
+
html {
|
|
43
|
+
/* What the browser shows past the page's edges: the ground as one flat colour, the same the
|
|
44
|
+
browser's bars take (theme-color). The ground itself is a layer of its own (below). */
|
|
45
|
+
background-color: var(--page-tone);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/*
|
|
49
|
+
* The page ground — zon.sh's resting background: the grain, still, fixed to the viewport behind
|
|
50
|
+
* everything, under a faint light from above (--page-glow). The layers sit at z-index -1 in the
|
|
51
|
+
* root stacking context, so they texture the ground and never a card, a field or the text,
|
|
52
|
+
* which all paint above them. Still on purpose: a moving page would never let the eye rest.
|
|
53
|
+
* Overlay on dark grounds; multiply on light ones, where overlay shows nothing
|
|
54
|
+
* (--page-grain-blend).
|
|
55
|
+
*
|
|
56
|
+
* The ground under the grain is a layer of its own too (html::before), and all three reach a
|
|
57
|
+
* tenth of the window below its bottom edge. iOS Safari uncovers a strip there as its toolbar
|
|
58
|
+
* shrinks, and the root's background is not something the grain can blend with: blending with
|
|
59
|
+
* nothing, it showed as bare, bright noise. Only downwards, so the grain's tiles still start at
|
|
60
|
+
* the window's corner, where a scrolled SiteHeader's grain lines up with them. Past all of it
|
|
61
|
+
* the browser shows html's background, --page-tone, the same flat colour its bars take.
|
|
62
|
+
*
|
|
63
|
+
* Anything opaque in --background between the body and the content hides it, so page-level
|
|
64
|
+
* wrappers stay transparent. Opt out of the grain with `body::before, body::after { content:
|
|
65
|
+
* none }`; the ground and its light stay.
|
|
66
|
+
*/
|
|
67
|
+
html::before {
|
|
68
|
+
content: "";
|
|
69
|
+
position: fixed;
|
|
70
|
+
inset: 0 0 -10%;
|
|
71
|
+
z-index: -1;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
background-color: var(--background);
|
|
74
|
+
/* The light a tenth of the window above it, 110% × 65% of the window, as in a SiteHeader's
|
|
75
|
+
ground: in this box, 1.1 windows tall, that is -9.09% and 59.09% of its height. */
|
|
76
|
+
background-image: radial-gradient(110% 59.09% at 50% -9.09%, var(--page-glow), transparent 60%);
|
|
77
|
+
}
|
|
78
|
+
body::before,
|
|
79
|
+
body::after {
|
|
80
|
+
content: "";
|
|
81
|
+
position: fixed;
|
|
82
|
+
inset: 0 0 -10%;
|
|
83
|
+
z-index: -1;
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
background-image: var(--grain-noise);
|
|
86
|
+
background-size: 200px auto;
|
|
87
|
+
}
|
|
88
|
+
body::before {
|
|
89
|
+
mix-blend-mode: var(--page-grain-blend);
|
|
90
|
+
opacity: var(--page-grain-opacity);
|
|
91
|
+
}
|
|
92
|
+
body::after {
|
|
93
|
+
mix-blend-mode: screen;
|
|
94
|
+
opacity: var(--page-grain-screen);
|
|
95
|
+
/* Offset, so the two layers never line up into a visible tile. */
|
|
96
|
+
background-position: 97px 61px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @zonsh/ui — the core stylesheet: tokens, the Licht faces, the materials, the theme and the
|
|
3
|
+
* styles of every component but the few that bring their own part (below). `styles.css` is this
|
|
4
|
+
* plus all of those parts, and tells Tailwind to scan the whole package.
|
|
5
|
+
*
|
|
6
|
+
* To load less, import the core, the parts you use and, in place of scanning the package, the
|
|
7
|
+
* sources of the components you import (they name each file the component is built from):
|
|
8
|
+
*
|
|
9
|
+
* @import "tailwindcss";
|
|
10
|
+
* @import "@zonsh/ui/styles/core.css";
|
|
11
|
+
* @import "@zonsh/ui/styles/ai.css"; (Prompt Input, Reasoning, Response)
|
|
12
|
+
* @import "@zonsh/ui/sources/button.css";
|
|
13
|
+
* @import "@zonsh/ui/sources/table.css";
|
|
14
|
+
*
|
|
15
|
+
* Parts: prose.css (Prose, Code Block), ai.css, graph.css, pdf.css, editor.css (Markdown Editor),
|
|
16
|
+
* illustration.css.
|
|
17
|
+
*
|
|
18
|
+
* zon.sh's own look — the grain and light on the page ground, its entrance keyframes — is not part
|
|
19
|
+
* of the system: `@zonsh/ui/brand.css`, imported after, opts in.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
@import "./tokens.css";
|
|
23
|
+
@import "./fonts.css";
|
|
24
|
+
@import "./material.css";
|
|
25
|
+
@import "./expressive.css";
|
|
26
|
+
@import "./parts/controls.css";
|
|
27
|
+
@import "./parts/overlays.css";
|
|
28
|
+
@import "./parts/navigation.css";
|
|
29
|
+
@import "./parts/feedback.css";
|
|
30
|
+
@import "./parts/data.css";
|
|
31
|
+
@import "./parts/inputs.css";
|
|
32
|
+
|
|
33
|
+
@custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *, .theme-dark, .theme-dark *, .theme-night, .theme-night *));
|
|
34
|
+
|
|
35
|
+
@theme inline {
|
|
36
|
+
--color-background: var(--background);
|
|
37
|
+
--color-foreground: var(--foreground);
|
|
38
|
+
--color-foreground-soft: var(--foreground-soft);
|
|
39
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
40
|
+
--color-card: var(--card);
|
|
41
|
+
--color-card-foreground: var(--card-foreground);
|
|
42
|
+
--color-popover: var(--popover);
|
|
43
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
44
|
+
--color-primary: var(--primary);
|
|
45
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
46
|
+
--color-secondary: var(--secondary);
|
|
47
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
48
|
+
--color-muted: var(--muted);
|
|
49
|
+
--color-accent: var(--accent);
|
|
50
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
51
|
+
--color-destructive: var(--destructive);
|
|
52
|
+
--color-success: var(--success);
|
|
53
|
+
--color-warning: var(--warning);
|
|
54
|
+
--color-info: var(--info);
|
|
55
|
+
--color-tone-blue: var(--tone-blue);
|
|
56
|
+
--color-tone-aqua: var(--tone-aqua);
|
|
57
|
+
--color-tone-violet: var(--tone-violet);
|
|
58
|
+
--color-tone-magenta: var(--tone-magenta);
|
|
59
|
+
--color-tone-orange: var(--tone-orange);
|
|
60
|
+
--color-tone-lime: var(--tone-lime);
|
|
61
|
+
--color-border: var(--border);
|
|
62
|
+
--color-input: var(--input);
|
|
63
|
+
--color-ring: var(--ring);
|
|
64
|
+
|
|
65
|
+
--color-control-surface: var(--control-surface);
|
|
66
|
+
--color-control-hover: var(--control-hover);
|
|
67
|
+
--color-control-pressed: var(--control-pressed);
|
|
68
|
+
--color-primary-fill-pressed: var(--primary-fill-pressed);
|
|
69
|
+
--color-control-edge: var(--control-edge);
|
|
70
|
+
--color-control-highlight: var(--control-highlight);
|
|
71
|
+
--color-control-inner-edge: var(--control-inner-edge);
|
|
72
|
+
--color-control-menu: var(--control-menu);
|
|
73
|
+
--color-control-muted: var(--control-muted);
|
|
74
|
+
--color-control-focus: var(--control-focus);
|
|
75
|
+
--color-field-surface: var(--field-surface);
|
|
76
|
+
--color-field-edge: var(--field-edge);
|
|
77
|
+
--color-grid-line: var(--grid-line);
|
|
78
|
+
--color-grid-bright: var(--grid-bright);
|
|
79
|
+
--color-guide: var(--guide);
|
|
80
|
+
|
|
81
|
+
--color-chart-1: var(--chart-1);
|
|
82
|
+
--color-chart-2: var(--chart-2);
|
|
83
|
+
--color-chart-3: var(--chart-3);
|
|
84
|
+
--color-chart-4: var(--chart-4);
|
|
85
|
+
--color-chart-5: var(--chart-5);
|
|
86
|
+
|
|
87
|
+
--font-heading: var(--font-heading);
|
|
88
|
+
--font-body: var(--font-body);
|
|
89
|
+
--font-sans: var(--font-body);
|
|
90
|
+
--font-mono: var(--font-mono);
|
|
91
|
+
|
|
92
|
+
--radius-button: var(--radius-button);
|
|
93
|
+
--radius-control: var(--radius-control);
|
|
94
|
+
/* A textarea follows the control radius up to zon's own 10px, so the resize handle in its
|
|
95
|
+
corner stays inside the box on a rounder theme. */
|
|
96
|
+
--radius-textarea: min(var(--radius-control), 10px);
|
|
97
|
+
--radius-item: var(--radius-item);
|
|
98
|
+
--radius-checkbox: var(--radius-checkbox);
|
|
99
|
+
--radius-card: var(--radius-card);
|
|
100
|
+
|
|
101
|
+
/*
|
|
102
|
+
* The material's shadows as utilities (`shadow-raised`, `shadow-checked` …). Inlined, so the
|
|
103
|
+
* var() colours resolve where they are used and stay right inside .theme-dark regions.
|
|
104
|
+
* Never retype these as shadow-[…]: use the utility.
|
|
105
|
+
*/
|
|
106
|
+
--shadow-raised:
|
|
107
|
+
0 0 0 1px var(--control-edge), inset 0 1px 0 var(--control-highlight), inset 0 0 0 1px var(--control-inner-edge);
|
|
108
|
+
--shadow-raised-pressed:
|
|
109
|
+
0 0 0 1px var(--control-edge), inset 0 2px 4px #0000002e, inset 0 0 0 1px var(--control-inner-edge);
|
|
110
|
+
--shadow-raised-current:
|
|
111
|
+
0 0 0 1px var(--control-focus), inset 0 1px 0 var(--control-highlight), inset 0 0 0 1px var(--control-inner-edge);
|
|
112
|
+
--shadow-key:
|
|
113
|
+
0 0 0 1px var(--control-edge), inset 0 1px 0 var(--control-highlight), inset 0 -1px 0 var(--control-inner-edge);
|
|
114
|
+
--shadow-checked: 0 0 0 1px var(--control-edge), inset 0 2px 3px #fff3, inset 0 -2px 3px #0000001f;
|
|
115
|
+
--shadow-thumb: 0 0 0 1px var(--control-edge), 0 1px 3px #00000040, inset 0 1px 0 var(--control-highlight);
|
|
116
|
+
--shadow-field: inset 0 1px 2px var(--field-inset), 0 1px 0 var(--control-highlight);
|
|
117
|
+
--shadow-highlight: inset 0 1px 0 var(--control-highlight);
|
|
118
|
+
--shadow-invalid: 0 0 0 3px color-mix(in srgb, var(--destructive) 18%, transparent);
|
|
119
|
+
--shadow-overlay: inset 0 1px 0 var(--control-highlight), 0 12px 32px #0003, 0 2px 6px #0000001a;
|
|
120
|
+
--shadow-card: inset 0 1px 0 var(--control-highlight), 0 4px 16px #0000000a;
|
|
121
|
+
|
|
122
|
+
/* `ease-brand` is an older name for `ease-(--ease)`, kept for code that uses it. Write ease-(--ease). */
|
|
123
|
+
--ease-brand: var(--ease);
|
|
124
|
+
--container-page: var(--container);
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/* Type that follows the theme's density (--type, tokens.css): `text-13` is 13px at zon's default,
|
|
128
|
+
a little less in a dense theme and a little more in a roomy one, never under 10px. Write these,
|
|
129
|
+
not text-[13px]. text-base stays 16px: a touch screen zooms into a smaller field. */
|
|
130
|
+
--text-11: max(10px, calc(11px * var(--type)));
|
|
131
|
+
--text-12: max(10px, calc(12px * var(--type)));
|
|
132
|
+
--text-13: calc(13px * var(--type));
|
|
133
|
+
--text-14: calc(14px * var(--type));
|
|
134
|
+
--text-15: calc(15px * var(--type));
|
|
135
|
+
--text-16: calc(16px * var(--type));
|
|
136
|
+
--text-17: calc(17px * var(--type));
|
|
137
|
+
--text-18: calc(18px * var(--type));
|
|
138
|
+
--text-20: calc(20px * var(--type));
|
|
139
|
+
--text-22: calc(22px * var(--type));
|
|
140
|
+
--text-24: calc(24px * var(--type));
|
|
141
|
+
--text-26: calc(26px * var(--type));
|
|
142
|
+
--text-28: calc(28px * var(--type));
|
|
143
|
+
--text-30: calc(30px * var(--type));
|
|
144
|
+
--text-32: calc(32px * var(--type));
|
|
145
|
+
--text-34: calc(34px * var(--type));
|
|
146
|
+
--text-36: calc(36px * var(--type));
|
|
147
|
+
--text-xs: max(10px, calc(0.75rem * var(--type)));
|
|
148
|
+
--text-sm: calc(0.875rem * var(--type));
|
|
149
|
+
--text-lg: calc(1.125rem * var(--type));
|
|
150
|
+
--text-xl: calc(1.25rem * var(--type));
|
|
151
|
+
--text-2xl: calc(1.5rem * var(--type));
|
|
152
|
+
|
|
153
|
+
--text-body: calc(17px * var(--type));
|
|
154
|
+
--text-body--line-height: 1.6;
|
|
155
|
+
--text-eyebrow: max(10px, calc(12px * var(--type)));
|
|
156
|
+
--text-eyebrow--line-height: 1.4;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@layer base {
|
|
160
|
+
/* Density, inside the library's own parts: every Tailwind step (p-3, gap-2, size-4, w-72 …) a
|
|
161
|
+
component draws with is Tailwind's step times --space, and its type follows at half the rate
|
|
162
|
+
(--type). --space is --density in a dense theme (0.79 at 30px controls), and grows only as fast
|
|
163
|
+
as the type in a roomy one (1.105 at 46px, not 1.21): the control heights carry a spacious
|
|
164
|
+
theme's extra room, and padding, gaps and icons keep step with the text instead of padding it
|
|
165
|
+
out. Set on every part, so a theme scoped to one region reaches the parts inside it.
|
|
166
|
+
Outside the parts, your own p-2 keeps its meaning. */
|
|
167
|
+
[data-slot] {
|
|
168
|
+
--type: calc(1 + (var(--density) - 1) / 2);
|
|
169
|
+
--space: min(var(--density), var(--type));
|
|
170
|
+
--spacing: calc(var(--zon-spacing) * var(--space));
|
|
171
|
+
}
|
|
172
|
+
/* A themed area (ThemeScope) and the place its popups portal to are not parts: your own p-2
|
|
173
|
+
inside one keeps Tailwind's step, as on the page. The parts inside take the area's density. */
|
|
174
|
+
[data-slot="theme-scope"],
|
|
175
|
+
[data-slot="theme-scope-portal"] {
|
|
176
|
+
--spacing: var(--zon-spacing);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
html {
|
|
180
|
+
-webkit-text-size-adjust: 100%;
|
|
181
|
+
text-rendering: optimizeLegibility;
|
|
182
|
+
-webkit-font-smoothing: antialiased;
|
|
183
|
+
-moz-osx-font-smoothing: grayscale;
|
|
184
|
+
/* The page ground: --background, plain. brand.css (zon.sh's look) puts its grain and light
|
|
185
|
+
over it and shows --page-tone past the page's edges. */
|
|
186
|
+
background-color: var(--background);
|
|
187
|
+
/* No grey flash over whatever is tapped on a phone: every control has its own pressed state. */
|
|
188
|
+
-webkit-tap-highlight-color: transparent;
|
|
189
|
+
}
|
|
190
|
+
/* A tap acts at once: no wait to rule out a double-tap zoom on the things people press. */
|
|
191
|
+
button,
|
|
192
|
+
a,
|
|
193
|
+
[role="button"] {
|
|
194
|
+
touch-action: manipulation;
|
|
195
|
+
}
|
|
196
|
+
body {
|
|
197
|
+
color: var(--foreground);
|
|
198
|
+
font-family: var(--font-body);
|
|
199
|
+
font-size: calc(17px * var(--type));
|
|
200
|
+
line-height: 1.6;
|
|
201
|
+
}
|
|
202
|
+
h1,
|
|
203
|
+
h2,
|
|
204
|
+
h3,
|
|
205
|
+
h4 {
|
|
206
|
+
font-family: var(--font-heading);
|
|
207
|
+
font-weight: 300;
|
|
208
|
+
font-synthesis: none;
|
|
209
|
+
font-kerning: normal;
|
|
210
|
+
letter-spacing: -0.02em;
|
|
211
|
+
text-wrap: balance;
|
|
212
|
+
}
|
|
213
|
+
/* Licht is set Light only, and licht has real heavier cuts the browser would otherwise
|
|
214
|
+
pick for a bold word in a headline: <b> and <strong> there keep the headline's weight. */
|
|
215
|
+
:where(h1, h2, h3, h4, .display, .font-heading) :where(b, strong) {
|
|
216
|
+
font-weight: inherit;
|
|
217
|
+
}
|
|
218
|
+
::selection {
|
|
219
|
+
background-color: var(--foreground);
|
|
220
|
+
color: var(--background);
|
|
221
|
+
}
|
|
222
|
+
/* Native scrollbars (the page, tables, overflow-auto panels) echo ScrollArea: a 4px round
|
|
223
|
+
--field-edge thumb on a transparent track, no arrow buttons. Chrome, Edge and Safari draw
|
|
224
|
+
that from the ::-webkit-scrollbar parts — Chrome ignores them, and draws its own arrows,
|
|
225
|
+
once an element sets scrollbar-width or scrollbar-color, so those are left to Firefox,
|
|
226
|
+
which has no arrows. ScrollArea hides all of these and draws its own. */
|
|
227
|
+
@supports selector(::-webkit-scrollbar) {
|
|
228
|
+
::-webkit-scrollbar {
|
|
229
|
+
width: 10px;
|
|
230
|
+
height: 10px;
|
|
231
|
+
}
|
|
232
|
+
::-webkit-scrollbar-track,
|
|
233
|
+
::-webkit-scrollbar-corner {
|
|
234
|
+
background: transparent;
|
|
235
|
+
}
|
|
236
|
+
/* A rounded scroller sets --scrollbar-inset to its radius, so the bar starts and ends where
|
|
237
|
+
the corners do instead of running over them. */
|
|
238
|
+
::-webkit-scrollbar-track:vertical {
|
|
239
|
+
margin-block: var(--scrollbar-inset, 0px);
|
|
240
|
+
}
|
|
241
|
+
::-webkit-scrollbar-track:horizontal {
|
|
242
|
+
margin-inline: var(--scrollbar-inset, 0px);
|
|
243
|
+
}
|
|
244
|
+
::-webkit-scrollbar-thumb {
|
|
245
|
+
border: 3px solid transparent;
|
|
246
|
+
border-radius: 9999px;
|
|
247
|
+
background: var(--field-edge) padding-box;
|
|
248
|
+
}
|
|
249
|
+
::-webkit-scrollbar-thumb:hover {
|
|
250
|
+
background-color: var(--control-focus);
|
|
251
|
+
}
|
|
252
|
+
::-webkit-scrollbar-button {
|
|
253
|
+
display: none;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
257
|
+
* {
|
|
258
|
+
scrollbar-width: thin;
|
|
259
|
+
scrollbar-color: var(--field-edge) transparent;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
:focus-visible {
|
|
263
|
+
outline: var(--focus-width) solid var(--control-focus);
|
|
264
|
+
outline-offset: 0;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Expressive layer — the drawing-board vocabulary
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Expressive layer — the drawing-board vocabulary the Layout components draw with: grain,
|
|
3
|
+
* blueprint grids, dot fields, rails and crosshair marks. Utilities only: nothing here paints a
|
|
4
|
+
* page until a class asks for it. zon.sh's own page ground (the grain and light on every page)
|
|
5
|
+
* is in brand.css, opt-in.
|
|
5
6
|
*
|
|
6
7
|
* Everything here is decorative: pointer-events none, aria-hidden at the call site,
|
|
7
8
|
* and static under prefers-reduced-motion.
|
|
@@ -14,57 +15,6 @@
|
|
|
14
15
|
/* The film-grain tile zon.sh uses: grey fractal noise, 200px, seamless. */
|
|
15
16
|
--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
|
}
|
|
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
|
-
* The ground under the grain is a layer of its own too (html::before), and all three reach a
|
|
27
|
-
* tenth of the window below its bottom edge. iOS Safari uncovers a strip there as its toolbar
|
|
28
|
-
* shrinks, and the root's background is not something the grain can blend with: blending with
|
|
29
|
-
* nothing, it showed as bare, bright noise. Only downwards, so the grain's tiles still start at
|
|
30
|
-
* the window's corner, where a scrolled SiteHeader's grain lines up with them. Past all of it
|
|
31
|
-
* the browser shows html's background, --page-tone, the same flat colour its bars take.
|
|
32
|
-
*
|
|
33
|
-
* Anything opaque in --background between the body and the content hides it, so page-level
|
|
34
|
-
* wrappers stay transparent. Opt out of the grain with `body::before, body::after { content:
|
|
35
|
-
* none }`; the ground and its light stay.
|
|
36
|
-
*/
|
|
37
|
-
html::before {
|
|
38
|
-
content: "";
|
|
39
|
-
position: fixed;
|
|
40
|
-
inset: 0 0 -10%;
|
|
41
|
-
z-index: -1;
|
|
42
|
-
pointer-events: none;
|
|
43
|
-
background-color: var(--background);
|
|
44
|
-
/* The light a tenth of the window above it, 110% × 65% of the window, as in a SiteHeader's
|
|
45
|
-
ground: in this box, 1.1 windows tall, that is -9.09% and 59.09% of its height. */
|
|
46
|
-
background-image: radial-gradient(110% 59.09% at 50% -9.09%, var(--page-glow), transparent 60%);
|
|
47
|
-
}
|
|
48
|
-
body::before,
|
|
49
|
-
body::after {
|
|
50
|
-
content: "";
|
|
51
|
-
position: fixed;
|
|
52
|
-
inset: 0 0 -10%;
|
|
53
|
-
z-index: -1;
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
background-image: var(--grain-noise);
|
|
56
|
-
background-size: 200px auto;
|
|
57
|
-
}
|
|
58
|
-
body::before {
|
|
59
|
-
mix-blend-mode: var(--page-grain-blend);
|
|
60
|
-
opacity: var(--page-grain-opacity);
|
|
61
|
-
}
|
|
62
|
-
body::after {
|
|
63
|
-
mix-blend-mode: screen;
|
|
64
|
-
opacity: calc(var(--grain-opacity) * 0.35);
|
|
65
|
-
/* Offset, so the two layers never line up into a visible tile. */
|
|
66
|
-
background-position: 97px 61px;
|
|
67
|
-
}
|
|
68
18
|
}
|
|
69
19
|
|
|
70
20
|
/* The moving grain: an overlay for large or dark expressive regions (`<Grain />`). It moves only
|
|
@@ -145,7 +95,7 @@
|
|
|
145
95
|
z-index: -1;
|
|
146
96
|
pointer-events: none;
|
|
147
97
|
opacity: 0;
|
|
148
|
-
transition: opacity
|
|
98
|
+
transition: opacity var(--duration-settle) var(--ease);
|
|
149
99
|
}
|
|
150
100
|
&::before {
|
|
151
101
|
background-image: radial-gradient(
|
|
@@ -199,7 +149,36 @@
|
|
|
199
149
|
}
|
|
200
150
|
}
|
|
201
151
|
|
|
202
|
-
/* ──
|
|
152
|
+
/* ── Corner marks: the four crosshairs of a ruled frame, without extra markup ─── */
|
|
153
|
+
|
|
154
|
+
/* For a square region whose own 1px border is the frame (a bento sheet, a list): an 11px
|
|
155
|
+
crosshair on each outer corner, its lines on the border's own pixels, in muted-foreground. Uses ::after. */
|
|
156
|
+
@utility crosshair-corners {
|
|
157
|
+
position: relative;
|
|
158
|
+
|
|
159
|
+
&::after {
|
|
160
|
+
content: "";
|
|
161
|
+
position: absolute;
|
|
162
|
+
inset: -5px;
|
|
163
|
+
z-index: 1;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
--m: var(--muted-foreground);
|
|
166
|
+
background:
|
|
167
|
+
linear-gradient(var(--m), var(--m)) 0 5px / 11px 1px no-repeat,
|
|
168
|
+
linear-gradient(var(--m), var(--m)) 5px 0 / 1px 11px no-repeat,
|
|
169
|
+
linear-gradient(var(--m), var(--m)) 100% 5px / 11px 1px no-repeat,
|
|
170
|
+
linear-gradient(var(--m), var(--m)) calc(100% - 5px) 0 / 1px 11px no-repeat,
|
|
171
|
+
linear-gradient(var(--m), var(--m)) 0 calc(100% - 5px) / 11px 1px no-repeat,
|
|
172
|
+
linear-gradient(var(--m), var(--m)) 5px 100% / 1px 11px no-repeat,
|
|
173
|
+
linear-gradient(var(--m), var(--m)) 100% calc(100% - 5px) / 11px 1px no-repeat,
|
|
174
|
+
linear-gradient(var(--m), var(--m)) calc(100% - 5px) 100% / 1px 11px no-repeat;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ── Reveal and draw: a page's one entrance (docs/motion.md, "Arrival and reveal") ─
|
|
179
|
+
* Keyframes for consumers: `animate-[ep-reveal_var(--duration-reveal)_var(--ease)_…_both]` rises
|
|
180
|
+
* an element by --reveal-distance (16px) as it fades in; ep-draw draws a stroke in from
|
|
181
|
+
* --len (its dash length). Time them on --duration-reveal, which reduced motion sets to 0. */
|
|
203
182
|
|
|
204
183
|
@keyframes ep-reveal {
|
|
205
184
|
from {
|