@ggml-org/llama-ui 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +66 -2
- package/dist/assets/fonts/LlamaMono.woff2 +0 -0
- package/dist/assets/fonts/LlamaSans.woff2 +0 -0
- package/dist/assets/fonts/OFL.txt +93 -0
- package/dist/assets/hf-logo.svg +8 -0
- package/dist/assets/logo.svg +4 -0
- package/dist/assets/model-logos/gemma.svg +8 -0
- package/dist/assets/model-logos/gpt.svg +3 -0
- package/dist/assets/model-logos/liquid.svg +5 -0
- package/dist/assets/model-logos/meta.svg +3 -0
- package/dist/assets/model-logos/qwen.svg +3 -0
- package/dist/assets/qr-network.svg +1 -0
- package/dist/components/app/actions/ActionIcon.svelte +91 -0
- package/dist/components/app/actions/ActionIcon.svelte.d.ts +21 -0
- package/dist/components/app/actions/index.d.ts +2 -0
- package/dist/components/app/actions/index.js +2 -0
- package/dist/components/app/content/SyntaxHighlightedCode.svelte +164 -0
- package/dist/components/app/content/SyntaxHighlightedCode.svelte.d.ts +13 -0
- package/dist/components/app/content/index.d.ts +1 -0
- package/dist/components/app/content/index.js +1 -0
- package/dist/components/app/forms/SearchInput.svelte +84 -0
- package/dist/components/app/forms/SearchInput.svelte.d.ts +17 -0
- package/dist/components/app/forms/index.d.ts +1 -0
- package/dist/components/app/forms/index.js +1 -0
- package/dist/components/app/misc/Logo.svelte +15 -0
- package/dist/components/app/misc/Logo.svelte.d.ts +13 -0
- package/dist/components/app/misc/index.d.ts +2 -0
- package/dist/components/app/misc/index.js +2 -0
- package/dist/components/mockups/MacMenu.svelte +477 -0
- package/dist/components/mockups/MacMenu.svelte.d.ts +27 -0
- package/dist/components/mockups/WindowsTray.svelte +650 -0
- package/dist/components/mockups/WindowsTray.svelte.d.ts +13 -0
- package/dist/components/mockups/index.d.ts +2 -0
- package/dist/components/mockups/index.js +4 -0
- package/dist/components/models/ModelCapabilityIcons.svelte +117 -0
- package/dist/components/models/ModelCapabilityIcons.svelte.d.ts +15 -0
- package/dist/components/models/ModelCard.svelte +104 -0
- package/dist/components/models/ModelCard.svelte.d.ts +31 -0
- package/dist/components/models/ModelDownloadProgressBar.svelte +32 -0
- package/dist/components/models/ModelDownloadProgressBar.svelte.d.ts +8 -0
- package/dist/components/models/ModelFamilyCard.svelte +130 -0
- package/dist/components/models/ModelFamilyCard.svelte.d.ts +35 -0
- package/dist/components/models/ModelId.svelte +167 -0
- package/dist/components/models/ModelId.svelte.d.ts +38 -0
- package/dist/components/models/ModelMetadataItem.svelte +19 -0
- package/dist/components/models/ModelMetadataItem.svelte.d.ts +7 -0
- package/dist/components/models/ModelOrgAvatar.svelte +125 -0
- package/dist/components/models/ModelOrgAvatar.svelte.d.ts +13 -0
- package/dist/components/models/ModelQuantChip.svelte +301 -0
- package/dist/components/models/ModelQuantChip.svelte.d.ts +26 -0
- package/dist/components/models/ModelQuantOptions.svelte +34 -0
- package/dist/components/models/ModelQuantOptions.svelte.d.ts +11 -0
- package/dist/components/models/ModelQuantRow.svelte +89 -0
- package/dist/components/models/ModelQuantRow.svelte.d.ts +14 -0
- package/dist/components/models/index.d.ts +14 -0
- package/dist/components/models/index.js +14 -0
- package/dist/components/ui/alert/alert-description.svelte +23 -0
- package/dist/components/ui/alert/alert-description.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert-title.svelte +20 -0
- package/dist/components/ui/alert/alert-title.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert.svelte +51 -0
- package/dist/components/ui/alert/alert.svelte.d.ts +35 -0
- package/dist/components/ui/alert/index.d.ts +5 -0
- package/dist/components/ui/alert/index.js +7 -0
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +8 -0
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte +18 -0
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +4 -0
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +34 -0
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +8 -0
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte +17 -0
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte +20 -0
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte +20 -0
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte +20 -0
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte +17 -0
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
- package/dist/components/ui/alert-dialog/alert-dialog-trigger.svelte +7 -0
- package/dist/components/ui/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/alert-dialog/index.d.ts +12 -0
- package/dist/components/ui/alert-dialog/index.js +15 -0
- package/dist/components/ui/badge/badge.svelte +61 -0
- package/dist/components/ui/badge/badge.svelte.d.ts +44 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/badge/index.js +2 -0
- package/dist/components/ui/button/button.svelte +96 -0
- package/dist/components/ui/button/button.svelte.d.ts +64 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/index.js +4 -0
- package/dist/components/ui/button-group/button-group-root.svelte +30 -0
- package/dist/components/ui/button-group/button-group-root.svelte.d.ts +8 -0
- package/dist/components/ui/button-group/button-group-separator.svelte +12 -0
- package/dist/components/ui/button-group/button-group-separator.svelte.d.ts +4 -0
- package/dist/components/ui/button-group/index.d.ts +2 -0
- package/dist/components/ui/button-group/index.js +2 -0
- package/dist/components/ui/card/card-action.svelte +20 -0
- package/dist/components/ui/card/card-action.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-content.svelte +15 -0
- package/dist/components/ui/card/card-content.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-description.svelte +20 -0
- package/dist/components/ui/card/card-description.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-footer.svelte +20 -0
- package/dist/components/ui/card/card-footer.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-header.svelte +23 -0
- package/dist/components/ui/card/card-header.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-title.svelte +20 -0
- package/dist/components/ui/card/card-title.svelte.d.ts +5 -0
- package/dist/components/ui/card/card.svelte +20 -0
- package/dist/components/ui/card/card.svelte.d.ts +5 -0
- package/dist/components/ui/card/index.d.ts +8 -0
- package/dist/components/ui/card/index.js +10 -0
- package/dist/components/ui/checkbox/checkbox.svelte +36 -0
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.js +4 -0
- package/dist/components/ui/collapsible/collapsible-content.svelte +7 -0
- package/dist/components/ui/collapsible/collapsible-content.svelte.d.ts +4 -0
- package/dist/components/ui/collapsible/collapsible-trigger.svelte +7 -0
- package/dist/components/ui/collapsible/collapsible-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/collapsible/collapsible.svelte +11 -0
- package/dist/components/ui/collapsible/collapsible.svelte.d.ts +4 -0
- package/dist/components/ui/collapsible/index.d.ts +4 -0
- package/dist/components/ui/collapsible/index.js +6 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte +25 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-group.svelte +7 -0
- package/dist/components/ui/context-menu/context-menu-group.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte +27 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte +24 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte +17 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +20 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +39 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +30 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-trigger.svelte +7 -0
- package/dist/components/ui/context-menu/context-menu-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/index.d.ts +12 -0
- package/dist/components/ui/context-menu/index.js +13 -0
- package/dist/components/ui/dialog/dialog-close.svelte +13 -0
- package/dist/components/ui/dialog/dialog-close.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-content.svelte +53 -0
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +12 -0
- package/dist/components/ui/dialog/dialog-description.svelte +17 -0
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-footer.svelte +20 -0
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +5 -0
- package/dist/components/ui/dialog/dialog-header.svelte +44 -0
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +8 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-title.svelte +17 -0
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-trigger.svelte +7 -0
- package/dist/components/ui/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/index.d.ts +11 -0
- package/dist/components/ui/dialog/index.js +14 -0
- package/dist/components/ui/drawer/drawer-close.svelte +7 -0
- package/dist/components/ui/drawer/drawer-close.svelte.d.ts +4 -0
- package/dist/components/ui/drawer/drawer-content.svelte +40 -0
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +11 -0
- package/dist/components/ui/drawer/drawer-description.svelte +17 -0
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +4 -0
- package/dist/components/ui/drawer/drawer-footer.svelte +20 -0
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +5 -0
- package/dist/components/ui/drawer/drawer-header.svelte +23 -0
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +5 -0
- package/dist/components/ui/drawer/drawer-nested.svelte +12 -0
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +3 -0
- package/dist/components/ui/drawer/drawer-overlay.svelte +20 -0
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/drawer/drawer-portal.svelte +7 -0
- package/dist/components/ui/drawer/drawer-portal.svelte.d.ts +3 -0
- package/dist/components/ui/drawer/drawer-title.svelte +17 -0
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +4 -0
- package/dist/components/ui/drawer/drawer-trigger.svelte +7 -0
- package/dist/components/ui/drawer/drawer-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/drawer/drawer.svelte +12 -0
- package/dist/components/ui/drawer/drawer.svelte.d.ts +3 -0
- package/dist/components/ui/drawer/index.d.ts +12 -0
- package/dist/components/ui/drawer/index.js +14 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +42 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +9 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +27 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +22 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +27 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +24 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +16 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +32 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +17 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +20 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +39 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +30 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +17 -0
- package/dist/components/ui/dropdown-menu/index.js +18 -0
- package/dist/components/ui/empty/empty-content.svelte +23 -0
- package/dist/components/ui/empty/empty-content.svelte.d.ts +5 -0
- package/dist/components/ui/empty/empty-description.svelte +23 -0
- package/dist/components/ui/empty/empty-description.svelte.d.ts +5 -0
- package/dist/components/ui/empty/empty-header.svelte +20 -0
- package/dist/components/ui/empty/empty-header.svelte.d.ts +5 -0
- package/dist/components/ui/empty/empty-media.svelte +42 -0
- package/dist/components/ui/empty/empty-media.svelte.d.ts +26 -0
- package/dist/components/ui/empty/empty-title.svelte +20 -0
- package/dist/components/ui/empty/empty-title.svelte.d.ts +5 -0
- package/dist/components/ui/empty/empty.svelte +23 -0
- package/dist/components/ui/empty/empty.svelte.d.ts +5 -0
- package/dist/components/ui/empty/index.d.ts +7 -0
- package/dist/components/ui/empty/index.js +9 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte +31 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +10 -0
- package/dist/components/ui/hover-card/hover-card-portal.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card-portal.svelte.d.ts +3 -0
- package/dist/components/ui/hover-card/hover-card-trigger.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/hover-card/hover-card.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card.svelte.d.ts +3 -0
- package/dist/components/ui/hover-card/index.d.ts +5 -0
- package/dist/components/ui/hover-card/index.js +5 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.js +4 -0
- package/dist/components/ui/input/input.svelte +52 -0
- package/dist/components/ui/input/input.svelte.d.ts +13 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.js +4 -0
- package/dist/components/ui/label/label.svelte +20 -0
- package/dist/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/components/ui/popover/index.d.ts +6 -0
- package/dist/components/ui/popover/index.js +8 -0
- package/dist/components/ui/popover/popover-close.svelte +7 -0
- package/dist/components/ui/popover/popover-close.svelte.d.ts +4 -0
- package/dist/components/ui/popover/popover-content.svelte +37 -0
- package/dist/components/ui/popover/popover-content.svelte.d.ts +10 -0
- package/dist/components/ui/popover/popover-portal.svelte +7 -0
- package/dist/components/ui/popover/popover-portal.svelte.d.ts +3 -0
- package/dist/components/ui/popover/popover-trigger.svelte +17 -0
- package/dist/components/ui/popover/popover-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/popover/popover.svelte +7 -0
- package/dist/components/ui/popover/popover.svelte.d.ts +3 -0
- package/dist/components/ui/radio-group/index.d.ts +3 -0
- package/dist/components/ui/radio-group/index.js +5 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte +31 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -0
- package/dist/components/ui/radio-group/radio-group.svelte +19 -0
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/scroll-area/index.d.ts +3 -0
- package/dist/components/ui/scroll-area/index.js +5 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +32 -0
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte +43 -0
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +10 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/select/index.js +14 -0
- package/dist/components/ui/select/select-content.svelte +110 -0
- package/dist/components/ui/select/select-content.svelte.d.ts +8 -0
- package/dist/components/ui/select/select-group-heading.svelte +21 -0
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +10 -0
- package/dist/components/ui/select/select-group.svelte +7 -0
- package/dist/components/ui/select/select-group.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-item.svelte +39 -0
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-label.svelte +20 -0
- package/dist/components/ui/select/select-label.svelte.d.ts +6 -0
- package/dist/components/ui/select/select-scroll-down-button.svelte +20 -0
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-scroll-up-button.svelte +20 -0
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-separator.svelte +18 -0
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-trigger.svelte +47 -0
- package/dist/components/ui/select/select-trigger.svelte.d.ts +9 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.js +4 -0
- package/dist/components/ui/separator/separator.svelte +20 -0
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/components/ui/skeleton/index.d.ts +2 -0
- package/dist/components/ui/skeleton/index.js +4 -0
- package/dist/components/ui/skeleton/skeleton.svelte +17 -0
- package/dist/components/ui/skeleton/skeleton.svelte.d.ts +5 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.js +4 -0
- package/dist/components/ui/switch/switch.svelte +29 -0
- package/dist/components/ui/switch/switch.svelte.d.ts +4 -0
- package/dist/components/ui/table/index.d.ts +9 -0
- package/dist/components/ui/table/index.js +11 -0
- package/dist/components/ui/table/table-body.svelte +20 -0
- package/dist/components/ui/table/table-body.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-caption.svelte +20 -0
- package/dist/components/ui/table/table-caption.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-cell.svelte +23 -0
- package/dist/components/ui/table/table-cell.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-footer.svelte +20 -0
- package/dist/components/ui/table/table-footer.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-head.svelte +23 -0
- package/dist/components/ui/table/table-head.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-header.svelte +20 -0
- package/dist/components/ui/table/table-header.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-row.svelte +23 -0
- package/dist/components/ui/table/table-row.svelte.d.ts +5 -0
- package/dist/components/ui/table/table.svelte +22 -0
- package/dist/components/ui/table/table.svelte.d.ts +5 -0
- package/dist/components/ui/tabs/index.d.ts +5 -0
- package/dist/components/ui/tabs/index.js +7 -0
- package/dist/components/ui/tabs/tabs-content.svelte +17 -0
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs-list.svelte +170 -0
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +25 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte +22 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs.svelte +19 -0
- package/dist/components/ui/tabs/tabs.svelte.d.ts +4 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/index.js +4 -0
- package/dist/components/ui/textarea/textarea.svelte +22 -0
- package/dist/components/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/components/ui/toggle/index.d.ts +3 -0
- package/dist/components/ui/toggle/index.js +5 -0
- package/dist/components/ui/toggle/toggle.svelte +57 -0
- package/dist/components/ui/toggle/toggle.svelte.d.ts +52 -0
- package/dist/components/ui/toggle-group/index.d.ts +3 -0
- package/dist/components/ui/toggle-group/index.js +5 -0
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +36 -0
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +8 -0
- package/dist/components/ui/toggle-group/toggle-group.svelte +72 -0
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +15 -0
- package/dist/components/ui/tooltip/index.d.ts +7 -0
- package/dist/components/ui/tooltip/index.js +10 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +62 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +8 -0
- package/dist/components/ui/tooltip/tooltip-trigger.svelte +12 -0
- package/dist/components/ui/tooltip/tooltip-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/utils.d.ts +14 -0
- package/dist/components/ui/utils.js +23 -0
- package/dist/constants/code-block.constants.d.ts +37 -0
- package/dist/constants/code-block.constants.js +51 -0
- package/dist/constants/css-classes.constants.d.ts +11 -0
- package/dist/constants/css-classes.constants.js +28 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/ui.constants.d.ts +6 -0
- package/dist/constants/ui.constants.js +7 -0
- package/dist/enums/boolean-string.enums.d.ts +5 -0
- package/dist/enums/boolean-string.enums.js +6 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/index.js +3 -0
- package/dist/enums/ui.enums.d.ts +11 -0
- package/dist/enums/ui.enums.js +14 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +42 -0
- package/dist/models/constants.d.ts +51 -0
- package/dist/models/constants.js +66 -0
- package/dist/models/enums.d.ts +24 -0
- package/dist/models/enums.js +28 -0
- package/dist/models/format.d.ts +22 -0
- package/dist/models/format.js +82 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +3 -0
- package/dist/models/types.d.ts +23 -0
- package/dist/models/types.js +3 -0
- package/dist/styles/fonts.css +22 -0
- package/dist/styles/surfaces.css +256 -0
- package/dist/styles/theme.css +122 -0
- package/dist/styles/tokens/components.css +211 -0
- package/dist/styles/tokens/primitives.css +141 -0
- package/dist/styles/tokens/semantic.css +325 -0
- package/dist/styles/tokens.css +7 -0
- package/dist/utils/code.d.ts +7 -0
- package/dist/utils/code.js +65 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +111 -5
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Matte finishes. Each reads its colours from slot variables (--glass-*, --float-*)
|
|
3
|
+
* that default to semantic tokens; the *-surface utilities below point the slots at
|
|
4
|
+
* one component's tokens, so markup needs a single class per component.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* Frosted panel: flat fill, faint inner rim, hairline border shaded darker at the sides. */
|
|
8
|
+
@utility matte-glass {
|
|
9
|
+
--edge-side: var(--glass-edge-side, var(--edge-rest-side));
|
|
10
|
+
--edge-mid: var(--glass-edge-mid, var(--edge-rest-mid));
|
|
11
|
+
background-color: var(--glass-background, var(--surface-glass));
|
|
12
|
+
backdrop-filter: blur(var(--blur-surface)) saturate(1.5);
|
|
13
|
+
box-shadow:
|
|
14
|
+
inset 0 0 0 2px var(--glass-highlight, var(--highlight-inner)),
|
|
15
|
+
var(--glass-shadow, var(--elevation-surface));
|
|
16
|
+
|
|
17
|
+
/* the ring below needs a positioned box; keep fixed or sticky ones as they are */
|
|
18
|
+
&:not(.fixed, .absolute, .sticky) {
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* masked ring, so the edge gradient does not tint the translucent fill */
|
|
23
|
+
&::before {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: 0;
|
|
27
|
+
padding: 1px;
|
|
28
|
+
border-radius: inherit;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
background: linear-gradient(
|
|
31
|
+
to right,
|
|
32
|
+
var(--edge-side),
|
|
33
|
+
var(--edge-mid) 12%,
|
|
34
|
+
var(--edge-mid) 88%,
|
|
35
|
+
var(--edge-side)
|
|
36
|
+
);
|
|
37
|
+
mask:
|
|
38
|
+
linear-gradient(#000 0 0) content-box exclude,
|
|
39
|
+
linear-gradient(#000 0 0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:focus-within {
|
|
43
|
+
--edge-side: var(--glass-edge-side-focus, var(--edge-focus-side));
|
|
44
|
+
--edge-mid: var(--glass-edge-mid-focus, var(--edge-focus-mid));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@utility chat-form-surface {
|
|
49
|
+
@apply matte-glass;
|
|
50
|
+
--glass-background: var(--chat-form-background);
|
|
51
|
+
--glass-edge-side: var(--chat-form-edge-side);
|
|
52
|
+
--glass-edge-mid: var(--chat-form-edge-mid);
|
|
53
|
+
--glass-edge-side-focus: var(--chat-form-edge-side-focus);
|
|
54
|
+
--glass-edge-mid-focus: var(--chat-form-edge-mid-focus);
|
|
55
|
+
--glass-highlight: var(--chat-form-highlight);
|
|
56
|
+
--glass-shadow: var(--chat-form-shadow);
|
|
57
|
+
color: var(--chat-form-text);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@utility card-surface {
|
|
61
|
+
@apply matte-glass;
|
|
62
|
+
--glass-background: var(--card-background);
|
|
63
|
+
--glass-edge-side: var(--card-edge-side);
|
|
64
|
+
--glass-edge-mid: var(--card-edge-mid);
|
|
65
|
+
--glass-highlight: var(--card-highlight);
|
|
66
|
+
--glass-shadow: var(--card-shadow);
|
|
67
|
+
color: var(--card-text);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* the sidebar edge stays the same while focus is inside, unlike the chat form */
|
|
71
|
+
@utility sidebar-surface {
|
|
72
|
+
@apply matte-glass;
|
|
73
|
+
--glass-background: var(--sidebar-background);
|
|
74
|
+
--glass-edge-side: var(--sidebar-edge-side);
|
|
75
|
+
--glass-edge-mid: var(--sidebar-edge-mid);
|
|
76
|
+
--glass-edge-side-focus: var(--sidebar-edge-side);
|
|
77
|
+
--glass-edge-mid-focus: var(--sidebar-edge-mid);
|
|
78
|
+
--glass-highlight: var(--sidebar-highlight);
|
|
79
|
+
--glass-shadow: var(--sidebar-shadow);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Elevated surfaces (cards, floating bars, thumbnails): an elevation token with the hairline ring (--elevation-ring,
|
|
83
|
+
black 5%, white 18% in dark) baked in as its last layer, so the edge melts into the shadow and the shadow deepens
|
|
84
|
+
in dark mode. Never pair these with a border: the ring is the edge. */
|
|
85
|
+
@utility elevated-control {
|
|
86
|
+
box-shadow:
|
|
87
|
+
var(--elevation-control),
|
|
88
|
+
0 0 0 var(--elevation-ring-width) var(--elevation-ring);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@utility elevated-surface {
|
|
92
|
+
box-shadow:
|
|
93
|
+
var(--elevation-surface),
|
|
94
|
+
0 0 0 var(--elevation-ring-width) var(--elevation-ring);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@utility elevated-raised {
|
|
98
|
+
box-shadow:
|
|
99
|
+
var(--elevation-raised),
|
|
100
|
+
0 0 0 var(--elevation-ring-width) var(--elevation-ring);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* rows grouped inside a glass panel; the edge stays the same while focus is inside. It sits on
|
|
104
|
+
glass already, so it does not blur: a second backdrop blur re-paints the panel's own fill
|
|
105
|
+
behind it and turns the group visibly lighter, whatever its fill */
|
|
106
|
+
@utility inset-group-surface {
|
|
107
|
+
@apply matte-glass;
|
|
108
|
+
backdrop-filter: none;
|
|
109
|
+
--glass-background: var(--inset-group-background);
|
|
110
|
+
--glass-edge-side: var(--inset-group-edge-side);
|
|
111
|
+
--glass-edge-mid: var(--inset-group-edge-mid);
|
|
112
|
+
--glass-edge-side-focus: var(--inset-group-edge-side);
|
|
113
|
+
--glass-edge-mid-focus: var(--inset-group-edge-mid);
|
|
114
|
+
--glass-highlight: transparent;
|
|
115
|
+
--glass-shadow: var(--inset-group-shadow);
|
|
116
|
+
border-radius: var(--inset-group-radius);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* the row a sidebar list is on: the inset group's edge and shade around a tint. It keeps the
|
|
120
|
+
row's own radius, and hover or press fills (bg-*) still paint over it */
|
|
121
|
+
@utility selected-row-surface {
|
|
122
|
+
@apply matte-glass;
|
|
123
|
+
backdrop-filter: none;
|
|
124
|
+
--glass-background: var(--selected-row-background);
|
|
125
|
+
--glass-edge-side: var(--inset-group-edge-side);
|
|
126
|
+
--glass-edge-mid: var(--inset-group-edge-mid);
|
|
127
|
+
--glass-edge-side-focus: var(--inset-group-edge-side);
|
|
128
|
+
--glass-edge-mid-focus: var(--inset-group-edge-mid);
|
|
129
|
+
--glass-highlight: transparent;
|
|
130
|
+
--glass-shadow: var(--inset-group-shadow);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Floating panel (menus, popovers, drawers): frosted fill, faint rim, lifted shadow. The edge is the hairline ring
|
|
134
|
+
baked into the shadow, not the border, so the two never draw a double edge; the border stays transparent so the
|
|
135
|
+
panel keeps its size. */
|
|
136
|
+
@utility matte-float {
|
|
137
|
+
background-color: var(--float-background, var(--float-panel-background));
|
|
138
|
+
border-color: transparent;
|
|
139
|
+
color: var(--float-panel-text);
|
|
140
|
+
backdrop-filter: blur(var(--blur-surface)) saturate(1.5);
|
|
141
|
+
box-shadow:
|
|
142
|
+
inset 0 0 0 1px var(--float-panel-highlight),
|
|
143
|
+
var(--float-panel-shadow),
|
|
144
|
+
0 0 0 var(--elevation-ring-width) var(--float-panel-edge);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Dialogs float over the page colour rather than the raised one. */
|
|
148
|
+
@utility matte-float-modal {
|
|
149
|
+
@apply matte-float;
|
|
150
|
+
--float-background: var(--float-panel-background-modal);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Recessed field (inputs, switch track, checkbox): soft inner shade, keeps Tailwind focus rings. */
|
|
154
|
+
@utility matte-well {
|
|
155
|
+
--tw-inset-shadow: var(--input-shadow);
|
|
156
|
+
box-shadow:
|
|
157
|
+
var(--tw-inset-shadow), var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
158
|
+
var(--tw-ring-shadow, 0 0 #0000);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Soft top-down sheen over a surface's own fill, e.g. the user message bubble and the soft badges. */
|
|
162
|
+
@utility matte-sheen {
|
|
163
|
+
background-image: linear-gradient(to bottom, var(--sheen-start), var(--sheen-end));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* The fainter sheen for a solid fill (solid badges): barely lighter at the top. */
|
|
167
|
+
@utility matte-sheen-solid {
|
|
168
|
+
background-image: linear-gradient(to bottom, var(--key-sheen-solid), transparent);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Frosted button finish: keeps the button's own fill and border, adds blur, a fill barely lighter at the top and a
|
|
172
|
+
small drop shadow. No highlight line at the top: the edge is the same all round. */
|
|
173
|
+
@utility matte-key {
|
|
174
|
+
background-image: linear-gradient(to bottom, var(--key-sheen), transparent);
|
|
175
|
+
backdrop-filter: blur(var(--blur-control)) saturate(1.4);
|
|
176
|
+
box-shadow: var(--button-shadow);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* The same finish on a solid fill (primary and danger buttons): the sheen, the frosting (it shows wherever the fill is
|
|
180
|
+
translucent, as the danger key's is in dark), and an even hairline in a shade of the fill drawn inside it, so the
|
|
181
|
+
width stays the button's. Set the shade with --key-edge. */
|
|
182
|
+
@utility matte-key-solid {
|
|
183
|
+
@apply matte-sheen-solid;
|
|
184
|
+
backdrop-filter: blur(var(--blur-control)) saturate(1.4);
|
|
185
|
+
box-shadow:
|
|
186
|
+
inset 0 0 0 1px var(--key-edge),
|
|
187
|
+
var(--button-shadow);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Lit colored control (record, error send): a near-flat fill barely lighter at the top, an even hairline a step
|
|
191
|
+
lighter, the glyph pressed in a little; no glow. Set the color with orb-danger, orb-warning or orb-success. */
|
|
192
|
+
@utility matte-orb {
|
|
193
|
+
background-image: linear-gradient(
|
|
194
|
+
to bottom,
|
|
195
|
+
color-mix(in oklab, var(--orb), white 6%),
|
|
196
|
+
var(--orb)
|
|
197
|
+
);
|
|
198
|
+
color: var(--orb-glyph);
|
|
199
|
+
box-shadow:
|
|
200
|
+
inset 0 0 0 1px var(--orb-rim),
|
|
201
|
+
var(--button-shadow);
|
|
202
|
+
transition:
|
|
203
|
+
box-shadow 150ms ease,
|
|
204
|
+
filter 150ms ease,
|
|
205
|
+
translate 150ms ease;
|
|
206
|
+
|
|
207
|
+
& svg {
|
|
208
|
+
filter: drop-shadow(0 0.5px 0 var(--white-a30));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:hover:not(:disabled) {
|
|
212
|
+
filter: brightness(1.05) saturate(1.05);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:active:not(:disabled) {
|
|
216
|
+
translate: 0 0.5px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&:disabled {
|
|
220
|
+
filter: saturate(0.25);
|
|
221
|
+
box-shadow: inset 0 0 0 1px var(--orb-rim);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Small lamp for status dots: the fill, barely lighter at the top, and a faint darker hairline; no glow. */
|
|
226
|
+
@utility status-lamp {
|
|
227
|
+
background-image: linear-gradient(
|
|
228
|
+
to bottom,
|
|
229
|
+
color-mix(in oklab, var(--orb), white 12%),
|
|
230
|
+
var(--orb)
|
|
231
|
+
);
|
|
232
|
+
box-shadow: inset 0 0 0 0.5px color-mix(in oklab, var(--orb-glyph) 50%, transparent);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@utility orb-danger {
|
|
236
|
+
--orb: var(--status-danger);
|
|
237
|
+
--orb-rim: var(--status-danger-rim);
|
|
238
|
+
--orb-glyph: var(--status-danger-glyph);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@utility orb-warning {
|
|
242
|
+
--orb: var(--status-warning);
|
|
243
|
+
--orb-rim: var(--status-warning-rim);
|
|
244
|
+
--orb-glyph: var(--status-warning-glyph);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@utility orb-success {
|
|
248
|
+
--orb: var(--status-success);
|
|
249
|
+
--orb-rim: var(--status-success-rim);
|
|
250
|
+
--orb-glyph: var(--status-success-glyph);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Letters pressed into a matte surface. */
|
|
254
|
+
@utility engraved {
|
|
255
|
+
text-shadow: var(--text-shadow-engraved);
|
|
256
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Llama UI's theme: fonts, tokens, surfaces and the Tailwind theme the components read.
|
|
3
|
+
* Consumers import it after Tailwind and tw-animate-css, which the components' enter and exit
|
|
4
|
+
* animations come from (a peer dependency, like Tailwind: an app that compiles these sources
|
|
5
|
+
* itself resolves it from its own node_modules):
|
|
6
|
+
*
|
|
7
|
+
* @import 'tailwindcss';
|
|
8
|
+
* @import 'tw-animate-css';
|
|
9
|
+
* @import '@ggml-org/llama-ui/theme.css';
|
|
10
|
+
*
|
|
11
|
+
* Dark mode is the `dark` class on <html>; the Matte light surfaces are the `theme-matte` class.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
@import './fonts.css';
|
|
15
|
+
@import './tokens.css';
|
|
16
|
+
@import './surfaces.css';
|
|
17
|
+
|
|
18
|
+
/* the components' own classes, so Tailwind generates them in the consumer's build */
|
|
19
|
+
@source '../';
|
|
20
|
+
|
|
21
|
+
@custom-variant dark (&:is(.dark *));
|
|
22
|
+
|
|
23
|
+
/* shadcn components key their orientation styles off these, toggle-group among them */
|
|
24
|
+
@custom-variant data-horizontal (&[data-orientation='horizontal']);
|
|
25
|
+
@custom-variant data-vertical (&[data-orientation='vertical']);
|
|
26
|
+
|
|
27
|
+
/*
|
|
28
|
+
* Tailwind v4 dropped the pointer cursor from buttons. Every control a user can
|
|
29
|
+
* press gets it back, and anything disabled keeps the cursor its own class asks for.
|
|
30
|
+
*/
|
|
31
|
+
@layer base {
|
|
32
|
+
button:not(:disabled),
|
|
33
|
+
[role='button']:not([data-disabled]),
|
|
34
|
+
[role='checkbox']:not([data-disabled]),
|
|
35
|
+
[role='combobox']:not([data-disabled]),
|
|
36
|
+
[role='menuitem']:not([data-disabled]),
|
|
37
|
+
[role='menuitemcheckbox']:not([data-disabled]),
|
|
38
|
+
[role='menuitemradio']:not([data-disabled]),
|
|
39
|
+
[role='option']:not([data-disabled]),
|
|
40
|
+
[role='radio']:not([data-disabled]),
|
|
41
|
+
[role='switch']:not([data-disabled]),
|
|
42
|
+
[role='tab']:not([data-disabled]),
|
|
43
|
+
label[for],
|
|
44
|
+
select,
|
|
45
|
+
summary {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:root {
|
|
51
|
+
--radius: 0.625rem;
|
|
52
|
+
--font-mono:
|
|
53
|
+
'Llama Mono', ui-monospace, SFMono-Regular, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono',
|
|
54
|
+
Consolas, 'Liberation Mono', Menlo, monospace;
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
* shadcn names, kept so the vendored components and their classes keep working.
|
|
58
|
+
* They alias semantic tokens; new code uses the semantic names directly.
|
|
59
|
+
*/
|
|
60
|
+
--background: var(--surface-page);
|
|
61
|
+
--foreground: var(--fg-default);
|
|
62
|
+
--card: var(--surface-raised);
|
|
63
|
+
--card-foreground: var(--fg-default);
|
|
64
|
+
--popover: var(--surface-raised);
|
|
65
|
+
--popover-foreground: var(--fg-default);
|
|
66
|
+
--primary: var(--action-primary);
|
|
67
|
+
--primary-foreground: var(--fg-on-action);
|
|
68
|
+
--secondary: var(--surface-emphasis);
|
|
69
|
+
--secondary-foreground: var(--fg-default);
|
|
70
|
+
--muted: var(--surface-muted);
|
|
71
|
+
--muted-foreground: var(--fg-muted);
|
|
72
|
+
--accent: var(--surface-selected);
|
|
73
|
+
--accent-foreground: var(--fg-default);
|
|
74
|
+
--destructive: var(--fg-danger);
|
|
75
|
+
--border: var(--line-default);
|
|
76
|
+
--input: var(--line-field);
|
|
77
|
+
--ring: var(--line-focus);
|
|
78
|
+
--code-background: var(--surface-code);
|
|
79
|
+
--code-foreground: var(--fg-code);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@theme inline {
|
|
83
|
+
/* the sans everywhere, headings included (their size sets the optical size): Llama Sans, then the system stack
|
|
84
|
+
while it loads or if it can't */
|
|
85
|
+
--font-sans: 'Llama Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
86
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
87
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
88
|
+
--radius-lg: var(--radius);
|
|
89
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
90
|
+
--color-background: var(--background);
|
|
91
|
+
--color-foreground: var(--foreground);
|
|
92
|
+
--color-card: var(--card);
|
|
93
|
+
--color-card-foreground: var(--card-foreground);
|
|
94
|
+
--color-popover: var(--popover);
|
|
95
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
96
|
+
--color-primary: var(--primary);
|
|
97
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
98
|
+
--color-secondary: var(--secondary);
|
|
99
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
100
|
+
--color-muted: var(--muted);
|
|
101
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
102
|
+
--color-accent: var(--accent);
|
|
103
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
104
|
+
--color-destructive: var(--destructive);
|
|
105
|
+
--color-border: var(--border);
|
|
106
|
+
--color-input: var(--input);
|
|
107
|
+
--color-ring: var(--ring);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@layer base {
|
|
111
|
+
* {
|
|
112
|
+
@apply border-border outline-ring/50;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
body {
|
|
116
|
+
@apply bg-background text-foreground antialiased;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where(code, pre, kbd, samp) {
|
|
120
|
+
font-family: var(--font-mono);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tier 3: component tokens. One group per component, pattern
|
|
3
|
+
* [component]-[variant]-[property]-[state]. They point at semantic tokens only, so
|
|
4
|
+
* light and dark come for free. Components read them as bg-(--token) and friends.
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
/* chat form: the main glass surface */
|
|
8
|
+
--chat-form-background: var(--surface-glass);
|
|
9
|
+
--chat-form-text: var(--fg-default);
|
|
10
|
+
--chat-form-placeholder: var(--fg-muted);
|
|
11
|
+
--chat-form-edge-side: var(--edge-rest-side);
|
|
12
|
+
--chat-form-edge-mid: var(--edge-rest-mid);
|
|
13
|
+
--chat-form-edge-side-focus: var(--edge-focus-side);
|
|
14
|
+
--chat-form-edge-mid-focus: var(--edge-focus-mid);
|
|
15
|
+
--chat-form-highlight: var(--highlight-inner);
|
|
16
|
+
--chat-form-shadow: var(--elevation-soft);
|
|
17
|
+
--chat-form-radius: var(--radius-surface);
|
|
18
|
+
--chat-form-radius-compact: var(--radius-surface-lg);
|
|
19
|
+
|
|
20
|
+
/* card: a resting glass panel */
|
|
21
|
+
--card-background: var(--surface-glass);
|
|
22
|
+
--card-text: var(--fg-default);
|
|
23
|
+
--card-edge-side: var(--edge-rest-side);
|
|
24
|
+
--card-edge-mid: var(--edge-rest-mid);
|
|
25
|
+
--card-highlight: var(--highlight-inner);
|
|
26
|
+
--card-shadow: var(--elevation-surface);
|
|
27
|
+
--card-radius: var(--radius-card);
|
|
28
|
+
|
|
29
|
+
/* sidebar: a large ambient glass panel whose edge stays put on focus */
|
|
30
|
+
--sidebar-background: color-mix(in oklch, var(--surface-muted) 60%, transparent);
|
|
31
|
+
--sidebar-edge-side: var(--edge-ambient-side);
|
|
32
|
+
--sidebar-edge-mid: var(--edge-ambient-mid);
|
|
33
|
+
--sidebar-highlight: transparent;
|
|
34
|
+
--sidebar-shadow: var(--elevation-surface);
|
|
35
|
+
--sidebar-radius: var(--radius-container);
|
|
36
|
+
|
|
37
|
+
/* inset group: rows grouped inside a glass panel, e.g. the sidebar footer. A soft white on
|
|
38
|
+
the light glass, with the sidebar's own ambient edge and a faint shade under it, so it
|
|
39
|
+
reads as part of the panel rather than a button or a field */
|
|
40
|
+
--inset-group-background: color-mix(in oklch, var(--surface-raised) 55%, transparent);
|
|
41
|
+
--inset-group-edge-side: var(--edge-ambient-side);
|
|
42
|
+
--inset-group-edge-mid: var(--edge-ambient-mid);
|
|
43
|
+
--inset-group-shadow: 0 2px 8px -4px var(--black-a8);
|
|
44
|
+
/* a step rounder than a card, so the rows inside it (its radius less its padding, see the
|
|
45
|
+
nested surfaces in Llama Chat's app.css) keep soft corners */
|
|
46
|
+
--inset-group-radius: var(--length-16);
|
|
47
|
+
|
|
48
|
+
/* selected row: the page a sidebar row opens is on. A tint of the text colour, under hover's,
|
|
49
|
+
with the inset group's edge and shade so it reads as picked out rather than hovered */
|
|
50
|
+
--selected-row-background: color-mix(in oklch, var(--fg-default) 5%, transparent);
|
|
51
|
+
|
|
52
|
+
/* user message bubble */
|
|
53
|
+
--user-bubble-background: color-mix(in oklch, var(--action-primary) 5%, transparent);
|
|
54
|
+
--user-bubble-edge: var(--edge-faint);
|
|
55
|
+
--user-bubble-shadow: var(--elevation-faint);
|
|
56
|
+
--user-bubble-sheen-start: var(--sheen-start);
|
|
57
|
+
--user-bubble-sheen-end: var(--sheen-end);
|
|
58
|
+
|
|
59
|
+
/* floating panels: menus, popovers, select lists, hover cards, drawers, dialogs */
|
|
60
|
+
--float-panel-background: color-mix(in oklch, var(--surface-raised) 86%, transparent);
|
|
61
|
+
/* in light mode a translucent modal greys over the dimmed page, so it stays solid white */
|
|
62
|
+
--float-panel-background-modal: var(--surface-raised);
|
|
63
|
+
--float-panel-text: var(--fg-default);
|
|
64
|
+
--float-panel-edge: var(--edge-raised);
|
|
65
|
+
--float-panel-highlight: var(--highlight-inner);
|
|
66
|
+
--float-panel-shadow: var(--elevation-raised);
|
|
67
|
+
--float-panel-overlay: var(--surface-overlay);
|
|
68
|
+
|
|
69
|
+
/* buttons */
|
|
70
|
+
--button-primary-background: var(--action-primary);
|
|
71
|
+
--button-primary-background-hover: var(--action-primary-hover);
|
|
72
|
+
--button-primary-text: var(--fg-on-action);
|
|
73
|
+
--button-primary-seam: color-mix(in oklch, var(--fg-on-action) 25%, transparent);
|
|
74
|
+
--button-danger-background: var(--action-danger);
|
|
75
|
+
--button-danger-background-hover: var(--action-danger-hover);
|
|
76
|
+
--button-danger-text: var(--fg-on-danger);
|
|
77
|
+
--button-danger-seam: color-mix(in oklch, var(--fg-on-danger) 25%, transparent);
|
|
78
|
+
/* secondary and tertiary in light: a translucent shade of black rather than a white or grey fill, so the key is a
|
|
79
|
+
step darker than whatever it sits on -- the off-white page, a white panel (the chat form, a card) or Matte's white
|
|
80
|
+
page -- and reads the same on each. Tertiary is the fainter step */
|
|
81
|
+
--button-secondary-background: var(--black-a5);
|
|
82
|
+
--button-secondary-background-hover: var(--black-a8);
|
|
83
|
+
--button-secondary-border: var(--black-a6);
|
|
84
|
+
--button-tertiary-background: var(--black-a3);
|
|
85
|
+
--button-tertiary-background-hover: var(--black-a6);
|
|
86
|
+
--button-tertiary-border: var(--black-a4);
|
|
87
|
+
--button-ghost-background-hover: var(--action-ghost-hover);
|
|
88
|
+
--button-outline-background: var(--field-background);
|
|
89
|
+
--button-outline-border: var(--line-control);
|
|
90
|
+
--button-text: var(--fg-default);
|
|
91
|
+
--button-shadow: var(--elevation-control);
|
|
92
|
+
/* the matte finish: a fill barely lighter at the top; solid fills also get an even hairline in a shade of the fill.
|
|
93
|
+
Kept faint, so keys read as frosted glass rather than polished: the danger key fainter still, since a sheen on
|
|
94
|
+
saturated red is what turns it metallic */
|
|
95
|
+
--key-sheen: var(--white-a12);
|
|
96
|
+
--key-sheen-solid: var(--white-a6);
|
|
97
|
+
--button-primary-edge: color-mix(in oklab, var(--button-primary-background), black 30%);
|
|
98
|
+
--button-danger-sheen: var(--white-a2);
|
|
99
|
+
--button-danger-edge: color-mix(in oklab, var(--button-danger-background), black 6%);
|
|
100
|
+
|
|
101
|
+
/* toggles; the outline variant borrows the button outline */
|
|
102
|
+
--toggle-background-hover: var(--action-ghost-hover);
|
|
103
|
+
--toggle-background-on: var(--surface-selected);
|
|
104
|
+
--toggle-text: var(--fg-default);
|
|
105
|
+
|
|
106
|
+
/* toggle group: a row of keys like a secondary button; a pressed key turns white and sinks in */
|
|
107
|
+
--toggle-group-background: var(--button-secondary-background);
|
|
108
|
+
--toggle-group-border: var(--button-secondary-border);
|
|
109
|
+
--toggle-group-seam: var(--line-control);
|
|
110
|
+
--toggle-group-shadow: var(--elevation-control);
|
|
111
|
+
--toggle-group-key-text: var(--fg-default);
|
|
112
|
+
--toggle-group-key-text-muted: color-mix(in oklch, var(--fg-default) 70%, transparent);
|
|
113
|
+
--toggle-group-key-background-hover: var(--action-ghost-hover);
|
|
114
|
+
/* while a key is pressed, the others turn grey so the white one stands out */
|
|
115
|
+
--toggle-group-key-background-idle: var(--surface-muted);
|
|
116
|
+
--toggle-group-key-background-idle-hover: var(--surface-emphasis);
|
|
117
|
+
--toggle-group-key-background-on: var(--surface-pressed);
|
|
118
|
+
--toggle-group-key-shadow-on: var(--elevation-pressed);
|
|
119
|
+
|
|
120
|
+
/* tabs: the segmented track, the active tab raised on it; the line variant underlines instead */
|
|
121
|
+
--tabs-track: var(--surface-muted);
|
|
122
|
+
--tabs-track-shadow: var(--elevation-inset);
|
|
123
|
+
--tabs-text: color-mix(in oklch, var(--fg-default) 70%, transparent);
|
|
124
|
+
--tabs-text-active: var(--fg-default);
|
|
125
|
+
--tabs-background-active: var(--surface-lifted);
|
|
126
|
+
--tabs-shadow-active: var(--elevation-control);
|
|
127
|
+
--tabs-line-active: var(--fg-default);
|
|
128
|
+
|
|
129
|
+
/* switch: the same recessed track and raised thumb; on, the track takes the primary colour */
|
|
130
|
+
--switch-track: var(--surface-muted);
|
|
131
|
+
--switch-track-on: var(--action-primary);
|
|
132
|
+
--switch-track-shadow: var(--elevation-inset);
|
|
133
|
+
--switch-thumb: var(--surface-lifted);
|
|
134
|
+
--switch-thumb-on: var(--surface-lifted);
|
|
135
|
+
--switch-thumb-shadow: var(--elevation-control);
|
|
136
|
+
|
|
137
|
+
/* fields: input, textarea, checkbox */
|
|
138
|
+
--input-background: var(--field-background);
|
|
139
|
+
--input-text: var(--fg-default);
|
|
140
|
+
--input-placeholder: var(--fg-muted);
|
|
141
|
+
--input-border: var(--line-field);
|
|
142
|
+
--input-border-focus: var(--line-focus);
|
|
143
|
+
--input-border-invalid: var(--line-danger);
|
|
144
|
+
--input-shadow: var(--elevation-inset);
|
|
145
|
+
|
|
146
|
+
/* tooltips: the inverse of the page */
|
|
147
|
+
--tooltip-background: var(--action-primary);
|
|
148
|
+
--tooltip-text: var(--fg-on-action);
|
|
149
|
+
--tooltip-highlight: var(--highlight-inverse);
|
|
150
|
+
--tooltip-shadow: var(--elevation-tooltip);
|
|
151
|
+
|
|
152
|
+
/* badges */
|
|
153
|
+
--badge-primary-background: var(--action-primary);
|
|
154
|
+
--badge-primary-background-hover: var(--action-primary-hover);
|
|
155
|
+
--badge-primary-text: var(--fg-on-action);
|
|
156
|
+
--badge-secondary-background: color-mix(in oklch, var(--fg-default) 15%, transparent);
|
|
157
|
+
--badge-secondary-background-hover: color-mix(in oklch, var(--fg-default) 25%, transparent);
|
|
158
|
+
/* the solid danger badge is the danger action's red, like the button */
|
|
159
|
+
--badge-danger-background: var(--action-danger);
|
|
160
|
+
--badge-danger-background-hover: var(--action-danger-hover);
|
|
161
|
+
--badge-danger-text: var(--fg-on-danger);
|
|
162
|
+
--badge-outline-border: var(--line-default);
|
|
163
|
+
--badge-outline-background-hover: var(--surface-selected);
|
|
164
|
+
--badge-text: var(--fg-default);
|
|
165
|
+
|
|
166
|
+
/* status lamps and orbs read the status tokens through orb-danger and friends */
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Matte: dialogs on the page colour (white), like the page under them */
|
|
170
|
+
.theme-matte:not(.dark) {
|
|
171
|
+
--float-panel-background-modal: var(--surface-page);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.dark {
|
|
175
|
+
/* in dark the keys stay frosted glass and quiet fills, lighter than the page */
|
|
176
|
+
--button-secondary-background: var(--surface-glass);
|
|
177
|
+
/* a raised fill would be darker than the dark glass: a faint tint of the text colour instead */
|
|
178
|
+
--inset-group-background: color-mix(in oklch, var(--fg-default) 3%, transparent);
|
|
179
|
+
--inset-group-shadow: 0 2px 8px -4px var(--black-a40);
|
|
180
|
+
--selected-row-background: color-mix(in oklch, var(--fg-default) 5%, transparent);
|
|
181
|
+
--button-secondary-background-hover: var(--surface-muted);
|
|
182
|
+
--button-tertiary-background: var(--action-quiet);
|
|
183
|
+
--button-tertiary-background-hover: var(--action-quiet-hover);
|
|
184
|
+
--button-tertiary-border: var(--surface-muted);
|
|
185
|
+
--button-secondary-border: color-mix(in oklch, var(--line-default) 20%, transparent);
|
|
186
|
+
--badge-secondary-background: color-mix(in oklch, var(--fg-default) 10%, transparent);
|
|
187
|
+
--badge-danger-background: var(--action-danger);
|
|
188
|
+
--badge-danger-background-hover: var(--badge-danger-background);
|
|
189
|
+
--toggle-group-key-background-idle: transparent;
|
|
190
|
+
--toggle-group-key-background-idle-hover: var(--action-ghost-hover);
|
|
191
|
+
/* on the near-white track the thumb stays dark and opaque */
|
|
192
|
+
--switch-thumb-on: var(--surface-raised);
|
|
193
|
+
--float-panel-background-modal: color-mix(in oklch, var(--surface-page) 86%, transparent);
|
|
194
|
+
/* the matte finish again, from the dark fills. The danger key is matte glass: a frosted, translucent red over the
|
|
195
|
+
page (--action-danger), its edge a soft tint of the red rather than a lighter rim, and no sheen (a lit rim and sheen on red read
|
|
196
|
+
as metal) */
|
|
197
|
+
--key-sheen: var(--sheen-start);
|
|
198
|
+
--key-sheen-solid: var(--white-a9);
|
|
199
|
+
--button-primary-edge: color-mix(in oklab, var(--button-primary-background), black 10%);
|
|
200
|
+
--button-danger-sheen: transparent;
|
|
201
|
+
--button-danger-edge: color-mix(in oklch, var(--line-danger) 40%, transparent);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* the user bubble is a card with an even, fainter edge, no inner ring and a barely noticeable shadow */
|
|
205
|
+
.chat-message-user-bubble {
|
|
206
|
+
--card-shadow: var(--user-bubble-shadow);
|
|
207
|
+
/* no inner highlight ring: the bubble is a flat tint with its hairline edge */
|
|
208
|
+
--card-highlight: transparent;
|
|
209
|
+
--card-edge-side: var(--user-bubble-edge);
|
|
210
|
+
--card-edge-mid: var(--user-bubble-edge);
|
|
211
|
+
}
|