A reference for the "Editorial Paper & Saffron" visual language used across the
DO Knowledge Studio. This document is the single source of truth for color
tokens, typography, spacing, components, and accessibility rules. All
implementation lives in src/app/globals.css and the studio components under
src/components/studio/.
DO Knowledge Studio is a local-first knowledge management app — every byte of the user's thinking stays in their browser unless they explicitly export it. The visual language reflects that promise of a quiet, durable, personal workspace.
Editorial Paper & Saffron borrows from print: a warm off-white "paper" background, deep warm "ink" type, and a single saffron accent that directs the eye to primary actions and active states. Headings use Newsreader — a serif with a literary, considered feel — while body text uses Geist Sans for clarity at small sizes. The result reads like a well-set journal that happens to be interactive.
The system is intentionally restrained. Most surfaces are paper-toned; most color is informational (entity types, status, semantic search) rather than decorative. Saffron is reserved for the single most important action on a screen. Borders and dividers are warm, never neutral grey. Shadows are subtle and warm-tinted. The whole interface should feel like it could be printed on uncoated stock and still make sense.
All tokens are defined in :root and overridden in .dark. Tailwind utility
classes (text-ink, border-saffron, etc.) are generated from the
mappings in @theme inline.
| Token | Light value | Dark value | Tailwind class | Usage |
|---|---|---|---|---|
--background |
#faf8f3 |
#14110d |
bg-background |
App background, warm paper |
--paper-raised |
#ffffff |
#1c1814 |
bg-paper-raised |
Cards, popovers, raised surfaces |
--surface-sunken |
#f1ede4 |
#1a1612 |
bg-surface-sunken |
Inset / recessed panels, code blocks, wells |
--card |
#ffffff |
#1c1814 |
bg-card |
shadcn/ui cards |
--popover |
#ffffff |
#1c1814 |
bg-popover |
Popovers, command palette |
--sidebar |
#f3efe6 |
#1a1612 |
bg-sidebar |
Sidebar surface |
--muted |
#f1ede4 |
#25201a |
bg-muted |
Muted backgrounds, chip wells, code kbd chips |
--foreground |
#1a1814 |
#f2eee5 |
text-foreground |
Default text color |
--ink |
#1a1814 |
#f2eee5 |
text-ink |
Strongest headings, primary text |
--ink-soft |
#3a3530 |
#d4cec0 |
text-ink-soft |
Body copy, nav item labels |
--ink-mute |
#6b6760 |
#9b958a |
text-ink-mute |
Secondary text, subtitles, metadata |
--ink-faint |
#9c978d |
#6e685e |
text-ink-faint |
Tertiary text, placeholders, icons at rest |
| Token | Light value | Dark value | Tailwind class | Usage |
|---|---|---|---|---|
--primary |
#1a1814 |
#f2eee5 |
bg-primary text-primary-foreground |
Solid "ink" buttons (primary CTA inverts in dark) |
--primary-foreground |
#faf8f3 |
#14110d |
text-primary-foreground |
Text on primary buttons |
--secondary |
#f1ede4 |
#25201a |
bg-secondary |
Secondary buttons, subtle surface |
--accent |
#f5e8d5 |
#2a2018 |
bg-accent |
Saffron-tinted background for active nav, selection |
--accent-foreground |
#6a3d12 |
#e5944a |
text-accent-foreground |
Text on accent surface |
--saffron |
#9a5c2a |
#e5944a |
text-saffron bg-saffron |
Primary brand accent — use sparingly for CTAs |
--saffron-soft |
#f5e8d5 |
#2a2018 |
bg-saffron-soft |
Soft saffron background (active nav, hover chips) |
--saffron-deep |
#6a4a1c |
#f5b074 |
text-saffron-deep |
Deep saffron text on soft backgrounds |
--saffron-foreground |
#ffffff |
#14110d |
text-saffron-foreground |
Text/icons on bg-saffron (flips per theme) |
Each entity type has a dedicated hue that propagates across the Library, Graph, Mind Map, and right panel. Dots, badges, and selection tints all draw from the same family.
| Token | Light value | Dark value | Entity type | Classes from ENTITY_TYPE_META |
|---|---|---|---|---|
--sky / --sky-deep |
#6b8aa8 / #2b4d6b |
#8eaac7 / #b7d2ea |
note | bg-sky/15 text-sky-deep, bg-sky dot |
--saffron / --saffron-deep |
#9a5c2a / #6a4a1c |
#e5944a / #f5b074 |
concept | bg-saffron/15 text-saffron-deep, bg-saffron dot |
--clay / --clay-deep |
#b8593a / #8a3320 |
#d4795a / #f0b8a4 |
person | bg-clay/15 text-clay-deep, bg-clay dot |
--sage / --sage-deep |
#587465 / #2f5b4a |
#84a597 / #a9d0bc |
project | bg-sage/15 text-sage-deep, bg-sage dot |
Each entity type is one token pair: the base hue for the dot/fill, and a
*-deep tier for the label on the /15 tint. Because the tokens themselves
flip in .dark, a single class set works in both themes — no dark: overrides.
The opacity modifier compiles to color-mix() in Tailwind v4. The -deep tier
is the AA-text tier (≥4.5:1 on the tint in both themes) and mirrors the older
--saffron-deep; --ink-soft on bg-muted is the neutral fallback for
unregistered types.
| Token | Light value | Dark value | Usage |
|---|---|---|---|
--border |
#e5e1d8 |
#2b2620 |
Dividers, card borders, default button borders |
--input |
#e5e1d8 |
#2b2620 |
Input borders (alias of border) |
--ring |
#9a5c2a |
#e5944a |
Focus ring color (saffron) |
--destructive |
#b91c1c |
#ef4444 |
Destructive actions (delete, remove) |
--warning |
#b45309 |
#e0a04a |
text-warning / bg-warning — sync conflicts, deliberately distinct from saffron |
--warning-soft |
#fef3e2 |
#2a2114 |
bg-warning-soft — warning surface (conflict panels) |
--warning-border |
#ecd9b8 |
#4a3a22 |
border-warning-border — warning dividers |
--warning-foreground |
#7c3d06 |
#eec27f |
text-warning-foreground — AA text on --warning-soft (≥4.5:1 both) |
--warning-on |
#ffffff |
#14110d |
text-warning-on — text/icons on bg-warning (flips per theme) |
| Token | Light | Dark | Used by |
|---|---|---|---|
--shadow-soft |
0 1px 2px rgb(26 24 20/.04), 0 1px 3px rgb(26 24 20/.06) |
0 1px 2px rgb(0 0 0/.4), 0 1px 3px rgb(0 0 0/.5) |
shadow-soft |
--shadow-lifted |
0 4px 12px rgb(26 24 20/.08), 0 2px 4px rgb(26 24 20/.04) |
0 4px 12px rgb(0 0 0/.5), 0 2px 4px rgb(0 0 0/.4) |
shadow-lifted, hover-lift |
--canvas-dot |
var(--ink-faint) |
rgb(255 255 255 / .06) |
canvas-grid |
Near-black ink on a near-black dark surface is invisible at 4–8% alpha, so the dark theme raises the shadow alpha rather than tinting the color. The utilities reference these tokens — no raw rgba survives in the utilities layer.
Removed (Plan 162 #848): --chart-1..5 had zero consumers. Reintroduce as semantic @theme tokens when a chart actually ships, with the palette defined next to its consumer.
| Token | Value | Usage |
|---|---|---|
--header-height |
4rem (64px) |
Topbar height |
--focus-ring-offset |
2px |
Outline offset for .focus-ring |
--radius |
0.625rem (10px) |
Base radius |
Three fonts, loaded via next/font/google in src/app/layout.tsx and surfaced
as CSS variables (--font-geist-sans, --font-newsreader, --font-geist-mono).
| Font | CSS variable | Role | Tailwind class |
|---|---|---|---|
| Newsreader | --font-newsreader |
Headings, page titles, entity names, brand wordmark | font-serif |
| Geist Sans | --font-geist-sans |
Body copy, UI labels, buttons, nav, metadata | font-sans (default) |
| Geist Mono | --font-geist-mono |
Keyboard hints (⌘K, G H), code, numeric IDs, timestamps |
font-mono |
The scale is editorial — small jumps, generous leading on serif headings, tight
tracking on display sizes. Body copy default is 14px (text-body; dense UI
falls back to text-body-sm at 13px).
Every size used in the app has a named utility, defined with Tailwind's
@utility at-rule at the end of src/app/globals.css (not as raw classes in
@layer utilities — those are emitted after the generated utilities, so their
line-height would silently override any explicit leading-*). Arbitrary
text-[Npx] values are not allowed — add a step to the scale first (issue
#855). Two decisions worth recording: the floor was raised by mapping the
former text-[8px] presence labels to text-badge (9px), and the lone
text-[16px] editor body maps to Tailwind's exact text-base.
| Class | Size | Usage |
|---|---|---|
text-badge |
9px | Badges, micro-labels, presence labels |
text-caption |
10px | Kbd hints, counters, timestamps, eyebrow text |
text-label |
11px | Toolbar labels, status chips, sidebar footer |
text-label-lg |
12px | Subtitles, button labels, secondary metadata |
text-body-sm |
13px | Body copy in dense UI (lists, nav, panels) |
text-body |
14px | Body copy default, command palette input |
text-body-lg |
15px | Brand wordmark, prominent list items |
text-base |
16px | Editor body, large form labels |
text-lg |
18px | Card titles, inspector entity name |
text-xl |
20px | Topbar page title (desktop) |
text-2xl – text-4xl |
24–36px | Dashboard stats, empty-state headlines |
Custom utilities are declared with Tailwind v4's @utility directive in
src/app/globals.css (not a pre-v4 @layer utilities block), so they compose
with variants (hover:, dark:, md:, …).
| Utility | Effect |
|---|---|
font-serif |
Newsreader; generated from @theme inline --font-serif |
text-badge |
9px / 1.3 — badges, micro labels |
text-caption |
10px / 1.4 — timestamps, counters |
text-label |
11px / 1.4 — toolbar labels, metadata |
h1–h3 and the generated font-serif utility also carry
font-feature-settings: "ss01", "ss02" from a @layer base rule.
All padding, margin, and gap values sit on a 4px grid. Half-steps (2px) are allowed only for kbd chips and dot indicators.
| Class | Value | Common use |
|---|---|---|
gap-0.5 |
2px | Dot-to-label spacing in chips |
gap-1 |
4px | Icon-to-text in micro-chips, kbd padding |
gap-1.5 |
6px | Icon-to-text in buttons, badge internals |
gap-2 |
8px | Default flex gap, nav item spacing |
gap-2.5 |
10px | Slightly roomier icon groups |
gap-3 |
12px | Card internal padding, topbar horizontal gap |
gap-4 |
16px | Section spacing, card-to-card |
gap-5 |
20px | Page gutter on desktop |
gap-6 |
24px | View-level vertical rhythm |
gap-8 |
32px | Major section separation |
Page padding: px-4 sm:px-6 lg:px-8 for most views. Topbar uses px-3 sm:px-5.
src/app/globals.css declares --spacing-touch: 2.75rem (44px) in the plain
@theme block. Because it lives in the --spacing-* namespace, Tailwind v4
generates the full sizing family from it (min-h-touch, min-w-touch,
size-touch, p-touch, …), so the interactive floor is one token rather than
a literal 44px repeated per component. Prefer the utility over raw 44px;
the exported TOUCH_TARGET_CLASS ('min-h-touch min-w-touch') in
src/components/studio/ui/shared-primitives.tsx is the shared shorthand.
A single base radius (--radius: 0.625rem = 10px) drives the whole ramp via
calc(). Pill-shaped elements use rounded-full.
| Class | Value | Usage |
|---|---|---|
rounded-sm |
4px | Tags, tight chips |
rounded-md |
6px (--radius-sm) |
Buttons, inputs, list-item hover |
rounded-lg |
8px (--radius-md) |
Cards, panels |
rounded-xl |
10px (--radius) |
Modals, command palette |
rounded-2xl |
14px (--radius-xl) |
Large cards, format tiles |
rounded-full |
999px | Badges, dots, kbd chips, avatar |
Two warm-tinted elevation utilities. Use shadow-soft for resting cards and
inputs; use shadow-lifted for hover, popovers, and the command palette.
Avoid shadow-2xl outside of modals — the system prefers restraint.
Both are @utility declarations, so they also work as variants
(hover:shadow-lifted, dark:shadow-soft).
| Utility | Value |
|---|---|
shadow-soft |
0 1px 2px rgba(26,24,20,0.04), 0 1px 3px rgba(26,24,20,0.06) |
shadow-lifted |
0 4px 12px rgba(26,24,20,0.08), 0 2px 4px rgba(26,24,20,0.04) |
shadow-sm |
Tailwind default — used on the primary button only |
shadow-2xl |
Tailwind default — reserved for command palette and modals |
Both custom utilities read --shadow-soft / --shadow-lifted, which are
per-theme (see §2.5b), so the same class gives real depth in dark mode too.
Every interactive element MUST apply the .focus-ring utility. The ring is a
saffron outline (2px solid var(--ring)) with a 2px offset, plus a
border-radius: var(--radius-sm) so the ring respects the element's shape. The
:focus:not(:focus-visible) rule suppresses the outline for mouse users while
keeping it for keyboard users.
<!-- correct --> <button class="rounded-md px-3 py-1.5 focus-ring">Save</button> <input class="rounded-md border focus-ring" /> <!-- incorrect (no focus indicator) --> <button class="rounded-md px-3 py-1.5">Save</button>
For inputs that already use a colored border on focus (e.g. the topbar inline
search), the saffron focus:ring-2 focus:ring-saffron/40 may be used instead
of .focus-ring to avoid a double ring.
64px tall, bg-background/80 with backdrop-blur-sm, bottom border. Layout is
a single flex row with gap-2 sm:gap-3 and px-3 sm:px-5. Responsive rules:
| Viewport | Visible elements |
|---|---|
| < 768px (mobile) | Mobile menu button, compact title (no subtitle), New entity (icon only) |
| 768–1024px | Title + subtitle, search icon button (opens palette), offline badge, "New" |
| 1024–1100px | Title + subtitle, inline search input, offline badge, "New" |
| ≥ 1100px (wide) | Title + subtitle, inline search input, offline badge, "New entity" |
The title column uses min-w-0 flex-1 truncate so it never pushes actions
off-screen. All action elements use flex-shrink-0. The inline search input is
w-60 (240px), with a left search icon, a right ⌘K kbd chip that opens the
command palette, and a saffron focus ring.
Fixed 248px (w-[248px] shrink-0), bg-sidebar, right border. Structure:
brand wordmark, search trigger, grouped nav, theme toggle + panel toggle in
footer. Active nav item uses bg-saffron-soft text-saffron-deep with saffron
icon; inactive items use text-ink-soft hover:bg-sidebar-accent hover:text-ink.
Each item shows its G <key> shortcut on hover at lg+.
Fixed 320px (w-[320px] shrink-0), bg-background, left border. Renders one of
three contextual panels based on currentView:
- SearchPanel (default) — keyword/semantic mode tabs, search input bound to
searchQuery, filtered entity list (top 20). - InspectorPanel (Graph, Mind Map) — selected node metadata, tags, connections list, edit/delete actions.
- CitationsPanel (Chat, AI Harness) — numbered citation cards grounded in local entities.
bg-card (or bg-paper-raised), border border-border, rounded-lg,
optionally .shadow-soft. On hover, lift to .shadow-lifted and warm the
border (hover:border-saffron/40). Card titles use font-serif text-lg; card
metadata uses text-[11px] text-ink-faint.
| Variant | Classes | When to use |
|---|---|---|
| Primary | bg-primary text-primary-foreground shadow-sm hover:opacity-90 focus-ring |
Single most important action on a screen |
| Saffron | bg-saffron text-saffron-foreground focus-ring |
Brand-forward CTAs (sparingly) |
| Secondary | border border-border bg-background text-ink-soft hover:border-saffron/40 hover:text-ink focus-ring |
Cancel, secondary actions |
| Ghost | text-ink-mute hover:bg-muted hover:text-ink focus-ring |
Inline actions in toolbars |
| Destructive | border border-border text-ink-soft hover:border-red-300 hover:text-red-600 focus-ring |
Delete, remove |
All buttons use rounded-md, text-[12px] font-semibold for primary labels,
text-[12px] font-medium for secondary. Icon-to-text gap is gap-1.5. Default
padding px-3 py-1.5; compact px-2.5 py-1.5.
rounded-md border border-border bg-background with text-[13px] text-ink placeholder:text-ink-faint. On focus: focus:border-saffron focus:outline-none focus:ring-2 focus:ring-saffron/40. Icon-led inputs add pl-9 and an
absolutely-positioned icon at left-3 top-1/2 -translate-y-1/2.
| Pattern | Classes |
|---|---|
| Tag chip | rounded-full bg-muted px-2 py-0.5 text-caption font-medium text-ink-mute |
| Status dot | h-1.5 w-1.5 rounded-full bg-emerald-500 (paired with text-caption label) |
| Type label | rounded px-1.5 py-0 text-badge font-semibold uppercase tracking-wide text-ink-faint |
| Kbd hint | rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-caption text-ink-faint |
| Lab badge | rounded-full border border-dashed border-saffron/40 px-1.5 py-0 text-badge font-semibold uppercase tracking-wide text-saffron |
Sonner is mounted at bottom-right with richColors closeButton. Toasts use
the default Sonner styling but inherit the Geist Sans font. Use semantic types
(toast.success, toast.error, toast.info) so colors stay meaningful.
View-level empty states use the shared ViewEmptyState (§11.3): a dashed card,
a tinted icon circle, an h3 headline, a one-line hint, and a primary CTA with
a min-h-[44px] touch target. Panel-scoped states (e.g. the entity search
panel) stay compact: a faint Lucide icon (text-ink-faint/50, h-8 w-8), a
short headline (text-[14px] font-medium text-ink), and a one-line hint
(text-[12px] text-ink-mute). Primary CTAs in empty states use the Saffron or
Primary button variant.
Tailwind defaults plus one custom 1100px step (wide:) used for the topbar's
"wide" treatment. Defined in globals.css as --breakpoint-wide: 68.75rem
inside its own @theme block (not @theme inline) so Tailwind v4 sorts it
correctly between lg and xl. Declaring custom breakpoints with --breakpoint-*
in a dedicated @theme block is required — arbitrary variants like
min-[1100px]: and @theme inline declarations both end up emitted BEFORE the
default sm/md/lg media queries, which breaks cascade order.
| Prefix | Min width | Purpose |
|---|---|---|
| (none) | 0 | Mobile baseline — single column, minimal chrome |
sm: |
640px | Large phone / small tablet — show subtitles |
md: |
768px | Tablet — show offline badge, search icon button |
lg: |
1024px | Small desktop — show inline search, right panel |
wide: |
1100px | Custom — full button labels in topbar |
xl: |
1280px | Desktop — full chrome |
2xl: |
1536px | Large desktop |
+----------------+--------------------------+----------------+
| Sidebar | Topbar | Right panel |
| 248px fixed | 64px tall | 320px fixed |
| shrink-0 +--------------------------+ shrink-0 |
| | | |
| | Main content (scroll) | Context panel |
| | flex-1, min-w-0 | (scroll) |
| | | |
+----------------+--------------------------+----------------+
The shell lives in src/components/studio/app-shell.tsx. The outer container is
flex h-dvh w-full overflow-hidden. The middle column is flex min-w-0 flex-1 flex-col so the main content can shrink without pushing the right panel off-
screen. The right panel is hidden below lg (hidden lg:flex).
- Visible focus. Every interactive element uses
.focus-ring. Focus is never removed viaoutline: nonewithout a replacement. - Reduced motion. A
@media (prefers-reduced-motion: reduce)block inglobals.cssdisables the html theme transition and clamps all animation/transition durations to 0.01ms. Framer Motion animations should also checkuseReducedMotion()before running. - Touch targets. Interactive controls use the 44px floor token:
min-h-touch/min-w-touch/size-touch(--spacing-touch: 2.75rem, WCAG 2.5.5). Icon-only buttons do not rely on padding alone; applymin-h-touch min-w-touch(orsize-touchfor a square control), or the exportedTOUCH_TARGET_CLASSfromsrc/components/studio/ui/shared-primitives.tsx. - Semantic HTML. Use
<header>,<nav aria-label="Main navigation">,<main>,<aside>,<button>(not<div onClick>). The topbar<h1>is the page title and updates withcurrentView. - ARIA labels. Icon-only buttons always have
aria-label. The command palette setsaria-label="Command palette"and usesrole="dialog"via cmdk. - Color contrast. Body copy (
--ink-softon--background) exceeds WCAG AA at 14px. Faint text (--ink-faint) is reserved for non-essential metadata and kbd hints. - Keyboard navigation. ⌘K opens the command palette globally, including
when focus is inside an input (handled in
topbar.tsxandcommand-palette.tsx).Escapecloses the palette. - Theme toggle.
next-themestoggles.darkon<html>. The transition is smoothed viahtml { transition: background-color 200ms ease, color 200ms ease; }and disabled under reduced motion.
Every view renders the same chrome: one body container, one hero header, one
empty state. All three live in
src/components/studio/ui/shared-primitives.tsx. Never re-declare them inside a
view — three padding scales and four header layouts is exactly the drift this
section exists to prevent.
VIEW_CONTAINER_CLASS is the only view body wrapper:
VIEW_GUTTER_CLASS = 'px-6 lg:px-10'
VIEW_CONTAINER_CLASS = cn('mx-auto py-6 lg:py-8', VIEW_GUTTER_CLASS)
A view appends its own width cap (or its own flex behaviour) with cn():
| View(s) | Body class |
|---|---|
| home, library, timeline, export, ai | cn(VIEW_CONTAINER_CLASS, 'max-w-5xl') |
| sync, editor | cn(VIEW_CONTAINER_CLASS, 'max-w-3xl'); editor also pb-24 lg:pb-28 so the sticky status bar cannot cover the last row |
| triz | cn(VIEW_CONTAINER_CLASS, 'max-w-6xl') |
| graph, mindmap | cn('flex h-full flex-col', VIEW_CONTAINER_CLASS) |
| chat | cn('flex-1 overflow-y-auto', VIEW_CONTAINER_CLASS) on the scroll region |
An ad-hoc px-6 py-6 lg:px-10 lg:py-8 string in a view is a regression. Chrome
rows that must line up with the body reuse VIEW_GUTTER_CLASS (the chat
composer and suggestions bar) or bleed into it with the matching negative
margin (-mx-6 lg:-mx-10, the editor toolbar and status bar).
The shell owns the only h1: topbar.tsx renders VIEW_TITLES[currentView].
Inside the body, every view renders exactly one <ViewHeader> (h2), and
exactly two views are exempt:
| View | In-view header | Why |
|---|---|---|
| home, library, timeline, export, ai, triz, sync, graph, mindmap | ViewHeader |
Page identity: icon tile, title, optional subtitle/badge/action |
| chat | none | Conversation column — the composer and suggestion bar are its chrome, and a hero would push the transcript down |
| editor | none | Single-entity writing surface — the entity name field is its header, and its sticky toolbar/status bar bleed into the gutter |
ViewHeader takes { icon, title, subtitle?, badge?, action?, className? }:
pass translated strings (the primitive never hardcodes copy) and pass an
action for the trailing control (the AI harness settings toggle) or a badge
for a marker chip (the "Lab" chips). The icon tile keeps one treatment
everywhere — h-12 w-12, rounded-xl, bg-gradient-to-br from-saffron to-clay;
per-view tints (the sync view's old sage tile) are the drift this section
forbids. A view that animates its header wraps <ViewHeader> in its own
motion.div instead of forking the layout. The h2 is deliberate: it keeps
exactly one h1 per page and lets content sections and empty states sit h3
under it.
Adding a view? It gets a ViewHeader unless it is a conversation or writing
surface; both exemptions above are exhaustive.
ViewEmptyState is the single view-level empty state (dashed card, tinted icon
circle, h3 headline, body, primary CTA with a 44px target). It is the library
view's original empty state, extracted, and it is used by library (both the
"no entities" and "no matches" variants), home, timeline, export, graph, and
mindmap.
- A view-level empty state always carries an action. Use the store's
startNewso the button opens a blank entity in the editor;exportroutes to the editor withsetView('editor')because it creates nothing itself. - Canvas views (
graph,mindmap) render it inside the canvas overlay/scroll region withpointer-events-noneon the wrapper andpointer-events-autoon the card, so the canvas keeps its own input. - Panel-scoped states (the entity search panel) are not view chrome and keep their compact inline markup.
- Tokens:
src/app/globals.css - Topbar (header):
src/components/studio/topbar.tsx - Sidebar:
src/components/studio/sidebar.tsx - Right panel:
src/components/studio/right-panel.tsx - Command palette:
src/components/studio/command-palette.tsx - App shell:
src/components/studio/app-shell.tsx - Entity type metadata:
src/lib/studio/types.ts - Zustand store:
src/lib/studio/store.ts