Reference
Parts
Every part of Jali you can style, its element, its selector, and the attributes that carry its state.
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"].
What is stable
Link to this section: What is stableOnly 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 anyis-*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 kbddepend on markup that can change. Use.jali-pane-action,.jali-palette-inputand.jali-palette-keysinstead.
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.
Adornments
Link to this section: AdornmentsA 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).
Instance
Link to this section: Instance| Part | Element | State attributes |
|---|
| Part | Element | State attributes |
|---|---|---|
.jali-paneA pane (a <section> region). | section |
|
.jali-pane-headerA 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 |
|
.jali-pane-titleThe title of a pane on its own (no tabs): icon, name, marks. | div | none |
.jali-pane-actionsThe header's buttons ( buttons: by default tuck, maximise, close), and ⋯ for the rest of the pane's menu. | div |
|
.jali-pane-toolsThe 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"). | div | none |
.jali-pane-actionOne 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 |
|
.jali-activityA 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 |
|
.jali-pane-contentWhere the kind's Component renders. | div | none |
| Part | Element | State attributes |
|---|---|---|
.jali-tabbarA tab group's strip. | div | none |
.jali-tabs-pinnedThe strip's pinned tabs, which stay in view while the rest scroll. | div | none |
.jali-tab-itemOne tab with its buttons. | div |
|
.jali-tabA 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 |
|
.jali-tab-titleA tab's name, inside .jali-tab. Give it min-width: 0 to let it shrink first when you add to the tab. | span | none |
.jali-tab-closeA tab's close button (an unsaved dot until hovered or focused). | button |
|
.jali-renameThe rename field that takes a tab's (or a lone pane's title's) place while renaming ( createJali({ rename })). | input | none |
.jali-tab-putbackA tucked tab's Put back button. | button |
|
.jali-tab-addA tab group's New tab button (with a launcher). | button |
|
.jali-tab-moreThe "+N" button for tabs that don't fit. | button |
|
.jali-tab-indicatorThe one underline under the shown tab. | span | none |
.jali-tab-foldedThe "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 |
|
Dividers
Link to this section: Dividers| Part | Element | State attributes |
|---|---|---|
[data-divider]A divider between panes ( role="separator"); drag it to resize. | div |
|
.jali-divider-lineThe line inside a divider, drawn while it is pointed at or dragged (in --jali-border-strong). Transparent at rest. | span | none |
Drag and drop
Link to this section: Drag and drop| Part | Element | State attributes |
|---|---|---|
[data-drop-zone]The preview of where a dragged pane will go; the value is left, right, top, bottom or centre. | div | none |
.jali-drag-chipThe chip that follows the pointer while a pane is dragged. | div | none |
| Part | Element | State attributes |
|---|---|---|
.jali-shelfThe panes you tucked, as chips ( <Shelf />). Folded panes wait behind their strip's tabFolded chip. | div | none |
.jali-shelf-chipA chip on the shelf. | div |
|
.jali-activity-shapeA 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 |
|
.jali-shelf-chip-mainThe chip's main button: the pane's icon, name and marks. Brings the pane back. | button |
|
.jali-shelf-chip-titleA pane's name, in a chip and in the shelf's menu. | span | none |
.jali-shelf-chip-putA tucked chip's Put back button, shown while the chip is hovered or has focus. | button |
|
.jali-shelf-moreThe "+N" button for chips that don't fit; it opens the shelf's menu. | button |
|
.jali-shelf-menuThe shelf's menu of the chips that don't fit. | div (role="menu") | none |
.jali-shelf-menu-itemOne pane in the shelf's menu. | button (role="menuitem") |
|
Linked panes
Link to this section: Linked panes| Part | Element | State attributes |
|---|---|---|
.jali-peekThe peek sheet: a linked object shown over the panes. | aside | none |
.jali-follow-toggleA linked pane's one Following / Kept toggle (a button, not a container): a click switches. Its word is followLabel. | button |
|
.jali-follow-labelThe toggle's printed word, "Following" or "Kept" (its icon stays when a narrow header hides the word). | span | none |
.jali-kept-badge"Kept" on a kept pane that is no longer linked to a list, in place of the toggle. | span | none |
Dialogs and menus
Link to this section: Dialogs and menus| Part | Element | State attributes |
|---|---|---|
.jali-tab-menuA tab's menu, and the "+N" menu. | div | none |
[data-menu-item]An item in a tab's menu; the value is the item's id (Jali's, or yours from tabMenu). | button |
|
.jali-palette-itemA command in ⌘K, or an entry in the "Add to tabs of…" chooser. | li |
|
.jali-scrimA dialog's backdrop, holding the dialog ( dialogBox): the palette, Settings, the "Add to tabs of…" chooser and the discard question. | div | none |
.jali-dialogThe dialog itself, inside its scrim. | div (role="dialog", or "alertdialog" for the discard question) |
|
.jali-settingA 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. | label | none |
.jali-dialog-buttonA button in a dialog's footer (the discard question's Discard and Keep editing). | button |
|
.jali-paletteThe ⌘K and chooser dialog (also .jali-dialog): its field, then its list. | div | none |
.jali-palette-inputThe palette's and the chooser's search field. | input (role="combobox") | none |
.jali-palette-nameA row's name: the command's title, or the entry's label. | span | none |
.jali-palette-groupIn ⌘K: the command's group label ("Focus", "Layout", or yours). | span | none |
.jali-palette-hintIn the chooser: the entry's hint, after its name. | span | none |
.jali-palette-keysIn ⌘K: the command's keys, when it has any. | kbd | none |
Small screens
Link to this section: Small screens| Part | Element | State attributes |
|---|---|---|
.jali-fold-lineThe hairline drawn on a fold's hinge, between the two halves. | div | none |
.jali-stack-dividerStacked 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 |
|
.jali-switcherThe pane switcher, while one pane shows at a time (a tab list). | nav | none |
.jali-switch-itemOne 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 |
|
Curated pages
Link to this section: Curated pages| Part | Element | State attributes |
|---|---|---|
.jali-pageA 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. | div | none |
.jali-page-barA curated page's bar: its roles, Single view or Split view, Reset. | div | none |
.jali-page-tabOne role on a curated page's bar. | button |
|
Icons and your chrome
Link to this section: Icons and your chrome| Part | Element | State attributes |
|---|---|---|
[data-jali-icon]One of Jali's own icons; the value is its name ( close, pin…). Your icons carry what you give them. | svg | none |
.jali-icon-btnA 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 |
|
[data-jali-chrome]Yours to set: your own chrome inside the root, which Jali never pulls focus out of. | any | none |