@kujoforall/paper-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/CHANGELOG.md +93 -0
- package/LICENSE +21 -0
- package/README.md +295 -2
- package/dist/components/editor/block-text.d.ts +8 -0
- package/dist/components/editor/block-text.d.ts.map +1 -0
- package/dist/components/editor/block-text.js +248 -0
- package/dist/components/editor/block-text.js.map +1 -0
- package/dist/components/editor/blocks.d.ts +33 -0
- package/dist/components/editor/blocks.d.ts.map +1 -0
- package/dist/components/editor/blocks.js +191 -0
- package/dist/components/editor/blocks.js.map +1 -0
- package/dist/components/editor/document-editor.d.ts +27 -0
- package/dist/components/editor/document-editor.d.ts.map +1 -0
- package/dist/components/editor/document-editor.js +42 -0
- package/dist/components/editor/document-editor.js.map +1 -0
- package/dist/components/editor/document-view.d.ts +22 -0
- package/dist/components/editor/document-view.d.ts.map +1 -0
- package/dist/components/editor/document-view.js +110 -0
- package/dist/components/editor/document-view.js.map +1 -0
- package/dist/components/editor/editor-state.d.ts +107 -0
- package/dist/components/editor/editor-state.d.ts.map +1 -0
- package/dist/components/editor/editor-state.js +217 -0
- package/dist/components/editor/editor-state.js.map +1 -0
- package/dist/components/editor/extensions/kit-blocks.d.ts +34 -0
- package/dist/components/editor/extensions/kit-blocks.d.ts.map +1 -0
- package/dist/components/editor/extensions/kit-blocks.js +201 -0
- package/dist/components/editor/extensions/kit-blocks.js.map +1 -0
- package/dist/components/editor/extensions/spoiler.d.ts +8 -0
- package/dist/components/editor/extensions/spoiler.d.ts.map +1 -0
- package/dist/components/editor/extensions/spoiler.js +36 -0
- package/dist/components/editor/extensions/spoiler.js.map +1 -0
- package/dist/components/editor/index.d.ts +10 -0
- package/dist/components/editor/index.d.ts.map +1 -0
- package/dist/components/editor/index.js +10 -0
- package/dist/components/editor/index.js.map +1 -0
- package/dist/components/editor/kinds.d.ts +99 -0
- package/dist/components/editor/kinds.d.ts.map +1 -0
- package/dist/components/editor/kinds.js +74 -0
- package/dist/components/editor/kinds.js.map +1 -0
- package/dist/components/editor/look.d.ts +18 -0
- package/dist/components/editor/look.d.ts.map +1 -0
- package/dist/components/editor/look.js +21 -0
- package/dist/components/editor/look.js.map +1 -0
- package/dist/components/sketch/rough.d.ts +38 -0
- package/dist/components/sketch/rough.d.ts.map +1 -0
- package/dist/components/sketch/rough.js +57 -0
- package/dist/components/sketch/rough.js.map +1 -0
- package/dist/components/three/model-viewer.d.ts +36 -0
- package/dist/components/three/model-viewer.d.ts.map +1 -0
- package/dist/components/three/model-viewer.js +338 -0
- package/dist/components/three/model-viewer.js.map +1 -0
- package/dist/components/ui/accent-picker.d.ts +2 -0
- package/dist/components/ui/accent-picker.d.ts.map +1 -0
- package/dist/components/ui/accent-picker.js +44 -0
- package/dist/components/ui/accent-picker.js.map +1 -0
- package/dist/components/ui/address-field.d.ts +10 -0
- package/dist/components/ui/address-field.d.ts.map +1 -0
- package/dist/components/ui/address-field.js +24 -0
- package/dist/components/ui/address-field.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +29 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +72 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/animated-height.d.ts +6 -0
- package/dist/components/ui/animated-height.d.ts.map +1 -0
- package/dist/components/ui/animated-height.js +26 -0
- package/dist/components/ui/animated-height.js.map +1 -0
- package/dist/components/ui/app-shell.d.ts +26 -0
- package/dist/components/ui/app-shell.d.ts.map +1 -0
- package/dist/components/ui/app-shell.js +71 -0
- package/dist/components/ui/app-shell.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +30 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +50 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +19 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +62 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/banner.d.ts +33 -0
- package/dist/components/ui/banner.d.ts.map +1 -0
- package/dist/components/ui/banner.js +21 -0
- package/dist/components/ui/banner.js.map +1 -0
- package/dist/components/ui/breadcrumbs.d.ts +10 -0
- package/dist/components/ui/breadcrumbs.d.ts.map +1 -0
- package/dist/components/ui/breadcrumbs.js +9 -0
- package/dist/components/ui/breadcrumbs.js.map +1 -0
- package/dist/components/ui/button.d.ts +15 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +110 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +5 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +65 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/callout.d.ts +32 -0
- package/dist/components/ui/callout.d.ts.map +1 -0
- package/dist/components/ui/callout.js +40 -0
- package/dist/components/ui/callout.js.map +1 -0
- package/dist/components/ui/card.d.ts +18 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +28 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +30 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/choice-label.d.ts +13 -0
- package/dist/components/ui/choice-label.d.ts.map +1 -0
- package/dist/components/ui/choice-label.js +17 -0
- package/dist/components/ui/choice-label.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +10 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +21 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/collection-layout.d.ts +24 -0
- package/dist/components/ui/collection-layout.d.ts.map +1 -0
- package/dist/components/ui/collection-layout.js +16 -0
- package/dist/components/ui/collection-layout.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +10 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +93 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command-menu.d.ts +18 -0
- package/dist/components/ui/command-menu.d.ts.map +1 -0
- package/dist/components/ui/command-menu.js +49 -0
- package/dist/components/ui/command-menu.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +19 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +42 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/copy-button.d.ts +11 -0
- package/dist/components/ui/copy-button.d.ts.map +1 -0
- package/dist/components/ui/copy-button.js +48 -0
- package/dist/components/ui/copy-button.js.map +1 -0
- package/dist/components/ui/database/calendar-view.d.ts +10 -0
- package/dist/components/ui/database/calendar-view.d.ts.map +1 -0
- package/dist/components/ui/database/calendar-view.js +65 -0
- package/dist/components/ui/database/calendar-view.js.map +1 -0
- package/dist/components/ui/database/card-views.d.ts +22 -0
- package/dist/components/ui/database/card-views.d.ts.map +1 -0
- package/dist/components/ui/database/card-views.js +74 -0
- package/dist/components/ui/database/card-views.js.map +1 -0
- package/dist/components/ui/database/cells.d.ts +20 -0
- package/dist/components/ui/database/cells.d.ts.map +1 -0
- package/dist/components/ui/database/cells.js +132 -0
- package/dist/components/ui/database/cells.js.map +1 -0
- package/dist/components/ui/database/database.d.ts +19 -0
- package/dist/components/ui/database/database.d.ts.map +1 -0
- package/dist/components/ui/database/database.js +102 -0
- package/dist/components/ui/database/database.js.map +1 -0
- package/dist/components/ui/database/icons.d.ts +5 -0
- package/dist/components/ui/database/icons.d.ts.map +1 -0
- package/dist/components/ui/database/icons.js +13 -0
- package/dist/components/ui/database/icons.js.map +1 -0
- package/dist/components/ui/database/table-view.d.ts +11 -0
- package/dist/components/ui/database/table-view.d.ts.map +1 -0
- package/dist/components/ui/database/table-view.js +157 -0
- package/dist/components/ui/database/table-view.js.map +1 -0
- package/dist/components/ui/date-picker.d.ts +40 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +64 -0
- package/dist/components/ui/date-picker.js.map +1 -0
- package/dist/components/ui/date-time-picker.d.ts +21 -0
- package/dist/components/ui/date-time-picker.d.ts.map +1 -0
- package/dist/components/ui/date-time-picker.js +34 -0
- package/dist/components/ui/date-time-picker.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +21 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +63 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/document-layout.d.ts +15 -0
- package/dist/components/ui/document-layout.d.ts.map +1 -0
- package/dist/components/ui/document-layout.js +15 -0
- package/dist/components/ui/document-layout.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +24 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +65 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/editable-text.d.ts +24 -0
- package/dist/components/ui/editable-text.d.ts.map +1 -0
- package/dist/components/ui/editable-text.js +85 -0
- package/dist/components/ui/editable-text.js.map +1 -0
- package/dist/components/ui/empty-state.d.ts +11 -0
- package/dist/components/ui/empty-state.d.ts.map +1 -0
- package/dist/components/ui/empty-state.js +9 -0
- package/dist/components/ui/empty-state.js.map +1 -0
- package/dist/components/ui/error-state.d.ts +20 -0
- package/dist/components/ui/error-state.d.ts.map +1 -0
- package/dist/components/ui/error-state.js +17 -0
- package/dist/components/ui/error-state.js.map +1 -0
- package/dist/components/ui/field-button.d.ts +15 -0
- package/dist/components/ui/field-button.d.ts.map +1 -0
- package/dist/components/ui/field-button.js +18 -0
- package/dist/components/ui/field-button.js.map +1 -0
- package/dist/components/ui/file-preview.d.ts +5 -0
- package/dist/components/ui/file-preview.d.ts.map +1 -0
- package/dist/components/ui/file-preview.js +66 -0
- package/dist/components/ui/file-preview.js.map +1 -0
- package/dist/components/ui/file-uploader.d.ts +39 -0
- package/dist/components/ui/file-uploader.d.ts.map +1 -0
- package/dist/components/ui/file-uploader.js +111 -0
- package/dist/components/ui/file-uploader.js.map +1 -0
- package/dist/components/ui/filter-builder.d.ts +18 -0
- package/dist/components/ui/filter-builder.d.ts.map +1 -0
- package/dist/components/ui/filter-builder.js +98 -0
- package/dist/components/ui/filter-builder.js.map +1 -0
- package/dist/components/ui/focus-shell.d.ts +14 -0
- package/dist/components/ui/focus-shell.d.ts.map +1 -0
- package/dist/components/ui/focus-shell.js +13 -0
- package/dist/components/ui/focus-shell.js.map +1 -0
- package/dist/components/ui/handle-row.d.ts +25 -0
- package/dist/components/ui/handle-row.d.ts.map +1 -0
- package/dist/components/ui/handle-row.js +110 -0
- package/dist/components/ui/handle-row.js.map +1 -0
- package/dist/components/ui/header-bar.d.ts +5 -0
- package/dist/components/ui/header-bar.d.ts.map +1 -0
- package/dist/components/ui/header-bar.js +10 -0
- package/dist/components/ui/header-bar.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +13 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/image-block.d.ts +31 -0
- package/dist/components/ui/image-block.d.ts.map +1 -0
- package/dist/components/ui/image-block.js +103 -0
- package/dist/components/ui/image-block.js.map +1 -0
- package/dist/components/ui/image-card.d.ts +17 -0
- package/dist/components/ui/image-card.d.ts.map +1 -0
- package/dist/components/ui/image-card.js +39 -0
- package/dist/components/ui/image-card.js.map +1 -0
- package/dist/components/ui/image-framer.d.ts +24 -0
- package/dist/components/ui/image-framer.d.ts.map +1 -0
- package/dist/components/ui/image-framer.js +89 -0
- package/dist/components/ui/image-framer.js.map +1 -0
- package/dist/components/ui/image-viewer.d.ts +31 -0
- package/dist/components/ui/image-viewer.d.ts.map +1 -0
- package/dist/components/ui/image-viewer.js +114 -0
- package/dist/components/ui/image-viewer.js.map +1 -0
- package/dist/components/ui/image.d.ts +33 -0
- package/dist/components/ui/image.d.ts.map +1 -0
- package/dist/components/ui/image.js +61 -0
- package/dist/components/ui/image.js.map +1 -0
- package/dist/components/ui/index.d.ts +92 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +92 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/components/ui/input.d.ts +75 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +245 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/link-block.d.ts +13 -0
- package/dist/components/ui/link-block.d.ts.map +1 -0
- package/dist/components/ui/link-block.js +21 -0
- package/dist/components/ui/link-block.js.map +1 -0
- package/dist/components/ui/list-detail.d.ts +23 -0
- package/dist/components/ui/list-detail.d.ts.map +1 -0
- package/dist/components/ui/list-detail.js +33 -0
- package/dist/components/ui/list-detail.js.map +1 -0
- package/dist/components/ui/listbox.d.ts +7 -0
- package/dist/components/ui/listbox.d.ts.map +1 -0
- package/dist/components/ui/listbox.js +29 -0
- package/dist/components/ui/listbox.js.map +1 -0
- package/dist/components/ui/mac-card.d.ts +15 -0
- package/dist/components/ui/mac-card.d.ts.map +1 -0
- package/dist/components/ui/mac-card.js +9 -0
- package/dist/components/ui/mac-card.js.map +1 -0
- package/dist/components/ui/month-picker.d.ts +13 -0
- package/dist/components/ui/month-picker.d.ts.map +1 -0
- package/dist/components/ui/month-picker.js +53 -0
- package/dist/components/ui/month-picker.js.map +1 -0
- package/dist/components/ui/multi-select.d.ts +22 -0
- package/dist/components/ui/multi-select.d.ts.map +1 -0
- package/dist/components/ui/multi-select.js +88 -0
- package/dist/components/ui/multi-select.js.map +1 -0
- package/dist/components/ui/nav-tree.d.ts +16 -0
- package/dist/components/ui/nav-tree.d.ts.map +1 -0
- package/dist/components/ui/nav-tree.js +41 -0
- package/dist/components/ui/nav-tree.js.map +1 -0
- package/dist/components/ui/page.d.ts +23 -0
- package/dist/components/ui/page.d.ts.map +1 -0
- package/dist/components/ui/page.js +28 -0
- package/dist/components/ui/page.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +26 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +54 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/picker-panel.d.ts +13 -0
- package/dist/components/ui/picker-panel.d.ts.map +1 -0
- package/dist/components/ui/picker-panel.js +19 -0
- package/dist/components/ui/picker-panel.js.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +18 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +19 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +22 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/property.d.ts +11 -0
- package/dist/components/ui/property.d.ts.map +1 -0
- package/dist/components/ui/property.js +18 -0
- package/dist/components/ui/property.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +18 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/rating.d.ts +14 -0
- package/dist/components/ui/rating.d.ts.map +1 -0
- package/dist/components/ui/rating.js +61 -0
- package/dist/components/ui/rating.js.map +1 -0
- package/dist/components/ui/save-status.d.ts +8 -0
- package/dist/components/ui/save-status.d.ts.map +1 -0
- package/dist/components/ui/save-status.js +31 -0
- package/dist/components/ui/save-status.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +21 -0
- package/dist/components/ui/segmented.d.ts.map +1 -0
- package/dist/components/ui/segmented.js +12 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select-menu.d.ts +12 -0
- package/dist/components/ui/select-menu.d.ts.map +1 -0
- package/dist/components/ui/select-menu.js +10 -0
- package/dist/components/ui/select-menu.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +45 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/selection-bar.d.ts +12 -0
- package/dist/components/ui/selection-bar.d.ts.map +1 -0
- package/dist/components/ui/selection-bar.js +15 -0
- package/dist/components/ui/selection-bar.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +12 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/settings-layout.d.ts +34 -0
- package/dist/components/ui/settings-layout.d.ts.map +1 -0
- package/dist/components/ui/settings-layout.js +16 -0
- package/dist/components/ui/settings-layout.js.map +1 -0
- package/dist/components/ui/share-link.d.ts +14 -0
- package/dist/components/ui/share-link.d.ts.map +1 -0
- package/dist/components/ui/share-link.js +16 -0
- package/dist/components/ui/share-link.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +21 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +53 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +258 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +8 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +15 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +12 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +14 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/spotlight.d.ts +23 -0
- package/dist/components/ui/spotlight.d.ts.map +1 -0
- package/dist/components/ui/spotlight.js +110 -0
- package/dist/components/ui/spotlight.js.map +1 -0
- package/dist/components/ui/stat-tile.d.ts +8 -0
- package/dist/components/ui/stat-tile.d.ts.map +1 -0
- package/dist/components/ui/stat-tile.js +9 -0
- package/dist/components/ui/stat-tile.js.map +1 -0
- package/dist/components/ui/step-dialog.d.ts +20 -0
- package/dist/components/ui/step-dialog.d.ts.map +1 -0
- package/dist/components/ui/step-dialog.js +36 -0
- package/dist/components/ui/step-dialog.js.map +1 -0
- package/dist/components/ui/steps-layout.d.ts +20 -0
- package/dist/components/ui/steps-layout.d.ts.map +1 -0
- package/dist/components/ui/steps-layout.js +26 -0
- package/dist/components/ui/steps-layout.js.map +1 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +16 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +76 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +19 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/theme-toggle.d.ts +16 -0
- package/dist/components/ui/theme-toggle.d.ts.map +1 -0
- package/dist/components/ui/theme-toggle.js +65 -0
- package/dist/components/ui/theme-toggle.js.map +1 -0
- package/dist/components/ui/time-list.d.ts +16 -0
- package/dist/components/ui/time-list.d.ts.map +1 -0
- package/dist/components/ui/time-list.js +49 -0
- package/dist/components/ui/time-list.js.map +1 -0
- package/dist/components/ui/time-picker.d.ts +47 -0
- package/dist/components/ui/time-picker.d.ts.map +1 -0
- package/dist/components/ui/time-picker.js +141 -0
- package/dist/components/ui/time-picker.js.map +1 -0
- package/dist/components/ui/toast.d.ts +18 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +77 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +15 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +55 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +15 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +32 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/top-bar.d.ts +25 -0
- package/dist/components/ui/top-bar.d.ts.map +1 -0
- package/dist/components/ui/top-bar.js +23 -0
- package/dist/components/ui/top-bar.js.map +1 -0
- package/dist/components/ui/typography.d.ts +40 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/components/ui/typography.js +98 -0
- package/dist/components/ui/typography.js.map +1 -0
- package/dist/components/ui/video-block.d.ts +14 -0
- package/dist/components/ui/video-block.d.ts.map +1 -0
- package/dist/components/ui/video-block.js +22 -0
- package/dist/components/ui/video-block.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +5 -0
- package/dist/hooks/use-dismiss.d.ts.map +1 -0
- package/dist/hooks/use-dismiss.js +23 -0
- package/dist/hooks/use-dismiss.js.map +1 -0
- package/dist/hooks/use-escape-first.d.ts +3 -0
- package/dist/hooks/use-escape-first.d.ts.map +1 -0
- package/dist/hooks/use-escape-first.js +27 -0
- package/dist/hooks/use-escape-first.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +5 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +16 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-save-queue.d.ts +13 -0
- package/dist/hooks/use-save-queue.d.ts.map +1 -0
- package/dist/hooks/use-save-queue.js +57 -0
- package/dist/hooks/use-save-queue.js.map +1 -0
- package/dist/hooks/use-selection.d.ts +10 -0
- package/dist/hooks/use-selection.d.ts.map +1 -0
- package/dist/hooks/use-selection.js +52 -0
- package/dist/hooks/use-selection.js.map +1 -0
- package/dist/hooks/use-shared-transition.d.ts +3 -0
- package/dist/hooks/use-shared-transition.d.ts.map +1 -0
- package/dist/hooks/use-shared-transition.js +38 -0
- package/dist/hooks/use-shared-transition.js.map +1 -0
- package/dist/hooks/use-upload-queue.d.ts +22 -0
- package/dist/hooks/use-upload-queue.d.ts.map +1 -0
- package/dist/hooks/use-upload-queue.js +78 -0
- package/dist/hooks/use-upload-queue.js.map +1 -0
- package/dist/lib/accent.d.ts +5 -0
- package/dist/lib/accent.d.ts.map +1 -0
- package/dist/lib/accent.js +10 -0
- package/dist/lib/accent.js.map +1 -0
- package/dist/lib/bento.d.ts +17 -0
- package/dist/lib/bento.d.ts.map +1 -0
- package/dist/lib/bento.js +92 -0
- package/dist/lib/bento.js.map +1 -0
- package/dist/lib/database.d.ts +92 -0
- package/dist/lib/database.d.ts.map +1 -0
- package/dist/lib/database.js +272 -0
- package/dist/lib/database.js.map +1 -0
- package/dist/lib/dates.d.ts +30 -0
- package/dist/lib/dates.d.ts.map +1 -0
- package/dist/lib/dates.js +61 -0
- package/dist/lib/dates.js.map +1 -0
- package/dist/lib/document.d.ts +79 -0
- package/dist/lib/document.d.ts.map +1 -0
- package/dist/lib/document.js +11 -0
- package/dist/lib/document.js.map +1 -0
- package/dist/lib/embed.d.ts +14 -0
- package/dist/lib/embed.d.ts.map +1 -0
- package/dist/lib/embed.js +63 -0
- package/dist/lib/embed.js.map +1 -0
- package/dist/lib/files.d.ts +23 -0
- package/dist/lib/files.d.ts.map +1 -0
- package/dist/lib/files.js +69 -0
- package/dist/lib/files.js.map +1 -0
- package/dist/lib/justified.d.ts +50 -0
- package/dist/lib/justified.d.ts.map +1 -0
- package/dist/lib/justified.js +78 -0
- package/dist/lib/justified.js.map +1 -0
- package/dist/lib/keys.d.ts +18 -0
- package/dist/lib/keys.d.ts.map +1 -0
- package/dist/lib/keys.js +66 -0
- package/dist/lib/keys.js.map +1 -0
- package/dist/lib/number.d.ts +4 -0
- package/dist/lib/number.d.ts.map +1 -0
- package/dist/lib/number.js +33 -0
- package/dist/lib/number.js.map +1 -0
- package/dist/lib/pointer.d.ts +2 -0
- package/dist/lib/pointer.d.ts.map +1 -0
- package/dist/lib/pointer.js +4 -0
- package/dist/lib/pointer.js.map +1 -0
- package/dist/lib/prepare-image.d.ts +43 -0
- package/dist/lib/prepare-image.d.ts.map +1 -0
- package/dist/lib/prepare-image.js +105 -0
- package/dist/lib/prepare-image.js.map +1 -0
- package/dist/lib/rich-text-dom.d.ts +16 -0
- package/dist/lib/rich-text-dom.d.ts.map +1 -0
- package/dist/lib/rich-text-dom.js +145 -0
- package/dist/lib/rich-text-dom.js.map +1 -0
- package/dist/lib/rich-text.d.ts +15 -0
- package/dist/lib/rich-text.d.ts.map +1 -0
- package/dist/lib/rich-text.js +35 -0
- package/dist/lib/rich-text.js.map +1 -0
- package/dist/lib/spotlight.d.ts +22 -0
- package/dist/lib/spotlight.d.ts.map +1 -0
- package/dist/lib/spotlight.js +66 -0
- package/dist/lib/spotlight.js.map +1 -0
- package/dist/lib/theme.d.ts +6 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/theme.js +15 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/lib/time.d.ts +19 -0
- package/dist/lib/time.d.ts.map +1 -0
- package/dist/lib/time.js +91 -0
- package/dist/lib/time.js.map +1 -0
- package/dist/lib/tree.d.ts +17 -0
- package/dist/lib/tree.d.ts.map +1 -0
- package/dist/lib/tree.js +35 -0
- package/dist/lib/tree.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +24 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles/notion.css +817 -0
- package/package.json +129 -5
- package/src/components/editor/block-text.tsx +271 -0
- package/src/components/editor/blocks.tsx +373 -0
- package/src/components/editor/document-editor.tsx +106 -0
- package/src/components/editor/document-view.tsx +205 -0
- package/src/components/editor/editor-state.tsx +298 -0
- package/src/components/editor/extensions/kit-blocks.tsx +452 -0
- package/src/components/editor/extensions/spoiler.tsx +81 -0
- package/src/components/editor/index.ts +10 -0
- package/src/components/editor/kinds.ts +158 -0
- package/src/components/editor/look.tsx +36 -0
- package/src/components/sketch/rough.tsx +90 -0
- package/src/components/three/model-viewer.tsx +514 -0
- package/src/components/ui/accent-picker.tsx +72 -0
- package/src/components/ui/address-field.tsx +57 -0
- package/src/components/ui/alert-dialog.tsx +136 -0
- package/src/components/ui/animated-height.tsx +34 -0
- package/src/components/ui/app-shell.tsx +140 -0
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +81 -0
- package/src/components/ui/banner.tsx +53 -0
- package/src/components/ui/breadcrumbs.tsx +25 -0
- package/src/components/ui/button.tsx +147 -0
- package/src/components/ui/calendar.tsx +101 -0
- package/src/components/ui/callout.tsx +61 -0
- package/src/components/ui/card.tsx +59 -0
- package/src/components/ui/checkbox.tsx +66 -0
- package/src/components/ui/choice-label.tsx +43 -0
- package/src/components/ui/collapsible.tsx +58 -0
- package/src/components/ui/collection-layout.tsx +69 -0
- package/src/components/ui/combobox.tsx +155 -0
- package/src/components/ui/command-menu.tsx +102 -0
- package/src/components/ui/context-menu.tsx +89 -0
- package/src/components/ui/copy-button.tsx +80 -0
- package/src/components/ui/database/calendar-view.tsx +180 -0
- package/src/components/ui/database/card-views.tsx +221 -0
- package/src/components/ui/database/cells.tsx +237 -0
- package/src/components/ui/database/database.tsx +279 -0
- package/src/components/ui/database/icons.ts +15 -0
- package/src/components/ui/database/table-view.tsx +311 -0
- package/src/components/ui/date-picker.tsx +208 -0
- package/src/components/ui/date-time-picker.tsx +123 -0
- package/src/components/ui/dialog.tsx +151 -0
- package/src/components/ui/document-layout.tsx +52 -0
- package/src/components/ui/dropdown-menu.tsx +185 -0
- package/src/components/ui/editable-text.tsx +142 -0
- package/src/components/ui/empty-state.tsx +35 -0
- package/src/components/ui/error-state.tsx +67 -0
- package/src/components/ui/field-button.tsx +70 -0
- package/src/components/ui/file-preview.tsx +80 -0
- package/src/components/ui/file-uploader.tsx +375 -0
- package/src/components/ui/filter-builder.tsx +304 -0
- package/src/components/ui/focus-shell.tsx +48 -0
- package/src/components/ui/handle-row.tsx +252 -0
- package/src/components/ui/header-bar.tsx +15 -0
- package/src/components/ui/hover-card.tsx +30 -0
- package/src/components/ui/image-block.tsx +238 -0
- package/src/components/ui/image-card.tsx +95 -0
- package/src/components/ui/image-framer.tsx +160 -0
- package/src/components/ui/image-viewer.tsx +230 -0
- package/src/components/ui/image.tsx +200 -0
- package/src/components/ui/index.ts +178 -0
- package/src/components/ui/input.tsx +471 -0
- package/src/components/ui/link-block.tsx +85 -0
- package/src/components/ui/list-detail.tsx +115 -0
- package/src/components/ui/listbox.ts +26 -0
- package/src/components/ui/mac-card.tsx +46 -0
- package/src/components/ui/month-picker.tsx +119 -0
- package/src/components/ui/multi-select.tsx +221 -0
- package/src/components/ui/nav-tree.tsx +92 -0
- package/src/components/ui/page.tsx +73 -0
- package/src/components/ui/pagination.tsx +143 -0
- package/src/components/ui/picker-panel.tsx +69 -0
- package/src/components/ui/popover.tsx +42 -0
- package/src/components/ui/progress.tsx +76 -0
- package/src/components/ui/property.tsx +33 -0
- package/src/components/ui/radio-group.tsx +61 -0
- package/src/components/ui/rating.tsx +122 -0
- package/src/components/ui/save-status.tsx +53 -0
- package/src/components/ui/segmented.tsx +74 -0
- package/src/components/ui/select-menu.tsx +54 -0
- package/src/components/ui/select.tsx +147 -0
- package/src/components/ui/selection-bar.tsx +50 -0
- package/src/components/ui/separator.tsx +30 -0
- package/src/components/ui/settings-layout.tsx +117 -0
- package/src/components/ui/share-link.tsx +66 -0
- package/src/components/ui/sheet.tsx +90 -0
- package/src/components/ui/sidebar.tsx +627 -0
- package/src/components/ui/skeleton.tsx +22 -0
- package/src/components/ui/spinner.tsx +28 -0
- package/src/components/ui/spotlight.tsx +222 -0
- package/src/components/ui/stat-tile.tsx +25 -0
- package/src/components/ui/step-dialog.tsx +104 -0
- package/src/components/ui/steps-layout.tsx +91 -0
- package/src/components/ui/switch.tsx +55 -0
- package/src/components/ui/table.tsx +99 -0
- package/src/components/ui/tabs.tsx +41 -0
- package/src/components/ui/theme-toggle.tsx +80 -0
- package/src/components/ui/time-list.tsx +106 -0
- package/src/components/ui/time-picker.tsx +344 -0
- package/src/components/ui/toast.tsx +132 -0
- package/src/components/ui/toggle.tsx +76 -0
- package/src/components/ui/tooltip.tsx +78 -0
- package/src/components/ui/top-bar.tsx +118 -0
- package/src/components/ui/typography.tsx +204 -0
- package/src/components/ui/video-block.tsx +66 -0
- package/src/hooks/use-dismiss.ts +24 -0
- package/src/hooks/use-escape-first.ts +25 -0
- package/src/hooks/use-media-query.ts +23 -0
- package/src/hooks/use-save-queue.ts +78 -0
- package/src/hooks/use-selection.ts +51 -0
- package/src/hooks/use-shared-transition.ts +40 -0
- package/src/hooks/use-upload-queue.ts +111 -0
- package/src/lib/accent.ts +11 -0
- package/src/lib/bento.ts +87 -0
- package/src/lib/database.ts +322 -0
- package/src/lib/dates.ts +75 -0
- package/src/lib/document.ts +55 -0
- package/src/lib/embed.ts +62 -0
- package/src/lib/files.ts +73 -0
- package/src/lib/justified.ts +106 -0
- package/src/lib/keys.ts +72 -0
- package/src/lib/number.ts +29 -0
- package/src/lib/pointer.ts +3 -0
- package/src/lib/prepare-image.ts +141 -0
- package/src/lib/rich-text-dom.ts +138 -0
- package/src/lib/rich-text.ts +50 -0
- package/src/lib/spotlight.ts +78 -0
- package/src/lib/theme.ts +18 -0
- package/src/lib/time.ts +83 -0
- package/src/lib/tree.ts +41 -0
- package/src/lib/utils.ts +25 -0
- package/src/styles/notion.css +817 -0
|
@@ -0,0 +1,817 @@
|
|
|
1
|
+
/* The kit's stylesheet. An app imports Tailwind first, then this:
|
|
2
|
+
|
|
3
|
+
@import "tailwindcss";
|
|
4
|
+
@import "@kujoforall/paper-ui/styles.css";
|
|
5
|
+
|
|
6
|
+
It does not import Tailwind itself, so an app never gets two copies.
|
|
7
|
+
@source points Tailwind at the kit's own files, here and in the published
|
|
8
|
+
package alike, so the classes the components use are generated without the
|
|
9
|
+
app having to know where the kit lives. */
|
|
10
|
+
@source "..";
|
|
11
|
+
|
|
12
|
+
/* Class-based dark mode (Tailwind v4 needs this declared explicitly). */
|
|
13
|
+
@custom-variant dark (&:is(.dark *));
|
|
14
|
+
|
|
15
|
+
/* ══════════════════════════════════════════════════════════════════════
|
|
16
|
+
1. SOURCE OF TRUTH
|
|
17
|
+
Every value in the system lives here. Change these 40 lines and the
|
|
18
|
+
entire component set re-skins. Nothing below hardcodes a colour.
|
|
19
|
+
|
|
20
|
+
The governing rule: ONE INK, MANY ALPHAS. Secondary text, borders,
|
|
21
|
+
hover tints and dividers are all the same warm near-black at
|
|
22
|
+
different opacities — never separate greys. That is why nothing in
|
|
23
|
+
a Notion UI ever clashes.
|
|
24
|
+
══════════════════════════════════════════════════════════════════════ */
|
|
25
|
+
|
|
26
|
+
:root {
|
|
27
|
+
color-scheme: light;
|
|
28
|
+
|
|
29
|
+
/* ── Surfaces ─────────────────────────────────────────────────── */
|
|
30
|
+
/* Each surface is its neutral with a wash of the accent mixed in. The
|
|
31
|
+
wash is nothing until a colour theme is chosen (data-accent on <html>,
|
|
32
|
+
below), so the default is the plain paper in the comments. A chosen
|
|
33
|
+
theme tints the page, the sidebar and the menus together. */
|
|
34
|
+
--wash: 0%;
|
|
35
|
+
--surface: color-mix(in oklab, var(--accent) var(--wash), #ffffff);
|
|
36
|
+
--surface-sunken: color-mix(in oklab, var(--accent) calc(var(--wash) * 2.2), #f7f6f3); /* warm, not grey — sidebars, wells */
|
|
37
|
+
--surface-raised: color-mix(in oklab, var(--accent) calc(var(--wash) * 0.5), #ffffff); /* cards sitting on sunken */
|
|
38
|
+
--surface-overlay: color-mix(in oklab, var(--accent) calc(var(--wash) * 0.5), #ffffff); /* menus, dialogs */
|
|
39
|
+
|
|
40
|
+
/* ── Ink: #37352f, a warm brown-black. Never pure #000. ───────── */
|
|
41
|
+
--ink: #37352f;
|
|
42
|
+
--ink-secondary: rgb(55 53 47 / 0.65);
|
|
43
|
+
--ink-tertiary: rgb(55 53 47 / 0.5);
|
|
44
|
+
--ink-disabled: rgb(55 53 47 / 0.35);
|
|
45
|
+
/* A placeholder sits on a field's tinted well, which costs it contrast; at 72%
|
|
46
|
+
it still reads at 4.5:1 there. */
|
|
47
|
+
--ink-placeholder: rgb(55 53 47 / 0.72);
|
|
48
|
+
--ink-inverse: #ffffff;
|
|
49
|
+
|
|
50
|
+
/* ── Lines & tints, derived from the same ink ─────────────────── */
|
|
51
|
+
--hairline: rgb(55 53 47 / 0.09); /* dividers whisper */
|
|
52
|
+
--hairline-strong: rgb(55 53 47 / 0.16); /* input borders */
|
|
53
|
+
/* The edge that is a control's state: an empty checkbox or radio, an off
|
|
54
|
+
switch, Segmented's chosen option. 3:1 or better on every surface (WCAG
|
|
55
|
+
1.4.11), unlike a hairline. */
|
|
56
|
+
--control-edge: rgb(55 53 47 / 0.58);
|
|
57
|
+
--tint-hover: rgb(55 53 47 / 0.055); /* hover is a TINT, */
|
|
58
|
+
--tint-active: rgb(55 53 47 / 0.08); /* never a border */
|
|
59
|
+
|
|
60
|
+
/* ── Accent: used only for interactive affordance ─────────────── */
|
|
61
|
+
/* One colour per accent theme; the rest are mixed from it, so adding a theme
|
|
62
|
+
is one line here and one in `.dark`. */
|
|
63
|
+
--accent: #2383e2;
|
|
64
|
+
/* Where text or an icon sits on the accent (a primary button, a checked box,
|
|
65
|
+
a chosen day), the fill is a little deeper than the accent, so white on it
|
|
66
|
+
passes WCAG AA (4.5:1) in every colour theme. Hover and pressed go deeper. */
|
|
67
|
+
--accent-solid: color-mix(in oklab, var(--accent) 86%, black);
|
|
68
|
+
--accent-solid-hover: color-mix(in oklab, var(--accent) 78%, black);
|
|
69
|
+
--accent-solid-active: color-mix(in oklab, var(--accent) 72%, black);
|
|
70
|
+
--accent-tint: color-mix(in srgb, var(--accent) 11%, transparent);
|
|
71
|
+
--accent-ink: #ffffff;
|
|
72
|
+
/* Accent for words: pulled toward the ink so it reads as text, not as a link. */
|
|
73
|
+
--accent-text: color-mix(in oklab, var(--accent) 78%, #37352f);
|
|
74
|
+
|
|
75
|
+
--danger: #c13937;
|
|
76
|
+
--danger-solid: color-mix(in oklab, var(--danger) 94%, black);
|
|
77
|
+
--danger-solid-hover: color-mix(in oklab, var(--danger) 86%, black);
|
|
78
|
+
--danger-solid-active: color-mix(in oklab, var(--danger) 80%, black);
|
|
79
|
+
--danger-tint: rgb(193 57 55 / 0.1);
|
|
80
|
+
|
|
81
|
+
--danger-ink: #ffffff;
|
|
82
|
+
|
|
83
|
+
/* ── Status: the nine's own colours under the names a message uses. No new
|
|
84
|
+
hues: success is the green tag, warning the yellow, info the blue.
|
|
85
|
+
Danger keeps its own tokens above (it is the red tag's ink). ───── */
|
|
86
|
+
--success: var(--tag-green-ink);
|
|
87
|
+
--success-tint: var(--tag-green-bg);
|
|
88
|
+
--warning: var(--tag-yellow-ink);
|
|
89
|
+
--warning-tint: var(--tag-yellow-bg);
|
|
90
|
+
--info: var(--tag-blue-ink);
|
|
91
|
+
--info-tint: var(--tag-blue-bg);
|
|
92
|
+
|
|
93
|
+
/* The keyboard's focus: the full accent, drawn 2px clear of the control, so it
|
|
94
|
+
reads at 3:1 or better on the page and around a filled button alike. */
|
|
95
|
+
--focus-ring: var(--accent);
|
|
96
|
+
|
|
97
|
+
/* ── Scrim: what lies over the page behind a dialog or a drawer. ── */
|
|
98
|
+
--scrim: rgb(15 15 15 / 0.32);
|
|
99
|
+
|
|
100
|
+
/* ── On media: controls and labels laid over a picture. A picture can be
|
|
101
|
+
any colour, so these are the same in both themes: white on a dark
|
|
102
|
+
disc, with a light edge where a shape must read on dark pictures. ── */
|
|
103
|
+
--on-media-faint: rgb(0 0 0 / 0.25); /* a track, a resting disc */
|
|
104
|
+
--on-media: rgb(0 0 0 / 0.4); /* a button's disc */
|
|
105
|
+
--on-media-strong: rgb(0 0 0 / 0.6); /* hovered, or behind words */
|
|
106
|
+
--on-media-ink: #ffffff;
|
|
107
|
+
--on-media-edge: rgb(255 255 255 / 0.7);
|
|
108
|
+
|
|
109
|
+
/* ── Layers: what stacks over what. Inside a component, small local
|
|
110
|
+
z-indexes are fine; across the page, use these. Overlays (dialogs,
|
|
111
|
+
menus, popovers, drawers) share one layer and stack by the order
|
|
112
|
+
they open, so a menu opened in a dialog lands above it. ───────── */
|
|
113
|
+
--z-raised: 10; /* the sidebar column, floating page parts */
|
|
114
|
+
--z-sticky: 20; /* a top bar, a table header */
|
|
115
|
+
--z-overlay: 50; /* dialogs, drawers, menus, popovers */
|
|
116
|
+
--z-toast: 60;
|
|
117
|
+
--z-tooltip: 70;
|
|
118
|
+
|
|
119
|
+
/* ── Speeds. Instant for a hover tint, fast for a control's change,
|
|
120
|
+
base for something that moves, slow for something that changes
|
|
121
|
+
size. Nothing in the kit is slower than slow, except a picture's own
|
|
122
|
+
reveal (below). ─────────────────── */
|
|
123
|
+
--duration-instant: 75ms;
|
|
124
|
+
--duration-fast: 100ms;
|
|
125
|
+
--duration-base: 150ms;
|
|
126
|
+
--duration-slow: 200ms;
|
|
127
|
+
/* A picture arriving: it sharpens out of its blur. The one thing past 200ms,
|
|
128
|
+
because a blur clearing faster reads as a flicker, not a picture coming in. */
|
|
129
|
+
--duration-reveal: 400ms;
|
|
130
|
+
|
|
131
|
+
/* ── The sidebar's widths (SidebarProvider can override them). ──── */
|
|
132
|
+
--sidebar-width: 15rem;
|
|
133
|
+
--sidebar-width-icon: 3rem;
|
|
134
|
+
|
|
135
|
+
/* ── Layered shadows ──────────────────────────────────────────────
|
|
136
|
+
The 1px ambient ring in slot one is the whole trick. It keeps a
|
|
137
|
+
white popover crisp against a white page; without it, soft
|
|
138
|
+
shadows alone read as mush. */
|
|
139
|
+
--shadow-xs: 0 0 0 1px rgb(15 15 15 / 0.05);
|
|
140
|
+
--shadow-sm:
|
|
141
|
+
0 0 0 1px rgb(15 15 15 / 0.05), 0 1px 2px rgb(15 15 15 / 0.07);
|
|
142
|
+
--shadow-md:
|
|
143
|
+
0 0 0 1px rgb(15 15 15 / 0.05), 0 2px 4px rgb(15 15 15 / 0.06),
|
|
144
|
+
0 4px 8px rgb(15 15 15 / 0.06);
|
|
145
|
+
--shadow-popover:
|
|
146
|
+
0 0 0 1px rgb(15 15 15 / 0.05), 0 3px 6px rgb(15 15 15 / 0.1),
|
|
147
|
+
0 9px 24px rgb(15 15 15 / 0.2);
|
|
148
|
+
--shadow-dialog:
|
|
149
|
+
0 0 0 1px rgb(15 15 15 / 0.05), 0 8px 16px rgb(15 15 15 / 0.12),
|
|
150
|
+
0 24px 48px rgb(15 15 15 / 0.22);
|
|
151
|
+
--shadow-inset: inset 0 0 0 1px rgb(55 53 47 / 0.16);
|
|
152
|
+
|
|
153
|
+
/* ── The nine. Desaturated on purpose: twenty tags on one page
|
|
154
|
+
must not fight each other. Each is a bg + a same-hue ink.
|
|
155
|
+
The grounds are Notion's; the inks are Notion's with their
|
|
156
|
+
lightness moved (hue and chroma kept) until each reads at
|
|
157
|
+
4.5:1 on its own ground, light and dark (2026-12-05). ── */
|
|
158
|
+
--tag-gray-bg: #f1f1ef;
|
|
159
|
+
--tag-gray-ink: #6c6b68;
|
|
160
|
+
--tag-brown-bg: #f4eeee;
|
|
161
|
+
--tag-brown-ink: #925f48;
|
|
162
|
+
--tag-orange-bg: #fbecdd;
|
|
163
|
+
--tag-orange-ink: #b04e00;
|
|
164
|
+
--tag-yellow-bg: #fbf3db;
|
|
165
|
+
--tag-yellow-ink: #996200;
|
|
166
|
+
--tag-green-bg: #edf3ec;
|
|
167
|
+
--tag-green-ink: #397957;
|
|
168
|
+
--tag-blue-bg: #e7f3f8;
|
|
169
|
+
--tag-blue-ink: #25729c;
|
|
170
|
+
--tag-purple-bg: #f6f3f9;
|
|
171
|
+
--tag-purple-ink: #875ca6;
|
|
172
|
+
--tag-pink-bg: #faf1f5;
|
|
173
|
+
--tag-pink-ink: #b74381;
|
|
174
|
+
--tag-red-bg: #fdebec;
|
|
175
|
+
--tag-red-ink: #c13937;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.dark {
|
|
179
|
+
color-scheme: dark;
|
|
180
|
+
|
|
181
|
+
--surface: color-mix(in oklab, var(--accent) var(--wash), #191919);
|
|
182
|
+
--surface-sunken: color-mix(in oklab, var(--accent) calc(var(--wash) * 1.6), #202020);
|
|
183
|
+
--surface-raised: color-mix(in oklab, var(--accent) calc(var(--wash) * 1.6), #202020);
|
|
184
|
+
--surface-overlay: color-mix(in oklab, var(--accent) calc(var(--wash) * 1.6), #252525);
|
|
185
|
+
|
|
186
|
+
/* Dark-mode ink is white at 81% — pure white vibrates on dark. */
|
|
187
|
+
--ink: rgb(255 255 255 / 0.81);
|
|
188
|
+
--ink-secondary: rgb(255 255 255 / 0.56);
|
|
189
|
+
--ink-tertiary: rgb(255 255 255 / 0.42);
|
|
190
|
+
--ink-disabled: rgb(255 255 255 / 0.28);
|
|
191
|
+
--ink-placeholder: rgb(255 255 255 / 0.56);
|
|
192
|
+
--ink-inverse: #191919;
|
|
193
|
+
|
|
194
|
+
--hairline: rgb(255 255 255 / 0.094);
|
|
195
|
+
--hairline-strong: rgb(255 255 255 / 0.16);
|
|
196
|
+
--control-edge: rgb(255 255 255 / 0.42);
|
|
197
|
+
--tint-hover: rgb(255 255 255 / 0.055);
|
|
198
|
+
--tint-active: rgb(255 255 255 / 0.09);
|
|
199
|
+
|
|
200
|
+
--accent: #2383e2;
|
|
201
|
+
--accent-solid: color-mix(in oklab, var(--accent) 86%, black);
|
|
202
|
+
--accent-solid-hover: color-mix(in oklab, var(--accent) 78%, black);
|
|
203
|
+
--accent-solid-active: color-mix(in oklab, var(--accent) 72%, black);
|
|
204
|
+
--accent-tint: color-mix(in srgb, var(--accent) 18%, transparent);
|
|
205
|
+
--accent-ink: #ffffff;
|
|
206
|
+
--accent-text: color-mix(in oklab, var(--accent) 62%, white);
|
|
207
|
+
|
|
208
|
+
--danger: #ff7369;
|
|
209
|
+
/* Dark's danger is bright, for words; a fill under white text goes much deeper. */
|
|
210
|
+
--danger-solid: color-mix(in oklab, var(--danger) 78%, black);
|
|
211
|
+
--danger-solid-hover: color-mix(in oklab, var(--danger) 70%, black);
|
|
212
|
+
--danger-solid-active: color-mix(in oklab, var(--danger) 64%, black);
|
|
213
|
+
--danger-tint: rgb(255 115 105 / 0.14);
|
|
214
|
+
|
|
215
|
+
--focus-ring: var(--accent);
|
|
216
|
+
|
|
217
|
+
/* A dark page needs a darker scrim for the dialog to stand off it. */
|
|
218
|
+
--scrim: rgb(0 0 0 / 0.55);
|
|
219
|
+
|
|
220
|
+
/* Dark needs a lighter ring and a heavier drop: on a dark canvas
|
|
221
|
+
the ring does the separating and the blur does the lifting. */
|
|
222
|
+
--shadow-xs: 0 0 0 1px rgb(255 255 255 / 0.07);
|
|
223
|
+
--shadow-sm:
|
|
224
|
+
0 0 0 1px rgb(255 255 255 / 0.07), 0 1px 2px rgb(0 0 0 / 0.3);
|
|
225
|
+
--shadow-md:
|
|
226
|
+
0 0 0 1px rgb(255 255 255 / 0.07), 0 2px 4px rgb(0 0 0 / 0.3),
|
|
227
|
+
0 4px 8px rgb(0 0 0 / 0.26);
|
|
228
|
+
--shadow-popover:
|
|
229
|
+
0 0 0 1px rgb(255 255 255 / 0.07), 0 3px 6px rgb(0 0 0 / 0.36),
|
|
230
|
+
0 9px 24px rgb(0 0 0 / 0.44);
|
|
231
|
+
--shadow-dialog:
|
|
232
|
+
0 0 0 1px rgb(255 255 255 / 0.07), 0 8px 16px rgb(0 0 0 / 0.4),
|
|
233
|
+
0 24px 48px rgb(0 0 0 / 0.5);
|
|
234
|
+
--shadow-inset: inset 0 0 0 1px rgb(255 255 255 / 0.16);
|
|
235
|
+
|
|
236
|
+
--tag-gray-bg: #2f2f2f;
|
|
237
|
+
--tag-gray-ink: #9b9b9b;
|
|
238
|
+
--tag-brown-bg: #4a3228;
|
|
239
|
+
--tag-brown-ink: #cc967f;
|
|
240
|
+
--tag-orange-bg: #5c3b23;
|
|
241
|
+
--tag-orange-ink: #ec9f6a;
|
|
242
|
+
--tag-yellow-bg: #564328;
|
|
243
|
+
--tag-yellow-ink: #e1ae60;
|
|
244
|
+
--tag-green-bg: #243d30;
|
|
245
|
+
--tag-green-ink: #66b285;
|
|
246
|
+
--tag-blue-bg: #143a4e;
|
|
247
|
+
--tag-blue-ink: #77a1e5;
|
|
248
|
+
--tag-purple-bg: #3c2d49;
|
|
249
|
+
--tag-purple-ink: #bb85f3;
|
|
250
|
+
--tag-pink-bg: #4e2c3c;
|
|
251
|
+
--tag-pink-ink: #f477b5;
|
|
252
|
+
--tag-red-bg: #522e2a;
|
|
253
|
+
--tag-red-ink: #ff796f;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* ── Accent themes. Chosen in the sidebar, set as data-accent on <html>. The hues
|
|
257
|
+
are the tag inks, so an accent never clashes with a badge beside it. ──────── */
|
|
258
|
+
/* A chosen theme also washes every surface with its colour: the background
|
|
259
|
+
matches the accent. Stronger in dark, where the same share of colour reads
|
|
260
|
+
as less. With no data-accent the page is plain paper with the blue accent.
|
|
261
|
+
Mind that in dark mode surface-raised and surface-sunken are one colour:
|
|
262
|
+
draw one on the other and it vanishes; use a tint instead. */
|
|
263
|
+
[data-accent] { --wash: 5%; }
|
|
264
|
+
.dark[data-accent] { --wash: 9%; }
|
|
265
|
+
[data-accent="blue"] { --accent: #2383e2; }
|
|
266
|
+
[data-accent="green"] { --accent: #448361; }
|
|
267
|
+
[data-accent="purple"] { --accent: #9065b0; }
|
|
268
|
+
[data-accent="pink"] { --accent: #c14c8a; }
|
|
269
|
+
[data-accent="orange"] { --accent: #d9730d; }
|
|
270
|
+
[data-accent="red"] { --accent: #d44c47; }
|
|
271
|
+
[data-accent="brown"] { --accent: #9f6b53; }
|
|
272
|
+
.dark[data-accent="green"] { --accent: #529e72; }
|
|
273
|
+
.dark[data-accent="purple"] { --accent: #9d68d3; }
|
|
274
|
+
.dark[data-accent="pink"] { --accent: #d15796; }
|
|
275
|
+
.dark[data-accent="orange"] { --accent: #c77d48; }
|
|
276
|
+
.dark[data-accent="red"] { --accent: #e5645b; }
|
|
277
|
+
.dark[data-accent="brown"] { --accent: #ba856f; }
|
|
278
|
+
|
|
279
|
+
/* ══════════════════════════════════════════════════════════════════════
|
|
280
|
+
2. TAILWIND THEME
|
|
281
|
+
`inline` makes utilities emit var() references, so one class works in
|
|
282
|
+
both themes. Everything above becomes bg-surface, text-ink-secondary,
|
|
283
|
+
border-hairline, shadow-popover, bg-tag-blue-bg …
|
|
284
|
+
══════════════════════════════════════════════════════════════════════ */
|
|
285
|
+
|
|
286
|
+
@theme inline {
|
|
287
|
+
--color-surface: var(--surface);
|
|
288
|
+
--color-surface-sunken: var(--surface-sunken);
|
|
289
|
+
--color-surface-raised: var(--surface-raised);
|
|
290
|
+
--color-surface-overlay: var(--surface-overlay);
|
|
291
|
+
|
|
292
|
+
--color-ink: var(--ink);
|
|
293
|
+
--color-ink-secondary: var(--ink-secondary);
|
|
294
|
+
--color-ink-tertiary: var(--ink-tertiary);
|
|
295
|
+
--color-ink-disabled: var(--ink-disabled);
|
|
296
|
+
--color-ink-placeholder: var(--ink-placeholder);
|
|
297
|
+
--color-ink-inverse: var(--ink-inverse);
|
|
298
|
+
|
|
299
|
+
--color-hairline: var(--hairline);
|
|
300
|
+
--color-hairline-strong: var(--hairline-strong);
|
|
301
|
+
--color-control-edge: var(--control-edge);
|
|
302
|
+
--color-tint-hover: var(--tint-hover);
|
|
303
|
+
--color-tint-active: var(--tint-active);
|
|
304
|
+
|
|
305
|
+
--color-accent: var(--accent);
|
|
306
|
+
--color-accent-solid: var(--accent-solid);
|
|
307
|
+
--color-accent-solid-hover: var(--accent-solid-hover);
|
|
308
|
+
--color-accent-solid-active: var(--accent-solid-active);
|
|
309
|
+
--color-accent-tint: var(--accent-tint);
|
|
310
|
+
--color-accent-ink: var(--accent-ink);
|
|
311
|
+
--color-accent-text: var(--accent-text);
|
|
312
|
+
--color-danger: var(--danger);
|
|
313
|
+
--color-danger-solid: var(--danger-solid);
|
|
314
|
+
--color-danger-solid-hover: var(--danger-solid-hover);
|
|
315
|
+
--color-danger-solid-active: var(--danger-solid-active);
|
|
316
|
+
--color-danger-tint: var(--danger-tint);
|
|
317
|
+
--color-danger-ink: var(--danger-ink);
|
|
318
|
+
--color-success: var(--success);
|
|
319
|
+
--color-success-tint: var(--success-tint);
|
|
320
|
+
--color-warning: var(--warning);
|
|
321
|
+
--color-warning-tint: var(--warning-tint);
|
|
322
|
+
--color-info: var(--info);
|
|
323
|
+
--color-info-tint: var(--info-tint);
|
|
324
|
+
|
|
325
|
+
--color-scrim: var(--scrim);
|
|
326
|
+
--color-on-media-faint: var(--on-media-faint);
|
|
327
|
+
--color-on-media: var(--on-media);
|
|
328
|
+
--color-on-media-strong: var(--on-media-strong);
|
|
329
|
+
--color-on-media-ink: var(--on-media-ink);
|
|
330
|
+
--color-on-media-edge: var(--on-media-edge);
|
|
331
|
+
|
|
332
|
+
--color-tag-gray-bg: var(--tag-gray-bg);
|
|
333
|
+
--color-tag-gray-ink: var(--tag-gray-ink);
|
|
334
|
+
--color-tag-brown-bg: var(--tag-brown-bg);
|
|
335
|
+
--color-tag-brown-ink: var(--tag-brown-ink);
|
|
336
|
+
--color-tag-orange-bg: var(--tag-orange-bg);
|
|
337
|
+
--color-tag-orange-ink: var(--tag-orange-ink);
|
|
338
|
+
--color-tag-yellow-bg: var(--tag-yellow-bg);
|
|
339
|
+
--color-tag-yellow-ink: var(--tag-yellow-ink);
|
|
340
|
+
--color-tag-green-bg: var(--tag-green-bg);
|
|
341
|
+
--color-tag-green-ink: var(--tag-green-ink);
|
|
342
|
+
--color-tag-blue-bg: var(--tag-blue-bg);
|
|
343
|
+
--color-tag-blue-ink: var(--tag-blue-ink);
|
|
344
|
+
--color-tag-purple-bg: var(--tag-purple-bg);
|
|
345
|
+
--color-tag-purple-ink: var(--tag-purple-ink);
|
|
346
|
+
--color-tag-pink-bg: var(--tag-pink-bg);
|
|
347
|
+
--color-tag-pink-ink: var(--tag-pink-ink);
|
|
348
|
+
--color-tag-red-bg: var(--tag-red-bg);
|
|
349
|
+
--color-tag-red-ink: var(--tag-red-ink);
|
|
350
|
+
|
|
351
|
+
--shadow-xs: var(--shadow-xs);
|
|
352
|
+
--shadow-sm: var(--shadow-sm);
|
|
353
|
+
--shadow-md: var(--shadow-md);
|
|
354
|
+
--shadow-popover: var(--shadow-popover);
|
|
355
|
+
--shadow-dialog: var(--shadow-dialog);
|
|
356
|
+
/* A hairline drawn as a shadow, so it takes no room: all round, or one side
|
|
357
|
+
(a header's foot, a column's edge). */
|
|
358
|
+
--shadow-edge: inset 0 0 0 1px var(--hairline);
|
|
359
|
+
--shadow-edge-t: inset 0 1px 0 var(--hairline);
|
|
360
|
+
--shadow-edge-b: inset 0 -1px 0 var(--hairline);
|
|
361
|
+
--shadow-edge-l: inset 1px 0 0 var(--hairline);
|
|
362
|
+
--shadow-edge-r: inset -1px 0 0 var(--hairline);
|
|
363
|
+
--inset-shadow-field: var(--shadow-inset);
|
|
364
|
+
|
|
365
|
+
/* ── Families: a system stack, so text renders native everywhere
|
|
366
|
+
and ships zero webfont bytes. Serif + mono are first-class,
|
|
367
|
+
exactly as Notion treats its three document fonts. ────────── */
|
|
368
|
+
--font-sans:
|
|
369
|
+
ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
|
|
370
|
+
"Apple Color Emoji", Arial, sans-serif;
|
|
371
|
+
--font-serif: Lyon-Text, Georgia, ui-serif, "Times New Roman", serif;
|
|
372
|
+
/* Handwriting, for sketches only. Load Caveat yourself (next/font sets
|
|
373
|
+
--font-caveat; a <link> works too) or the fallbacks apply. */
|
|
374
|
+
--font-hand: var(--font-caveat, "Caveat"), "Comic Sans MS", "Chalkboard SE", cursive;
|
|
375
|
+
--font-mono:
|
|
376
|
+
ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
|
377
|
+
"Liberation Mono", monospace;
|
|
378
|
+
|
|
379
|
+
/* ── Type scale. The negative tracking on large sizes is what
|
|
380
|
+
separates "designed" from "default browser". Headings sit
|
|
381
|
+
at 1.3; body opens up to 1.5 for long-form reading. ──────── */
|
|
382
|
+
/* A page's name: the largest thing on it, tight enough to read as one
|
|
383
|
+
shape, and scaled to the room the page has (cqi: the width of the nearest
|
|
384
|
+
container, which is the page beside a sidebar, or the window where there
|
|
385
|
+
is none). 40px at a 400px page, 60px from a 1000px one. */
|
|
386
|
+
--text-display: clamp(2.5rem, 1.667rem + 3.333cqi, 3.75rem);
|
|
387
|
+
--text-display--line-height: 1.05;
|
|
388
|
+
--text-display--letter-spacing: -0.035em;
|
|
389
|
+
--text-display--font-weight: 700;
|
|
390
|
+
|
|
391
|
+
--text-title: 2.5rem;
|
|
392
|
+
--text-title--line-height: 1.2;
|
|
393
|
+
--text-title--letter-spacing: -0.022em;
|
|
394
|
+
--text-title--font-weight: 700;
|
|
395
|
+
|
|
396
|
+
--text-h1: 1.875rem;
|
|
397
|
+
--text-h1--line-height: 1.3;
|
|
398
|
+
--text-h1--letter-spacing: -0.018em;
|
|
399
|
+
--text-h1--font-weight: 600;
|
|
400
|
+
|
|
401
|
+
--text-h2: 1.5rem;
|
|
402
|
+
--text-h2--line-height: 1.3;
|
|
403
|
+
--text-h2--letter-spacing: -0.014em;
|
|
404
|
+
--text-h2--font-weight: 600;
|
|
405
|
+
|
|
406
|
+
--text-h3: 1.25rem;
|
|
407
|
+
--text-h3--line-height: 1.3;
|
|
408
|
+
--text-h3--letter-spacing: -0.01em;
|
|
409
|
+
--text-h3--font-weight: 600;
|
|
410
|
+
|
|
411
|
+
--text-body: 1rem;
|
|
412
|
+
--text-body--line-height: 1.5;
|
|
413
|
+
--text-body--letter-spacing: -0.003em;
|
|
414
|
+
|
|
415
|
+
/* A page's opening line, a pulled quote: a step above body. */
|
|
416
|
+
--text-lead: 1.125rem;
|
|
417
|
+
--text-lead--line-height: 1.5;
|
|
418
|
+
--text-lead--letter-spacing: -0.006em;
|
|
419
|
+
|
|
420
|
+
--text-sm: 0.875rem;
|
|
421
|
+
--text-sm--line-height: 1.5;
|
|
422
|
+
|
|
423
|
+
--text-caption: 0.75rem;
|
|
424
|
+
--text-caption--line-height: 1.4;
|
|
425
|
+
|
|
426
|
+
/* The smallest: a small badge, a count, a keyboard key. Never for a sentence. */
|
|
427
|
+
--text-micro: 0.6875rem;
|
|
428
|
+
--text-micro--line-height: 1.3;
|
|
429
|
+
|
|
430
|
+
/* Paragraphs meant to be read at length: prose, callouts, documents. */
|
|
431
|
+
--leading-prose: 1.6;
|
|
432
|
+
|
|
433
|
+
/* ── Radii: small and restrained. Notion never goes pill, except for
|
|
434
|
+
round things (avatars, dots, a picture's buttons): rounded-full. ── */
|
|
435
|
+
--radius-small: 0.1875rem; /* 3px: a checkbox, a badge, a row's own button */
|
|
436
|
+
--radius-control: 0.25rem; /* 4px: buttons, fields, menu rows */
|
|
437
|
+
--radius-surface: 0.5rem; /* 8px: cards, wells, pictures */
|
|
438
|
+
--radius-overlay: 0.625rem; /* 10px: menus, popovers, dialogs */
|
|
439
|
+
|
|
440
|
+
/* ── Control heights: every button, field and menu row is one of three. ── */
|
|
441
|
+
--spacing-control-sm: 1.75rem; /* 28px */
|
|
442
|
+
--spacing-control-md: 2rem; /* 32px */
|
|
443
|
+
--spacing-control-lg: 2.5rem; /* 40px */
|
|
444
|
+
|
|
445
|
+
/* ── Content measure: a hard reading column regardless of
|
|
446
|
+
viewport. Long lines are the #1 killer of "clean". ───────── */
|
|
447
|
+
--spacing-measure: 44rem; /* ~708px, Notion's page width */
|
|
448
|
+
|
|
449
|
+
/* ── Page widths (max-w-reading, max-w-wide; Page's `width`). ───── */
|
|
450
|
+
--container-measure: 44rem;
|
|
451
|
+
--container-reading: 63.75rem; /* 1020px: forms, settings, pages of text */
|
|
452
|
+
--container-wide: 93.75rem; /* 1500px: grids of pictures, wide tables */
|
|
453
|
+
|
|
454
|
+
--ease-out-notion: cubic-bezier(0.22, 1, 0.36, 1);
|
|
455
|
+
/* Leaving: slow to start, quick to go, so what closes gets out of the way. */
|
|
456
|
+
--ease-in-notion: cubic-bezier(0.4, 0, 1, 1);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* ══════════════════════════════════════════════════════════════════════
|
|
460
|
+
3. BASE
|
|
461
|
+
══════════════════════════════════════════════════════════════════════ */
|
|
462
|
+
|
|
463
|
+
@layer base {
|
|
464
|
+
* {
|
|
465
|
+
border-color: var(--hairline);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
html {
|
|
469
|
+
-webkit-tap-highlight-color: transparent;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/* Anything that can be pressed shows the hand. Tailwind 4 leaves buttons with the
|
|
473
|
+
arrow, which made tags, tiles and rows look inert under the mouse. (endgame) */
|
|
474
|
+
button:not(:disabled),
|
|
475
|
+
[role="button"]:not([aria-disabled="true"]),
|
|
476
|
+
[role="tab"]:not(:disabled),
|
|
477
|
+
[role="checkbox"]:not(:disabled),
|
|
478
|
+
[role="radio"]:not(:disabled),
|
|
479
|
+
[role="switch"]:not(:disabled),
|
|
480
|
+
[role="menuitem"],
|
|
481
|
+
[role="option"],
|
|
482
|
+
summary,
|
|
483
|
+
select {
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
body {
|
|
488
|
+
background-color: var(--surface);
|
|
489
|
+
color: var(--ink);
|
|
490
|
+
font-family: var(--font-sans);
|
|
491
|
+
font-size: var(--text-body);
|
|
492
|
+
line-height: 1.5;
|
|
493
|
+
letter-spacing: -0.003em;
|
|
494
|
+
-webkit-font-smoothing: antialiased;
|
|
495
|
+
-moz-osx-font-smoothing: grayscale;
|
|
496
|
+
text-rendering: optimizeLegibility;
|
|
497
|
+
/* A long URL or product code wraps instead of pushing its container wider. */
|
|
498
|
+
overflow-wrap: break-word;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* One focus treatment for the whole system: a soft accent halo,
|
|
502
|
+
never the default browser outline. */
|
|
503
|
+
:focus-visible {
|
|
504
|
+
outline: 2px solid var(--focus-ring);
|
|
505
|
+
outline-offset: 2px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
::selection {
|
|
509
|
+
background-color: var(--accent-tint);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
::placeholder {
|
|
513
|
+
color: var(--ink-placeholder);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* Thin scrollbars in the ink, as Notion's: present when needed, never a grey
|
|
517
|
+
slab beside a sidebar or a menu. */
|
|
518
|
+
* {
|
|
519
|
+
scrollbar-width: thin;
|
|
520
|
+
scrollbar-color: var(--hairline-strong) transparent;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* Windows' high-contrast mode drops box-shadow, and every edge in the kit is a
|
|
525
|
+
shadow ring. Anything with one gets a real outline there instead, in the
|
|
526
|
+
system's own colour, so cards, fields and menus keep their edges. */
|
|
527
|
+
@media (forced-colors: active) {
|
|
528
|
+
[class*="shadow-"]:not([class*="shadow-none"]),
|
|
529
|
+
[class*="inset-shadow-"] {
|
|
530
|
+
outline: 1px solid CanvasText;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/* ══════════════════════════════════════════════════════════════════════
|
|
535
|
+
4. UTILITIES
|
|
536
|
+
══════════════════════════════════════════════════════════════════════ */
|
|
537
|
+
|
|
538
|
+
/* Hover-reveal: Notion's core interaction move. The control is present
|
|
539
|
+
and accessible but invisible until the row is hovered or it takes
|
|
540
|
+
keyboard focus. Put `group` on the row, `affordance` on the control. */
|
|
541
|
+
@utility affordance {
|
|
542
|
+
opacity: 0;
|
|
543
|
+
transition: opacity var(--duration-fast) var(--ease-out-notion);
|
|
544
|
+
|
|
545
|
+
@variant group-hover {
|
|
546
|
+
opacity: 1;
|
|
547
|
+
}
|
|
548
|
+
@variant focus-visible {
|
|
549
|
+
opacity: 1;
|
|
550
|
+
}
|
|
551
|
+
@variant focus-within {
|
|
552
|
+
opacity: 1;
|
|
553
|
+
}
|
|
554
|
+
/* A screen that cannot hover shows it always: it can still be tapped. */
|
|
555
|
+
@media (hover: none) {
|
|
556
|
+
opacity: 1;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* The bottom of a till receipt: a row of small teeth cut out of the box.
|
|
561
|
+
--tooth sets their size. (endgame, triptrack, medialogue) */
|
|
562
|
+
@utility torn-edge {
|
|
563
|
+
--tooth: 0.5rem;
|
|
564
|
+
mask:
|
|
565
|
+
linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
|
|
566
|
+
conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* A link in running text, as Notion draws one: the text's own ink, underlined
|
|
570
|
+
faintly, the underline darkening on hover. Not the accent: in a page of words a
|
|
571
|
+
blue link reads as a web page, not a document. */
|
|
572
|
+
@utility link {
|
|
573
|
+
color: inherit;
|
|
574
|
+
text-decoration-line: underline;
|
|
575
|
+
text-decoration-color: var(--ink-tertiary);
|
|
576
|
+
text-decoration-thickness: 1px;
|
|
577
|
+
text-underline-offset: 0.15em;
|
|
578
|
+
cursor: pointer;
|
|
579
|
+
transition: text-decoration-color var(--duration-fast);
|
|
580
|
+
&:hover {
|
|
581
|
+
text-decoration-color: currentColor;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/* The reading column. */
|
|
586
|
+
@utility measure {
|
|
587
|
+
width: 100%;
|
|
588
|
+
max-width: var(--spacing-measure);
|
|
589
|
+
margin-inline: auto;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/* ══════════════════════════════════════════════════════════════════════
|
|
593
|
+
5. MOTION
|
|
594
|
+
Fast and flat. 120–140ms fades for overlays, a 2% scale on dialogs,
|
|
595
|
+
and nothing else. No springs, no bounce, no stagger. Motion here is
|
|
596
|
+
for continuity — telling you where a surface came from — not for
|
|
597
|
+
delight. Anything over 200ms starts to feel like latency.
|
|
598
|
+
══════════════════════════════════════════════════════════════════════ */
|
|
599
|
+
|
|
600
|
+
@theme {
|
|
601
|
+
--animate-fade-in: fade-in var(--duration-base) var(--ease-out-notion);
|
|
602
|
+
--animate-fade-out: fade-out var(--duration-fast) var(--ease-in-notion);
|
|
603
|
+
--animate-scale-in: scale-in var(--duration-base) var(--ease-out-notion);
|
|
604
|
+
--animate-scale-out: scale-out var(--duration-fast) var(--ease-in-notion);
|
|
605
|
+
--animate-slide-in: slide-in var(--duration-base) var(--ease-out-notion);
|
|
606
|
+
/* A dialog on a phone rises from the bottom edge as a sheet. */
|
|
607
|
+
--animate-sheet-in: sheet-in var(--duration-slow) var(--ease-out-notion);
|
|
608
|
+
--animate-sheet-out: sheet-out var(--duration-base) var(--ease-in-notion);
|
|
609
|
+
/* A sidebar on a phone slides in from its edge. --drawer-from is -100% on the
|
|
610
|
+
left, 100% on the right. */
|
|
611
|
+
--animate-drawer-in: drawer-in var(--duration-slow) var(--ease-out-notion);
|
|
612
|
+
--animate-drawer-out: drawer-out var(--duration-base) var(--ease-in-notion);
|
|
613
|
+
/* A Collapsible's content eases open and shut to its own height. */
|
|
614
|
+
--animate-collapse-down: collapse-down var(--duration-slow) var(--ease-out-notion);
|
|
615
|
+
--animate-collapse-up: collapse-up var(--duration-base) var(--ease-in-notion);
|
|
616
|
+
/* The image viewer opening: its first picture grows into place. */
|
|
617
|
+
--animate-viewer-in: viewer-in var(--duration-slow) var(--ease-out-notion);
|
|
618
|
+
/* A box's edges tracing in one after another, then fading, on repeat: a 3D
|
|
619
|
+
model on its way. Each edge is delayed a step, so the drawing travels. */
|
|
620
|
+
/* A loop keeps its own period; the speeds are for one-off changes. */
|
|
621
|
+
--animate-trace: trace 2.6s var(--ease-out-notion) infinite both;
|
|
622
|
+
/* A toast rises a little into place at the foot of the window. */
|
|
623
|
+
--animate-toast-in: toast-in var(--duration-slow) var(--ease-out-notion);
|
|
624
|
+
}
|
|
625
|
+
@keyframes collapse-down {
|
|
626
|
+
from {
|
|
627
|
+
height: 0;
|
|
628
|
+
}
|
|
629
|
+
to {
|
|
630
|
+
height: var(--radix-collapsible-content-height);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
@keyframes collapse-up {
|
|
634
|
+
from {
|
|
635
|
+
height: var(--radix-collapsible-content-height);
|
|
636
|
+
}
|
|
637
|
+
to {
|
|
638
|
+
height: 0;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
/* An indeterminate progress bar's band, sliding across its track. */
|
|
642
|
+
@keyframes progress-slide {
|
|
643
|
+
from {
|
|
644
|
+
left: -33%;
|
|
645
|
+
}
|
|
646
|
+
to {
|
|
647
|
+
left: 100%;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
@keyframes drawer-in {
|
|
651
|
+
from {
|
|
652
|
+
transform: translateX(var(--drawer-from, -100%));
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
@keyframes drawer-out {
|
|
656
|
+
to {
|
|
657
|
+
transform: translateX(var(--drawer-from, -100%));
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
@keyframes trace {
|
|
661
|
+
0% {
|
|
662
|
+
stroke-dashoffset: 1;
|
|
663
|
+
opacity: 1;
|
|
664
|
+
}
|
|
665
|
+
40% {
|
|
666
|
+
stroke-dashoffset: 0;
|
|
667
|
+
}
|
|
668
|
+
78% {
|
|
669
|
+
stroke-dashoffset: 0;
|
|
670
|
+
opacity: 1;
|
|
671
|
+
}
|
|
672
|
+
100% {
|
|
673
|
+
stroke-dashoffset: 0;
|
|
674
|
+
opacity: 0;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
@keyframes viewer-in {
|
|
679
|
+
from {
|
|
680
|
+
opacity: 0;
|
|
681
|
+
transform: scale(0.94);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
@keyframes toast-in {
|
|
685
|
+
from {
|
|
686
|
+
opacity: 0;
|
|
687
|
+
transform: translateY(0.75rem) scale(0.98);
|
|
688
|
+
}
|
|
689
|
+
to {
|
|
690
|
+
opacity: 1;
|
|
691
|
+
transform: translateY(0) scale(1);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
@keyframes sheet-in {
|
|
695
|
+
from {
|
|
696
|
+
transform: translateY(100%);
|
|
697
|
+
}
|
|
698
|
+
to {
|
|
699
|
+
transform: translateY(0);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
@keyframes sheet-out {
|
|
703
|
+
from {
|
|
704
|
+
transform: translateY(0);
|
|
705
|
+
}
|
|
706
|
+
to {
|
|
707
|
+
transform: translateY(100%);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
@keyframes fade-in {
|
|
712
|
+
from {
|
|
713
|
+
opacity: 0;
|
|
714
|
+
}
|
|
715
|
+
to {
|
|
716
|
+
opacity: 1;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
@keyframes fade-out {
|
|
721
|
+
from {
|
|
722
|
+
opacity: 1;
|
|
723
|
+
}
|
|
724
|
+
to {
|
|
725
|
+
opacity: 0;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/* Scale only. The dialog is centred with the `translate` property, which composes
|
|
730
|
+
with `transform`; translating here as well would move it twice while this runs. */
|
|
731
|
+
@keyframes scale-in {
|
|
732
|
+
from {
|
|
733
|
+
opacity: 0;
|
|
734
|
+
transform: scale(0.98);
|
|
735
|
+
}
|
|
736
|
+
to {
|
|
737
|
+
opacity: 1;
|
|
738
|
+
transform: scale(1);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
@keyframes scale-out {
|
|
743
|
+
from {
|
|
744
|
+
opacity: 1;
|
|
745
|
+
transform: scale(1);
|
|
746
|
+
}
|
|
747
|
+
to {
|
|
748
|
+
opacity: 0;
|
|
749
|
+
transform: scale(0.98);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
@keyframes slide-in {
|
|
754
|
+
from {
|
|
755
|
+
opacity: 0;
|
|
756
|
+
transform: scale(0.97) translateY(-2px);
|
|
757
|
+
}
|
|
758
|
+
to {
|
|
759
|
+
opacity: 1;
|
|
760
|
+
transform: scale(1) translateY(0);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/* Stepping from one thing to the next in a sequence: a carousel's pictures, a
|
|
765
|
+
multi-step dialog's panes. The new one arrives from the side it was on.
|
|
766
|
+
Set --from to -1 for the previous one and 1 for the next. */
|
|
767
|
+
@theme {
|
|
768
|
+
--animate-step-in: step-in var(--duration-slow) var(--ease-out-notion);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
@keyframes step-in {
|
|
772
|
+
from {
|
|
773
|
+
opacity: 0;
|
|
774
|
+
transform: translateX(calc(var(--from, 1) * 28px));
|
|
775
|
+
}
|
|
776
|
+
to {
|
|
777
|
+
opacity: 1;
|
|
778
|
+
transform: translateX(0);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/* Growing one element out of another with View Transitions: a thumbnail into
|
|
783
|
+
a full view and back. The two carry the name "shared" (one at a time; see
|
|
784
|
+
hooks/use-shared-transition); the rest of the page cross-fades underneath.
|
|
785
|
+
240ms is past the 200ms rule on purpose: a shorter move across a large
|
|
786
|
+
screen reads as a jump. */
|
|
787
|
+
::view-transition-group(shared) {
|
|
788
|
+
animation-duration: 240ms;
|
|
789
|
+
animation-timing-function: var(--ease-out-notion);
|
|
790
|
+
}
|
|
791
|
+
/* A thumbnail crops its picture and the full view does not, so the two
|
|
792
|
+
snapshots differ in shape. Both are made to fill the moving box, cropped,
|
|
793
|
+
and no distortion shows between them. */
|
|
794
|
+
::view-transition-old(shared),
|
|
795
|
+
::view-transition-new(shared) {
|
|
796
|
+
height: 100%;
|
|
797
|
+
object-fit: cover;
|
|
798
|
+
}
|
|
799
|
+
::view-transition-old(root),
|
|
800
|
+
::view-transition-new(root) {
|
|
801
|
+
animation-duration: 180ms;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
@media (prefers-reduced-motion: reduce) {
|
|
805
|
+
::view-transition-group(*),
|
|
806
|
+
::view-transition-old(*),
|
|
807
|
+
::view-transition-new(*) {
|
|
808
|
+
animation: none !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
*,
|
|
812
|
+
*::before,
|
|
813
|
+
*::after {
|
|
814
|
+
animation-duration: 0.01ms !important;
|
|
815
|
+
transition-duration: 0.01ms !important;
|
|
816
|
+
}
|
|
817
|
+
}
|