On this page

These are the parts of what Jali renders that your styles may rely on. Each has one selector, a jali- class or a data- attribute, is one kind of element, and carries its state in attributes, never in classes: select .jali-pane[data-focused], .jali-tab[aria-selected="true"] or .jali-pane-action[data-action="close"].

Only what this page lists, and the --jali-* tokens in Tokens, are public. They change only in a major version. Everything else is Jali's own and may change in any release:

  • any other jali-* class, and any is-* class;
  • any attribute a part doesn't list here;
  • the elements inside a part that are not parts themselves. .jali-pane-actions button, .jali-scrim [role="combobox"] or .jali-palette-item kbd depend on markup that can change. Use .jali-pane-action, .jali-palette-input and .jali-palette-keys instead.

One more name is public: the pane header is a size container named jali-header. A narrow header can be styled by its own width, whatever the pane's:

@layer components {  @container jali-header (max-width: 20rem) {    .jali-follow-label {      display: none;    }  }}

A narrow header also gives way on its own, before its title (or the shown tab's) gets shorter than a few characters: first tuck, maximise, full screen and pop out move into the pane's menu (⋯), where they keep their names and keys; then the pane's own controls (useHeaderActions) are hidden and the menu lists the pane's commands in their place. Close and ⋯ stay. Jali measures the title rather than a width, and takes the buttons back once there is room for both. data-narrow on .jali-pane-header says how far (actions, then tools), and is absent at normal widths. The number of buttons a header shows changes from pane to pane, so .jali-pane-actions carries data-count, ⋯ included, for a theme that draws them as one strip.

Put your rules in a cascade layer after jali, as in Theming, so they win without !important.

@layer components {  .jali-pane[data-kind="ticket"][data-focused] {    box-shadow: 0 0 0 2px var(--jali-accent);  }  .jali-pane-action[data-action="close"]:hover {    color: var(--jali-failed);  }  .jali-dialog-button[data-role="primary"] {    font-weight: 600;  }  .jali-shelf-chip[data-activity="needs-you"] {    outline: 1px solid var(--jali-blocked);  }}

With Tailwind, the same attributes work as variants: data-[focused]:ring-2, or group-data-[zoomed]:hidden inside a pane.

A tab, a pane switcher item and the activity marks (.jali-activity, .jali-activity-shape) take no children of yours, so their ::before and ::after are yours instead, for a lamp, a badge or a stripe. Jali's styles never use them on these parts, and a test reads Jali's stylesheets to keep it so. Each one says so below.

@layer components {  .jali-tab[data-recording]::before {    content: "";    width: 6px;    height: 6px;    border-radius: 50%;    background: var(--jali-failed);  }}

Give the tab's title min-width: 0 (.jali-tab-title) so it shrinks first when you add to the tab.

A started instance writes the theme in use, light or dark, as data-theme on <html>, and on its root ([data-jali]) and the layer that holds its dialogs ([data-jali-layer]) as well, so a rule can be scoped to the instance: [data-jali][data-theme="dark"] .grain { background-image: url(grain-dark.svg); }. It follows the theme setting and, for System, the system's preference. The copy on the root and layer is not a theme scope of its own for Jali's styles: whatever sits between <html> and the instance still decides its colours. With createJali({ pageTheme: false }) Jali writes none of them, because the page's own theme decides: switch images on your own theme scope, or on prefers-color-scheme when the page has none. Nor does it write over a data-theme you give <JaliRoot>.

Every control Jali renders carries data-pressed while it is held down: by the pointer, or by Space or Enter while it has focus. :active covers only the pointer, so a theme that shows a key going down reads [data-pressed] to show it from the keyboard as well. One mechanism sets it for all of them: the header's buttons, tabs and their buttons, the "+N" and "N folded" chips, shelf chips and their menu, the Following / Kept toggle, the pane switcher, a curated page's tabs, tab menu items and dialog buttons. Each lists it below. Jali's own styles don't read it.

@layer components {  .jali-pane-action[data-pressed],  .jali-tab[data-pressed] {    translate: 0 1px;  }}

Attributes a pane sets with usePaneAttributes appear on everything that stands for it (its section, tab, shelf chip and switcher entry), alongside these.

Corners, spacing and colours are tokens, not parts: every corner reads --jali-radius, --jali-radius-control, --jali-radius-menu or --jali-radius-chip, and the space between panes is createJali({ gap }), which Jali writes as --jali-gap (and as --jali-inset, the space at Jali's edges, which is always the gap).

PartElementState attributes
PartElementState attributes
.jali-pane
A pane (a <section> region).
section
data-pane
The pane's id.
data-kind
The pane's kind.
data-focused
Flag: the focused pane.
data-full-screen
Flag: on the whole screen (toggleFullScreen).
data-alone
Flag: the only pane on screen (see the layout's).
data-zoomed
Flag: maximised.
data-dragged
Flag: being dragged.
data-drop-target
Flag: the pane a drag would drop on.
data-unsaved
Flag: the pane reports unsaved work (useUnsaved).
data-origin
opened: opened beside another from a link; role: fills a curated page's role.
data-boundary
On an opened pane: how it shows it was opened from another, the person's setting (tint or none).
.jali-pane-header
A pane's header, in this order: the grip, the title (or tabs) with Following / Kept, the pane's own controls (paneTools), then Jali's buttons (paneActions). It is a size container named jali-header, public, so a narrow header can be styled with @container jali-header (max-width: 20rem) { … }. A header too narrow for its title gives way before the title gets shorter than a few characters, and says so with data-narrow.
div
data-narrow
actions: tuck, maximise, full screen and pop out moved into the pane's menu (⋯), where they keep their names; tools: the pane's own controls are hidden too, and the menu lists the pane's commands. Absent at normal widths.
.jali-pane-title
The title of a pane on its own (no tabs): icon, name, marks.
divnone
.jali-pane-actions
The header's buttons (buttons: by default tuck, maximise, close), and ⋯ for the rest of the pane's menu.
div
data-count
How many buttons it shows, ⋯ included, so a theme that draws them as one strip can size it: which buttons show changes from pane to pane.
.jali-pane-tools
The pane's own controls in its header (useHeaderActions), after the title and before Jali's buttons. Rendered only while the content gives some; a narrow header drops it before its title gets short (data-narrow="tools").
divnone
.jali-pane-action
One of the header's buttons, and ⋯ for the pane's menu. Only the buttons the pane allows are rendered, so their number changes from pane to pane.
button
data-action
tuck, zoom (Maximise, or Restore while maximised: see the pane's data-zoomed), fullscreen, popout, close or menu (⋯).
aria-pressed
On fullscreen and popout: true while on.
aria-disabled
On tuck: true when there is nothing to tuck behind. It stays reachable, so its tooltip can say why.
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-activity
A pane's activity dot (useActivity), after its name in a header, a tab, the pane switcher and tab menus. Absent while idle. Jali draws it with the element's size, corners and background, so restyle it to draw your own mark. Its ::before and ::after are yours: Jali's styles never use them, so a lamp, a badge or a stripe drawn there stays.
span
data-activity
loading, working, live, needs-you or error.
.jali-pane-content
Where the kind's Component renders.
divnone
PartElementState attributes
.jali-tabbar
A tab group's strip.
divnone
.jali-tabs-pinned
The strip's pinned tabs, which stay in view while the rest scroll.
divnone
.jali-tab-item
One tab with its buttons.
div
data-pinned
Flag: a pinned tab.
data-unsaved
Flag: the pane reports unsaved work (useUnsaved).
data-drop
While a tab is dragged along the strip: before or after, where it will land.
data-renaming
Flag: the rename field has taken the tab's place.
.jali-tab
A tab (role="tab"). Its ::before and ::after are yours: Jali's styles never use them, so a lamp, a badge or a stripe drawn there stays.
div
data-tab
The pane's id.
aria-selected
true on the shown tab.
data-pinned
Flag: a pinned tab.
data-folded
Flag: the layout folded this pane into tabs; it returns when there's room.
data-tucked
Flag: tucked; shown here until it is put back.
data-unsaved
Flag: the pane reports unsaved work (useUnsaved).
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-tab-title
A tab's name, inside .jali-tab. Give it min-width: 0 to let it shrink first when you add to the tab.
spannone
.jali-tab-close
A tab's close button (an unsaved dot until hovered or focused).
button
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-rename
The rename field that takes a tab's (or a lone pane's title's) place while renaming (createJali({ rename })).
inputnone
.jali-tab-putback
A tucked tab's Put back button.
button
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-tab-add
A tab group's New tab button (with a launcher).
button
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-tab-more
The "+N" button for tabs that don't fit.
button
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-tab-indicator
The one underline under the shown tab.
spannone
.jali-tab-folded
The "N folded" chip at the end of a tab strip: the panes the layout folded into this place, but the one it shows. Its menu lists them, each with its activity dot.
button
data-activity
The most pressing activity of the panes behind it (useActivity): most pressing first, failed, needs-you, working (loading too), then live; absent when all are idle. The chip shows the shelf's shape for it (activityShape).
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
PartElementState attributes
[data-divider]
A divider between panes (role="separator"); drag it to resize.
div
aria-orientation
vertical between side-by-side panes, horizontal between stacked ones.
.jali-divider-line
The line inside a divider, drawn while it is pointed at or dragged (in --jali-border-strong). Transparent at rest.
spannone
PartElementState attributes
[data-drop-zone]
The preview of where a dragged pane will go; the value is left, right, top, bottom or centre.
divnone
.jali-drag-chip
The chip that follows the pointer while a pane is dragged.
divnone
PartElementState attributes
.jali-shelf
The panes you tucked, as chips (<Shelf />). Folded panes wait behind their strip's tabFolded chip.
divnone
.jali-shelf-chip
A chip on the shelf.
div
data-chip
The pane's id.
data-reason
tucked.
data-activity
The pane's activity (useActivity): idle, working (loading too), live, needs-you or failed.
data-unsaved
Flag: the pane reports unsaved work (useUnsaved).
.jali-activity-shape
A pane's activity as a shape as well as a colour, never colour alone: in a shelf chip, the shelf's menu and the "N folded" chip. Absent while idle. Jali draws the ring with a border and a spin, the live dot with a border and a background that breathe, "!" as text and the cross with the activityError icon (both in currentColor). To draw your own, clear Jali's (border: 0; animation: none; background: none; color: transparent) and draw in ::before. Its ::before and ::after are yours: Jali's styles never use them, so a lamp, a badge or a stripe drawn there stays.
span
data-activity
working (loading too), live, needs-you or failed, as on the shelf chip and the "N folded" chip.
data-shape
Jali's shape for it: ring, dot (live), need ("!") or fail (a cross).
.jali-shelf-chip-main
The chip's main button: the pane's icon, name and marks. Brings the pane back.
button
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-shelf-chip-title
A pane's name, in a chip and in the shelf's menu.
spannone
.jali-shelf-chip-put
A tucked chip's Put back button, shown while the chip is hovered or has focus.
button
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-shelf-more
The "+N" button for chips that don't fit; it opens the shelf's menu.
button
aria-expanded
true while its menu is open.
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-shelf-menu
The shelf's menu of the chips that don't fit.
div (role="menu")none
.jali-shelf-menu-item
One pane in the shelf's menu.
button (role="menuitem")
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
PartElementState attributes
.jali-peek
The peek sheet: a linked object shown over the panes.
asidenone
.jali-follow-toggle
A linked pane's one Following / Kept toggle (a button, not a container): a click switches. Its word is followLabel.
button
data-follow
following, kept or plain.
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-follow-label
The toggle's printed word, "Following" or "Kept" (its icon stays when a narrow header hides the word).
spannone
.jali-kept-badge
"Kept" on a kept pane that is no longer linked to a list, in place of the toggle.
spannone
PartElementState attributes
.jali-tab-menu
A tab's menu, and the "+N" menu.
divnone
[data-menu-item]
An item in a tab's menu; the value is the item's id (Jali's, or yours from tabMenu).
button
aria-checked
On a checkbox item: true or false.
aria-disabled
true when unavailable.
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-palette-item
A command in ⌘K, or an entry in the "Add to tabs of…" chooser.
li
data-command-id
In ⌘K: the command's id.
aria-selected
true on the highlighted entry.
aria-disabled
true when unavailable.
.jali-scrim
A dialog's backdrop, holding the dialog (dialogBox): the palette, Settings, the "Add to tabs of…" chooser and the discard question.
divnone
.jali-dialog
The dialog itself, inside its scrim.
div (role="dialog", or "alertdialog" for the discard question)
data-dialog
palette (⌘K), chooser ("Add to tabs of…" and actions.choose), settings or confirm (the discard question).
.jali-setting
A row in Settings: a radio or checkbox and its words on one line (<label class="jali-setting"><input type="radio" /> <span>Dark</span></label>). Put the class on your own fieldsets' rows (<SettingsPanel> children, <JaliRoot settingsExtra>) and they match Jali's.
labelnone
.jali-dialog-button
A button in a dialog's footer (the discard question's Discard and Keep editing).
button
data-role
primary (the safe choice, focused when it opens) or secondary.
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
.jali-palette
The ⌘K and chooser dialog (also .jali-dialog): its field, then its list.
divnone
.jali-palette-input
The palette's and the chooser's search field.
input (role="combobox")none
.jali-palette-name
A row's name: the command's title, or the entry's label.
spannone
.jali-palette-group
In ⌘K: the command's group label ("Focus", "Layout", or yours).
spannone
.jali-palette-hint
In the chooser: the entry's hint, after its name.
spannone
.jali-palette-keys
In ⌘K: the command's keys, when it has any.
kbdnone
PartElementState attributes
.jali-fold-line
The hairline drawn on a fold's hinge, between the two halves.
divnone
.jali-stack-divider
Stacked view's divider between the two panes on a phone (role="separator"): the whole room between them, at least 24px tall, so it never covers either pane. It settles on a third, a half or two thirds.
div
data-dragging
Flag: being dragged.
.jali-switcher
The pane switcher, while one pane shows at a time (a tab list).
navnone
.jali-switch-item
One pane in the switcher. Its ::before and ::after are yours: Jali's styles never use them, so a lamp, a badge or a stripe drawn there stays.
button
aria-selected
true on the pane in view.
data-tucked
Flag: a tucked pane.
data-in-view
Flag: in stacked view, the other pane on screen.
data-unsaved
Flag: the pane reports unsaved work (useUnsaved).
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
PartElementState attributes
.jali-page
A curated page's root, in the layout's place: the page's Rail (when it renders one) and its main column, which holds the item's Header, the views' tabs (in a nav landmark named for the page, "Loan review views") and the panes. Style the page's frame here: its background, the rail's width (grid-template-columns), spacing.
divnone
.jali-page-bar
A curated page's bar: its roles, Single view or Split view, Reset.
divnone
.jali-page-tab
One role on a curated page's bar.
button
data-role
The role's id.
data-state
focused, shown, behind (open, not in view) or off (not open).
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
PartElementState attributes
[data-jali-icon]
One of Jali's own icons; the value is its name (close, pin…). Your icons carry what you give them.
svgnone
.jali-icon-btn
A button that is only an icon: each of a pane header's buttons (also paneAction), Reset on a curated page's bar, and the close buttons of the peek sheet and Settings. <IconButton> renders one for your own chrome, so your buttons match Jali's in every theme.
button
aria-pressed
On a toggle: true while on.
aria-disabled
true when Jali's own can't be used now (a tuck with nothing to tuck behind); it stays reachable, so its name and tooltip can say why. An <IconButton> you render passes your disabled or aria-disabled through as given, so style both: .jali-icon-btn:is(:disabled, [aria-disabled="true"]).
data-pressed
Flag: held down, by the pointer or by Space or Enter while it has focus (:active covers only the pointer). Jali's styles don't read it.
[data-jali-chrome]
Yours to set: your own chrome inside the root, which Jali never pulls focus out of.
anynone