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 .dark or [data-theme="dark"] scope;
  • light inside a .light or [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.

--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

Light#efeae2
Dark#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

Light#fdfcfa
Dark#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

Light#ffffff
Dark#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

Light#e4ded4
Dark#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

Light#d3cbbd
Dark#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

Light#8a8274
Dark#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

Light#eee9e1
Dark#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

Light#1c1915
Dark#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

Light#4f4941
Dark#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

Light#685f54
Dark#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

Light#a1998c
Dark#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

Light#4456c7
Dark#8c9bea

--jali-on-accent

Text on the accent: the drop label and primary buttons.

.jali-drop-label.jali-text-btn

Light#ffffff
Dark#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.

Light#e8eaf6
Dark#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.

Light#2b3990
Dark#8c9bea

--jali-working

A pane reporting "working": its activity dot and the shelf's spinning ring.

.jali-activity-working.jali-ra-ring

Light#0e7490
Dark#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

Light#15803d
Dark#4ade80

--jali-blocked

A pane reporting "needs-you": its activity dot and the shelf's "!" mark.

.jali-activity-needs-you.jali-ra-need

Light#d97706
Dark#fbbf24

--jali-failed

A pane reporting "error": its activity dot and the shelf's cross.

.jali-activity-error.jali-ra-fail

Light#dc2626
Dark#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.

Light#059669
Dark#34d399

--jali-on-status

The "!" and cross drawn on the shelf's status marks.

.jali-ra-need.jali-ra-fail

Light#ffffff
Dark#0e0d0b

A 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

Lightvar(--jali-border)
Darkvar(--jali-border)

--jali-pane-border-focused

The focused pane's edge. Read in place, defaulting to `--jali-accent`.

.jali-pane

Lightvar(--jali-accent)
Darkvar(--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

Lightnone
Darknone

--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

Light0 0 0 0.5px var(--jali-acc…
Dark0 0 0 0.5px var(--jali-acc…

Panes 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

Light#fbf8f1
Dark#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

Light#eadfc8
Dark#3d3424

--jali-opened-mark

The small square in the page bar's opened panes group.

.jali-inv-mark

Light#c08a2e
Dark#d9a648

--jali-opened-ink

The text of an opened pane's "Opened" tag.

.jali-badge-opened

Light#8a6420
Dark#e2bd78

--jali-chip

The chip that follows the pointer during a drag.

.jali-drag-chip

Light#1c1915
Dark#f1ece4

--jali-on-chip

Text on the drag chip.

.jali-drag-chip

Light#ffffff
Dark#0e0d0b

--jali-scrim

The dim behind the command palette and the "Add to tabs of…" chooser.

.jali-scrim

Lightrgba(28, 25, 21, 0.16)
Darkrgba(0, 0, 0, 0.55)

--jali-scrim-light

The lighter dim behind Settings and "Discard unsaved changes?".

.jali-scrim-light

Lightrgba(28, 25, 21, 0.08)
Darkrgba(0, 0, 0, 0.4)

--jali-shadow-zoom

A maximised (zoomed) pane.

.jali-pane

Light0 12px 32px rgba(28, 25, 2…
Dark0 12px 32px rgba(0, 0, 0, …

--jali-shadow-peek

The peek sheet.

.jali-peek

Light-8px 0 24px rgba(28, 25, 2…
Dark-8px 0 24px rgba(0, 0, 0, …

--jali-shadow-dialog

The palette, Settings and the discard dialog.

.jali-palette.jali-settings.jali-confirm

Light0 16px 48px rgba(28, 25, 2…
Dark0 16px 48px rgba(0, 0, 0, …

--jali-shadow-menu

The tab overflow menu and the shelf's menu.

.jali-shelf-menu

Light0 8px 24px rgba(0, 0, 0, 0…
Dark0 8px 24px rgba(0, 0, 0, 0…

--jali-shadow-chip

The drop label and a divider's size tip.

.jali-drop-label.jali-divider-tip

Light0 4px 16px rgba(0, 0, 0, 0…
Dark0 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.

Light0 1px 2px rgba(28, 25, 21,…
Dark0 1px 2px rgba(0, 0, 0, 0.4)

One 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

Light0.625rem
Dark0.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

Light0.375rem
Dark0.375rem

--jali-radius-menu

Corners of menus and the drop label.

.jali-drop-label.jali-shelf-menu

Light0.5rem
Dark0.5rem

--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

Light0.25rem
Dark0.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

Light14px
Dark14px

--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

Light14px
Dark14px

--jali-icon-menu

A pane's icon in a tab menu, the "+N" menu and the shelf's menu. The check mark is this − 1px, a folded or tucked mark this − 2px.

.jali-icon-menu.jali-icon-menu-mark.jali-icon-menu-sm

Light14px
Dark14px

--jali-icon-shelf

Icons in a shelf chip: the pane's icon, the fold mark and Put back.

.jali-icon-shelf

Light13px
Dark13px

--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

Light1rem
Dark1rem

--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

Light0.6875rem
Dark0.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

Light0.75rem
Dark0.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

Light0.8125rem
Dark0.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

Light0.875rem
Dark0.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

Lightinherited
Darkinherited

--jali-font

Jali's typeface: the panes and dialogs set font-family from it.

.jali-layout.jali-scrim

Light"Atkinson Hyperlegible Nex…
Dark"Atkinson Hyperlegible Nex…

--jali-font-mono

Monospace: the pane cap input in Settings.

.jali-row-field

Light"Atkinson Hyperlegible Mon…
Dark"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.

TokenWhat it isDefault
--jali-gapThe space between panes, and the gutter a strip's scrollbar sits in (createJali({ gap })).6px
--jali-insetThe 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

Lightcolor-mix(in srgb, var(--j…
Darkcolor-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

Lightcolor-mix(in srgb, var(--j…
Darkcolor-mix(in srgb, var(--j…

--jali-drop

12% of the accent (16% in dark): the zone a drag will drop into.

.jali-drop-indicator

Lightcolor-mix(in srgb, var(--j…
Darkcolor-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

Lightvar(--jali-accent)
Darkvar(--jali-accent)

jali-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 tokenReads from your theme, first foundElse
--jali-canvas--color-backgroundvar(--jali-default-canvas)
--jali-surface--color-cardvar(--jali-default-surface)
--jali-surface-raisedvar( --color-popover, var(--color-card, var(--jali-default-surface-raised)) )
--jali-border--color-bordervar(--jali-default-border)
--jali-border-strongvar( --color-input, var(--color-border, var(--jali-default-border-strong)) )
--jali-control--color-inputvar(--jali-default-control)
--jali-text--color-foregroundvar(--jali-default-text)
--jali-text-mutedvar( --color-muted-foreground-strong, var(--color-muted-foreground, var(--jali-default-text-muted)) )
--jali-text-subtle--color-muted-foregroundvar(--jali-default-text-subtle)
--jali-text-faint--color-muted-foregroundvar(--jali-default-text-faint)
--jali-hover--color-mutedvar(--jali-default-hover)
--jali-accent--color-primaryvar(--jali-default-accent)
--jali-accent-soft--color-primary-subtlevar(--jali-default-accent-soft)
--jali-on-accent--color-primary-foregroundvar(--jali-default-on-accent)
--jali-failed--color-destructivevar(--jali-default-failed)
--jali-chip--color-tooltipvar(--jali-default-chip)
--jali-on-chip--color-tooltip-foregroundvar(--jali-default-on-chip)
--jali-scrim--color-scrimvar(--jali-default-scrim)
--jali-shadow-dialog--shadow-overlayvar(--jali-default-shadow-dialog)
--jali-shadow-menu--shadow-overlayvar(--jali-default-shadow-menu)
--jali-radius--radius-cardthen --radius-lg0.625rem
--jali-radius-control--radius-controlthen --radius-md0.375rem
--jali-radius-menu--radius-md0.5rem
--jali-radius-chip--radius-sm0.25rem
--jali-font--font-sanssystem-ui, sans-serif
--jali-font-mono--font-monoui-monospace, monospace
--jali-focus-ring--color-focus-ringthen --color-ringvar(--jali-accent)