@adea-ai/ui 0.155.1 → 0.157.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/README.md +3 -3
- package/dist/NOTICE +27 -0
- package/dist/components/composites/model-selector/model-selector.js +45 -53
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/prompt-input/index.d.ts +2 -0
- package/dist/components/composites/prompt-input/index.d.ts.map +1 -0
- package/dist/components/composites/prompt-input/index.js +1 -0
- package/dist/components/composites/prompt-input/prompt-input.d.ts +71 -0
- package/dist/components/composites/prompt-input/prompt-input.d.ts.map +1 -0
- package/dist/components/composites/prompt-input/prompt-input.js +247 -0
- package/dist/components/composites/prompt-input/prompt-input.js.map +1 -0
- package/dist/components/conversation/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/chat-composer.js +43 -29
- package/dist/components/conversation/chat-composer.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +155 -163
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +186 -192
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/paste-token-editor.js +2 -2
- package/dist/components/conversation/paste-token-editor.js.map +1 -1
- package/dist/components/theme/theme-document.d.ts +1 -1
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +1 -1
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/ui/badge/badge.js +1 -1
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +3 -3
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/input-group/index.d.ts +1 -1
- package/dist/components/ui/input-group/index.d.ts.map +1 -1
- package/dist/components/ui/input-group/index.js +2 -2
- package/dist/components/ui/input-group/input-group.d.ts +34 -9
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/input-group.js +101 -28
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +6 -1
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/message/index.d.ts +1 -1
- package/dist/components/ui/message/index.d.ts.map +1 -1
- package/dist/components/ui/message/index.js +2 -2
- package/dist/components/ui/message/message.d.ts +16 -0
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +52 -1
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +1 -1
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/lib/fast-icon.d.ts +2 -1
- package/dist/lib/fast-icon.d.ts.map +1 -1
- package/dist/lib/fast-icon.js +4 -3
- package/dist/lib/fast-icon.js.map +1 -1
- package/dist/lib/overlay.d.ts +5 -5
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +5 -5
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/theme-defaults.generated.d.ts.map +1 -1
- package/dist/lib/theme-defaults.generated.js +88 -60
- package/dist/lib/theme-defaults.generated.js.map +1 -1
- package/dist/lib/theme-projection.d.ts +2 -0
- package/dist/lib/theme-projection.d.ts.map +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-projection.js.map +1 -1
- package/dist/lib/theme-types.d.ts +7 -0
- package/dist/lib/theme-types.d.ts.map +1 -1
- package/dist/lib/theme-types.js +7 -0
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/r/appearance-editor.json +1 -1
- package/dist/r/conversation.json +1 -2
- package/dist/r/input-group.json +1 -0
- package/dist/r/lib.json +1 -1
- package/dist/r/message.json +4 -1
- package/dist/r/model-selector.json +1 -1
- package/dist/r/prompt-input.json +28 -0
- package/dist/r/registry.json +38 -7
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +19 -25
- package/dist/r/src/components/composites/prompt-input/index.ts +15 -0
- package/dist/r/src/components/composites/prompt-input/prompt-input.tsx +267 -0
- package/dist/r/src/components/conversation/chat-composer.tsx +4 -2
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +27 -38
- package/dist/r/src/components/conversation/message-composer.tsx +93 -97
- package/dist/r/src/components/conversation/paste-token-editor.tsx +2 -2
- package/dist/r/src/components/theme/theme-document.ts +1 -1
- package/dist/r/src/components/theme/theme-provider-value.ts +1 -1
- package/dist/r/src/components/ui/badge/badge.tsx +1 -1
- package/dist/r/src/components/ui/button/button.tsx +12 -3
- package/dist/r/src/components/ui/input-group/index.ts +3 -0
- package/dist/r/src/components/ui/input-group/input-group.tsx +121 -29
- package/dist/r/src/components/ui/kbd/kbd.tsx +3 -0
- package/dist/r/src/components/ui/message/index.ts +3 -0
- package/dist/r/src/components/ui/message/message.tsx +56 -0
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +1 -1
- package/dist/r/src/lib/fast-icon.ts +11 -4
- package/dist/r/src/lib/overlay.ts +5 -6
- package/dist/r/src/lib/theme-defaults.generated.ts +88 -60
- package/dist/r/src/lib/theme-projection.ts +2 -0
- package/dist/r/src/lib/theme-types.ts +7 -0
- package/dist/r/src/styles/theme-variants.css +608 -370
- package/dist/r/src/styles/theme.css +4 -4
- package/dist/r/theming.json +1 -1
- package/package.json +2 -2
- package/registry.json +38 -7
- package/src/components/composites/model-selector/model-selector.tsx +19 -25
- package/src/components/composites/prompt-input/index.ts +15 -0
- package/src/components/composites/prompt-input/prompt-input.tsx +267 -0
- package/src/components/conversation/chat-composer.tsx +4 -2
- package/src/components/conversation/internal/chat-composer-shell.tsx +27 -38
- package/src/components/conversation/message-composer.tsx +93 -97
- package/src/components/conversation/paste-token-editor.tsx +2 -2
- package/src/components/theme/theme-document.ts +1 -1
- package/src/components/theme/theme-provider-value.ts +1 -1
- package/src/components/ui/badge/badge.tsx +1 -1
- package/src/components/ui/button/button.tsx +12 -3
- package/src/components/ui/input-group/index.ts +3 -0
- package/src/components/ui/input-group/input-group.tsx +121 -29
- package/src/components/ui/kbd/kbd.tsx +3 -0
- package/src/components/ui/message/index.ts +3 -0
- package/src/components/ui/message/message.tsx +56 -0
- package/src/components/ui/tooltip/tooltip.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/lib/fast-icon.ts +11 -4
- package/src/lib/overlay.ts +5 -6
- package/src/lib/theme-defaults.generated.ts +88 -60
- package/src/lib/theme-projection.ts +2 -0
- package/src/lib/theme-types.ts +7 -0
- package/src/styles/theme-variants.css +608 -370
- package/src/styles/theme.css +4 -4
- package/src/styles/themes/aardvark-blue.css +7 -0
- package/src/styles/themes/aardvark-ink.css +7 -0
- package/src/styles/themes/adea-dark-colorblind.css +22 -15
- package/src/styles/themes/adea-dark-high-contrast.css +22 -15
- package/src/styles/themes/adea-dark.css +22 -15
- package/src/styles/themes/adea-light-colorblind.css +21 -14
- package/src/styles/themes/adea-light-high-contrast.css +21 -14
- package/src/styles/themes/adea-light.css +22 -15
- package/src/styles/themes/ayu-light.css +20 -13
- package/src/styles/themes/ayu-mirage.css +21 -14
- package/src/styles/themes/ayu.css +22 -15
- package/src/styles/themes/catppuccin-frappe.css +16 -9
- package/src/styles/themes/catppuccin-latte.css +15 -8
- package/src/styles/themes/catppuccin-macchiato.css +16 -9
- package/src/styles/themes/catppuccin-mocha.css +16 -9
- package/src/styles/themes/dracula.css +16 -9
- package/src/styles/themes/everforest-dark.css +19 -12
- package/src/styles/themes/everforest-light.css +21 -14
- package/src/styles/themes/gruvbox-dark.css +21 -14
- package/src/styles/themes/gruvbox-light.css +20 -13
- package/src/styles/themes/kanagawa.css +18 -11
- package/src/styles/themes/monokai.css +19 -12
- package/src/styles/themes/nord-light.css +7 -0
- package/src/styles/themes/nord.css +19 -12
- package/src/styles/themes/one-dark.css +16 -9
- package/src/styles/themes/rosepine-dawn.css +19 -12
- package/src/styles/themes/rosepine-moon.css +20 -13
- package/src/styles/themes/rosepine.css +20 -13
- package/src/styles/themes/solarized-dark.css +19 -12
- package/src/styles/themes/solarized-light.css +19 -12
- package/src/styles/themes/tokyonight-day.css +7 -0
- package/src/styles/themes/tokyonight-night.css +18 -11
- package/src/styles/themes/tokyonight-storm.css +18 -11
- package/src/styles/themes/vesper.css +22 -15
package/dist/lib/overlay.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.js","names":[],"sources":["../../src/lib/overlay.ts"],"sourcesContent":["/**\n * Shared strings for the overlay layer: dialogs, sheets, menus, popovers,\n * tooltips and the command palette.\n *\n * These live here rather than in each component because the overlay family is\n * where consistency is most visible and least likely to survive duplication.\n * A dialog, a sheet and a dropdown that disagree about their border, radius,\n * motion or shadow read as three different apps, and an app that adopts this\n * library would inherit all three. Declaring the surface once is what makes\n * \"an overlay looks like this\" a fact rather than a convention.\n */\n\nimport { cva, type VariantProps } from '#lib/variants'\n\n/** The panel itself: fill, hairline edge, radius, elevation. Menus, popovers\n * and the command palette float on the elevated overlay rung (`--popover`). */\nexport const overlaySurface =\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * The modal panel: the same hairline edge, radius and elevation, painted on the\n * *neutral* theme surface instead of the elevated overlay rung.\n *\n * `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies\n * the canvas hue's chroma on the elevated step. On the dark default's violet\n * canvas that makes the dialog the most chromatic surface in the ladder,\n * `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog\n * panel that cast reads as a warm tint the canvas never has. shadcn's own\n * convention already splits the two: a Dialog paints `bg-background`, menus and\n * popovers paint `bg-popover`. The veil, the hairline and the elevation shadow\n * carry the separation the lighter fill no longer provides.\n */\nexport const dialogSurface =\n 'bg-background text-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * Overlay titles have one fixed typography role. Keep this small recipe shared\n * without loading the configurable Heading component into every dialog.\n */\nexport const overlayTitle = 'font-semibold text-base tracking-tight leading-none'\n\n/** The span of the portal wrapper that centres a dialog-like overlay. */\nexport const overlayPositioner = 'fixed inset-0 z-(--z-dialog) grid place-items-center p-4'\n\n/** The dimming layer behind a modal overlay. */\nexport const overlayScrim =\n 'fixed inset-0 z-(--z-dialog) bg-scrim/50 supports-[backdrop-filter]:backdrop-blur-xs'\n\n/** The scrim fades; it never zooms with the panel above it. */\nexport const overlayScrimMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0'\n\n/** The title block of a dialog-shaped panel. */\nexport const overlayHeader = 'flex flex-col gap-1.5 text-start'\n\n/** The action row of a dialog-shaped panel: stacked on a phone, trailing on a wider window. */\nexport const overlayFooter = 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end'\n\n/** The sentence under an overlay title. */\nexport const overlayDescription = 'text-muted-foreground text-sm'\n\n/** The icon-only close in a dialog or sheet's top-end corner. */\nexport const overlayCornerClose =\n 'absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground ' +\n 'transition-colors ease-out hover:bg-surface-hover hover:text-foreground ' +\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none'\n\n/**\n * The tip: the card-toned bubble an explanation shows in. The side rail draws\n * it flush to a collapsed row and every floating tooltip composes the same\n * fill, edge, and type, so a control never explains itself in two visual\n * languages.\n */\nexport const tooltipTip =\n 'bg-card text-card-foreground rounded-md border border-border text-sm font-medium shadow-lg'\n\n/**\n * Entrance and exit motion, expressed as data-state classes.\n *\n * `data-expanded` / `data-closed` are Kobalte's; `data-side-*` come from its\n * popper positioning and let a menu slide in from the edge it is anchored to,\n * which is what makes a dropdown feel attached to its trigger rather than\n * dropped on the screen. Exit motion is shorter than entry, because a\n * dismissal should feel immediate while an arrival benefits from being seen.\n */\nexport const overlayZoom =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-expanded:zoom-in-95 ' +\n 'data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95'\n\n/** `overlayZoom` at the panel's pace: menus, dialogs. */\nexport const overlayMotion = `${overlayZoom} data-expanded:duration-200 data-closed:duration-150`\n\n/** `overlayZoom` at a hint's pace: the tooltip and the hover card. */\nexport const tooltipMotion = `${overlayZoom} data-expanded:duration-150 data-closed:duration-100`\n\n/** Popover-style motion: no zoom, so a panel anchored to a control does not\n * appear to breathe away from it. */\nexport const popoverMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ' +\n 'data-expanded:duration-150 data-closed:duration-100'\n\n/** The popper arrow. Sized in the component; coloured here. */\nexport const popoverArrow = 'fill-popover stroke-border'\n\n/**\n * A menu row: the shared height, radius, hover fill and focus treatment for\n * every item inside a menu, listbox or command list.\n *\n * The row sizes and dims the icons a caller puts in it, but not the glyph of\n * its selection indicator (any `[data-slot$=-indicator]`): a descendant `svg`\n * rule outranks a single utility on the glyph, so without the exclusion a\n * radio item's `size-2` dot drew as a 16px muted disc and every check lost the\n * indicator's accent.\n */\nexport const menuItem =\n 'relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none ' +\n 'transition-colors ease-out ' +\n 'data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground ' +\n 'data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground ' +\n '[&_svg]:pointer-events-none [&_svg]:shrink-0 ' +\n '[&_svg:not([data-slot$=-indicator]_*)]:size-4 ' +\n '[&_svg:not([class*=text-]):not([data-slot$=-indicator]_*)]:text-muted-foreground'\n\n/** A destructive action keeps readable text and marks its row with a status edge. */\nexport const destructiveMenuItem =\n 'border-s-2 border-destructive ps-1.5 text-foreground data-[highlighted]:bg-destructive-subtle'\n\n/** The label above a group of menu rows. */\nexport const menuLabel =\n 'px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase'\n\n/** The chord drawn at a row's trailing edge: menus and the command palette. */\nexport const menuShortcut = 'text-muted-foreground ms-auto text-xs tracking-widest'\n\n/** The rule between menu groups. */\nexport const menuSeparator = 'bg-border -mx-1 my-1 h-px'\n\n/**\n * A leading colour swatch on a menu or select row: the sanctioned way to carry\n * a card-tone colour into a list of options. The tones are the system's accent\n * and status roles, the vocabulary a Badge already speaks, so the colour an\n * option shows in a menu is the colour its badge carries on a card, and a\n * caller never passes a raw colour into a list. The dot is `aria-hidden`; the\n * label carries the meaning, so a tone is never the only signal.\n */\nexport const menuSwatchTone = cva('size-2 shrink-0 rounded-full', {\n variants: {\n tone: {\n neutral: 'bg-muted-foreground',\n primary: 'bg-primary',\n success: 'bg-success',\n warning: 'bg-warning',\n destructive: 'bg-destructive',\n info: 'bg-info',\n },\n },\n defaultVariants: { tone: 'neutral' },\n})\n\n/** The tones a menu row's swatch can take. */\nexport type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['tone']>\n\n/** Padding shared by every menu-list surface. */\nexport const menuContentPadding = 'p-1'\n\n/**\n * Marks a floating layer, a menu, a listbox, a popover, as part of the top\n * layer.\n *\n * A modal dialog hides everything outside itself from assistive technology\n * (`aria-hidden` on its siblings) and keeps watching `<body>` for new nodes.\n * A menu or select opened from inside the dialog portals to `<body>`, so the\n * dialog hid it too: the list was on screen, focused, and invisible to a\n * screen reader, and an outside-click check could treat a click on it as a\n * click away from the dialog. Kobalte exempts nodes carrying this attribute\n * from both, so every floating layer carries it.\n */\nexport const topLayerProps = { 'data-kb-top-layer': '' } as const\n\n/**\n * Marks a portal mounted while another modal layer is already open as a layer\n * of its own rather than background.\n *\n * Kobalte's hide-outside observer walks body children added after its layer\n * opened and aria-hides them a frame later, so a non-modal dialog portaled in\n * during that window would land outside the accessibility tree. That observer\n * exempts added nodes carrying the React Aria spelling it ported;\n * `data-kb-top-layer` (`topLayerProps`) is only honoured by a newer layer's\n * initial walk, which must still hide this portal.\n */\nexport const lateLayerAttribute = 'data-react-aria-top-layer'\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,iBACX;;;;;;;;;;;;;;AAeF,IAAa,gBACX;;;;;AAMF,IAAa,eAAe;;AAG5B,IAAa,oBAAoB;;AAGjC,IAAa,eACX;;AAGF,IAAa,qBACX;;AAGF,IAAa,gBAAgB;;AAG7B,IAAa,gBAAgB;;AAG7B,IAAa,qBAAqB;;AAGlC,IAAa,qBACX;;;;;;;AAUF,IAAa,aACX;;;;;;;;;;AAWF,IAAa,cACX;;AAIF,IAAa,gBAAgB,GAAG,YAAY;;AAG5C,IAAa,gBAAgB,GAAG,YAAY;;;AAI5C,IAAa,gBACX;;AAIF,IAAa,eAAe;;;;;;;;;;;AAY5B,IAAa,WACX;;AASF,IAAa,sBACX;;AAGF,IAAa,YACX;;AAGF,IAAa,eAAe;;AAG5B,IAAa,gBAAgB;;;;;;;;;AAU7B,IAAa,iBAAiB,IAAI,gCAAgC;CAChE,UAAU,EACR,MAAM;EACJ,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,MAAM;CACR,EACF;CACA,iBAAiB,EAAE,MAAM,UAAU;AACrC,CAAC;;AAMD,IAAa,qBAAqB;;;;;;;;;;;;;AAclC,IAAa,gBAAgB,EAAE,qBAAqB,GAAG;;;;;;;;;;;;AAavD,IAAa,qBAAqB"}
|
|
1
|
+
{"version":3,"file":"overlay.js","names":[],"sources":["../../src/lib/overlay.ts"],"sourcesContent":["/**\n * Shared strings for the overlay layer: dialogs, sheets, menus, popovers,\n * tooltips and the command palette.\n *\n * These live here rather than in each component because the overlay family is\n * where consistency is most visible and least likely to survive duplication.\n * A dialog, a sheet and a dropdown that disagree about their border, radius,\n * motion or shadow read as three different apps, and an app that adopts this\n * library would inherit all three. Declaring the surface once is what makes\n * \"an overlay looks like this\" a fact rather than a convention.\n */\n\nimport { cva, type VariantProps } from '#lib/variants'\n\n/** The panel itself: fill, hairline edge, radius, elevation. Menus, popovers\n * and the command palette float on the elevated overlay rung (`--popover`). */\nexport const overlaySurface =\n 'bg-popover text-popover-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * The modal panel: the same hairline edge, radius and elevation, painted on the\n * *neutral* theme surface instead of the elevated overlay rung.\n *\n * `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies\n * the canvas hue's chroma on the elevated step. On the dark default's violet\n * canvas that makes the dialog the most chromatic surface in the ladder,\n * `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog\n * panel that cast reads as a warm tint the canvas never has. shadcn's own\n * convention already splits the two: a Dialog paints `bg-background`, menus and\n * popovers paint `bg-popover`. The veil, the hairline and the elevation shadow\n * carry the separation the lighter fill no longer provides.\n */\nexport const dialogSurface =\n 'bg-background text-foreground rounded-xl border border-border shadow-lg'\n\n/**\n * Overlay titles have one fixed typography role. Keep this small recipe shared\n * without loading the configurable Heading component into every dialog.\n */\nexport const overlayTitle = 'font-semibold text-base tracking-tight leading-none'\n\n/** The span of the portal wrapper that centres a dialog-like overlay. */\nexport const overlayPositioner = 'fixed inset-0 z-(--z-dialog) grid place-items-center p-4'\n\n/** The dimming layer behind a modal overlay. */\nexport const overlayScrim =\n 'fixed inset-0 z-(--z-dialog) bg-scrim/50 supports-[backdrop-filter]:backdrop-blur-xs'\n\n/** The scrim fades; it never zooms with the panel above it. */\nexport const overlayScrimMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0'\n\n/** The title block of a dialog-shaped panel. */\nexport const overlayHeader = 'flex flex-col gap-1.5 text-start'\n\n/** The action row of a dialog-shaped panel: stacked on a phone, trailing on a wider window. */\nexport const overlayFooter = 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end'\n\n/** The sentence under an overlay title. */\nexport const overlayDescription = 'text-muted-foreground text-sm'\n\n/** The icon-only close in a dialog or sheet's top-end corner. */\nexport const overlayCornerClose =\n 'absolute top-3.5 end-3.5 rounded-md p-1 text-muted-foreground ' +\n 'transition-colors ease-out hover:bg-surface-hover hover:text-foreground ' +\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle outline-none'\n\n/**\n * The tip: shadcn's inverted chip, foreground on background, so an explanation\n * never reads as a popover that could hold controls. The side rail draws it\n * flush to a collapsed row and every floating tooltip composes the same fill\n * and type, so a control never explains itself in two visual languages.\n */\nexport const tooltipTip = 'bg-foreground text-background rounded-md text-xs font-medium'\n\n/**\n * Entrance and exit motion, expressed as data-state classes.\n *\n * `data-expanded` / `data-closed` are Kobalte's; `data-side-*` come from its\n * popper positioning and let a menu slide in from the edge it is anchored to,\n * which is what makes a dropdown feel attached to its trigger rather than\n * dropped on the screen. Exit motion is shorter than entry, because a\n * dismissal should feel immediate while an arrival benefits from being seen.\n */\nexport const overlayZoom =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-expanded:zoom-in-95 ' +\n 'data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95'\n\n/** `overlayZoom` at the panel's pace: menus, dialogs. */\nexport const overlayMotion = `${overlayZoom} data-expanded:duration-200 data-closed:duration-150`\n\n/** `overlayZoom` at a hint's pace: the tooltip and the hover card. */\nexport const tooltipMotion = `${overlayZoom} data-expanded:duration-150 data-closed:duration-100`\n\n/** Popover-style motion: no zoom, so a panel anchored to a control does not\n * appear to breathe away from it. */\nexport const popoverMotion =\n 'data-expanded:animate-in data-expanded:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ' +\n 'data-expanded:duration-150 data-closed:duration-100'\n\n/** The popper arrow. Sized in the component; coloured here. */\nexport const popoverArrow = 'fill-popover stroke-border'\n\n/**\n * A menu row: the shared height, radius, hover fill and focus treatment for\n * every item inside a menu, listbox or command list.\n *\n * The row sizes and dims the icons a caller puts in it, but not the glyph of\n * its selection indicator (any `[data-slot$=-indicator]`): a descendant `svg`\n * rule outranks a single utility on the glyph, so without the exclusion a\n * radio item's `size-2` dot drew as a 16px muted disc and every check lost the\n * indicator's accent.\n */\nexport const menuItem =\n 'relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none ' +\n 'transition-colors ease-out ' +\n 'data-[highlighted]:bg-surface-hover data-[highlighted]:text-foreground ' +\n 'data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground ' +\n '[&_svg]:pointer-events-none [&_svg]:shrink-0 ' +\n '[&_svg:not([data-slot$=-indicator]_*)]:size-4 ' +\n '[&_svg:not([class*=text-]):not([data-slot$=-indicator]_*)]:text-muted-foreground'\n\n/** A destructive action keeps readable text and marks its row with a status edge. */\nexport const destructiveMenuItem =\n 'border-s-2 border-destructive ps-1.5 text-foreground data-[highlighted]:bg-destructive-subtle'\n\n/** The label above a group of menu rows. */\nexport const menuLabel =\n 'px-2 py-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase'\n\n/** The chord drawn at a row's trailing edge: menus and the command palette. */\nexport const menuShortcut = 'text-muted-foreground ms-auto text-xs tracking-widest'\n\n/** The rule between menu groups. */\nexport const menuSeparator = 'bg-border -mx-1 my-1 h-px'\n\n/**\n * A leading colour swatch on a menu or select row: the sanctioned way to carry\n * a card-tone colour into a list of options. The tones are the system's accent\n * and status roles, the vocabulary a Badge already speaks, so the colour an\n * option shows in a menu is the colour its badge carries on a card, and a\n * caller never passes a raw colour into a list. The dot is `aria-hidden`; the\n * label carries the meaning, so a tone is never the only signal.\n */\nexport const menuSwatchTone = cva('size-2 shrink-0 rounded-full', {\n variants: {\n tone: {\n neutral: 'bg-muted-foreground',\n primary: 'bg-primary',\n success: 'bg-success',\n warning: 'bg-warning',\n destructive: 'bg-destructive',\n info: 'bg-info',\n },\n },\n defaultVariants: { tone: 'neutral' },\n})\n\n/** The tones a menu row's swatch can take. */\nexport type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['tone']>\n\n/** Padding shared by every menu-list surface. */\nexport const menuContentPadding = 'p-1'\n\n/**\n * Marks a floating layer, a menu, a listbox, a popover, as part of the top\n * layer.\n *\n * A modal dialog hides everything outside itself from assistive technology\n * (`aria-hidden` on its siblings) and keeps watching `<body>` for new nodes.\n * A menu or select opened from inside the dialog portals to `<body>`, so the\n * dialog hid it too: the list was on screen, focused, and invisible to a\n * screen reader, and an outside-click check could treat a click on it as a\n * click away from the dialog. Kobalte exempts nodes carrying this attribute\n * from both, so every floating layer carries it.\n */\nexport const topLayerProps = { 'data-kb-top-layer': '' } as const\n\n/**\n * Marks a portal mounted while another modal layer is already open as a layer\n * of its own rather than background.\n *\n * Kobalte's hide-outside observer walks body children added after its layer\n * opened and aria-hides them a frame later, so a non-modal dialog portaled in\n * during that window would land outside the accessibility tree. That observer\n * exempts added nodes carrying the React Aria spelling it ported;\n * `data-kb-top-layer` (`topLayerProps`) is only honoured by a newer layer's\n * initial walk, which must still hide this portal.\n */\nexport const lateLayerAttribute = 'data-react-aria-top-layer'\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,iBACX;;;;;;;;;;;;;;AAeF,IAAa,gBACX;;;;;AAMF,IAAa,eAAe;;AAG5B,IAAa,oBAAoB;;AAGjC,IAAa,eACX;;AAGF,IAAa,qBACX;;AAGF,IAAa,gBAAgB;;AAG7B,IAAa,gBAAgB;;AAG7B,IAAa,qBAAqB;;AAGlC,IAAa,qBACX;;;;;;;AAUF,IAAa,aAAa;;;;;;;;;;AAW1B,IAAa,cACX;;AAIF,IAAa,gBAAgB,GAAG,YAAY;;AAG5C,IAAa,gBAAgB,GAAG,YAAY;;;AAI5C,IAAa,gBACX;;AAIF,IAAa,eAAe;;;;;;;;;;;AAY5B,IAAa,WACX;;AASF,IAAa,sBACX;;AAGF,IAAa,YACX;;AAGF,IAAa,eAAe;;AAG5B,IAAa,gBAAgB;;;;;;;;;AAU7B,IAAa,iBAAiB,IAAI,gCAAgC;CAChE,UAAU,EACR,MAAM;EACJ,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,MAAM;CACR,EACF;CACA,iBAAiB,EAAE,MAAM,UAAU;AACrC,CAAC;;AAMD,IAAa,qBAAqB;;;;;;;;;;;;;AAclC,IAAa,gBAAgB,EAAE,qBAAqB,GAAG;;;;;;;;;;;;AAavD,IAAa,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-defaults.generated.d.ts","sourceRoot":"","sources":["../../src/lib/theme-defaults.generated.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAErE,uEAAuE;AACvE,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC,EAmCvF,CAAA;AAED,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,GAAG,WAAW,EAAE,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"theme-defaults.generated.d.ts","sourceRoot":"","sources":["../../src/lib/theme-defaults.generated.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAErE,uEAAuE;AACvE,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC,EAmCvF,CAAA;AAED,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,GAAG,WAAW,EAAE,YAAY,CAAC,CA+MvF,CAAA;AAED,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,EAAE,SAAS,YAAY,EA6BxD,CAAA;AAED,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGnE,CAAA;AAED,6FAA6F;AAC7F,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmD7E,CAAA"}
|
|
@@ -106,21 +106,28 @@ var DEFAULT_VARIANTS = {
|
|
|
106
106
|
brightWhite: "oklch(0.6658 0.0181 250.92)"
|
|
107
107
|
},
|
|
108
108
|
editor: {
|
|
109
|
-
keyword: "oklch(0.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
keyword: "oklch(0.5517 0.2051 24.53)",
|
|
110
|
+
storage: "oklch(0.5517 0.2051 24.53)",
|
|
111
|
+
string: "oklch(0.321 0.1084 259.11)",
|
|
112
|
+
number: "oklch(0.4509 0.1641 258.18)",
|
|
113
|
+
comment: "oklch(0.5651 0.0189 250.97)",
|
|
114
|
+
function: "oklch(0.5631 0.2069 294.97)",
|
|
115
|
+
variable: "oklch(0.2542 0.0111 254.04)",
|
|
116
|
+
parameter: "oklch(0.4657 0.1371 43.35)",
|
|
117
|
+
property: "oklch(0.2542 0.0111 254.04)",
|
|
118
|
+
field: "oklch(0.2542 0.0111 254.04)",
|
|
119
|
+
member: "oklch(0.2542 0.0111 254.04)",
|
|
120
|
+
type: "oklch(0.4657 0.1371 43.35)",
|
|
121
|
+
tag: "oklch(0.4391 0.1179 148.07)",
|
|
122
|
+
attribute: "oklch(0.4509 0.1641 258.18)",
|
|
123
|
+
operator: "oklch(0.5517 0.2051 24.53)",
|
|
124
|
+
heading: "oklch(0.4509 0.1641 258.18)",
|
|
125
|
+
link: "oklch(0.2542 0.0111 254.04)",
|
|
126
|
+
constant: "oklch(0.4509 0.1641 258.18)",
|
|
127
|
+
punctuation: "oklch(0.2542 0.0111 254.04)",
|
|
128
|
+
diffAdd: "oklch(0.4391 0.1179 148.07)",
|
|
129
|
+
diffDelete: "oklch(0.387 0.1507 20.77)",
|
|
130
|
+
diffHunk: "oklch(0.5631 0.2069 294.97)",
|
|
124
131
|
searchMatch: "oklch(0.5016 0.1401 79.91)"
|
|
125
132
|
},
|
|
126
133
|
chart: [
|
|
@@ -205,21 +212,28 @@ var DEFAULT_VARIANTS = {
|
|
|
205
212
|
brightWhite: "oklch(1 0 0)"
|
|
206
213
|
},
|
|
207
214
|
editor: {
|
|
208
|
-
keyword: "oklch(0.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
215
|
+
keyword: "oklch(0.7345 0.1626 25.78)",
|
|
216
|
+
storage: "oklch(0.7345 0.1626 25.78)",
|
|
217
|
+
string: "oklch(0.856 0.0768 244.09)",
|
|
218
|
+
number: "oklch(0.7857 0.1153 246.66)",
|
|
219
|
+
comment: "oklch(0.6625 0.0181 250.92)",
|
|
220
|
+
function: "oklch(0.8005 0.1275 305.86)",
|
|
221
|
+
variable: "oklch(0.9425 0.0111 243.66)",
|
|
222
|
+
parameter: "oklch(0.7991 0.1412 60.1)",
|
|
223
|
+
property: "oklch(0.9425 0.0111 243.66)",
|
|
224
|
+
field: "oklch(0.9425 0.0111 243.66)",
|
|
225
|
+
member: "oklch(0.9425 0.0111 243.66)",
|
|
226
|
+
type: "oklch(0.7991 0.1412 60.1)",
|
|
227
|
+
tag: "oklch(0.8416 0.1641 145.75)",
|
|
228
|
+
attribute: "oklch(0.7857 0.1153 246.66)",
|
|
229
|
+
operator: "oklch(0.7345 0.1626 25.78)",
|
|
230
|
+
heading: "oklch(0.7857 0.1153 246.66)",
|
|
231
|
+
link: "oklch(0.9425 0.0111 243.66)",
|
|
232
|
+
constant: "oklch(0.7857 0.1153 246.66)",
|
|
233
|
+
punctuation: "oklch(0.9425 0.0111 243.66)",
|
|
234
|
+
diffAdd: "oklch(0.8416 0.1641 145.75)",
|
|
235
|
+
diffDelete: "oklch(0.8014 0.1134 25.81)",
|
|
236
|
+
diffHunk: "oklch(0.8005 0.1275 305.86)",
|
|
223
237
|
searchMatch: "oklch(0.7196 0.1401 79.91)"
|
|
224
238
|
},
|
|
225
239
|
chart: [
|
|
@@ -276,39 +290,53 @@ var DEFAULT_PRIMARY_SUBTLE = {
|
|
|
276
290
|
/** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */
|
|
277
291
|
var DEFAULT_FLOOR_EDITOR = {
|
|
278
292
|
"adea-light": {
|
|
279
|
-
keyword: "#
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
keyword: "#cf222e",
|
|
294
|
+
storage: "#cf222e",
|
|
295
|
+
string: "#0a3069",
|
|
296
|
+
number: "#0550ae",
|
|
297
|
+
comment: "#6e7781",
|
|
298
|
+
function: "#8250df",
|
|
299
|
+
variable: "#1f2328",
|
|
300
|
+
parameter: "#953800",
|
|
301
|
+
property: "#1f2328",
|
|
302
|
+
field: "#1f2328",
|
|
303
|
+
member: "#1f2328",
|
|
304
|
+
type: "#953800",
|
|
305
|
+
tag: "#116329",
|
|
306
|
+
attribute: "#0550ae",
|
|
307
|
+
operator: "#cf222e",
|
|
308
|
+
heading: "#0550ae",
|
|
309
|
+
link: "#1f2328",
|
|
310
|
+
constant: "#0550ae",
|
|
311
|
+
punctuation: "#1f2328",
|
|
312
|
+
diffAdd: "#116329",
|
|
313
|
+
diffDelete: "#82071e",
|
|
314
|
+
diffHunk: "#8250df",
|
|
294
315
|
searchMatch: "#825c00"
|
|
295
316
|
},
|
|
296
317
|
"adea-dark": {
|
|
297
|
-
keyword: "#
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
318
|
+
keyword: "#ff7b72",
|
|
319
|
+
storage: "#ff7b72",
|
|
320
|
+
string: "#a5d6ff",
|
|
321
|
+
number: "#79c0ff",
|
|
322
|
+
comment: "#8b949e",
|
|
323
|
+
function: "#d2a8ff",
|
|
324
|
+
variable: "#e6edf3",
|
|
325
|
+
parameter: "#ffa657",
|
|
326
|
+
property: "#e6edf3",
|
|
327
|
+
field: "#e6edf3",
|
|
328
|
+
member: "#e6edf3",
|
|
329
|
+
type: "#ffa657",
|
|
330
|
+
tag: "#7ee787",
|
|
331
|
+
attribute: "#79c0ff",
|
|
332
|
+
operator: "#ff7b72",
|
|
333
|
+
heading: "#79c0ff",
|
|
334
|
+
link: "#e6edf3",
|
|
335
|
+
constant: "#79c0ff",
|
|
336
|
+
punctuation: "#e6edf3",
|
|
337
|
+
diffAdd: "#7ee787",
|
|
338
|
+
diffDelete: "#ffa198",
|
|
339
|
+
diffHunk: "#d2a8ff",
|
|
312
340
|
searchMatch: "#d29922"
|
|
313
341
|
}
|
|
314
342
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-defaults.generated.js","names":[],"sources":["../../src/lib/theme-defaults.generated.ts"],"sourcesContent":["/*\n * GENERATED by scripts/build-theme-defaults.ts from @adea-ai/themes. Do not edit.\n * Run `bun run theme:defaults` after the catalogue changes;\n * tests/theme-defaults.test.ts fails when this file is stale.\n */\nimport type { AccentPreset } from '@adea-ai/themes'\nimport type { ThemeEditorPalette, ThemeVariant } from './theme-types'\n\n/** Every catalogue theme id and its appearance, in catalogue order. */\nexport const THEME_INDEX: readonly (readonly [id: string, appearance: 'light' | 'dark'])[] = [\n ['adea-dark', 'dark'],\n ['adea-dark-colorblind', 'dark'],\n ['adea-dark-high-contrast', 'dark'],\n ['adea-light', 'light'],\n ['adea-light-colorblind', 'light'],\n ['adea-light-high-contrast', 'light'],\n ['aardvark-blue', 'dark'],\n ['aardvark-ink', 'dark'],\n ['ayu', 'dark'],\n ['ayu-light', 'light'],\n ['ayu-mirage', 'dark'],\n ['catppuccin-frappe', 'dark'],\n ['catppuccin-latte', 'light'],\n ['catppuccin-macchiato', 'dark'],\n ['catppuccin-mocha', 'dark'],\n ['dracula', 'dark'],\n ['everforest-dark', 'dark'],\n ['everforest-light', 'light'],\n ['gruvbox-dark', 'dark'],\n ['gruvbox-light', 'light'],\n ['kanagawa', 'dark'],\n ['monokai', 'dark'],\n ['nord', 'dark'],\n ['nord-light', 'light'],\n ['one-dark', 'dark'],\n ['rosepine', 'dark'],\n ['rosepine-dawn', 'light'],\n ['rosepine-moon', 'dark'],\n ['solarized-dark', 'dark'],\n ['solarized-light', 'light'],\n ['tokyonight-day', 'light'],\n ['tokyonight-night', 'dark'],\n ['tokyonight-storm', 'dark'],\n ['vesper', 'dark'],\n]\n\n/** The default light and dark themes, complete. */\nexport const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', ThemeVariant>> = {\n 'adea-light': {\n id: 'adea-light',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Light',\n appearance: 'light',\n description:\n \"The default light theme: GitHub's own white canvas carrying the dark theme's hues, transposed to survive on paper, with the family violet accent.\",\n colors: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n card: 'oklch(0.965 0 0)',\n cardForeground: 'oklch(0.2542 0.0111 254.04)',\n popover: 'oklch(0.935 0 0)',\n popoverForeground: 'oklch(0.2542 0.0111 254.04)',\n primary: 'oklch(0.5143 0.1668 301.69)',\n primaryForeground: 'oklch(1 0 0)',\n secondary: 'oklch(0.965 0 0)',\n secondaryForeground: 'oklch(0.2542 0.0111 254.04)',\n muted: 'oklch(0.965 0 0)',\n mutedForeground: 'oklch(0.4929 0.0076 254.04)',\n accent: 'oklch(0.9 0 0)',\n accentForeground: 'oklch(0.2542 0.0111 254.04)',\n destructive: 'oklch(0.5165 0.1626 25.78)',\n destructiveForeground: 'oklch(1 0 0)',\n destructiveSubtle: 'oklch(0.9323 0.0228 25.78)',\n destructiveAction: 'oklch(0.5165 0.1626 25.78)',\n destructiveActionForeground: 'oklch(1 0 0)',\n success: 'oklch(0.4771 0.1809 145.62)',\n successForeground: 'oklch(1 0 0)',\n successSubtle: 'oklch(0.9268 0.0253 145.62)',\n warning: 'oklch(0.5016 0.1401 79.91)',\n warningForeground: 'oklch(1 0 0)',\n warningSubtle: 'oklch(0.9302 0.0196 79.91)',\n info: 'oklch(0.5375 0.1155 202.14)',\n infoForeground: 'oklch(1 0 0)',\n infoSubtle: 'oklch(0.9353 0.0162 202.14)',\n border: 'oklch(0.85 0 0)',\n input: 'oklch(0.85 0 0)',\n ring: 'oklch(0.5143 0.1668 301.69)',\n sidebar: 'oklch(0.965 0 0)',\n sidebarForeground: 'oklch(0.2542 0.0111 254.04)',\n sidebarAccent: 'oklch(0.9 0 0)',\n sidebarBorder: 'oklch(0.85 0 0)',\n sidebarMutedForeground: 'oklch(0.4929 0.0076 254.04)',\n },\n terminal: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n cursor: 'oklch(0.5399 0.1906 257.48)',\n selection: 'oklch(0.2542 0.0111 254.04)',\n black: 'oklch(0.2785 0.0132 253.04)',\n red: 'oklch(0.5165 0.1626 25.78)',\n green: 'oklch(0.4771 0.1809 145.62)',\n yellow: 'oklch(0.5016 0.1401 79.91)',\n blue: 'oklch(0.4973 0.1518 253.31)',\n magenta: 'oklch(0.5143 0.1668 301.69)',\n cyan: 'oklch(0.5375 0.1155 202.14)',\n white: 'oklch(0.5651 0.0189 250.97)',\n brightBlack: 'oklch(0.4849 0.0196 251.02)',\n brightRed: 'oklch(0.5834 0.1134 25.81)',\n brightGreen: 'oklch(0.5537 0.188 145.48)',\n brightYellow: 'oklch(0.5724 0.1386 85.24)',\n brightBlue: 'oklch(0.5677 0.1153 246.66)',\n brightMagenta: 'oklch(0.5825 0.1275 305.86)',\n brightCyan: 'oklch(0.5856 0.1107 201.78)',\n brightWhite: 'oklch(0.6658 0.0181 250.92)',\n },\n editor: {\n keyword: 'oklch(0.5143 0.1668 301.69)',\n string: 'oklch(0.4771 0.1809 145.62)',\n number: 'oklch(0.5016 0.1401 79.91)',\n comment: 'oklch(0.4849 0.0196 251.02)',\n function: 'oklch(0.4973 0.1518 253.31)',\n variable: 'oklch(0.2785 0.0132 253.04)',\n type: 'oklch(0.5375 0.1155 202.14)',\n tag: 'oklch(0.5165 0.1626 25.78)',\n attribute: 'oklch(0.5016 0.1401 79.91)',\n operator: 'oklch(0.2785 0.0132 253.04)',\n heading: 'oklch(0.5143 0.1668 301.69)',\n link: 'oklch(0.4973 0.1518 253.31)',\n diffAdd: 'oklch(0.4771 0.1809 145.62)',\n diffDelete: 'oklch(0.5165 0.1626 25.78)',\n diffHunk: 'oklch(0.5375 0.1155 202.14)',\n searchMatch: 'oklch(0.5016 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.4973 0.1518 253.31)',\n 'oklch(0.5143 0.1668 301.69)',\n 'oklch(0.5375 0.1155 202.14)',\n 'oklch(0.4771 0.1809 145.62)',\n 'oklch(0.5016 0.1401 79.91)',\n 'oklch(0.5165 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n 'adea-dark': {\n id: 'adea-dark',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Dark',\n appearance: 'dark',\n description:\n 'The default dark theme: GitHub Dark Default with the canvas re-greyed to a violet-leaning neutral and the family violet accent, kept as a composition so the default can diverge from it one slot at a time.',\n colors: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n card: 'oklch(0.2106 0.0076 300.91)',\n cardForeground: 'oklch(0.942 0.0054 297.72)',\n popover: 'oklch(0.2406 0.0088 300.91)',\n popoverForeground: 'oklch(0.942 0.0054 297.72)',\n primary: 'oklch(0.7323 0.1668 301.69)',\n primaryForeground: 'oklch(0.1756 0.0063 300.91)',\n secondary: 'oklch(0.2106 0.0076 300.91)',\n secondaryForeground: 'oklch(0.942 0.0054 297.72)',\n muted: 'oklch(0.2106 0.0076 300.91)',\n mutedForeground: 'oklch(0.6967 0.0057 298.74)',\n accent: 'oklch(0.2756 0.0101 300.91)',\n accentForeground: 'oklch(0.942 0.0054 297.72)',\n destructive: 'oklch(0.7345 0.1626 25.78)',\n destructiveForeground: 'oklch(0.1756 0.0063 300.91)',\n destructiveSubtle: 'oklch(0.2538 0.0282 312.79)',\n destructiveAction: 'oklch(0.7345 0.1626 25.78)',\n destructiveActionForeground: 'oklch(0.1756 0.0063 300.91)',\n success: 'oklch(0.6951 0.1809 145.62)',\n successForeground: 'oklch(0.1756 0.0063 300.91)',\n successSubtle: 'oklch(0.2483 0.0307 279.17)',\n warning: 'oklch(0.7196 0.1401 79.91)',\n warningForeground: 'oklch(0.1756 0.0063 300.91)',\n warningSubtle: 'oklch(0.2518 0.025 320.37)',\n info: 'oklch(0.7555 0.1155 202.14)',\n infoForeground: 'oklch(0.1756 0.0063 300.91)',\n infoSubtle: 'oklch(0.2568 0.0216 287.08)',\n border: 'oklch(0.3256 0.0057 300.91)',\n input: 'oklch(0.3256 0.0057 300.91)',\n ring: 'oklch(0.7323 0.1668 301.69)',\n sidebar: 'oklch(0.2106 0.0076 300.91)',\n sidebarForeground: 'oklch(0.942 0.0054 297.72)',\n sidebarAccent: 'oklch(0.2756 0.0101 300.91)',\n sidebarBorder: 'oklch(0.3256 0.0057 300.91)',\n sidebarMutedForeground: 'oklch(0.6967 0.0057 298.74)',\n },\n terminal: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n cursor: 'oklch(0.6182 0.1935 258.33)',\n selection: 'oklch(0.9425 0.0111 243.66)',\n black: 'oklch(0.4243 0.0101 301.11)',\n red: 'oklch(0.7345 0.1626 25.78)',\n green: 'oklch(0.6951 0.1809 145.62)',\n yellow: 'oklch(0.7196 0.1401 79.91)',\n blue: 'oklch(0.7153 0.1518 253.31)',\n magenta: 'oklch(0.7323 0.1668 301.69)',\n cyan: 'oklch(0.7555 0.1155 202.14)',\n white: 'oklch(0.786 0.0087 301.32)',\n brightBlack: 'oklch(0.5627 0.0094 301.22)',\n brightRed: 'oklch(0.8014 0.1134 25.81)',\n brightGreen: 'oklch(0.7717 0.188 145.48)',\n brightYellow: 'oklch(0.7904 0.1386 85.24)',\n brightBlue: 'oklch(0.7857 0.1153 246.66)',\n brightMagenta: 'oklch(0.8005 0.1275 305.86)',\n brightCyan: 'oklch(0.8036 0.1107 201.78)',\n brightWhite: 'oklch(1 0 0)',\n },\n editor: {\n keyword: 'oklch(0.7323 0.1668 301.69)',\n string: 'oklch(0.6951 0.1809 145.62)',\n number: 'oklch(0.7196 0.1401 79.91)',\n comment: 'oklch(0.5627 0.0094 301.22)',\n function: 'oklch(0.7153 0.1518 253.31)',\n variable: 'oklch(0.786 0.0087 301.32)',\n type: 'oklch(0.7555 0.1155 202.14)',\n tag: 'oklch(0.7345 0.1626 25.78)',\n attribute: 'oklch(0.7196 0.1401 79.91)',\n operator: 'oklch(0.786 0.0087 301.32)',\n heading: 'oklch(0.7323 0.1668 301.69)',\n link: 'oklch(0.7153 0.1518 253.31)',\n diffAdd: 'oklch(0.6951 0.1809 145.62)',\n diffDelete: 'oklch(0.7345 0.1626 25.78)',\n diffHunk: 'oklch(0.7555 0.1155 202.14)',\n searchMatch: 'oklch(0.7196 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.7153 0.1518 253.31)',\n 'oklch(0.7323 0.1668 301.69)',\n 'oklch(0.7555 0.1155 202.14)',\n 'oklch(0.6951 0.1809 145.62)',\n 'oklch(0.7196 0.1401 79.91)',\n 'oklch(0.7345 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n}\n\n/** The accents the default light/dark pair offers beside the presets. */\nexport const DEFAULT_THEME_ACCENTS: readonly AccentPreset[] = [\n {\n id: 'ansi-blue',\n label: 'Blue',\n description: \"The theme's own blue colour.\",\n light: 'oklch(0.4973 0.1518 253.31)',\n dark: 'oklch(0.7153 0.1518 253.31)',\n },\n {\n id: 'ansi-magenta',\n label: 'Magenta',\n description: \"The theme's own magenta colour.\",\n light: 'oklch(0.5143 0.1668 301.69)',\n dark: 'oklch(0.7323 0.1668 301.69)',\n },\n {\n id: 'ansi-cyan',\n label: 'Cyan',\n description: \"The theme's own cyan colour.\",\n light: 'oklch(0.5375 0.1155 202.14)',\n dark: 'oklch(0.7555 0.1155 202.14)',\n },\n {\n id: 'ansi-green',\n label: 'Green',\n description: \"The theme's own green colour.\",\n light: 'oklch(0.4771 0.1809 145.62)',\n dark: 'oklch(0.6951 0.1809 145.62)',\n },\n]\n\n/** Each default's measured `--primary-subtle` expression. */\nexport const DEFAULT_PRIMARY_SUBTLE: Readonly<Record<string, string>> = {\n 'adea-light': 'color-mix(in oklch, var(--primary) 10%, transparent)',\n 'adea-dark': 'color-mix(in oklch, var(--primary) 16%, transparent)',\n}\n\n/** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */\nexport const DEFAULT_FLOOR_EDITOR: Readonly<Record<string, ThemeEditorPalette>> = {\n 'adea-light': {\n keyword: '#7a49b5',\n string: '#00711f',\n number: '#825c00',\n comment: '#57606a',\n function: '#0662b5',\n variable: '#24292f',\n type: '#007d85',\n tag: '#b23533',\n attribute: '#825c00',\n operator: '#24292f',\n heading: '#7a49b5',\n link: '#0662b5',\n diffAdd: '#00711f',\n diffDelete: '#b23533',\n diffHunk: '#007d85',\n searchMatch: '#825c00',\n },\n 'adea-dark': {\n keyword: '#bc8cff',\n string: '#3fb950',\n number: '#d29922',\n comment: '#7d7b81',\n function: '#58a6ff',\n variable: '#bab8be',\n type: '#39c5cf',\n tag: '#ff7b72',\n attribute: '#d29922',\n operator: '#bab8be',\n heading: '#bc8cff',\n link: '#58a6ff',\n diffAdd: '#3fb950',\n diffDelete: '#ff7b72',\n diffHunk: '#39c5cf',\n searchMatch: '#d29922',\n },\n}\n"],"mappings":";;AASA,IAAa,cAAgF;CAC3F,CAAC,aAAa,MAAM;CACpB,CAAC,wBAAwB,MAAM;CAC/B,CAAC,2BAA2B,MAAM;CAClC,CAAC,cAAc,OAAO;CACtB,CAAC,yBAAyB,OAAO;CACjC,CAAC,4BAA4B,OAAO;CACpC,CAAC,iBAAiB,MAAM;CACxB,CAAC,gBAAgB,MAAM;CACvB,CAAC,OAAO,MAAM;CACd,CAAC,aAAa,OAAO;CACrB,CAAC,cAAc,MAAM;CACrB,CAAC,qBAAqB,MAAM;CAC5B,CAAC,oBAAoB,OAAO;CAC5B,CAAC,wBAAwB,MAAM;CAC/B,CAAC,oBAAoB,MAAM;CAC3B,CAAC,WAAW,MAAM;CAClB,CAAC,mBAAmB,MAAM;CAC1B,CAAC,oBAAoB,OAAO;CAC5B,CAAC,gBAAgB,MAAM;CACvB,CAAC,iBAAiB,OAAO;CACzB,CAAC,YAAY,MAAM;CACnB,CAAC,WAAW,MAAM;CAClB,CAAC,QAAQ,MAAM;CACf,CAAC,cAAc,OAAO;CACtB,CAAC,YAAY,MAAM;CACnB,CAAC,YAAY,MAAM;CACnB,CAAC,iBAAiB,OAAO;CACzB,CAAC,iBAAiB,MAAM;CACxB,CAAC,kBAAkB,MAAM;CACzB,CAAC,mBAAmB,OAAO;CAC3B,CAAC,kBAAkB,OAAO;CAC1B,CAAC,oBAAoB,MAAM;CAC3B,CAAC,oBAAoB,MAAM;CAC3B,CAAC,UAAU,MAAM;AACnB;;AAGA,IAAa,mBAA+E;CAC1F,cAAc;EACZ,IAAI;EACJ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CACtE,cAAc;CACd,aAAa;AACf;;AAGA,IAAa,uBAAqE;CAChF,cAAc;EACZ,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;CACA,aAAa;EACX,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;AACF"}
|
|
1
|
+
{"version":3,"file":"theme-defaults.generated.js","names":[],"sources":["../../src/lib/theme-defaults.generated.ts"],"sourcesContent":["/*\n * GENERATED by scripts/build-theme-defaults.ts from @adea-ai/themes. Do not edit.\n * Run `bun run theme:defaults` after the catalogue changes;\n * tests/theme-defaults.test.ts fails when this file is stale.\n */\nimport type { AccentPreset } from '@adea-ai/themes'\nimport type { ThemeEditorPalette, ThemeVariant } from './theme-types'\n\n/** Every catalogue theme id and its appearance, in catalogue order. */\nexport const THEME_INDEX: readonly (readonly [id: string, appearance: 'light' | 'dark'])[] = [\n ['adea-dark', 'dark'],\n ['adea-dark-colorblind', 'dark'],\n ['adea-dark-high-contrast', 'dark'],\n ['adea-light', 'light'],\n ['adea-light-colorblind', 'light'],\n ['adea-light-high-contrast', 'light'],\n ['aardvark-blue', 'dark'],\n ['aardvark-ink', 'dark'],\n ['ayu', 'dark'],\n ['ayu-light', 'light'],\n ['ayu-mirage', 'dark'],\n ['catppuccin-frappe', 'dark'],\n ['catppuccin-latte', 'light'],\n ['catppuccin-macchiato', 'dark'],\n ['catppuccin-mocha', 'dark'],\n ['dracula', 'dark'],\n ['everforest-dark', 'dark'],\n ['everforest-light', 'light'],\n ['gruvbox-dark', 'dark'],\n ['gruvbox-light', 'light'],\n ['kanagawa', 'dark'],\n ['monokai', 'dark'],\n ['nord', 'dark'],\n ['nord-light', 'light'],\n ['one-dark', 'dark'],\n ['rosepine', 'dark'],\n ['rosepine-dawn', 'light'],\n ['rosepine-moon', 'dark'],\n ['solarized-dark', 'dark'],\n ['solarized-light', 'light'],\n ['tokyonight-day', 'light'],\n ['tokyonight-night', 'dark'],\n ['tokyonight-storm', 'dark'],\n ['vesper', 'dark'],\n]\n\n/** The default light and dark themes, complete. */\nexport const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', ThemeVariant>> = {\n 'adea-light': {\n id: 'adea-light',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Light',\n appearance: 'light',\n description:\n \"The default light theme: GitHub's own white canvas carrying the dark theme's hues, transposed to survive on paper, with the family violet accent.\",\n colors: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n card: 'oklch(0.965 0 0)',\n cardForeground: 'oklch(0.2542 0.0111 254.04)',\n popover: 'oklch(0.935 0 0)',\n popoverForeground: 'oklch(0.2542 0.0111 254.04)',\n primary: 'oklch(0.5143 0.1668 301.69)',\n primaryForeground: 'oklch(1 0 0)',\n secondary: 'oklch(0.965 0 0)',\n secondaryForeground: 'oklch(0.2542 0.0111 254.04)',\n muted: 'oklch(0.965 0 0)',\n mutedForeground: 'oklch(0.4929 0.0076 254.04)',\n accent: 'oklch(0.9 0 0)',\n accentForeground: 'oklch(0.2542 0.0111 254.04)',\n destructive: 'oklch(0.5165 0.1626 25.78)',\n destructiveForeground: 'oklch(1 0 0)',\n destructiveSubtle: 'oklch(0.9323 0.0228 25.78)',\n destructiveAction: 'oklch(0.5165 0.1626 25.78)',\n destructiveActionForeground: 'oklch(1 0 0)',\n success: 'oklch(0.4771 0.1809 145.62)',\n successForeground: 'oklch(1 0 0)',\n successSubtle: 'oklch(0.9268 0.0253 145.62)',\n warning: 'oklch(0.5016 0.1401 79.91)',\n warningForeground: 'oklch(1 0 0)',\n warningSubtle: 'oklch(0.9302 0.0196 79.91)',\n info: 'oklch(0.5375 0.1155 202.14)',\n infoForeground: 'oklch(1 0 0)',\n infoSubtle: 'oklch(0.9353 0.0162 202.14)',\n border: 'oklch(0.85 0 0)',\n input: 'oklch(0.85 0 0)',\n ring: 'oklch(0.5143 0.1668 301.69)',\n sidebar: 'oklch(0.965 0 0)',\n sidebarForeground: 'oklch(0.2542 0.0111 254.04)',\n sidebarAccent: 'oklch(0.9 0 0)',\n sidebarBorder: 'oklch(0.85 0 0)',\n sidebarMutedForeground: 'oklch(0.4929 0.0076 254.04)',\n },\n terminal: {\n background: 'oklch(1 0 0)',\n foreground: 'oklch(0.2542 0.0111 254.04)',\n cursor: 'oklch(0.5399 0.1906 257.48)',\n selection: 'oklch(0.2542 0.0111 254.04)',\n black: 'oklch(0.2785 0.0132 253.04)',\n red: 'oklch(0.5165 0.1626 25.78)',\n green: 'oklch(0.4771 0.1809 145.62)',\n yellow: 'oklch(0.5016 0.1401 79.91)',\n blue: 'oklch(0.4973 0.1518 253.31)',\n magenta: 'oklch(0.5143 0.1668 301.69)',\n cyan: 'oklch(0.5375 0.1155 202.14)',\n white: 'oklch(0.5651 0.0189 250.97)',\n brightBlack: 'oklch(0.4849 0.0196 251.02)',\n brightRed: 'oklch(0.5834 0.1134 25.81)',\n brightGreen: 'oklch(0.5537 0.188 145.48)',\n brightYellow: 'oklch(0.5724 0.1386 85.24)',\n brightBlue: 'oklch(0.5677 0.1153 246.66)',\n brightMagenta: 'oklch(0.5825 0.1275 305.86)',\n brightCyan: 'oklch(0.5856 0.1107 201.78)',\n brightWhite: 'oklch(0.6658 0.0181 250.92)',\n },\n editor: {\n keyword: 'oklch(0.5517 0.2051 24.53)',\n storage: 'oklch(0.5517 0.2051 24.53)',\n string: 'oklch(0.321 0.1084 259.11)',\n number: 'oklch(0.4509 0.1641 258.18)',\n comment: 'oklch(0.5651 0.0189 250.97)',\n function: 'oklch(0.5631 0.2069 294.97)',\n variable: 'oklch(0.2542 0.0111 254.04)',\n parameter: 'oklch(0.4657 0.1371 43.35)',\n property: 'oklch(0.2542 0.0111 254.04)',\n field: 'oklch(0.2542 0.0111 254.04)',\n member: 'oklch(0.2542 0.0111 254.04)',\n type: 'oklch(0.4657 0.1371 43.35)',\n tag: 'oklch(0.4391 0.1179 148.07)',\n attribute: 'oklch(0.4509 0.1641 258.18)',\n operator: 'oklch(0.5517 0.2051 24.53)',\n heading: 'oklch(0.4509 0.1641 258.18)',\n link: 'oklch(0.2542 0.0111 254.04)',\n constant: 'oklch(0.4509 0.1641 258.18)',\n punctuation: 'oklch(0.2542 0.0111 254.04)',\n diffAdd: 'oklch(0.4391 0.1179 148.07)',\n diffDelete: 'oklch(0.387 0.1507 20.77)',\n diffHunk: 'oklch(0.5631 0.2069 294.97)',\n searchMatch: 'oklch(0.5016 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.4973 0.1518 253.31)',\n 'oklch(0.5143 0.1668 301.69)',\n 'oklch(0.5375 0.1155 202.14)',\n 'oklch(0.4771 0.1809 145.62)',\n 'oklch(0.5016 0.1401 79.91)',\n 'oklch(0.5165 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n 'adea-dark': {\n id: 'adea-dark',\n family: 'adea',\n familyLabel: 'Adea',\n label: 'Dark',\n appearance: 'dark',\n description:\n 'The default dark theme: GitHub Dark Default with the canvas re-greyed to a violet-leaning neutral and the family violet accent, kept as a composition so the default can diverge from it one slot at a time.',\n colors: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n card: 'oklch(0.2106 0.0076 300.91)',\n cardForeground: 'oklch(0.942 0.0054 297.72)',\n popover: 'oklch(0.2406 0.0088 300.91)',\n popoverForeground: 'oklch(0.942 0.0054 297.72)',\n primary: 'oklch(0.7323 0.1668 301.69)',\n primaryForeground: 'oklch(0.1756 0.0063 300.91)',\n secondary: 'oklch(0.2106 0.0076 300.91)',\n secondaryForeground: 'oklch(0.942 0.0054 297.72)',\n muted: 'oklch(0.2106 0.0076 300.91)',\n mutedForeground: 'oklch(0.6967 0.0057 298.74)',\n accent: 'oklch(0.2756 0.0101 300.91)',\n accentForeground: 'oklch(0.942 0.0054 297.72)',\n destructive: 'oklch(0.7345 0.1626 25.78)',\n destructiveForeground: 'oklch(0.1756 0.0063 300.91)',\n destructiveSubtle: 'oklch(0.2538 0.0282 312.79)',\n destructiveAction: 'oklch(0.7345 0.1626 25.78)',\n destructiveActionForeground: 'oklch(0.1756 0.0063 300.91)',\n success: 'oklch(0.6951 0.1809 145.62)',\n successForeground: 'oklch(0.1756 0.0063 300.91)',\n successSubtle: 'oklch(0.2483 0.0307 279.17)',\n warning: 'oklch(0.7196 0.1401 79.91)',\n warningForeground: 'oklch(0.1756 0.0063 300.91)',\n warningSubtle: 'oklch(0.2518 0.025 320.37)',\n info: 'oklch(0.7555 0.1155 202.14)',\n infoForeground: 'oklch(0.1756 0.0063 300.91)',\n infoSubtle: 'oklch(0.2568 0.0216 287.08)',\n border: 'oklch(0.3256 0.0057 300.91)',\n input: 'oklch(0.3256 0.0057 300.91)',\n ring: 'oklch(0.7323 0.1668 301.69)',\n sidebar: 'oklch(0.2106 0.0076 300.91)',\n sidebarForeground: 'oklch(0.942 0.0054 297.72)',\n sidebarAccent: 'oklch(0.2756 0.0101 300.91)',\n sidebarBorder: 'oklch(0.3256 0.0057 300.91)',\n sidebarMutedForeground: 'oklch(0.6967 0.0057 298.74)',\n },\n terminal: {\n background: 'oklch(0.1756 0.0063 300.91)',\n foreground: 'oklch(0.942 0.0054 297.72)',\n cursor: 'oklch(0.6182 0.1935 258.33)',\n selection: 'oklch(0.9425 0.0111 243.66)',\n black: 'oklch(0.4243 0.0101 301.11)',\n red: 'oklch(0.7345 0.1626 25.78)',\n green: 'oklch(0.6951 0.1809 145.62)',\n yellow: 'oklch(0.7196 0.1401 79.91)',\n blue: 'oklch(0.7153 0.1518 253.31)',\n magenta: 'oklch(0.7323 0.1668 301.69)',\n cyan: 'oklch(0.7555 0.1155 202.14)',\n white: 'oklch(0.786 0.0087 301.32)',\n brightBlack: 'oklch(0.5627 0.0094 301.22)',\n brightRed: 'oklch(0.8014 0.1134 25.81)',\n brightGreen: 'oklch(0.7717 0.188 145.48)',\n brightYellow: 'oklch(0.7904 0.1386 85.24)',\n brightBlue: 'oklch(0.7857 0.1153 246.66)',\n brightMagenta: 'oklch(0.8005 0.1275 305.86)',\n brightCyan: 'oklch(0.8036 0.1107 201.78)',\n brightWhite: 'oklch(1 0 0)',\n },\n editor: {\n keyword: 'oklch(0.7345 0.1626 25.78)',\n storage: 'oklch(0.7345 0.1626 25.78)',\n string: 'oklch(0.856 0.0768 244.09)',\n number: 'oklch(0.7857 0.1153 246.66)',\n comment: 'oklch(0.6625 0.0181 250.92)',\n function: 'oklch(0.8005 0.1275 305.86)',\n variable: 'oklch(0.9425 0.0111 243.66)',\n parameter: 'oklch(0.7991 0.1412 60.1)',\n property: 'oklch(0.9425 0.0111 243.66)',\n field: 'oklch(0.9425 0.0111 243.66)',\n member: 'oklch(0.9425 0.0111 243.66)',\n type: 'oklch(0.7991 0.1412 60.1)',\n tag: 'oklch(0.8416 0.1641 145.75)',\n attribute: 'oklch(0.7857 0.1153 246.66)',\n operator: 'oklch(0.7345 0.1626 25.78)',\n heading: 'oklch(0.7857 0.1153 246.66)',\n link: 'oklch(0.9425 0.0111 243.66)',\n constant: 'oklch(0.7857 0.1153 246.66)',\n punctuation: 'oklch(0.9425 0.0111 243.66)',\n diffAdd: 'oklch(0.8416 0.1641 145.75)',\n diffDelete: 'oklch(0.8014 0.1134 25.81)',\n diffHunk: 'oklch(0.8005 0.1275 305.86)',\n searchMatch: 'oklch(0.7196 0.1401 79.91)',\n },\n chart: [\n 'oklch(0.7153 0.1518 253.31)',\n 'oklch(0.7323 0.1668 301.69)',\n 'oklch(0.7555 0.1155 202.14)',\n 'oklch(0.6951 0.1809 145.62)',\n 'oklch(0.7196 0.1401 79.91)',\n 'oklch(0.7345 0.1626 25.78)',\n ],\n provenance: { source: 'Adea', url: 'https://github.com/adea-ai/themes', license: 'Apache-2.0' },\n },\n}\n\n/** The accents the default light/dark pair offers beside the presets. */\nexport const DEFAULT_THEME_ACCENTS: readonly AccentPreset[] = [\n {\n id: 'ansi-blue',\n label: 'Blue',\n description: \"The theme's own blue colour.\",\n light: 'oklch(0.4973 0.1518 253.31)',\n dark: 'oklch(0.7153 0.1518 253.31)',\n },\n {\n id: 'ansi-magenta',\n label: 'Magenta',\n description: \"The theme's own magenta colour.\",\n light: 'oklch(0.5143 0.1668 301.69)',\n dark: 'oklch(0.7323 0.1668 301.69)',\n },\n {\n id: 'ansi-cyan',\n label: 'Cyan',\n description: \"The theme's own cyan colour.\",\n light: 'oklch(0.5375 0.1155 202.14)',\n dark: 'oklch(0.7555 0.1155 202.14)',\n },\n {\n id: 'ansi-green',\n label: 'Green',\n description: \"The theme's own green colour.\",\n light: 'oklch(0.4771 0.1809 145.62)',\n dark: 'oklch(0.6951 0.1809 145.62)',\n },\n]\n\n/** Each default's measured `--primary-subtle` expression. */\nexport const DEFAULT_PRIMARY_SUBTLE: Readonly<Record<string, string>> = {\n 'adea-light': 'color-mix(in oklch, var(--primary) 10%, transparent)',\n 'adea-dark': 'color-mix(in oklch, var(--primary) 16%, transparent)',\n}\n\n/** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */\nexport const DEFAULT_FLOOR_EDITOR: Readonly<Record<string, ThemeEditorPalette>> = {\n 'adea-light': {\n keyword: '#cf222e',\n storage: '#cf222e',\n string: '#0a3069',\n number: '#0550ae',\n comment: '#6e7781',\n function: '#8250df',\n variable: '#1f2328',\n parameter: '#953800',\n property: '#1f2328',\n field: '#1f2328',\n member: '#1f2328',\n type: '#953800',\n tag: '#116329',\n attribute: '#0550ae',\n operator: '#cf222e',\n heading: '#0550ae',\n link: '#1f2328',\n constant: '#0550ae',\n punctuation: '#1f2328',\n diffAdd: '#116329',\n diffDelete: '#82071e',\n diffHunk: '#8250df',\n searchMatch: '#825c00',\n },\n 'adea-dark': {\n keyword: '#ff7b72',\n storage: '#ff7b72',\n string: '#a5d6ff',\n number: '#79c0ff',\n comment: '#8b949e',\n function: '#d2a8ff',\n variable: '#e6edf3',\n parameter: '#ffa657',\n property: '#e6edf3',\n field: '#e6edf3',\n member: '#e6edf3',\n type: '#ffa657',\n tag: '#7ee787',\n attribute: '#79c0ff',\n operator: '#ff7b72',\n heading: '#79c0ff',\n link: '#e6edf3',\n constant: '#79c0ff',\n punctuation: '#e6edf3',\n diffAdd: '#7ee787',\n diffDelete: '#ffa198',\n diffHunk: '#d2a8ff',\n searchMatch: '#d29922',\n },\n}\n"],"mappings":";;AASA,IAAa,cAAgF;CAC3F,CAAC,aAAa,MAAM;CACpB,CAAC,wBAAwB,MAAM;CAC/B,CAAC,2BAA2B,MAAM;CAClC,CAAC,cAAc,OAAO;CACtB,CAAC,yBAAyB,OAAO;CACjC,CAAC,4BAA4B,OAAO;CACpC,CAAC,iBAAiB,MAAM;CACxB,CAAC,gBAAgB,MAAM;CACvB,CAAC,OAAO,MAAM;CACd,CAAC,aAAa,OAAO;CACrB,CAAC,cAAc,MAAM;CACrB,CAAC,qBAAqB,MAAM;CAC5B,CAAC,oBAAoB,OAAO;CAC5B,CAAC,wBAAwB,MAAM;CAC/B,CAAC,oBAAoB,MAAM;CAC3B,CAAC,WAAW,MAAM;CAClB,CAAC,mBAAmB,MAAM;CAC1B,CAAC,oBAAoB,OAAO;CAC5B,CAAC,gBAAgB,MAAM;CACvB,CAAC,iBAAiB,OAAO;CACzB,CAAC,YAAY,MAAM;CACnB,CAAC,WAAW,MAAM;CAClB,CAAC,QAAQ,MAAM;CACf,CAAC,cAAc,OAAO;CACtB,CAAC,YAAY,MAAM;CACnB,CAAC,YAAY,MAAM;CACnB,CAAC,iBAAiB,OAAO;CACzB,CAAC,iBAAiB,MAAM;CACxB,CAAC,kBAAkB,MAAM;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KAAK;GAAqC,SAAS;EAAa;CAChG;AACF;;AAGA,IAAa,wBAAiD;CAC5D;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;CACA;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;CACA;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;CACA;EACE,IAAI;EACJ,OAAO;EACP,aAAa;EACb,OAAO;EACP,MAAM;CACR;AACF;;AAGA,IAAa,yBAA2D;CACtE,cAAc;CACd,aAAa;AACf;;AAGA,IAAa,uBAAqE;CAChF,cAAc;EACZ,SAAS;EACT,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW;EACX,UAAU;EACV,OAAO;EACP,QAAQ;EACR,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,UAAU;EACV,aAAa;EACb,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;CACA,aAAa;EACX,SAAS;EACT,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW;EACX,UAAU;EACV,OAAO;EACP,QAAQ;EACR,MAAM;EACN,KAAK;EACL,WAAW;EACX,UAAU;EACV,SAAS;EACT,MAAM;EACN,UAAU;EACV,aAAa;EACb,SAAS;EACT,YAAY;EACZ,UAAU;EACV,aAAa;CACf;AACF"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type AccentPreset, type AdeaTheme, type AdeaThemeRecord } from '@adea-ai/themes';
|
|
2
2
|
export { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes';
|
|
3
|
+
/** A VS Code colour theme's syntax roles, resolved as VS Code paints them, for importers. */
|
|
4
|
+
export { opaqueHex, parseVsCodeTheme, vsCodeSyntax, type VsCodeTheme } from '@adea-ai/themes';
|
|
3
5
|
export { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch';
|
|
4
6
|
export { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn';
|
|
5
7
|
export { toXtermTheme } from '@adea-ai/themes/adapters/xterm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-projection.d.ts","sourceRoot":"","sources":["../../src/lib/theme-projection.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjF,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAE7D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,YAAY,EAAE,CAEjG"}
|
|
1
|
+
{"version":3,"file":"theme-projection.d.ts","sourceRoot":"","sources":["../../src/lib/theme-projection.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChE,6FAA6F;AAC7F,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7F,OAAO,EAAE,UAAU,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACjF,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAE7D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,YAAY,EAAE,CAEjG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { editorRolesHex, syntaxRolesHex, themeAccentPresets } from "@adea-ai/themes";
|
|
1
|
+
import { editorRolesHex, opaqueHex, parseVsCodeTheme, syntaxRolesHex, themeAccentPresets, vsCodeSyntax } from "@adea-ai/themes";
|
|
2
2
|
import { oklchToHex, parseColor as parseOklchColor } from "@adea-ai/themes/oklch";
|
|
3
3
|
import { shadcnDestructiveProjection, shadcnVariables } from "@adea-ai/themes/adapters/shadcn";
|
|
4
4
|
import adeaDark from "@adea-ai/themes/themes/adea-dark";
|
|
@@ -42,6 +42,6 @@ function defaultThemeRecord(appearance) {
|
|
|
42
42
|
function themeAccentsForRecords(light, dark) {
|
|
43
43
|
return themeAccentPresets(light, dark);
|
|
44
44
|
}
|
|
45
|
-
export { defaultThemeRecord, editorRolesHex, oklchToHex, parseOklchColor, shadcnDestructiveProjection, shadcnVariables, syntaxRolesHex, themeAccentsForRecords, toXtermTheme };
|
|
45
|
+
export { defaultThemeRecord, editorRolesHex, oklchToHex, opaqueHex, parseOklchColor, parseVsCodeTheme, shadcnDestructiveProjection, shadcnVariables, syntaxRolesHex, themeAccentsForRecords, toXtermTheme, vsCodeSyntax };
|
|
46
46
|
|
|
47
47
|
//# sourceMappingURL=theme-projection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-projection.js","names":[],"sources":["../../src/lib/theme-projection.ts"],"sourcesContent":["/**\n * What a host needs to turn a canonical theme record into the values it stores.\n *\n * Adea imports user themes: a file is validated, repaired toward the readable floor,\n * and projected onto the hex values the host persists. That projection is the\n * catalogue's own (`shadcnVariables`, the xterm adapter, the editor roles), so it is\n * re-exported here and the host depends on this package alone for it, the pin\n * between this package and `@adea-ai/themes` cannot drift from the host's.\n *\n * Its own module, with no catalogue data and no definition of its own beyond the two\n * default records, so that:\n *\n * - a host's start-up path never reaches it (it is for an importer loaded on demand);\n * - `lib/themes.ts`, which holds the 34-theme table, is not the place a host has to\n * import from to get a record-shaped helper.\n */\nimport adeaDark from '@adea-ai/themes/themes/adea-dark'\nimport adeaLight from '@adea-ai/themes/themes/adea-light'\nimport {\n themeAccentPresets,\n type AccentPreset,\n type AdeaTheme,\n type AdeaThemeRecord,\n} from '@adea-ai/themes'\n\nexport { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes'\nexport { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch'\nexport { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn'\nexport { toXtermTheme } from '@adea-ai/themes/adapters/xterm'\n\n/**\n * The default theme of an appearance as a canonical record: the roles an imported\n * theme falls back to for anything its file does not carry.\n *\n * `defaultVariantFor` is the same theme as a runtime variant; a record keeps the\n * catalogue's own roles (`surfaceActive`, `textSubtle`, the ANSI ramp) that a variant\n * folds together.\n */\nexport function defaultThemeRecord(appearance: 'light' | 'dark'): AdeaThemeRecord {\n return appearance === 'dark' ? adeaDark : adeaLight\n}\n\n/**\n * The accents a light/dark pair of records carries itself, beside the presets.\n *\n * For a host whose pair is not in the catalogue, an imported theme, where\n * `themeAccentsFor` (which looks the pair up by id) cannot answer. A slot is offered\n * only when both themes clear the catalogue's accent floors.\n */\nexport function themeAccentsForRecords(light: AdeaTheme, dark: AdeaTheme): readonly AccentPreset[] {\n return themeAccentPresets(light, dark)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"theme-projection.js","names":[],"sources":["../../src/lib/theme-projection.ts"],"sourcesContent":["/**\n * What a host needs to turn a canonical theme record into the values it stores.\n *\n * Adea imports user themes: a file is validated, repaired toward the readable floor,\n * and projected onto the hex values the host persists. That projection is the\n * catalogue's own (`shadcnVariables`, the xterm adapter, the editor roles), so it is\n * re-exported here and the host depends on this package alone for it, the pin\n * between this package and `@adea-ai/themes` cannot drift from the host's.\n *\n * Its own module, with no catalogue data and no definition of its own beyond the two\n * default records, so that:\n *\n * - a host's start-up path never reaches it (it is for an importer loaded on demand);\n * - `lib/themes.ts`, which holds the 34-theme table, is not the place a host has to\n * import from to get a record-shaped helper.\n */\nimport adeaDark from '@adea-ai/themes/themes/adea-dark'\nimport adeaLight from '@adea-ai/themes/themes/adea-light'\nimport {\n themeAccentPresets,\n type AccentPreset,\n type AdeaTheme,\n type AdeaThemeRecord,\n} from '@adea-ai/themes'\n\nexport { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes'\n/** A VS Code colour theme's syntax roles, resolved as VS Code paints them, for importers. */\nexport { opaqueHex, parseVsCodeTheme, vsCodeSyntax, type VsCodeTheme } from '@adea-ai/themes'\nexport { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch'\nexport { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn'\nexport { toXtermTheme } from '@adea-ai/themes/adapters/xterm'\n\n/**\n * The default theme of an appearance as a canonical record: the roles an imported\n * theme falls back to for anything its file does not carry.\n *\n * `defaultVariantFor` is the same theme as a runtime variant; a record keeps the\n * catalogue's own roles (`surfaceActive`, `textSubtle`, the ANSI ramp) that a variant\n * folds together.\n */\nexport function defaultThemeRecord(appearance: 'light' | 'dark'): AdeaThemeRecord {\n return appearance === 'dark' ? adeaDark : adeaLight\n}\n\n/**\n * The accents a light/dark pair of records carries itself, beside the presets.\n *\n * For a host whose pair is not in the catalogue, an imported theme, where\n * `themeAccentsFor` (which looks the pair up by id) cannot answer. A slot is offered\n * only when both themes clear the catalogue's accent floors.\n */\nexport function themeAccentsForRecords(light: AdeaTheme, dark: AdeaTheme): readonly AccentPreset[] {\n return themeAccentPresets(light, dark)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SAAgB,mBAAmB,YAA+C;CAChF,OAAO,eAAe,SAAS,WAAW;AAC5C;;;;;;;;AASA,SAAgB,uBAAuB,OAAkB,MAA0C;CACjG,OAAO,mBAAmB,OAAO,IAAI;AACvC"}
|
|
@@ -83,17 +83,24 @@ export type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES
|
|
|
83
83
|
/** The syntax roles a code view needs. */
|
|
84
84
|
export declare const THEME_EDITOR_PROPERTIES: {
|
|
85
85
|
readonly keyword: '--editor-keyword';
|
|
86
|
+
readonly storage: '--editor-storage';
|
|
86
87
|
readonly string: '--editor-string';
|
|
87
88
|
readonly number: '--editor-number';
|
|
88
89
|
readonly comment: '--editor-comment';
|
|
89
90
|
readonly function: '--editor-function';
|
|
90
91
|
readonly variable: '--editor-variable';
|
|
92
|
+
readonly parameter: '--editor-parameter';
|
|
93
|
+
readonly property: '--editor-property';
|
|
94
|
+
readonly field: '--editor-field';
|
|
95
|
+
readonly member: '--editor-member';
|
|
91
96
|
readonly type: '--editor-type';
|
|
92
97
|
readonly tag: '--editor-tag';
|
|
93
98
|
readonly attribute: '--editor-attribute';
|
|
94
99
|
readonly operator: '--editor-operator';
|
|
95
100
|
readonly heading: '--editor-heading';
|
|
96
101
|
readonly link: '--editor-link';
|
|
102
|
+
readonly constant: '--editor-constant';
|
|
103
|
+
readonly punctuation: '--editor-punctuation';
|
|
97
104
|
readonly diffAdd: '--editor-diff-add';
|
|
98
105
|
readonly diffDelete: '--editor-diff-delete';
|
|
99
106
|
readonly diffHunk: '--editor-diff-hunk';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-types.d.ts","sourceRo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;AAC9C,MAAM,MAAM,SAAS,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
package/dist/lib/theme-types.js
CHANGED
|
@@ -72,17 +72,24 @@ var THEME_TERMINAL_PROPERTIES = {
|
|
|
72
72
|
/** The syntax roles a code view needs. */
|
|
73
73
|
var THEME_EDITOR_PROPERTIES = {
|
|
74
74
|
keyword: "--editor-keyword",
|
|
75
|
+
storage: "--editor-storage",
|
|
75
76
|
string: "--editor-string",
|
|
76
77
|
number: "--editor-number",
|
|
77
78
|
comment: "--editor-comment",
|
|
78
79
|
function: "--editor-function",
|
|
79
80
|
variable: "--editor-variable",
|
|
81
|
+
parameter: "--editor-parameter",
|
|
82
|
+
property: "--editor-property",
|
|
83
|
+
field: "--editor-field",
|
|
84
|
+
member: "--editor-member",
|
|
80
85
|
type: "--editor-type",
|
|
81
86
|
tag: "--editor-tag",
|
|
82
87
|
attribute: "--editor-attribute",
|
|
83
88
|
operator: "--editor-operator",
|
|
84
89
|
heading: "--editor-heading",
|
|
85
90
|
link: "--editor-link",
|
|
91
|
+
constant: "--editor-constant",
|
|
92
|
+
punctuation: "--editor-punctuation",
|
|
86
93
|
diffAdd: "--editor-diff-add",
|
|
87
94
|
diffDelete: "--editor-diff-delete",
|
|
88
95
|
diffHunk: "--editor-diff-hunk",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-types.js","names":[],"sources":["../../src/lib/theme-types.ts"],"sourcesContent":["/**\n * The shapes of the theme system, and the role tables they are built from.\n *\n * Its own module, with no runtime dependency, because everything else depends on it:\n * the catalogue bridge (`lib/themes`), the catalogue-free engine, the provider and\n * the build scripts. `lib/themes` changes with the catalogue; these change only when\n * a role is added, so nothing that only needs a type has to import the catalogue's\n * module to get it.\n */\n\nexport type ThemeAppearance = 'light' | 'dark'\n\n/**\n * The surface and text roles, in shadcn's vocabulary, with the custom property each\n * one paints.\n *\n * Named to match the components, which is why they differ from the catalogue's:\n * these are this system's variable names, and renaming them would mean touching\n * every component in the library for no gain. `destructiveAction` is the\n * contrast-safe solid-action presentation, derived from the canonical error role.\n */\nexport const THEME_COLOR_PROPERTIES = {\n background: '--background',\n foreground: '--foreground',\n card: '--card',\n cardForeground: '--card-foreground',\n popover: '--popover',\n popoverForeground: '--popover-foreground',\n primary: '--primary',\n primaryForeground: '--primary-foreground',\n secondary: '--secondary',\n secondaryForeground: '--secondary-foreground',\n muted: '--muted',\n mutedForeground: '--muted-foreground',\n accent: '--accent',\n accentForeground: '--accent-foreground',\n destructive: '--destructive',\n destructiveForeground: '--destructive-foreground',\n destructiveSubtle: '--destructive-subtle',\n destructiveAction: '--destructive-action',\n destructiveActionForeground: '--destructive-action-foreground',\n success: '--success',\n successForeground: '--success-foreground',\n successSubtle: '--success-subtle',\n warning: '--warning',\n warningForeground: '--warning-foreground',\n warningSubtle: '--warning-subtle',\n info: '--info',\n infoForeground: '--info-foreground',\n infoSubtle: '--info-subtle',\n border: '--border',\n input: '--input',\n ring: '--ring',\n sidebar: '--sidebar',\n sidebarForeground: '--sidebar-foreground',\n sidebarAccent: '--sidebar-accent',\n sidebarBorder: '--sidebar-border',\n sidebarMutedForeground: '--sidebar-muted-foreground',\n} as const\n\nexport type ThemeColors = Record<keyof typeof THEME_COLOR_PROPERTIES, string>\n\n/** The sixteen ANSI colours a terminal needs, plus its cursor and selection. */\nexport const THEME_TERMINAL_PROPERTIES = {\n background: '--terminal-background',\n foreground: '--terminal-foreground',\n cursor: '--terminal-cursor',\n selection: '--terminal-selection',\n black: '--terminal-ansi-black',\n red: '--terminal-ansi-red',\n green: '--terminal-ansi-green',\n yellow: '--terminal-ansi-yellow',\n blue: '--terminal-ansi-blue',\n magenta: '--terminal-ansi-magenta',\n cyan: '--terminal-ansi-cyan',\n white: '--terminal-ansi-white',\n brightBlack: '--terminal-ansi-bright-black',\n brightRed: '--terminal-ansi-bright-red',\n brightGreen: '--terminal-ansi-bright-green',\n brightYellow: '--terminal-ansi-bright-yellow',\n brightBlue: '--terminal-ansi-bright-blue',\n brightMagenta: '--terminal-ansi-bright-magenta',\n brightCyan: '--terminal-ansi-bright-cyan',\n brightWhite: '--terminal-ansi-bright-white',\n} as const\n\nexport type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES, string>\n\n/** The syntax roles a code view needs. */\nexport const THEME_EDITOR_PROPERTIES = {\n keyword: '--editor-keyword',\n string: '--editor-string',\n number: '--editor-number',\n comment: '--editor-comment',\n function: '--editor-function',\n variable: '--editor-variable',\n type: '--editor-type',\n tag: '--editor-tag',\n attribute: '--editor-attribute',\n operator: '--editor-operator',\n heading: '--editor-heading',\n link: '--editor-link',\n diffAdd: '--editor-diff-add',\n diffDelete: '--editor-diff-delete',\n diffHunk: '--editor-diff-hunk',\n searchMatch: '--editor-search-match',\n} as const\n\nexport type ThemeEditorPalette = Record<keyof typeof THEME_EDITOR_PROPERTIES, string>\n\n/** The roles of `table` read out of `source`, in the table's order. */\nexport function pickRoles<Table extends Readonly<Record<string, string>>>(\n table: Table,\n source: Readonly<Record<keyof Table, string>>\n): Record<keyof Table, string> {\n const picked = {} as Record<keyof Table, string>\n for (const role of Object.keys(table) as (keyof Table)[]) picked[role] = source[role]\n return picked\n}\n\n/** `palette` as the custom properties `table` names, in the table's order. */\nexport function rolesAsProperties<Table extends Readonly<Record<string, string>>>(\n table: Table,\n palette: Readonly<Record<keyof Table, string>>\n): Record<string, string> {\n const properties: Record<string, string> = {}\n for (const [role, property] of Object.entries(table)) properties[property] = palette[role]!\n return properties\n}\n\n/** Where a palette came from, and the terms it is used under. */\nexport type ThemeProvenance = {\n /** The project or person the palette belongs to. */\n source: string\n url: string\n /** An SPDX identifier. Every palette in this catalogue is permissive. */\n license: string\n}\n\nexport type ThemeVariant = {\n /** The `data-theme` value and the id a preference stores. */\n id: string\n /** Groups the variants that came from one project. */\n family: string\n familyLabel: string\n label: string\n appearance: ThemeAppearance\n /** One line, shown in a picker. */\n description: string\n colors: ThemeColors\n terminal: ThemeTerminalPalette\n editor: ThemeEditorPalette\n /** The categorical series, in order. */\n chart: readonly string[]\n provenance: ThemeProvenance\n /**\n * Custom properties written verbatim over `themeCssVariables`, last.\n *\n * For a variant a host built from data it does not control the derivation of,\n * an imported theme whose painted colours must stay exactly what the user\n * imported. The catalogue's own variants never carry it, so the derived roles\n * stay the only source of truth for them.\n */\n tokens?: Readonly<Record<string, string>>\n}\n\n/**\n * Which projection fills the `--editor-*` ramp.\n *\n * - `syntax` (the default) is the catalogue's quiet syntax roles, as `ThemeVariant.editor`\n * holds them: a comment may sit below body-text contrast, because in a code view\n * it is meant to recede.\n * - `floor` holds every editor role to 4.5:1 on the canvas (`editorRolesHex`), for a\n * host that renders code as content rather than as decoration. It is hex, where\n * `syntax` is `oklch()`.\n */\nexport type EditorRolesMode = 'syntax' | 'floor'\n\n/** Options for `themeCssVariables`. */\nexport type ThemeCssVariableOptions = {\n /** The `--editor-*` projection. Default `syntax`: absent, the output is unchanged. */\n editor?: EditorRolesMode\n}\n\n/** What an accent is held to when it is resolved against a surface. */\nexport type AccentVariableOptions = {\n /** The surface the accent must read on: the variant's `colors.background`. */\n background?: string\n /**\n * The contrast floor against `background`. Absent, a preset is painted verbatim\n * and only a custom `#rrggbb` is held to the default floor.\n */\n floor?: number\n /** The variant the accent is applied to, so the tint takes its measured strength. */\n variantId?: string\n}\n\n/** A selection's light and dark theme ids. */\nexport type ThemePair = { lightThemeId: string; darkThemeId: string }\n"],"mappings":";;;;;;;;;;AAqBA,IAAa,yBAAyB;CACpC,YAAY;CACZ,YAAY;CACZ,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,mBAAmB;CACnB,SAAS;CACT,mBAAmB;CACnB,WAAW;CACX,qBAAqB;CACrB,OAAO;CACP,iBAAiB;CACjB,QAAQ;CACR,kBAAkB;CAClB,aAAa;CACb,uBAAuB;CACvB,mBAAmB;CACnB,mBAAmB;CACnB,6BAA6B;CAC7B,SAAS;CACT,mBAAmB;CACnB,eAAe;CACf,SAAS;CACT,mBAAmB;CACnB,eAAe;CACf,MAAM;CACN,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,OAAO;CACP,MAAM;CACN,SAAS;CACT,mBAAmB;CACnB,eAAe;CACf,eAAe;CACf,wBAAwB;AAC1B;;AAKA,IAAa,4BAA4B;CACvC,YAAY;CACZ,YAAY;CACZ,QAAQ;CACR,WAAW;CACX,OAAO;CACP,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,aAAa;CACb,WAAW;CACX,aAAa;CACb,cAAc;CACd,YAAY;CACZ,eAAe;CACf,YAAY;CACZ,aAAa;AACf;;AAKA,IAAa,0BAA0B;CACrC,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,UAAU;CACV,UAAU;CACV,MAAM;CACN,KAAK;CACL,WAAW;CACX,UAAU;CACV,SAAS;CACT,MAAM;CACN,SAAS;CACT,YAAY;CACZ,UAAU;CACV,aAAa;AACf;;AAKA,SAAgB,UACd,OACA,QAC6B;CAC7B,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,QAAQ,OAAO,KAAK,KAAK,GAAsB,OAAO,QAAQ,OAAO;CAChF,OAAO;AACT;;AAGA,SAAgB,kBACd,OACA,SACwB;CACxB,MAAM,aAAqC,CAAC;CAC5C,KAAK,MAAM,CAAC,MAAM,aAAa,OAAO,QAAQ,KAAK,GAAG,WAAW,YAAY,QAAQ;CACrF,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"theme-types.js","names":[],"sources":["../../src/lib/theme-types.ts"],"sourcesContent":["/**\n * The shapes of the theme system, and the role tables they are built from.\n *\n * Its own module, with no runtime dependency, because everything else depends on it:\n * the catalogue bridge (`lib/themes`), the catalogue-free engine, the provider and\n * the build scripts. `lib/themes` changes with the catalogue; these change only when\n * a role is added, so nothing that only needs a type has to import the catalogue's\n * module to get it.\n */\n\nexport type ThemeAppearance = 'light' | 'dark'\n\n/**\n * The surface and text roles, in shadcn's vocabulary, with the custom property each\n * one paints.\n *\n * Named to match the components, which is why they differ from the catalogue's:\n * these are this system's variable names, and renaming them would mean touching\n * every component in the library for no gain. `destructiveAction` is the\n * contrast-safe solid-action presentation, derived from the canonical error role.\n */\nexport const THEME_COLOR_PROPERTIES = {\n background: '--background',\n foreground: '--foreground',\n card: '--card',\n cardForeground: '--card-foreground',\n popover: '--popover',\n popoverForeground: '--popover-foreground',\n primary: '--primary',\n primaryForeground: '--primary-foreground',\n secondary: '--secondary',\n secondaryForeground: '--secondary-foreground',\n muted: '--muted',\n mutedForeground: '--muted-foreground',\n accent: '--accent',\n accentForeground: '--accent-foreground',\n destructive: '--destructive',\n destructiveForeground: '--destructive-foreground',\n destructiveSubtle: '--destructive-subtle',\n destructiveAction: '--destructive-action',\n destructiveActionForeground: '--destructive-action-foreground',\n success: '--success',\n successForeground: '--success-foreground',\n successSubtle: '--success-subtle',\n warning: '--warning',\n warningForeground: '--warning-foreground',\n warningSubtle: '--warning-subtle',\n info: '--info',\n infoForeground: '--info-foreground',\n infoSubtle: '--info-subtle',\n border: '--border',\n input: '--input',\n ring: '--ring',\n sidebar: '--sidebar',\n sidebarForeground: '--sidebar-foreground',\n sidebarAccent: '--sidebar-accent',\n sidebarBorder: '--sidebar-border',\n sidebarMutedForeground: '--sidebar-muted-foreground',\n} as const\n\nexport type ThemeColors = Record<keyof typeof THEME_COLOR_PROPERTIES, string>\n\n/** The sixteen ANSI colours a terminal needs, plus its cursor and selection. */\nexport const THEME_TERMINAL_PROPERTIES = {\n background: '--terminal-background',\n foreground: '--terminal-foreground',\n cursor: '--terminal-cursor',\n selection: '--terminal-selection',\n black: '--terminal-ansi-black',\n red: '--terminal-ansi-red',\n green: '--terminal-ansi-green',\n yellow: '--terminal-ansi-yellow',\n blue: '--terminal-ansi-blue',\n magenta: '--terminal-ansi-magenta',\n cyan: '--terminal-ansi-cyan',\n white: '--terminal-ansi-white',\n brightBlack: '--terminal-ansi-bright-black',\n brightRed: '--terminal-ansi-bright-red',\n brightGreen: '--terminal-ansi-bright-green',\n brightYellow: '--terminal-ansi-bright-yellow',\n brightBlue: '--terminal-ansi-bright-blue',\n brightMagenta: '--terminal-ansi-bright-magenta',\n brightCyan: '--terminal-ansi-bright-cyan',\n brightWhite: '--terminal-ansi-bright-white',\n} as const\n\nexport type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES, string>\n\n/** The syntax roles a code view needs. */\nexport const THEME_EDITOR_PROPERTIES = {\n keyword: '--editor-keyword',\n storage: '--editor-storage',\n string: '--editor-string',\n number: '--editor-number',\n comment: '--editor-comment',\n function: '--editor-function',\n variable: '--editor-variable',\n parameter: '--editor-parameter',\n property: '--editor-property',\n field: '--editor-field',\n member: '--editor-member',\n type: '--editor-type',\n tag: '--editor-tag',\n attribute: '--editor-attribute',\n operator: '--editor-operator',\n heading: '--editor-heading',\n link: '--editor-link',\n constant: '--editor-constant',\n punctuation: '--editor-punctuation',\n diffAdd: '--editor-diff-add',\n diffDelete: '--editor-diff-delete',\n diffHunk: '--editor-diff-hunk',\n searchMatch: '--editor-search-match',\n} as const\n\nexport type ThemeEditorPalette = Record<keyof typeof THEME_EDITOR_PROPERTIES, string>\n\n/** The roles of `table` read out of `source`, in the table's order. */\nexport function pickRoles<Table extends Readonly<Record<string, string>>>(\n table: Table,\n source: Readonly<Record<keyof Table, string>>\n): Record<keyof Table, string> {\n const picked = {} as Record<keyof Table, string>\n for (const role of Object.keys(table) as (keyof Table)[]) picked[role] = source[role]\n return picked\n}\n\n/** `palette` as the custom properties `table` names, in the table's order. */\nexport function rolesAsProperties<Table extends Readonly<Record<string, string>>>(\n table: Table,\n palette: Readonly<Record<keyof Table, string>>\n): Record<string, string> {\n const properties: Record<string, string> = {}\n for (const [role, property] of Object.entries(table)) properties[property] = palette[role]!\n return properties\n}\n\n/** Where a palette came from, and the terms it is used under. */\nexport type ThemeProvenance = {\n /** The project or person the palette belongs to. */\n source: string\n url: string\n /** An SPDX identifier. Every palette in this catalogue is permissive. */\n license: string\n}\n\nexport type ThemeVariant = {\n /** The `data-theme` value and the id a preference stores. */\n id: string\n /** Groups the variants that came from one project. */\n family: string\n familyLabel: string\n label: string\n appearance: ThemeAppearance\n /** One line, shown in a picker. */\n description: string\n colors: ThemeColors\n terminal: ThemeTerminalPalette\n editor: ThemeEditorPalette\n /** The categorical series, in order. */\n chart: readonly string[]\n provenance: ThemeProvenance\n /**\n * Custom properties written verbatim over `themeCssVariables`, last.\n *\n * For a variant a host built from data it does not control the derivation of,\n * an imported theme whose painted colours must stay exactly what the user\n * imported. The catalogue's own variants never carry it, so the derived roles\n * stay the only source of truth for them.\n */\n tokens?: Readonly<Record<string, string>>\n}\n\n/**\n * Which projection fills the `--editor-*` ramp.\n *\n * - `syntax` (the default) is the catalogue's quiet syntax roles, as `ThemeVariant.editor`\n * holds them: a comment may sit below body-text contrast, because in a code view\n * it is meant to recede.\n * - `floor` holds every editor role to 4.5:1 on the canvas (`editorRolesHex`), for a\n * host that renders code as content rather than as decoration. It is hex, where\n * `syntax` is `oklch()`.\n */\nexport type EditorRolesMode = 'syntax' | 'floor'\n\n/** Options for `themeCssVariables`. */\nexport type ThemeCssVariableOptions = {\n /** The `--editor-*` projection. Default `syntax`: absent, the output is unchanged. */\n editor?: EditorRolesMode\n}\n\n/** What an accent is held to when it is resolved against a surface. */\nexport type AccentVariableOptions = {\n /** The surface the accent must read on: the variant's `colors.background`. */\n background?: string\n /**\n * The contrast floor against `background`. Absent, a preset is painted verbatim\n * and only a custom `#rrggbb` is held to the default floor.\n */\n floor?: number\n /** The variant the accent is applied to, so the tint takes its measured strength. */\n variantId?: string\n}\n\n/** A selection's light and dark theme ids. */\nexport type ThemePair = { lightThemeId: string; darkThemeId: string }\n"],"mappings":";;;;;;;;;;AAqBA,IAAa,yBAAyB;CACpC,YAAY;CACZ,YAAY;CACZ,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,mBAAmB;CACnB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HANGED
package/dist/r/input-group.json
CHANGED
package/dist/r/lib.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Class-name and token helpers",
|
|
5
5
|
"description": "The private helpers the components import: the class-name merge, the variant recipes, the token manifest and the theme bridge. Installed automatically as a peer of any component that needs it.",
|
|
6
6
|
"dependencies": [
|
|
7
|
-
"@adea-ai/themes
|
|
7
|
+
"@adea-ai/themes@>=0.12.0 <0.13.0",
|
|
8
8
|
"class-variance-authority@^0.7.1",
|
|
9
9
|
"cn@^0.5.2"
|
|
10
10
|
],
|
package/dist/r/message.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "prompt-input",
|
|
3
|
+
"type": "registry:ui",
|
|
4
|
+
"title": "Prompt Input",
|
|
5
|
+
"description": "",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"lucide-solid@^1.71.0"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@adea-ai/ui/action-button",
|
|
11
|
+
"@adea-ai/ui/button",
|
|
12
|
+
"@adea-ai/ui/input-group",
|
|
13
|
+
"@adea-ai/ui/spinner",
|
|
14
|
+
"lib"
|
|
15
|
+
],
|
|
16
|
+
"files": [
|
|
17
|
+
{
|
|
18
|
+
"path": "src/components/composites/prompt-input/index.ts",
|
|
19
|
+
"type": "registry:ui",
|
|
20
|
+
"target": "components/composites/prompt-input/index.ts"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "src/components/composites/prompt-input/prompt-input.tsx",
|
|
24
|
+
"type": "registry:ui",
|
|
25
|
+
"target": "components/composites/prompt-input/prompt-input.tsx"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|