Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
style(core): update default themes, other assorted style fixes, add theme swatched to cmd+l" (#3207)
Seamusb42010e4297e
diff --git a/js/app/packages/app/component/GlobalHotkeys.tsx b/js/app/packages/app/component/GlobalHotkeys.tsxindex 0d9d17944f..123dc67c8a 100644--- a/js/app/packages/app/component/GlobalHotkeys.tsx+++ b/js/app/packages/app/component/GlobalHotkeys.tsx@@ -19,8 +19,10 @@ import IconGear from '@macro-icons/macro-gear.svg';import { AiInstructionsIcon } from '@queries/storage/instructions-md';import { useMutationUndoContext } from '@queries/undo';import { debounce } from '@solid-primitives/scheduled';+import { ThemeChips } from '@theme/components/ThemeChips';+import type { ThemeV2 } from '@theme/types/themeTypes';import { registerHotkey } from 'core/hotkey/hotkeys';-import { createMemo, onCleanup } from 'solid-js';+import { type Component, createMemo, onCleanup } from 'solid-js';import {monochromeIcons,setDarkModeTheme,@@ -246,6 +248,15 @@ export default function GlobalShortcuts() {displayPriority: 10,});+ const ThemeDisplay: Component<{ theme: ThemeV2 }> = (props) => (+ <div class="flex items-center gap-2">+ {props.theme.name}+ <div class="px-1 ring ring-edge-muted rounded-xs">+ <ThemeChips theme={props.theme} />+ </div>+ </div>+ );+themes().forEach((theme) => {registerHotkey({scopeId: setThemeScope.commandScopeId,@@ -256,6 +267,7 @@ export default function GlobalShortcuts() {return true;},runWithInputFocused: true,+ displayComponent: () => <ThemeDisplay theme={theme} />,});});@@ -279,6 +291,7 @@ export default function GlobalShortcuts() {return true;},runWithInputFocused: true,+ displayComponent: () => <ThemeDisplay theme={theme} />,});});@@ -302,6 +315,7 @@ export default function GlobalShortcuts() {return true;},runWithInputFocused: true,+ displayComponent: () => <ThemeDisplay theme={theme} />,});});diff --git a/js/app/packages/app/component/command/CommandItem.tsx b/js/app/packages/app/component/command/CommandItem.tsxindex 5968e85231..2e89f54c8d 100644--- a/js/app/packages/app/component/command/CommandItem.tsx+++ b/js/app/packages/app/component/command/CommandItem.tsx@@ -108,7 +108,12 @@ function CommandDisplay(props: { item: CommandMenuItem }) {{(icon) => <Dynamic component={icon()} class="size-4" />}</Show></div>- <span class="truncate text-ink">{description()}</span>+ <Show+ when={command()?.displayComponent}+ fallback={<span class="truncate">{description()}</span>}+ >+ {(comp) => <Dynamic component={comp()} />}+ </Show></div>);}diff --git a/js/app/packages/app/component/command/CommandMenu.tsx b/js/app/packages/app/component/command/CommandMenu.tsxindex 4b19ccbb81..08af5d8dd6 100644--- a/js/app/packages/app/component/command/CommandMenu.tsx+++ b/js/app/packages/app/component/command/CommandMenu.tsx@@ -476,7 +476,7 @@ export function CommandMenuInner(props: {</Show><inputtype="text"- class="flex-1 bg-transparent border-0 outline-none focus:outline-none ring-0 focus:ring-0 text-ink-muted placeholder:text-ink-placeholder/50"+ class="flex-1 bg-transparent border-0 outline-none focus:outline-none ring-0 focus:ring-0 text-ink-muted placeholder:text-ink-placeholder"placeholder={isEntityActionMode() ? 'Search actions...' : 'Search...'}value={CommandState.query()}onInput={(e) => CommandState.setQuery(e.currentTarget.value)}diff --git a/js/app/packages/app/component/interactive-onboarding/OnboardingEntityList.tsx b/js/app/packages/app/component/interactive-onboarding/OnboardingEntityList.tsxindex 01896d1cb9..12a6c1a811 100644--- a/js/app/packages/app/component/interactive-onboarding/OnboardingEntityList.tsx+++ b/js/app/packages/app/component/interactive-onboarding/OnboardingEntityList.tsx@@ -70,7 +70,7 @@ export function OnboardingEntityList(props: OnboardingEntityListProps) {<Entity.Icon entity={entity() as EntityData} /></div><Entity.Title entity={entity() as EntityData} />- <span class="ml-auto font-mono font-light uppercase tracking-wide text-xs text-ink/40 shrink-0">+ <span class="ml-auto font-light text-xs text-ink/40 shrink-0"><Entity.Timestamp entity={entity() as EntityData} /></span></>@@ -121,7 +121,7 @@ export function OnboardingEntityList(props: OnboardingEntityListProps) {{(entity() as EntityData & { snippet: string }).snippet}</span></span>- <span class="ml-auto font-mono font-light uppercase tracking-wide text-xs text-ink/40 shrink-0">+ <span class="ml-auto font-light text-xs text-ink/40 shrink-0"><Entity.Timestamp entity={entity() as EntityData} /></span></Show>diff --git a/js/app/packages/app/component/next-soup/soup-view/views/tasks/task-grid-layout.tsx b/js/app/packages/app/component/next-soup/soup-view/views/tasks/task-grid-layout.tsxindex 11302ad544..f62691a28e 100644--- a/js/app/packages/app/component/next-soup/soup-view/views/tasks/task-grid-layout.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/views/tasks/task-grid-layout.tsx@@ -205,7 +205,7 @@ export function TaskGridLayout(props: LayoutProps) {<Entity.Slotplacement="timestamp"- class="text-xs font-mono text-right text-ink-extra-muted uppercase font-light"+ class="text-xs text-right text-ink-extra-muted font-light"><Show when={!props.hasNotifications}><Entity.Timestamp entity={props.entity} />diff --git a/js/app/packages/app/component/split-layout/componentRegistry.tsx b/js/app/packages/app/component/split-layout/componentRegistry.tsxindex 7b2b0f6754..a8fd0fba16 100644--- a/js/app/packages/app/component/split-layout/componentRegistry.tsx+++ b/js/app/packages/app/component/split-layout/componentRegistry.tsx@@ -298,6 +298,10 @@ registerComponent();if (LOCAL_ONLY) {+ registerComponent(+ 'theme-debug',+ lazy(() => import('@core/internal/ThemeDebug'))+ );registerComponent('core',lazy(() => import('@core/internal/App'))diff --git a/js/app/packages/channel/Attachments/AttachmentEntityRow.tsx b/js/app/packages/channel/Attachments/AttachmentEntityRow.tsxindex 3a9378658c..3320eac2d1 100644--- a/js/app/packages/channel/Attachments/AttachmentEntityRow.tsx+++ b/js/app/packages/channel/Attachments/AttachmentEntityRow.tsx@@ -28,7 +28,7 @@ export function AttachmentEntityRow(props: {</div>)}</Show>- <span class="text-xs font-mono text-ink-extra-muted uppercase font-light shrink-0">+ <span class="text-xs text-ink-extra-muted font-light shrink-0"><Entity.Timestampentity={props.entity}overrideTimeStamp={props.timestamp ?? undefined}diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsxindex 2974443cb1..681c518b65 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx@@ -13,7 +13,7 @@ import { mergeRegister } from '@lexical/utils';import { $isImageNode, type ImageDecoratorProps } from '@lexical-core';import { calculateEffectiveDimensions } from '@lexical-core/utils/media';import { debounce } from '@solid-primitives/scheduled';-import { Button, cn } from '@ui';+import { Button, cn, Layer } from '@ui';import {$createNodeSelection,$getNodeByKey,@@ -357,19 +357,21 @@ export function MarkdownImage(props: ImageDecoratorProps) {(state() === 'ok' || state() === 'error')}>- <div class="size-full absolute top-0 left-0 pointer-events-none bg-edge/10" />- <MediaButtons- delete={interactable() ? deleteImage : undefined}- enlarge={state() === 'ok' ? viewFull : undefined}- newTab={- state() === 'ok'- ? () => {- window.open(imageUrl(), '_blank');- }- : undefined- }- containerRef={containerRef}- />+ <Layer depth={3}>+ <div class="size-full absolute top-0 left-0 pointer-events-none bg-edge/10" />+ <MediaButtons+ delete={interactable() ? deleteImage : undefined}+ enlarge={state() === 'ok' ? viewFull : undefined}+ newTab={+ state() === 'ok'+ ? () => {+ window.open(imageUrl(), '_blank');+ }+ : undefined+ }+ containerRef={containerRef}+ />+ </Layer></Show></div>diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsxindex afb1d01a90..3adb48057f 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx@@ -336,7 +336,7 @@ export function MarkdownVideo(props: VideoDecoratorProps) {(state() === 'ok' || state() === 'error')}>- <div class="size-full absolute top-0 left-0 pointer-events-none bg-edge" />+ <div class="size-full absolute top-0 left-0 pointer-events-none bg-edge/10" /><MediaButtonsdelete={interactable() ? deleteVideo : undefined}enlarge={state() === 'ok' ? viewFull : undefined}diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MediaButtons.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MediaButtons.tsxindex 2efcc83ed0..dc4440c45e 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MediaButtons.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MediaButtons.tsx@@ -11,7 +11,7 @@ import ThreeDotsIcon from '@icon/regular/dots-three.svg';import Trash from '@icon/regular/trash.svg';import { Dialog } from '@kobalte/core/dialog';import { DropdownMenu } from '@kobalte/core/dropdown-menu';-import { Button } from '@ui';+import { Button, Layer } from '@ui';import { createSignal, onCleanup, onMount, Show } from 'solid-js';false && clickOutside;@@ -51,8 +51,8 @@ export function MediaButtons(props: MediaButtonsProps) {<Show when={props.enlarge}><Dialog.Triggeras={Button}- class="size-8 p-0"variant="ghost"+ size="icon-sm"tooltip="View full screen"on:mousedown={(e: MouseEvent) => {e.preventDefault();@@ -60,13 +60,13 @@ export function MediaButtons(props: MediaButtonsProps) {props.enlarge?.();}}>- <ArrowsOut class="size-5" />+ <ArrowsOut /></Dialog.Trigger></Show><Show when={props.newTab && !isMobile()}><Button- class="size-8 p-0"variant="ghost"+ size="icon-sm"tooltip="Open in new tab"on:mousedown={(e: MouseEvent) => {e.preventDefault();@@ -74,13 +74,13 @@ export function MediaButtons(props: MediaButtonsProps) {props.newTab?.();}}>- <NewTab class="size-5" />+ <NewTab /></Button></Show><Show when={props.delete}><Button- class="size-8 p-0"variant="ghost"+ size="icon-sm"tooltip="Remove"on:mousedown={(e: MouseEvent) => {e.preventDefault();@@ -88,79 +88,82 @@ export function MediaButtons(props: MediaButtonsProps) {props.delete?.();}}>- <Trash class="size-5" />+ <Trash /></Button></Show></>);return (- <div class="absolute bg-menu top-2 right-2 flex flex-row rounded-xs p-1">- <Show when={!collapsed()}>- <ButtonContent />- </Show>- <Show when={collapsed()}>- <DropdownMenu- open={menuOpen()}- onOpenChange={setMenuOpen}- placement="bottom-end"- >- <DropdownMenu.Trigger- as={Button}- class="size-8 p-0 border-0 bg-transparent hover:bg-hover"- tooltip="More options"+ <Layer depth={3}>+ <div class="absolute bg-panel ring ring-edge rounded-md top-2 right-2 flex flex-row p-1">+ <Show when={!collapsed()}>+ <ButtonContent />+ </Show>+ <Show when={collapsed()}>+ <DropdownMenu+ open={menuOpen()}+ onOpenChange={setMenuOpen}+ placement="bottom-end">- <ThreeDotsIcon class="size-4" />- </DropdownMenu.Trigger>- <DropdownMenu.Portal>- <DropdownMenuContent>- <div- use:clickOutside={(e) => {- const target = e.target as HTMLElement;- const menu = target.closest('.submenu');- if (!menu) {- setMenuOpen(false);- }- }}- class="w-full"- >- <Show when={props.enlarge}>- <MenuItem- text="View full screen"- icon={ArrowsOut}- onClick={() => {- props.enlarge?.();- setMenuOpen(false);- }}- />- </Show>- <Show when={props.newTab && !isMobile()}>- <MenuItem- text="Open in new tab"- icon={NewTab}- onClick={() => {- props.newTab?.();+ <DropdownMenu.Trigger+ as={Button}+ size="icon-sm"+ variant="ghost"+ tooltip="More options"+ >+ <ThreeDotsIcon />+ </DropdownMenu.Trigger>+ <DropdownMenu.Portal>+ <DropdownMenuContent>+ <div+ use:clickOutside={(e) => {+ const target = e.target as HTMLElement;+ const menu = target.closest('.submenu');+ if (!menu) {setMenuOpen(false);- }}- />- </Show>- <Show when={props.delete}>- <MenuSeparator />- <MenuItem- text="Remove"- icon={Trash}- iconClass="text-failure"- onClick={() => {- props.delete?.();- setMenuOpen(false);- }}- />- </Show>- </div>- </DropdownMenuContent>- </DropdownMenu.Portal>- </DropdownMenu>- </Show>- </div>+ }+ }}+ class="w-full"+ >+ <Show when={props.enlarge}>+ <MenuItem+ text="View full screen"+ icon={ArrowsOut}+ onClick={() => {+ props.enlarge?.();+ setMenuOpen(false);+ }}+ />+ </Show>+ <Show when={props.newTab && !isMobile()}>+ <MenuItem+ text="Open in new tab"+ icon={NewTab}+ onClick={() => {+ props.newTab?.();+ setMenuOpen(false);+ }}+ />+ </Show>+ <Show when={props.delete}>+ <MenuSeparator />+ <MenuItem+ text="Remove"+ icon={Trash}+ iconClass="text-failure"+ onClick={() => {+ props.delete?.();+ setMenuOpen(false);+ }}+ />+ </Show>+ </div>+ </DropdownMenuContent>+ </DropdownMenu.Portal>+ </DropdownMenu>+ </Show>+ </div>+ </Layer>);}diff --git a/js/app/packages/core/hotkey/hotkeys.ts b/js/app/packages/core/hotkey/hotkeys.tsindex cc90ec00af..afec7551d6 100644--- a/js/app/packages/core/hotkey/hotkeys.ts+++ b/js/app/packages/core/hotkey/hotkeys.ts@@ -123,6 +123,7 @@ export function registerHotkey(registrationType = 'override',hide,icon,+ displayComponent,tags,shouldReturnFocusOnClose,proxiedHotkey,@@ -226,6 +227,7 @@ export function registerHotkey(handlerPriority: handlerPriority ?? HOTKEY_PRIORITY_DEFAULT,hide,icon,+ displayComponent,tags,shouldReturnFocusOnClose,proxiedHotkey,diff --git a/js/app/packages/core/hotkey/types.ts b/js/app/packages/core/hotkey/types.tsindex 1192c11fd0..bd52eec02c 100644--- a/js/app/packages/core/hotkey/types.ts+++ b/js/app/packages/core/hotkey/types.ts@@ -44,6 +44,8 @@ export interface HotkeyCommand {hide?: boolean | (() => boolean);// Optional icon to display in the command palette.icon?: Component<JSX.SvgSVGAttributes<SVGSVGElement>>;+ // Optional component to display in the command palette+ displayComponent?: Component<any>;// Optional tags for categorizing in the command palette.tags?: string[];/**@@ -158,6 +160,10 @@ export interface HotkeyRegistrationOptions {* Optional icon to display in the command palette.*/icon?: Component<JSX.SvgSVGAttributes<SVGSVGElement>>;+ /**+ * Optional component to display in command palette rather than description.+ */+ displayComponent?: Component<any>;/*** Optional tags for categorizing in the command palette.*/diff --git a/js/app/packages/core/internal/ThemeDebug.tsx b/js/app/packages/core/internal/ThemeDebug.tsxnew file mode 100644index 0000000000..78729aec7d--- /dev/null+++ b/js/app/packages/core/internal/ThemeDebug.tsx@@ -0,0 +1,370 @@+import { Button, Panel } from '@ui';+import { For } from 'solid-js';++const LOREM_SHORT = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';+const LOREM_MEDIUM =+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.';++const TEXT_SIZES = [+ { name: 'text-xs', class: 'text-xs' },+ { name: 'text-sm', class: 'text-sm' },+ { name: 'text-base', class: 'text-base' },+ { name: 'text-lg', class: 'text-lg' },+ { name: 'text-xl', class: 'text-xl' },+ { name: 'text-2xl', class: 'text-2xl' },+] as const;++const INK_VARIANTS = [+ { name: 'text-ink', class: 'text-ink' },+ { name: 'text-ink-muted', class: 'text-ink-muted' },+ { name: 'text-ink-extra-muted', class: 'text-ink-extra-muted' },+ { name: 'text-ink-disabled', class: 'text-ink-disabled' },+ { name: 'text-ink-placeholder', class: 'text-ink-placeholder' },+] as const;++const BUTTON_VARIANTS = ['ghost', 'base', 'active', 'danger'] as const;+const BUTTON_SIZES = ['sm', 'md', 'lg'] as const;++function ThemeDebug() {+ return (+ <div class="size-full overflow-auto bg-panel p-6">+ <div class="flex flex-col gap-8 max-w-6xl mx-auto">+ <h1 class="text-2xl font-bold text-ink">Theme Debug</h1>++ {/* Panel Depths Section */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Panel Depths (0-5)</h2>+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">+ <For each={[0, 1, 2, 3, 4, 5] as const}>+ {(depth) => (+ <Panel depth={depth} class="min-h-40">+ <Panel.Header>+ <span class="text-sm font-medium text-ink">+ Depth {depth}+ </span>+ </Panel.Header>+ <Panel.Body class="p-4">+ <p class="text-sm text-ink-muted">{LOREM_SHORT}</p>+ </Panel.Body>+ </Panel>+ )}+ </For>+ </div>++ {/* Nested panels to show depth hierarchy */}+ <h3 class="text-lg font-medium text-ink mt-4">Nested Panel Depths</h3>+ <Panel depth={0} class="p-4">+ <p class="text-xs text-ink-muted mb-2">Depth 0</p>+ <Panel depth={1} class="p-4">+ <p class="text-xs text-ink-muted mb-2">Depth 1</p>+ <Panel depth={2} class="p-4">+ <p class="text-xs text-ink-muted mb-2">Depth 2</p>+ <Panel depth={3} class="p-4">+ <p class="text-xs text-ink-muted mb-2">Depth 3</p>+ <Panel depth={4} class="p-4">+ <p class="text-xs text-ink-muted mb-2">Depth 4</p>+ <Panel depth={5} class="p-4">+ <p class="text-xs text-ink-muted">Depth 5 (innermost)</p>+ </Panel>+ </Panel>+ </Panel>+ </Panel>+ </Panel>+ </Panel>+ </section>++ {/* Active Panels */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Active Panels</h2>+ <p class="text-sm text-ink-muted">+ Panels with the `active` prop show an accent border gradient.+ </p>+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">+ <For each={[1, 2, 3] as const}>+ {(depth) => (+ <Panel depth={depth} active class="min-h-32">+ <Panel.Header>+ <span class="text-sm font-medium text-ink">+ Active Depth {depth}+ </span>+ </Panel.Header>+ <Panel.Body class="p-4">+ <p class="text-sm text-ink-muted">+ Active panel with accent styling+ </p>+ </Panel.Body>+ </Panel>+ )}+ </For>+ </div>+ </section>++ {/* Text Sizes Section */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Text Sizes</h2>+ <p class="text-sm text-ink-muted">Major text sizes from xs to 2xl.</p>++ <Panel depth={1}>+ <Panel.Body class="p-4">+ <div class="flex flex-col gap-4">+ <For each={TEXT_SIZES}>+ {(size) => (+ <div class="flex flex-col gap-1">+ <span class="text-xs text-ink-extra-muted font-mono">+ {size.name}+ </span>+ <p class={`${size.class} text-ink`}>{LOREM_SHORT}</p>+ </div>+ )}+ </For>+ </div>+ </Panel.Body>+ </Panel>+ </section>++ {/* Ink Variants Section */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Ink Color Variants</h2>+ <p class="text-sm text-ink-muted">+ Text colors from ink (primary) to ink-placeholder (lowest contrast).+ </p>++ <Panel depth={1}>+ <Panel.Body class="p-4">+ <div class="flex flex-col gap-4">+ <For each={INK_VARIANTS}>+ {(variant) => (+ <div class="flex flex-col gap-1">+ <span class="text-xs text-ink-extra-muted font-mono">+ {variant.name}+ </span>+ <p class={`text-base ${variant.class}`}>{LOREM_MEDIUM}</p>+ </div>+ )}+ </For>+ </div>+ </Panel.Body>+ </Panel>+ </section>++ {/* Combined Text Matrix */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">+ Text Size × Ink Variant Matrix+ </h2>+ <p class="text-sm text-ink-muted">+ All combinations of text sizes and ink variants.+ </p>++ <Panel depth={1}>+ <Panel.Body scroll class="max-h-96">+ <div class="p-4">+ <table class="w-full border-collapse">+ <thead>+ <tr>+ <th class="text-left text-xs text-ink-muted p-2 border-b border-edge-muted">+ Size / Ink+ </th>+ <For each={INK_VARIANTS}>+ {(ink) => (+ <th class="text-left text-xs text-ink-muted p-2 border-b border-edge-muted font-mono">+ {ink.name.replace('text-', '')}+ </th>+ )}+ </For>+ </tr>+ </thead>+ <tbody>+ <For each={TEXT_SIZES}>+ {(size) => (+ <tr>+ <td class="text-xs text-ink-muted p-2 border-b border-edge-muted font-mono">+ {size.name}+ </td>+ <For each={INK_VARIANTS}>+ {(ink) => (+ <td+ class={`p-2 border-b border-edge-muted ${size.class} ${ink.class}`}+ >+ Aa+ </td>+ )}+ </For>+ </tr>+ )}+ </For>+ </tbody>+ </table>+ </div>+ </Panel.Body>+ </Panel>+ </section>++ {/* Button Variants Section */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Button Variants</h2>+ <p class="text-sm text-ink-muted">+ All button variants: ghost, base, active, and danger.+ </p>++ <Panel depth={1}>+ <Panel.Body class="p-4">+ <div class="flex flex-col gap-6">+ <For each={BUTTON_VARIANTS}>+ {(variant) => (+ <div class="flex flex-col gap-2">+ <span class="text-xs text-ink-extra-muted font-mono">+ variant="{variant}"+ </span>+ <div class="flex flex-wrap gap-2 items-center">+ <For each={BUTTON_SIZES}>+ {(size) => (+ <Button variant={variant} size={size}>+ {size.toUpperCase()} Button+ </Button>+ )}+ </For>+ <Button variant={variant} disabled>+ Disabled+ </Button>+ </div>+ </div>+ )}+ </For>+ </div>+ </Panel.Body>+ </Panel>+ </section>++ {/* Button Sizes with Icons */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Button Sizes</h2>+ <p class="text-sm text-ink-muted">+ All button sizes including icon variants.+ </p>++ <Panel depth={1}>+ <Panel.Body class="p-4">+ <div class="flex flex-col gap-4">+ <div class="flex flex-wrap gap-2 items-center">+ <Button variant="base" size="sm">+ Small+ </Button>+ <Button variant="base" size="md">+ Medium+ </Button>+ <Button variant="base" size="lg">+ Large+ </Button>+ </div>+ <div class="flex flex-wrap gap-2 items-center">+ <Button variant="base" size="icon-sm">+ <svg+ class="size-4"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <path d="M12 4v16m-8-8h16" />+ </svg>+ </Button>+ <Button variant="base" size="icon-md">+ <svg+ class="size-5"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <path d="M12 4v16m-8-8h16" />+ </svg>+ </Button>+ <Button variant="base" size="icon-lg">+ <svg+ class="size-6"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <path d="M12 4v16m-8-8h16" />+ </svg>+ </Button>+ </div>+ </div>+ </Panel.Body>+ </Panel>+ </section>++ {/* Buttons at Different Depths */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">+ Buttons at Panel Depths+ </h2>+ <p class="text-sm text-ink-muted">+ Buttons can specify a depth prop for proper layering.+ </p>++ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">+ <For each={[1, 2, 3, 4] as const}>+ {(depth) => (+ <Panel depth={depth}>+ <Panel.Header>+ <span class="text-sm font-medium text-ink">+ Panel Depth {depth}+ </span>+ </Panel.Header>+ <Panel.Body class="p-4">+ <div class="flex flex-wrap gap-2">+ <Button variant="ghost" depth={depth}>+ Ghost+ </Button>+ <Button variant="base" depth={depth}>+ Base+ </Button>+ <Button variant="active" depth={depth}>+ Active+ </Button>+ <Button variant="danger" depth={depth}>+ Danger+ </Button>+ </div>+ </Panel.Body>+ </Panel>+ )}+ </For>+ </div>+ </section>++ {/* Full Example Card */}+ <section class="flex flex-col gap-4">+ <h2 class="text-xl font-semibold text-ink">Complete Card Example</h2>+ <p class="text-sm text-ink-muted">+ A complete panel with header, body, and footer.+ </p>++ <Panel depth={2} active>+ <Panel.Header class="px-4">+ <span class="text-sm font-semibold text-ink">Card Title</span>+ </Panel.Header>+ <Panel.Body class="p-4">+ <p class="text-base text-ink mb-2">{LOREM_SHORT}</p>+ <p class="text-sm text-ink-muted">{LOREM_MEDIUM}</p>+ </Panel.Body>+ <Panel.Footer class="px-4 justify-end gap-2">+ <Button variant="ghost" size="sm">+ Cancel+ </Button>+ <Button variant="active" size="sm">+ Confirm+ </Button>+ </Panel.Footer>+ </Panel>+ </section>+ </div>+ </div>+ );+}++export default ThemeDebug;diff --git a/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx b/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsxindex 45fd27cd50..be093a362a 100644--- a/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx+++ b/js/app/packages/entity/src/composed/list-entity/narrow-layout.tsx@@ -92,7 +92,7 @@ export function NarrowLayout(props: LayoutProps) {><Entity.Slotplacement="timestamp"- class="text-xs font-mono text-right text-ink-extra-muted uppercase font-light"+ class="text-xs text-right text-ink-extra-muted font-light"><Showwhen={!isTaskEntity(props.entity)}diff --git a/js/app/packages/entity/src/composed/list-entity/wide-layout.tsx b/js/app/packages/entity/src/composed/list-entity/wide-layout.tsxindex 8697489d52..d916e81468 100644--- a/js/app/packages/entity/src/composed/list-entity/wide-layout.tsx+++ b/js/app/packages/entity/src/composed/list-entity/wide-layout.tsx@@ -137,7 +137,7 @@ export function WideLayout(props: LayoutProps) {</Entity.Slot><Entity.Slotplacement="timestamp"- class="text-xs font-mono text-right text-ink-extra-muted uppercase font-light"+ class="text-xs text-right text-ink-extra-muted font-medium"><Showwhen={diff --git a/js/app/packages/theme/components/ThemeChips.tsx b/js/app/packages/theme/components/ThemeChips.tsxnew file mode 100644index 0000000000..6bfb09eb13--- /dev/null+++ b/js/app/packages/theme/components/ThemeChips.tsx@@ -0,0 +1,29 @@+import type { ThemeV2 } from "@theme/types/themeTypes";++export function ThemeChips(props: { theme: ThemeV2 }) {+ const oklch = (token: { l: number; c: number; h: number }) => {+ if (!token) return 'transparent';+ return `oklch(${token.l} ${token.c} ${token.h}deg)`;+ };++ const a0 = () => oklch(props.theme.tokens.a0);+ const b0 = () => oklch(props.theme.tokens.b0);+ const c0 = () => oklch(props.theme.tokens.c0);++ return (+ <span class="inline-flex items-center gap-0.5">+ <span+ class="inline-block size-2.5 rounded-xs border border-edge-muted"+ style={{ 'background-color': a0() }}+ />+ <span+ class="inline-block size-2.5 rounded-xs border border-edge-muted"+ style={{ 'background-color': b0() }}+ />+ <span+ class="inline-block size-2.5 rounded-xs border border-edge-muted"+ style={{ 'background-color': c0() }}+ />+ </span>+ )+}diff --git a/js/app/packages/theme/constants.ts b/js/app/packages/theme/constants.tsindex 952ff704f8..5252f240fc 100644--- a/js/app/packages/theme/constants.ts+++ b/js/app/packages/theme/constants.ts@@ -8,7 +8,7 @@ export const DEFAULT_THEMES = [id: 'Sleepless',name: 'Sleepless',version: 2,- depth: 0.05,+ depth: 0.1,tokens: {a0: { l: 0.71, c: 0.34, h: 21 },a1: { l: 0.71, c: 0.34, h: 61 },@@ -20,18 +20,18 @@ export const DEFAULT_THEMES = [b2: { l: 0.18, c: 0.00, h: 21 },b3: { l: 0.20, c: 0.00, h: 21 },b4: { l: 0.26, c: 0.00, h: 21 },- c0: { l: 0.96, c: 0.00, h: 21 },- c1: { l: 0.93, c: 0.00, h: 21 },- c2: { l: 0.90, c: 0.00, h: 21 },- c3: { l: 0.87, c: 0.00, h: 21 },- c4: { l: 0.85, c: 0.00, h: 21 },+ c0: { l: 0.95, c: 0.00, h: 21 },+ c1: { l: 0.83, c: 0.00, h: 21 },+ c2: { l: 0.75, c: 0.00, h: 21 },+ c3: { l: 0.63, c: 0.00, h: 21 },+ c4: { l: 0.55, c: 0.00, h: 21 },},},{id: 'Groove',name: 'Groove',version: 2,- depth: 0.053,+ depth: 0.07,tokens: {a0: { l: 0.85, c: 0.34, h: 46 },a1: { l: 0.85, c: 0.34, h: 86 },@@ -44,35 +44,35 @@ export const DEFAULT_THEMES = [b3: { l: 0.32, c: 0.00, h: 46 },b4: { l: 0.35, c: 0.00, h: 46 },c0: { l: 0.80, c: 0.00, h: 46 },- c1: { l: 0.76, c: 0.00, h: 46 },- c2: { l: 0.72, c: 0.00, h: 46 },- c3: { l: 0.67, c: 0.00, h: 46 },- c4: { l: 0.62, c: 0.00, h: 46 },+ c1: { l: 0.72, c: 0.00, h: 46 },+ c2: { l: 0.64, c: 0.00, h: 46 },+ c3: { l: 0.55, c: 0.00, h: 46 },+ c4: { l: 0.52, c: 0.00, h: 46 },},},- {- id: 'Macro Light',- name: 'Macro Light',- version: 2,- depth: 0.15,- tokens: {- a0: { l: 0.65, c: 0.20, h: 59 },- a1: { l: 0.65, c: 0.20, h: 99 },- a2: { l: 0.65, c: 0.20, h: 139 },- a3: { l: 0.65, c: 0.20, h: 179 },- a4: { l: 0.65, c: 0.20, h: 219 },- b0: { l: 0.95, c: 0.00, h: 59 },- b1: { l: 0.94, c: 0.00, h: 59 },- b2: { l: 0.92, c: 0.00, h: 59 },- b3: { l: 0.87, c: 0.00, h: 59 },- b4: { l: 0.86, c: 0.00, h: 59 },- c0: { l: 0.04, c: 0.00, h: 59 },- c1: { l: 0.07, c: 0.00, h: 59 },- c2: { l: 0.10, c: 0.00, h: 59 },- c3: { l: 0.13, c: 0.00, h: 59 },- c4: { l: 0.15, c: 0.00, h: 59 },- },- },+ {+ id: 'Macro Light',+ name: 'Macro Light',+ version: 2,+ depth: 0.055,+ tokens: {+ a0: { l: 0.65, c: 0.20, h: 59 },+ a1: { l: 0.65, c: 0.20, h: 99 },+ a2: { l: 0.65, c: 0.20, h: 139 },+ a3: { l: 0.65, c: 0.20, h: 179 },+ a4: { l: 0.65, c: 0.20, h: 219 },+ b0: { l: 0.96, c: 0.00, h: 59 },+ b1: { l: 0.94, c: 0.00, h: 59 },+ b2: { l: 0.92, c: 0.00, h: 59 },+ b3: { l: 0.92, c: 0.00, h: 59 },+ b4: { l: 0.90, c: 0.00, h: 59 },+ c0: { l: 0.14, c: 0.00, h: 59 },+ c1: { l: 0.40, c: 0.00, h: 59 },+ c2: { l: 0.55, c: 0.00, h: 59 },+ c3: { l: 0.65, c: 0.00, h: 59 },+ c4: { l: 0.75, c: 0.00, h: 59 },+ },+ },{id: 'Macro Dark',name: 'Macro Dark',@@ -89,34 +89,34 @@ export const DEFAULT_THEMES = [b2: { l: 0.18, c: 0.00, h: 59 },b3: { l: 0.20, c: 0.00, h: 59 },b4: { l: 0.26, c: 0.00, h: 59 },- c0: { l: 0.96, c: 0.00, h: 59 },- c1: { l: 0.93, c: 0.00, h: 59 },- c2: { l: 0.90, c: 0.00, h: 59 },- c3: { l: 0.87, c: 0.00, h: 59 },- c4: { l: 0.85, c: 0.00, h: 59 },+ c0: { l: 0.95, c: 0.00, h: 59 },+ c1: { l: 0.83, c: 0.00, h: 59 },+ c2: { l: 0.75, c: 0.00, h: 59 },+ c3: { l: 0.63, c: 0.00, h: 59 },+ c4: { l: 0.55, c: 0.00, h: 59 },},},{id: 'Satsuma',name: 'Satsuma',version: 2,- depth: 0.15,+ depth: 0.06,tokens: {a0: { l: 0.67, c: 0.29, h: 82.13 },a1: { l: 0.67, c: 0.29, h: 122.13 },a2: { l: 0.67, c: 0.29, h: 162.13 },a3: { l: 0.67, c: 0.29, h: 202.13 },a4: { l: 0.67, c: 0.29, h: 242.13 },- b0: { l: 0.87, c: 0.02, h: 82.13 },- b1: { l: 0.86, c: 0.02, h: 82.13 },- b2: { l: 0.85, c: 0.02, h: 82.13 },- b3: { l: 0.84, c: 0.02, h: 82.13 },- b4: { l: 0.80, c: 0.02, h: 82.13 },- c0: { l: 0.27, c: 0.02, h: 82.13 },- c1: { l: 0.21, c: 0.02, h: 82.13 },- c2: { l: 0.38, c: 0.02, h: 82.13 },- c3: { l: 0.45, c: 0.02, h: 82.13 },- c4: { l: 0.50, c: 0.02, h: 82.13 },+ b0: { l: 0.94, c: 0.02, h: 82.13 },+ b1: { l: 0.92, c: 0.03, h: 82.13 },+ b2: { l: 0.90, c: 0.02, h: 82.13 },+ b3: { l: 0.90, c: 0.02, h: 82.13 },+ b4: { l: 0.88, c: 0.02, h: 82.13 },+ c0: { l: 0.25, c: 0.02, h: 82.13 },+ c1: { l: 0.36, c: 0.02, h: 82.13 },+ c2: { l: 0.47, c: 0.03, h: 82.13 },+ c3: { l: 0.58, c: 0.04, h: 82.13 },+ c4: { l: 0.69, c: 0.05, h: 82.13 },},},{@@ -135,11 +135,11 @@ export const DEFAULT_THEMES = [b2: { l: 0.18, c: 0.00, h: 93 },b3: { l: 0.20, c: 0.00, h: 93 },b4: { l: 0.26, c: 0.00, h: 93 },- c0: { l: 0.96, c: 0.00, h: 93 },- c1: { l: 0.93, c: 0.00, h: 93 },- c2: { l: 0.90, c: 0.00, h: 93 },- c3: { l: 0.87, c: 0.00, h: 93 },- c4: { l: 0.85, c: 0.00, h: 93 },+ c0: { l: 0.95, c: 0.00, h: 93 },+ c1: { l: 0.83, c: 0.00, h: 93 },+ c2: { l: 0.75, c: 0.00, h: 93 },+ c3: { l: 0.63, c: 0.00, h: 93 },+ c4: { l: 0.55, c: 0.00, h: 93 },},},@@ -147,7 +147,7 @@ export const DEFAULT_THEMES = [id: 'Terminal',name: 'Terminal',version: 2,- depth: 0.083,+ depth: 0.1,tokens: {a0: { l: 0.67, c: 0.32, h: 166 },a1: { l: 0.67, c: 0.32, h: 206 },@@ -159,11 +159,11 @@ export const DEFAULT_THEMES = [b2: { l: 0.26, c: 0.00, h: 166 },b3: { l: 0.29, c: 0.00, h: 166 },b4: { l: 0.33, c: 0.00, h: 166 },- c0: { l: 0.84, c: 0.00, h: 166 },- c1: { l: 0.80, c: 0.00, h: 166 },+ c0: { l: 0.95, c: 0.00, h: 166 },+ c1: { l: 0.83, c: 0.00, h: 166 },c2: { l: 0.75, c: 0.00, h: 166 },- c3: { l: 0.70, c: 0.00, h: 166 },- c4: { l: 0.64, c: 0.00, h: 166 },+ c3: { l: 0.63, c: 0.00, h: 166 },+ c4: { l: 0.55, c: 0.00, h: 166 },},},{@@ -182,34 +182,34 @@ export const DEFAULT_THEMES = [b2: { l: 0.31, c: 0.02, h: 259 },b3: { l: 0.33, c: 0.02, h: 259 },b4: { l: 0.36, c: 0.02, h: 259 },- c0: { l: 0.78, c: 0.02, h: 259 },- c1: { l: 0.75, c: 0.02, h: 259 },- c2: { l: 0.71, c: 0.02, h: 259 },- c3: { l: 0.66, c: 0.02, h: 259 },- c4: { l: 0.61, c: 0.02, h: 259 },+ c0: { l: 0.88, c: 0.02, h: 259 },+ c1: { l: 0.81, c: 0.02, h: 259 },+ c2: { l: 0.68, c: 0.02, h: 259 },+ c3: { l: 0.60, c: 0.02, h: 259 },+ c4: { l: 0.55, c: 0.02, h: 259 },},},{id: 'Lapis',name: 'Lapis',version: 2,- depth: 0.195,+ depth: 0.03,tokens: {a0: { l: 0.60, c: 0.32, h: 243 },a1: { l: 0.60, c: 0.32, h: 283 },a2: { l: 0.60, c: 0.32, h: 323 },a3: { l: 0.60, c: 0.32, h: 363 },a4: { l: 0.60, c: 0.32, h: 403 },- b0: { l: 0.90, c: 0.01, h: 243 },+ b0: { l: 0.97, c: 0.01, h: 243 },b1: { l: 0.81, c: 0.01, h: 243 },b2: { l: 0.80, c: 0.01, h: 243 },- b3: { l: 0.77, c: 0.01, h: 243 },- b4: { l: 0.72, c: 0.01, h: 243 },+ b3: { l: 0.94, c: 0.01, h: 243 },+ b4: { l: 0.89, c: 0.01, h: 243 },c0: { l: 0.10, c: 0.01, h: 243 },- c1: { l: 0.14, c: 0.01, h: 243 },- c2: { l: 0.19, c: 0.01, h: 243 },- c3: { l: 0.25, c: 0.01, h: 243 },- c4: { l: 0.32, c: 0.01, h: 243 },+ c1: { l: 0.35, c: 0.01, h: 243 },+ c2: { l: 0.48, c: 0.02, h: 243 },+ c3: { l: 0.58, c: 0.02, h: 243 },+ c4: { l: 0.70, c: 0.03, h: 243 },},},{