Reference
Tokens
Every public Jali token, what reads it, its light and dark values, and how the Tailwind bridge maps it.
On this page
Jali's styles read only --jali-* custom properties, called tokens. To retheme, set any of them on :root or on part of the page. The derived tokens follow the accent.
/* The whole page */:root { --jali-accent: #0f766e; }/* One instance: an element around its <JaliRoot> */.orders { --jali-radius: 0.25rem; }Where to set them. Apart from the few read in place (each says so below), Jali declares each token once, on its root, inside :where(). So your own declaration wins at any specificity and in any import order, even with a theme scope in between. Set it:
- on
:root, for the whole page; - on any element around Jali's root, for one instance;
- or on the root itself,
[data-jali].
Jali's theme sits in the jali layer, so set tokens outside any layer, or in a layer after jali.
Light and dark. Jali's defaults are light-dark() pairs, and the color-scheme where they are used picks one:
- dark under
prefers-color-scheme: dark, and inside a.darkor[data-theme="dark"]scope; - light inside a
.lightor[data-theme="light"]scope.
A started instance sets data-theme on <html> from its theme setting, unless it was made with pageTheme: false.
Leave --jali-default-* alone. Names starting --jali-default- are the theme's internal palette: don't set or read them.
Each row below gives the token, what it is for, and the jali-* classes whose rules read it (taken from the package's styles). Its swatches are drawn from the variable itself, in a light and a dark scope.
Surfaces
Link to this section: Surfaces--jali-canvas
The ground behind the panes. Jali paints nothing with it except the selected button of the Single view / Split view switch; give your page this background to match.
.jali-seg-btn
#efeae2#0e0d0b--jali-surface
Panes, the peek sheet, dialogs, menus, the page tabs and the phone's pane switcher.
.jali-text-btn.jali-layout.jali-pane.jali-divider-tip.jali-shelf-fade-l.jali-shelf-fade-r.jali-peek.jali-switcher.jali-inv-back.jali-badge-opened.jali-page-tabs.jali-ghost.jali-row-field
#fdfcfa#1a1815--jali-surface-raised
Dialogs and menus: the palette, the chooser, Settings, the discard dialog, the tab overflow menu and the shelf's menu.
.jali-shelf-menu.jali-palette.jali-settings.jali-confirm
#ffffff#221f1b--jali-border
Hairlines: pane edges, pane headers, shelf chips, dialog and palette borders.
.jali-pane.jali-pane-dragging.jali-pane-header.jali-badge.jali-shelf-chip.jali-shelf-more.jali-shelf-menu.jali-peek.jali-peek-header.jali-peek-label.jali-switcher.jali-switch-item.jali-seg-btn.jali-page-tabs.jali-layout.jali-palette.jali-palette-input.jali-settings.jali-confirm.jali-follow-toggle.jali-pane-note
#e4ded4#2d2a25--jali-border-strong
Stronger lines: the tab overflow button and menu, and a divider under the pointer.
.jali-divider.jali-divider-line.jali-stack-divider.jali-fold-line
#d3cbbd#3f3a33--jali-control
Boundaries of controls (text buttons, the pane cap input). At least 3:1 against the surface, unlike the decorative border.
.jali-text-btn.jali-row-field
#8a8274#7b7468--jali-hover
The background of a control under the pointer: icon buttons, tab buttons, shelf chips and menu items.
.jali-icon-btn.jali-shelf-chip.jali-shelf-more.jali-shelf-menu.jali-seg-btn.jali-follow-toggle.jali-pane-note
#eee9e1#24211d--jali-text
Primary text: pane titles, the active tab, menu items and inputs.
.jali-icon-btn.jali-text-btn.jali-pane-title.jali-pane-failed.jali-divider-tip.jali-shelf-chip.jali-shelf-chip-put.jali-shelf-more.jali-shelf-menu.jali-switch-item.jali-seg-btn.jali-inv.jali-inv-back.jali-page-tab.jali-palette-input.jali-chooser-head.jali-keys-row.jali-row-field.jali-follow-toggle
#1c1915#f1ece4--jali-text-muted
Secondary text: shelf chips, keyboard hints in the palette, dialog body text.
.jali-text-btn.jali-pane-missing.jali-pane-failed.jali-shelf-chip.jali-shelf-more.jali-seg-btn.jali-inv.jali-inv-back.jali-page-tab.jali-palette-item.jali-keys-row.jali-row-field.jali-confirm
#4f4941#bfb7aa--jali-text-subtle
Quieter text and icons: inactive tabs, icon buttons, palette groups, settings legends. Folded and tucked marks use it (at least 3:1).
.jali-icon-btn.jali-pane-title.jali-badge.jali-pane.jali-pane-actions.jali-pane-loading.jali-shelf-home.jali-shelf-chip-put.jali-shelf-menu.jali-peek-label.jali-switch-item.jali-pane-sub.jali-page-tab.jali-palette-group.jali-palette-id.jali-palette-empty.jali-chooser-head.jali-chooser-icon.jali-settings.jali-keys-note.jali-follow-toggle.jali-pane-note
#685f54#a1998c--jali-text-faint
The faintest marks: drag grips, the loading dot, a tab's close button, disabled palette rows.
.jali-grip.jali-activity-loading.jali-palette-item
#a1998c#6c655b--jali-accent
Focus and action: the focused pane's edge, a zoomed pane, divider handles, the drop indicator, the focused page tab, primary buttons.
.jali-drop-indicator.jali-drop-label.jali-pane.jali-divider-handle.jali-divider-visual.jali-divider-line.jali-divider-tick.jali-stack-divider.jali-page-tab.jali-ghost.jali-ghost-moved.jali-setting.jali-text-btn.jali-follow-toggle
#4456c7#8c9bea--jali-on-accent
Text on the accent: the drop label and primary buttons.
.jali-drop-label.jali-text-btn
#ffffff#0e0d0b--jali-accent-soft
A soft accent fill, for the host (the example apps and the docs use it). Part of the palette and mapped by the Tailwind bridge; Jali's own styles mix their tints from the accent instead.
Not read by Jali's styles.
#e8eaf6#20244a--jali-brand
Nil for the mark (#2B3990 in light), for a host that draws a logo. Part of the palette; Jali draws no mark.
Not read by Jali's styles.
#2b3990#8c9bea--jali-working
A pane reporting "working": its activity dot and the shelf's spinning ring.
.jali-activity-working.jali-ra-ring
#0e7490#22d3ee--jali-live
A pane reporting "live" (recording, streaming, playback): its activity dot and the shelf's breathing dot in a halo.
.jali-activity-live.jali-ra-dot
#15803d#4ade80--jali-blocked
A pane reporting "needs-you": its activity dot and the shelf's "!" mark.
.jali-activity-needs-you.jali-ra-need
#d97706#fbbf24--jali-failed
A pane reporting "error": its activity dot and the shelf's cross.
.jali-activity-error.jali-ra-fail
#dc2626#f87171--jali-done
A finished state, for the host's own status marks. Part of the palette; a pane's activity has no "done".
Not read by Jali's styles.
#059669#34d399#ffffff#0e0d0bA pane's edge and shadow, at rest and focused. These are read in place: Jali doesn't declare them on the root, its pane styles read each with its default (var(--jali-pane-border, var(--jali-border))), so a default that names another token follows that token wherever you set it. Set them like any other token, once, and the focused pane, a maximised one and a drag all follow, with no rule for [data-focused] of your own:
.jali-pane { --jali-pane-border: transparent; --jali-pane-shadow: 0 1px 2px rgb(0 0 0 / 0.12); --jali-pane-shadow-focused: 0 0 0 2px var(--jali-accent), 0 1px 2px rgb(0 0 0 / 0.12);}--jali-pane-border
The colour of a pane's 1px edge. Read in place, defaulting to `--jali-border`. An opened pane with the tint boundary uses `--jali-opened-line` instead.
.jali-pane.jali-pane-dragging.jali-layout
var(--jali-border)var(--jali-border)--jali-pane-border-focused
The focused pane's edge. Read in place, defaulting to `--jali-accent`.
.jali-pane
var(--jali-accent)var(--jali-accent)--jali-pane-shadow
A pane's shadow at rest, and the focused pane's while a pane is dragged. Read in place, defaulting to `none`. A lone pane and Single view draw no shadow or edge.
.jali-pane.jali-pane-dragging.jali-layout
nonenone--jali-pane-shadow-focused
The focused pane's shadow, which is also its focus ring: a 0.5px accent ring by default. A maximised pane draws it under `--jali-shadow-zoom`, so give it a list of shadows (`0 0 #0000` for none), not `none`.
.jali-pane
0 0 0 0.5px var(--jali-acc…0 0 0 0.5px var(--jali-acc…Opened panes
Link to this section: Opened panesPanes opened by following links in a curated page.
--jali-opened-bg
In a curated page, the header of a pane opened from a link (with the "tint" boundary setting), and the opened panes group in the page bar.
.jali-inv.jali-pane.jali-pane-header
#fbf8f1#211d15--jali-opened-line
The edge and header line of an opened pane, its "Opened" tag and the opened panes group.
.jali-inv.jali-inv-back.jali-pane.jali-pane-header.jali-badge-opened
#eadfc8#3d3424#c08a2e#d9a648#8a6420#e2bd78Overlays and shadows
Link to this section: Overlays and shadows#1c1915#f1ece4#ffffff#0e0d0brgba(28, 25, 21, 0.16)rgba(0, 0, 0, 0.55)rgba(28, 25, 21, 0.08)rgba(0, 0, 0, 0.4)0 12px 32px rgba(28, 25, 2…0 12px 32px rgba(0, 0, 0, …-8px 0 24px rgba(28, 25, 2…-8px 0 24px rgba(0, 0, 0, …--jali-shadow-dialog
The palette, Settings and the discard dialog.
.jali-palette.jali-settings.jali-confirm
0 16px 48px rgba(28, 25, 2…0 16px 48px rgba(0, 0, 0, …0 4px 16px rgba(0, 0, 0, 0…0 4px 16px rgba(0, 0, 0, 0…--jali-shadow-raised
A slight lift, for the host's raised controls (a pressed segment). Part of the palette; Jali's own surfaces use the stronger shadows.
Not read by Jali's styles.
0 1px 2px rgba(28, 25, 21,…0 1px 2px rgba(0, 0, 0, 0.4)Shape and type
Link to this section: Shape and typeOne set for both themes.
--jali-radius
Corners of panes, the peek sheet, the drop indicator and the tab-preview outline. Dialogs (the palette, the chooser, Settings and the discard question) are 1.2 × this, rounded down to a whole pixel.
.jali-drop-indicator.jali-pane.jali-peek.jali-ghost.jali-palette.jali-settings.jali-confirm
0.625rem0.625rem--jali-radius-control
Corners of buttons, inputs, palette rows, the drag chip and the tab preview's label.
.jali-icon-btn.jali-text-btn.jali-drag-chip.jali-pane.jali-pane-actions.jali-divider-tip.jali-switch-item.jali-seg-btn.jali-ghost.jali-palette-item.jali-row-field
0.375rem0.375rem--jali-radius-chip
Corners of small things inside a header, tab or chip: the Following / Kept toggle, a tab's close button, the rename field, the Kept badge and the peek's label. Shelf chips and their buttons, the shelf's "more" and its items, and tab menu items are 1.25 × this; investigation chips 1.75 ×, each rounded down to a whole pixel.
.jali-badge.jali-shelf-chip.jali-shelf-chip-main.jali-shelf-chip-put.jali-shelf-more.jali-shelf-menu.jali-peek-label.jali-inv.jali-inv-back.jali-follow-toggle
0.25rem0.25rem--jali-icon-header
Icons in a pane's header: its buttons, its grip and the peek's buttons. A pane's title icon is this + 2px, the Following / Kept toggle's icon this − 2px.
.jali-icon-header.jali-icon-header-lg.jali-icon-header-sm
14px14px--jali-icon-tab
Icons in a tab: its kind's icon, close, put back, New tab, and the pane switcher's icons. A folded tab's mark is this − 1px; a pinned tab's pin and the "+N" and "N folded" chips' icons this − 2px.
.jali-icon-tab.jali-icon-tab-mark.jali-icon-tab-sm
14px14px--jali-icon-shelf
Icons in a shelf chip: the pane's icon, the fold mark and Put back.
.jali-icon-shelf
13px13px--jali-dialog-padding
The space between a dialog's edge and its content: all round in Settings (but its top, beside the title) and the discard question; at the sides of the palette's and the chooser's field and heading. Their lists keep their rows' own inset.
.jali-palette-input.jali-chooser-head.jali-settings.jali-confirm
1rem1rem--jali-text-xs
The smallest type: key hints, the Following / Kept toggle, badges, the "+N" and "N folded" chips, menu marks, the peek's label and Settings' legends.
.jali-badge.jali-shelf-menu.jali-peek-label.jali-palette-id.jali-palette-item.jali-settings.jali-keys-row.jali-follow-toggle
0.6875rem0.6875rem--jali-text-sm
Small type: the shelf, tab menus, palette groups, the chooser's heading, notes in a pane, the drag chip and a divider's size tip. The investigation chips on a curated page are this + 0.0312rem (12.5px).
.jali-drag-chip.jali-divider-tip.jali-shelf.jali-inv.jali-inv-back.jali-pane-sub.jali-palette-group.jali-chooser-head.jali-keys-note.jali-pane-note
0.75rem0.75rem--jali-text-md
A pane's title, the phone's pane switcher and a popped-out pane's note.
.jali-pane-title.jali-switch-item
0.8125rem0.8125rem--jali-text-lg
The palette's field, the titles of Settings and the discard question, and the drop label.
.jali-drop-label.jali-palette-input.jali-settings.jali-confirm
0.875rem0.875rem--jali-tracking
Letter spacing for Jali's panes and dialogs (a length, such as `0.01em`). Read in place with no default: until you set it, they inherit yours. Settings' small capitals keep their own 0.04em.
.jali-layout.jali-scrim
inheritedinherited"Atkinson Hyperlegible Nex…"Atkinson Hyperlegible Nex…"Atkinson Hyperlegible Mon…"Atkinson Hyperlegible Mon…Written by Jali, not set by you. The layout measures in pixels, so the space between panes is an option, createJali({ gap }), and <JaliRoot> writes it on its root and its layer as these two variables. Read them in your own styles to line things up with the panes; setting them in CSS moves nothing.
| Token | What it is | Default |
|---|---|---|
--jali-gap | The space between panes, and the gutter a strip's scrollbar sits in (createJali({ gap })). | 6px |
--jali-inset | The space between the edges of Jali's root and its panes (always the same as the gap). | the gap |
Mixed from --jali-accent on :root and again on every Jali root ([data-jali]) and dialog (.jali-scrim), so an accent set on a subtree gets matching tints there. Set one yourself to override the mix.
--jali-accent-weak
8% of the accent (14% in dark): the selected palette row, the active item in the phone's pane switcher, the tab-preview fill.
.jali-switch-item.jali-ghost.jali-palette-item.jali-follow-toggle
color-mix(in srgb, var(--j…color-mix(in srgb, var(--j…--jali-accent-mid
16% of the accent (26% in dark): the active item in the phone's pane switcher.
.jali-stack-divider.jali-switch-item.jali-follow-toggle
color-mix(in srgb, var(--j…color-mix(in srgb, var(--j…color-mix(in srgb, var(--j…color-mix(in srgb, var(--j…--jali-focus-ring
Keyboard focus outlines on tab buttons, shelf chips and the follow toggle. The accent unless you set it.
.jali-shelf-chip-main.jali-follow-toggle
var(--jali-accent)var(--jali-accent)The Tailwind bridge
Link to this section: The Tailwind bridgejali-layout/tailwind.css points Jali's tokens at your Tailwind theme's variables, the same names Chakni reads. Import it after Jali's styles, in the stylesheet Tailwind builds, and declare the layer order so your utilities win:
@layer theme, base, jali, components, utilities;@import "tailwindcss";@import "jali-layout/styles.css";@import "jali-layout/tailwind.css";Each token reads the first of your variables that is defined, else Jali's own default for the current theme. Your variables switch with your dark mode, so Jali follows. Tailwind drops theme variables that nothing uses; this file uses them, so keep it in the build Tailwind processes (or mark the theme @theme static). Tokens not listed keep Jali's values.
| Jali token | Reads from your theme, first found | Else |
|---|---|---|
--jali-canvas | --color-background | var(--jali-default-canvas) |
--jali-surface | --color-card | var(--jali-default-surface) |
--jali-surface-raised | var(
--color-popover,
var(--color-card, var(--jali-default-surface-raised))
) | |
--jali-border | --color-border | var(--jali-default-border) |
--jali-border-strong | var(
--color-input,
var(--color-border, var(--jali-default-border-strong))
) | |
--jali-control | --color-input | var(--jali-default-control) |
--jali-text | --color-foreground | var(--jali-default-text) |
--jali-text-muted | var(
--color-muted-foreground-strong,
var(--color-muted-foreground, var(--jali-default-text-muted))
) | |
--jali-text-subtle | --color-muted-foreground | var(--jali-default-text-subtle) |
--jali-text-faint | --color-muted-foreground | var(--jali-default-text-faint) |
--jali-hover | --color-muted | var(--jali-default-hover) |
--jali-accent | --color-primary | var(--jali-default-accent) |
--jali-accent-soft | --color-primary-subtle | var(--jali-default-accent-soft) |
--jali-on-accent | --color-primary-foreground | var(--jali-default-on-accent) |
--jali-failed | --color-destructive | var(--jali-default-failed) |
--jali-chip | --color-tooltip | var(--jali-default-chip) |
--jali-on-chip | --color-tooltip-foreground | var(--jali-default-on-chip) |
--jali-scrim | --color-scrim | var(--jali-default-scrim) |
--jali-shadow-dialog | --shadow-overlay | var(--jali-default-shadow-dialog) |
--jali-shadow-menu | --shadow-overlay | var(--jali-default-shadow-menu) |
--jali-radius | --radius-cardthen --radius-lg | 0.625rem |
--jali-radius-control | --radius-controlthen --radius-md | 0.375rem |
--jali-radius-menu | --radius-md | 0.5rem |
--jali-radius-chip | --radius-sm | 0.25rem |
--jali-font | --font-sans | system-ui, sans-serif |
--jali-font-mono | --font-mono | ui-monospace, monospace |
--jali-focus-ring | --color-focus-ringthen --color-ring | var(--jali-accent) |