Theme

Accent color

Gray color

Appearance

Radius

Scaling

Panel background

AccentGray
Solid
Soft
AccentGray
Solid
NewNew
NewNew
Soft
NewNew
NewNew
Surface
NewNew
NewNew
Outline
NewNew
NewNew
Accent
Perfect typography is certainly the most elusive of all arts.
Sculpture in stone alone comes near it in obstinacy.
Perfect typography is certainly the most elusive of all arts.
Sculpture in stone alone comes near it in obstinacy.
Perfect typography is certainly the most elusive of all arts.
Sculpture in stone alone comes near it in obstinacy.
Gray
Perfect typography is certainly the most elusive of all arts.
Sculpture in stone alone comes near it in obstinacy.
Perfect typography is certainly the most elusive of all arts.
Sculpture in stone alone comes near it in obstinacy.
Perfect typography is certainly the most elusive of all arts.
Sculpture in stone alone comes near it in obstinacy.
AccentGrayDisabledLoading
Classic
Solid
Soft
Surface
Outline
Ghost-offset
Ghost
AccentGray
Soft

Please upgrade to the new version.

Please upgrade to the new version.

Please upgrade to the new version.

Please upgrade to the new version.

Surface

Please upgrade to the new version.

Please upgrade to the new version.

Please upgrade to the new version.

Please upgrade to the new version.

Outline

Please upgrade to the new version.

Please upgrade to the new version.

Please upgrade to the new version.

Please upgrade to the new version.

AccentGrayDisabled
Classic
Surface
Soft
AccentGray
Surface
Classic
AccentGray
Solid
console.log()
console.log()
console.log()
console.log()
Soft
console.log()
console.log()
console.log()
console.log()
Outline
console.log()
console.log()
console.log()
console.log()
Ghost
console.log()
console.log()
console.log()
console.log()
AccentGray
Solid
Right-click here
Right-click here
Right-click here
Right-click here
Soft
Right-click here
Right-click here
Right-click here
Right-click here
Size 1
Status
Active
Name
Vlad Moroz
Company
WorkOS
Title
Product Designer
Size 2
Status
Active
Name
Vlad Moroz
Company
WorkOS
Title
Product Designer
Size 3
Status
Active
Name
Vlad Moroz
Company
WorkOS
Title
Product Designer
AccentGray
Solid
Soft
Versions of the Lorem ipsum text have been used in typesetting at least since the 1960s, when it was popularized by advertisements for Letraset transfer sheets. It is typically a corrupted version of De finibus bonorum et malorum, a 1st-century BC text by the Roman statesman and philosopher Cicero, with words altered, added, and removed to make it nonsensical and improper Latin.

The principles of the typographic craft are difficult to master

The principles of the typographic craft are difficult to master

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant.

The principles of the typographic craft are difficult to master

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant.

The principles of the typographic craft are difficult to master

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant.

The principles of the typographic craft are difficult to master

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant.

Technology revolutionized typography in the latter twentieth century.Technology revolutionized typography in the latter twentieth century.Technology revolutionized typography in the latter twentieth century.
AccentGrayDisabledLoading
Classic
Solid
Soft
Surface
Outline
Ghost-offset
Ghost
Bold typography

Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed.

Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed.

Bold typography
Bold typography

Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed.

Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed.

Bold typography

Press ⌘ C to show/hide the Theme Panel, or press ⌘ D to toggle dark mode.

Press ⌘ C to show/hide the Theme Panel, or press ⌘ D to toggle dark mode.

Press ⌘ C to show/hide the Theme Panel, or press ⌘ D to toggle dark mode.

Press ⌘ C to show/hide the Theme Panel, or press ⌘ D to toggle dark mode.

Accent

Susan Kare is an American artist and graphic designer, who contributed interface elements and typefaces for the first Apple Macintosh personal computer from 1983 to 1986.

Susan Kare is an American artist and graphic designer, who contributed interface elements and typefaces for the first Apple Macintosh personal computer from 1983 to 1986.

Susan Kare is an American artist and graphic designer, who contributed interface elements and typefaces for the first Apple Macintosh personal computer from 1983 to 1986.

Gray

Susan Kare is an American artist and graphic designer, who contributed interface elements and typefaces for the first Apple Macintosh personal computer from 1983 to 1986.

Susan Kare is an American artist and graphic designer, who contributed interface elements and typefaces for the first Apple Macintosh personal computer from 1983 to 1986.

Susan Kare is an American artist and graphic designer, who contributed interface elements and typefaces for the first Apple Macintosh personal computer from 1983 to 1986.

AccentGray
Classic
Surface
Soft
A man who would letterspace lower case would steal sheep, Frederic Goudy liked to say. The reason for not letterspacing lower case is that it hampers legibility. But there are some lowercase alphabets to which this principle doesn’t apply. Moderate letterspacing can make a face such as lowercase Univers bold condensed more legible rather than less
AccentGrayDisabled
Classic
Surface
Soft
AccentGray
Surface
Classic

Three fundamental aspects of typography are legibility, readability, and aesthetics. Although in a non-technical sense “legible” and “readable” are often used synonymously, typographically they are separate but related concepts.

Legibility describes how easily individual characters can be distinguished from one another. It is described by Walter Tracy as “the quality of being decipherable and recognisable”. For instance, if a “b” and an “h”, or a “3” and an “8”, are difficult to distinguish at small sizes, this is a problem of legibility.

Typographers are concerned with legibility insofar as it is their job to select the correct font to use. Brush Script is an example of a font containing many characters that might be difficult to distinguish. The selection of cases influences the legibility of typography because using only uppercase letters (all-caps) reduces legibility.

AccentGrayPlaceholderDisabled
Classic
Surface
Soft
Ghost-offset
Ghost
Tools for building high-quality, accessible UI.
ThemesPrimitivesIconsColors
No radiusSmallMediumLargeFull
Size 1
Size 2
Size 3
 
Size 1
Size 2
Size 3

Sign in

AccentGrayDisabled
Classic
Surface
Soft

The most important thing to remember is, stay positive.

AccentGrayDisabled
Classic
Surface
Soft
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
SurfaceGhost
Size 1
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
Size 2
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
Size 3
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
Full nameEmailGroup
Danilo Sousadanilo@example.comDeveloper
Zahra Ambessazahra@example.comAdmin
Jasper Erikssonjasper@example.comDeveloper
Accent
Gray

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant. The question is: What proportion(s) will give us the best results? The golden ratio is often observed in nature where beauty and utility intersect; perhaps we can use this “divine” proportion to enhance these attributes in our typography.

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant. The question is: What proportion(s) will give us the best results? The golden ratio is often observed in nature where beauty and utility intersect; perhaps we can use this “divine” proportion to enhance these attributes in our typography.

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant. The question is: What proportion(s) will give us the best results? The golden ratio is often observed in nature where beauty and utility intersect; perhaps we can use this “divine” proportion to enhance these attributes in our typography.

The goal of typography is to relate font size, line height, and line width in a proportional way that maximizes beauty and makes reading easier and more pleasant. The question is: What proportion(s) will give us the best results? The golden ratio is often observed in nature where beauty and utility intersect; perhaps we can use this “divine” proportion to enhance these attributes in our typography.

Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Quick Look
Extensions from the installed software may add new features to this app.
Opens in a new window
Opens in a new window
Opens in a new window
Opens in a new window
AccentGrayDisabledRead-only
Classic
Surface
Soft
AccentGrayDisabledRead-only
Classic
Surface
Soft

October 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
No date selected

October 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat
Download runnable sandbox
import { createSignal } from "solid-js";
import { Calendar } from "@wsagency/radix2solid-primitives";
import styles from "./styles.module.css";
export default function CalendarDemo() {
const [value, setValue] = createSignal<Calendar.DateValue | null>(null);
const [rtl, setRtl] = createSignal(false);
const [weekStartsOn, setWeekStartsOn] = createSignal<0 | 1 | 2 | 3 | 4 | 5 | 6>(0);
return <section class={styles.Demo} aria-label="Calendar demonstration">
<Calendar.Root class={styles.Calendar} aria-label="Choose a date" value={value()} onValueChange={setValue} today="2026-10-19" defaultViewMonth="2026-10" locale={rtl() ? "ar-EG" : "en-US"} weekStartsOn={weekStartsOn()} dir={rtl() ? "rtl" : "ltr"}>
<Calendar.Header class={styles.Header}>
<Calendar.PrevTrigger class={styles.Button} aria-label="Previous month">‹</Calendar.PrevTrigger>
<Calendar.Heading class={styles.Heading} />
<Calendar.NextTrigger class={styles.Button} aria-label="Next month">›</Calendar.NextTrigger>
</Calendar.Header>
<Calendar.Grid class={styles.Grid}>
{state => <>
<Calendar.Row class={styles.Row}>{state.weekdays.map(day => <Calendar.HeaderCell class={styles.Weekday} weekday={day.index}>{day.shortLabel}</Calendar.HeaderCell>)}</Calendar.Row>
{state.weeks.map(week => <Calendar.Row class={styles.Row}>{week.map(item => item
? <Calendar.Cell class={styles.Cell} date={item.date}>
<Calendar.Day class={styles.Day} date={item.date}>{item.date.slice(-2).replace(/^0/, "")}</Calendar.Day>
</Calendar.Cell>
: <span class={styles.Cell} role="gridcell" aria-disabled="true" />)}</Calendar.Row>)}
</>}
</Calendar.Grid>
</Calendar.Root>
<button class={styles.Button} type="button" onClick={() => { setRtl(value => !value); setWeekStartsOn(value => value === 0 ? 1 : 0); }}>Change locale, week start and direction</button>
<div class={styles.Status} aria-label="Accepted date">{value() ?? "No date selected"}</div>
</section>;
}
No date selected
Requested: none2026-10-18
Download runnable sandbox
import { createSignal } from "solid-js";
import { Calendar, DatePicker } from "@wsagency/radix2solid-primitives";
import styles from "./styles.module.css";
function CalendarView() {
return <DatePicker.Calendar class={styles.Calendar}>
<Calendar.PrevTrigger class={styles.Button} aria-label="Previous month">‹</Calendar.PrevTrigger>
<Calendar.Heading class={styles.Heading}/>
<Calendar.NextTrigger class={styles.Button} aria-label="Next month">›</Calendar.NextTrigger>
<Calendar.Grid class={styles.Grid}>{state => <>
<Calendar.Row class={styles.Row}>{state.weekdays.map(day => <Calendar.HeaderCell class={styles.Weekday} weekday={day.index}>{day.shortLabel}</Calendar.HeaderCell>)}</Calendar.Row>
{state.weeks.map(week => <Calendar.Row class={styles.Row}>{week.map(item => item
? <Calendar.Cell class={styles.Cell} date={item.date}>
<Calendar.Day class={styles.Day} date={item.date}>{item.date.slice(-2).replace(/^0/, "")}</Calendar.Day>
</Calendar.Cell>
: <span class={styles.Cell} role="gridcell" aria-disabled="true" />)}</Calendar.Row>)}
</>}</Calendar.Grid>
</DatePicker.Calendar>;
}
export default function DatePickerDemo() {
const [accepted, setAccepted] = createSignal<Calendar.DateValue | null>(null);
const [requested, setRequested] = createSignal<Calendar.DateValue | null>(null);
const refusalValue: Calendar.DateValue = "2026-10-18";
return <section class={styles.Demo} aria-label="DatePicker demonstration">
<form class={styles.Form} aria-label="Appointment booking">
<DatePicker.Root class={styles.Root} name="appointment" required today="2026-10-19" value={accepted()} onValueChange={setAccepted} defaultViewMonth="2026-10" locale="en-US">
<DatePicker.Trigger class={styles.Trigger} aria-label="Choose appointment date"><DatePicker.Value placeholder="Choose a date"/></DatePicker.Trigger>
<DatePicker.Clear class={styles.Button} aria-label="Clear date">Clear</DatePicker.Clear>
<DatePicker.Portal><DatePicker.Content class={styles.Content}><DatePicker.Title class={styles.Title}>Choose an appointment date</DatePicker.Title><DatePicker.Description>Choose one available day.</DatePicker.Description><CalendarView/></DatePicker.Content></DatePicker.Portal>
<DatePicker.FormControl aria-label="Appointment date" />
</DatePicker.Root>
<button class={styles.Button} type="submit">Submit appointment</button>
</form>
<div class={styles.Status} aria-label="Accepted date">{accepted() ?? "No date selected"}</div>
<div class={styles.Refusal}><DatePicker.Root class={styles.Root} value={refusalValue} onValueChange={value => setRequested(value)} today="2026-10-19" defaultViewMonth="2026-10">
<DatePicker.Trigger class={styles.Trigger} aria-label="Choose a date"><DatePicker.Value/></DatePicker.Trigger>
<DatePicker.Portal><DatePicker.Content class={styles.Content}><DatePicker.Title>Choose a date</DatePicker.Title><CalendarView/></DatePicker.Content></DatePicker.Portal>
</DatePicker.Root><span>Requested: <span aria-label="Value requests">{requested() ?? "none"}</span></span><span aria-label="Accepted date">{refusalValue}</span></div>
</section>;
}

Drop plain text files here or browse.

    No accepted files
    No pending proposal
    No submitted files

    Drop plain text files here or browse.

    Download runnable sandbox
    import { createSignal } from "solid-js";
    import { FileDrop } from "@wsagency/radix2solid-primitives";
    import styles from "./styles.module.css";
    export default function FileDropDemo() {
    const [accepted, setAccepted] = createSignal<readonly File[]>([]);
    const [proposal, setProposal] = createSignal<readonly File[] | null>(null);
    const [rejection, setRejection] = createSignal("");
    let dropIntent: DragEvent | null = null;
    const [disabled, setDisabled] = createSignal(false);
    const [submitted, setSubmitted] = createSignal<readonly File[]>([]);
    return <section class={styles.Demo} aria-label="FileDrop demonstration">
    <form class={styles.Form} aria-label="File upload metadata" onSubmit={event => { event.preventDefault(); setSubmitted(new FormData(event.currentTarget as HTMLFormElement).getAll("attachments").filter((value): value is File => value instanceof File)); }}>
    <FileDrop.Root class={styles.Drop} value={accepted()} onValueChange={files => { setRejection(""); const fromDrop = dropIntent !== null; dropIntent = null; if (files.length === 0 || accepted().length === 0 || fromDrop) setAccepted(files); else setProposal(files); }} onDrop={event => { dropIntent = event; queueMicrotask(() => { if (dropIntent === event) dropIntent = null; }); }} onReject={({ reason }) => setRejection(reason === "accept-mismatch" ? "Choose plain text files." : "Choose one or more files allowed by the current policy.")} name="attachments" accept=".txt,text/plain" multiple required disabled={disabled()}>
    <FileDrop.Input class={styles.Input} aria-label="Attachments" />
    <p>Drop plain text files here or browse.</p>
    <FileDrop.Trigger class={styles.Button} aria-label="Browse files">Browse files</FileDrop.Trigger>
    <ul class={styles.Files}>{accepted().map(file => <li>{file.name} — {file.size} bytes, {file.type || "unknown type"}</li>)}</ul>
    </FileDrop.Root>
    {rejection() && <p class={styles.Alert} role="alert">{rejection()}</p>}
    <div class={styles.Controls}>
    <button class={styles.Button} type="button" onClick={() => { if (proposal()) setAccepted(proposal()!); setProposal(null); }}>Adopt proposed files</button>
    <button class={styles.Button} type="button" onClick={() => setProposal(null)}>Refuse proposed files</button>
    <label><input type="checkbox" checked={disabled()} onChange={event => setDisabled(event.currentTarget.checked)} /> Disable file selection</label>
    </div>
    <button class={styles.Button} type="submit">Submit attachments</button>
    </form>
    <div class={styles.Status} aria-label="Accepted file names">{accepted().map(file => file.name).join(", ") || "No accepted files"}</div>
    <div class={styles.Status} aria-label="Proposed file names">{proposal()?.map(file => file.name).join(", ") || "No pending proposal"}</div>
    <div class={styles.Status} aria-label="Submitted file metadata">{submitted().length ? submitted().map(file => <div>{file.name} — {file.size} bytes, {file.type || "unknown type"}</div>) : "No submitted files"}</div>
    </section>;
    }
    Key: none
    Query: empty
    Submitted: Not submitted; count: 0
    Download runnable sandbox
    import { createSignal } from "solid-js";
    import { Combobox } from "@wsagency/radix2solid-primitives";
    import styles from "./styles.module.css";
    const destinations = [
    { value: "paris", label: "Paris" },
    { value: "prague", label: "Prague" },
    { value: "porto", label: "Porto", disabled: true },
    ];
    export default function ComboboxDemo() {
    const [value, setValue] = createSignal<string | null>(null);
    const [query, setQuery] = createSignal("");
    const [accept, setAccept] = createSignal(true);
    const [keepParis, setKeepParis] = createSignal(true);
    const [preventReset, setPreventReset] = createSignal(false);
    const [submitted, setSubmitted] = createSignal("Not submitted");
    const [submissions, setSubmissions] = createSignal(0);
    let form!: HTMLFormElement;
    return <form ref={form} class={styles.Demo} aria-label="Destination booking" onReset={event => { if (preventReset()) event.preventDefault(); }} onSubmit={event => { event.preventDefault(); setSubmitted(String(new FormData(event.currentTarget).get("destination") ?? "No successful field")); setSubmissions(count => count + 1); }}>
    <Combobox.Root items={destinations.filter(item => keepParis() || item.value !== "paris")} value={value()} onValueChange={next => { if (accept()) setValue(next); }} query={query()} onQueryChange={setQuery} name="destination" required>
    <div class={styles.Controls}>
    <Combobox.Input class={styles.Input} aria-label="Destination" placeholder="Choose a destination" />
    <Combobox.Trigger class={styles.Button} aria-label="Show destinations">Show</Combobox.Trigger>
    <Combobox.Clear class={styles.Button} aria-label="Clear destination">Clear</Combobox.Clear>
    </div>
    <Combobox.Portal>
    <Combobox.Content class={styles.Content} sideOffset={5}>
    <Combobox.List aria-label="Destinations">
    <Combobox.Group>
    <Combobox.Label class={styles.Label}>Europe</Combobox.Label>
    {destinations.filter(item => keepParis() || item.value !== "paris").map(item =>
    <Combobox.Item class={styles.Item} value={item.value}>
    <Combobox.ItemText>{item.label}</Combobox.ItemText>
    <Combobox.ItemIndicator> ✓</Combobox.ItemIndicator>
    </Combobox.Item>)}
    </Combobox.Group>
    </Combobox.List>
    <Combobox.Empty class={styles.Label}>No destinations match.</Combobox.Empty>
    </Combobox.Content>
    </Combobox.Portal>
    </Combobox.Root>
    <div class={styles.Controls}>
    <button class={styles.Button} type="submit">Book destination</button>
    <button class={styles.Button} type="button" onClick={() => form.requestSubmit()}>Request booking</button>
    <button class={styles.Button} type="reset">Reset destination</button>
    </div>
    <label><input type="checkbox" checked={accept()} onChange={event => setAccept(event.currentTarget.checked)} /> Accept value proposals</label>
    <label><input type="checkbox" checked={keepParis()} onChange={event => setKeepParis(event.currentTarget.checked)} /> Keep Paris in data</label>
    <label><input type="checkbox" checked={preventReset()} onChange={event => setPreventReset(event.currentTarget.checked)} /> Prevent reset</label>
    <div role="status" aria-label="Accepted destination">Key: {value() ?? "none"}</div>
    <div role="status" aria-label="Destination query">Query: {query() || "empty"}</div>
    <div role="status" aria-label="Submitted destination">Submitted: {submitted()}; count: {submissions()}</div>
    </form>;
    }
    Actions
    Create note
    Protected action
    Open details
    Unavailable action
    Actions: 0Last action: noneInline query: empty; palette query: emptyForm submissions: 0
    Download runnable sandbox
    import { createSignal } from "solid-js";
    import { Command, Dialog } from "@wsagency/radix2solid-primitives";
    import styles from "./styles.module.css";
    const actions = [
    { value: "note", label: "Create note" },
    { value: "protected", label: "Protected action" },
    { value: "details", label: "Open details" },
    { value: "unavailable", label: "Unavailable action", disabled: true },
    ];
    export default function CommandDemo() {
    const [inlineSearch, setInlineSearch] = createSignal("");
    const [search, setSearch] = createSignal("");
    const [open, setOpen] = createSignal(false);
    const [details, setDetails] = createSignal(false);
    const [acceptClose, setAcceptClose] = createSignal(true);
    const [count, setCount] = createSignal(0);
    const [submissions, setSubmissions] = createSignal(0);
    const [lastAction, setLastAction] = createSignal("none");
    let input!: HTMLInputElement;
    let closeDetails!: HTMLButtonElement;
    let transferFocus = false;
    const select = (event: Event, value: string, inPalette: boolean) => {
    if (value === "protected") event.preventDefault();
    if (event.defaultPrevented) return;
    if (inPalette && acceptClose()) setOpen(false);
    setCount(current => current + 1);
    setLastAction(value);
    if (value === "details") {
    transferFocus = inPalette;
    setDetails(true);
    }
    };
    return <div class={styles.Demo}>
    <form onSubmit={event => { event.preventDefault(); setSubmissions(current => current + 1); }}>
    <Command.Root search={inlineSearch()} onSearchChange={setInlineSearch}>
    <Command.Input class={styles.Input} aria-label="Inline actions" placeholder="Search actions" />
    <Command.List class={styles.List} aria-label="Inline action results">
    <Command.Group>
    <Command.Label class={styles.Label}>Actions</Command.Label>
    {actions.filter(action => action.label.toLowerCase().includes(inlineSearch().trim().toLowerCase())).map(action =>
    <Command.Item class={styles.Item} value={action.value} textValue={action.label} disabled={action.disabled} onSelect={event => select(event, action.value, false)}>{action.label}</Command.Item>)}
    </Command.Group>
    </Command.List>
    <Command.Empty class={styles.Label}>No matching actions.</Command.Empty>
    </Command.Root>
    </form>
    <Dialog.Root open={open()} onOpenChange={next => { if (next) { setSearch(""); transferFocus = false; } if (next || acceptClose()) setOpen(next); }}>
    <Dialog.Trigger asChild>{target => target("button", { type: "button", class: styles.Button, children: "Open command palette" })}</Dialog.Trigger>
    <Dialog.Portal>
    <Dialog.Overlay class={styles.Overlay} />
    <Dialog.Content class={styles.Content} onOpenAutoFocus={event => { event.preventDefault(); input.focus(); }} onCloseAutoFocus={event => { if (transferFocus) event.preventDefault(); }}>
    <Dialog.Title>Command palette</Dialog.Title>
    <Dialog.Description>Search actions. Protected action cancels before any side effect.</Dialog.Description>
    <Command.Root search={search()} onSearchChange={setSearch}>
    <Command.Input ref={input} class={styles.Input} aria-label="Palette actions" placeholder="Search actions" />
    <Command.List class={styles.List} aria-label="Palette action results">
    {actions.filter(action => action.label.toLowerCase().includes(search().trim().toLowerCase())).map(action =>
    <Command.Item class={styles.Item} value={action.value} textValue={action.label} disabled={action.disabled} onSelect={event => select(event, action.value, true)}>{action.label}</Command.Item>)}
    </Command.List>
    <Command.Empty class={styles.Label}>No matching actions.</Command.Empty>
    </Command.Root>
    <Dialog.Close class={styles.Button}>Close palette</Dialog.Close>
    </Dialog.Content>
    </Dialog.Portal>
    </Dialog.Root>
    <Dialog.Root open={details()} onOpenChange={setDetails}>
    <Dialog.Portal>
    <Dialog.Overlay class={styles.Overlay} />
    <Dialog.Content class={styles.Content} onOpenAutoFocus={event => { event.preventDefault(); closeDetails.focus(); }}>
    <Dialog.Title>Action details</Dialog.Title>
    <Dialog.Description>The action opened another modal without the palette stealing focus back.</Dialog.Description>
    <Dialog.Close ref={closeDetails} class={styles.Button}>Close action details</Dialog.Close>
    </Dialog.Content>
    </Dialog.Portal>
    </Dialog.Root>
    <label><input type="checkbox" checked={acceptClose()} onChange={event => setAcceptClose(event.currentTarget.checked)} /> Accept palette close proposals</label>
    <output aria-label="Command action count">Actions: {count()}</output>
    <output aria-label="Command last action">Last action: {lastAction()}</output>
    <output aria-label="Command search">Inline query: {inlineSearch() || "empty"}; palette query: {search() || "empty"}</output>
    <output aria-label="Command form submissions">Form submissions: {submissions()}</output>
    </div>;
    }
    Readme
    Shared (disabled parent)
    Enabled guide
    Protected action
    Focused: noneSelected: noneExpanded: sharedActivations: 0
    Download runnable sandbox
    import { createSignal, For } from "solid-js";
    import { Tree } from "@wsagency/radix2solid-primitives";
    import styles from "./styles.module.css";
    const files = [
    { value: "source-readme", label: "Readme" },
    { value: "source-config", label: "Configuration" },
    ];
    export default function TreeDemo() {
    const [value, setValue] = createSignal<string | null>(null);
    const [expanded, setExpanded] = createSignal<readonly string[]>(["shared"]);
    const [acceptExpansion, setAcceptExpansion] = createSignal(true);
    const [acceptSelection, setAcceptSelection] = createSignal(true);
    const [reversed, setReversed] = createSignal(false);
    const [rtl, setRtl] = createSignal(false);
    const [count, setCount] = createSignal(0);
    const [focused, setFocused] = createSignal("none");
    const activate = (event: Event, key: string) => {
    if (key === "protected") event.preventDefault();
    if (!event.defaultPrevented) setCount(current => current + 1);
    };
    return <div class={styles.Demo}>
    <Tree.Root class={styles.Tree} aria-label="Project explorer" dir={rtl() ? "rtl" : "ltr"} value={value()} onValueChange={next => { if (acceptSelection()) setValue(next); }} expandedValues={expanded()} onExpandedValuesChange={next => { if (acceptExpansion()) setExpanded(next); }}>
    <Tree.Item class={styles.Item} value="source" textValue="Source" hasChildren onFocus={() => setFocused("source")} onActivate={event => activate(event, "source")}>
    <span class={styles.Row}><Tree.ExpandTrigger class={styles.Toggle} aria-label="Toggle Source">▸</Tree.ExpandTrigger><Tree.ItemText>Source</Tree.ItemText><Tree.ItemIndicator class={styles.Indicator}> •</Tree.ItemIndicator></span>
    <Tree.ItemGroup class={styles.Group}>
    <For each={reversed() ? [...files].reverse() : files}>{file =>
    <Tree.Item class={styles.Item} value={file.value} textValue={file.label} onFocus={event => { event.stopPropagation(); setFocused(file.value); }} onActivate={event => activate(event, file.value)}>
    <span class={styles.Row}><Tree.ItemText>{file.label}</Tree.ItemText><Tree.ItemIndicator class={styles.Indicator}> •</Tree.ItemIndicator></span>
    </Tree.Item>}
    </For>
    </Tree.ItemGroup>
    </Tree.Item>
    <Tree.Item class={styles.Item} value="docs-readme" textValue="Readme" onFocus={() => setFocused("docs-readme")} onActivate={event => activate(event, "docs-readme")}>
    <span class={styles.Row}><Tree.ItemText>Readme</Tree.ItemText><Tree.ItemIndicator class={styles.Indicator}> •</Tree.ItemIndicator></span>
    </Tree.Item>
    <Tree.Item class={styles.Item} value="shared" textValue="Shared (disabled parent)" hasChildren disabled>
    <span class={styles.Row}><Tree.ItemText>Shared (disabled parent)</Tree.ItemText></span>
    <Tree.ItemGroup class={styles.Group}>
    <Tree.Item class={styles.Item} value="shared-guide" textValue="Enabled guide" onFocus={() => setFocused("shared-guide")} onActivate={event => activate(event, "shared-guide")}>
    <span class={styles.Row}><Tree.ItemText>Enabled guide</Tree.ItemText><Tree.ItemIndicator class={styles.Indicator}> •</Tree.ItemIndicator></span>
    </Tree.Item>
    </Tree.ItemGroup>
    </Tree.Item>
    <Tree.Item class={styles.Item} value="protected" textValue="Protected action" onFocus={() => setFocused("protected")} onActivate={event => activate(event, "protected")}>
    <span class={styles.Row}><Tree.ItemText>Protected action</Tree.ItemText></span>
    </Tree.Item>
    </Tree.Root>
    <label><input type="checkbox" checked={acceptExpansion()} onChange={event => setAcceptExpansion(event.currentTarget.checked)} /> Accept expansion proposals</label>
    <label><input type="checkbox" checked={acceptSelection()} onChange={event => setAcceptSelection(event.currentTarget.checked)} /> Accept selection proposals</label>
    <label><input type="checkbox" checked={rtl()} onChange={event => setRtl(event.currentTarget.checked)} /> Right-to-left tree</label>
    <button class={styles.Button} type="button" onClick={() => setReversed(current => !current)}>Reverse source children</button>
    <button class={styles.Button} type="button" onClick={() => setExpanded(current => current.filter(key => key !== "source"))}>Collapse source externally</button>
    <output aria-label="Tree focused key">Focused: {focused()}</output>
    <output aria-label="Tree selected key">Selected: {value() ?? "none"}</output>
    <output aria-label="Tree expanded keys">Expanded: {expanded().join(", ") || "none"}</output>
    <output aria-label="Tree activations">Activations: {count()}</output>
    </div>;
    }

    Sidebar · pixels

    Editor · percent

    Preview

    Proposed: noneAccepted request: 180pxLast accepted commit: noneCommits: 0Collapsed: false
    Download runnable sandbox
    import { createSignal } from "solid-js";
    import { Splitter } from "@wsagency/radix2solid-primitives";
    import styles from "./styles.module.css";
    export default function SplitterDemo() {
    const [size, setSize] = createSignal(180);
    const [proposal, setProposal] = createSignal<number | null>(null);
    const [committed, setCommitted] = createSignal<number | null>(null);
    const [commits, setCommits] = createSignal(0);
    const [acceptResize, setAcceptResize] = createSignal(true);
    const [acceptCollapse, setAcceptCollapse] = createSignal(true);
    const [collapsed, setCollapsed] = createSignal(false);
    const [rtl, setRtl] = createSignal(false);
    return <div class={styles.Demo}>
    <Splitter.Root class={styles.Root} unit="px" size={size()} dir={rtl() ? "rtl" : "ltr"} onSizeChange={next => { setProposal(next); if (acceptResize()) setSize(next); }} onSizeCommit={next => { setCommitted(next); setCommits(current => current + 1); }} collapsed={collapsed()} onCollapsedChange={next => { if (acceptCollapse()) setCollapsed(next); }}>
    <Splitter.Panel class={styles.Panel} side="primary" minSize={100} maxSize={320} collapsible collapsedSize={0} aria-label="Workspace sidebar panel">
    <p>Sidebar · pixels</p>
    <button class={styles.Button} type="button">Sidebar action</button>
    </Splitter.Panel>
    <Splitter.Handle class={styles.Handle} aria-label="Workspace sidebar" />
    <Splitter.Panel class={styles.Panel} side="secondary" minSize={120}>
    <Splitter.Root class={styles.Nested} orientation="vertical" unit="%" defaultSize={55}>
    <Splitter.Panel class={styles.Panel} side="primary" minSize={20}>
    <p>Editor · percent</p><textarea class={styles.Editor} aria-label="Editor notes" defaultValue="Resize either divider. Text remains mounted when the sidebar collapses." />
    </Splitter.Panel>
    <Splitter.Handle class={styles.Handle} aria-label="Editor height" />
    <Splitter.Panel class={styles.Panel} side="secondary" minSize={20}><p>Preview</p></Splitter.Panel>
    </Splitter.Root>
    </Splitter.Panel>
    </Splitter.Root>
    <label><input type="checkbox" checked={acceptResize()} onChange={event => setAcceptResize(event.currentTarget.checked)} /> Accept resize proposals</label>
    <label><input type="checkbox" checked={acceptCollapse()} onChange={event => setAcceptCollapse(event.currentTarget.checked)} /> Accept collapse proposals</label>
    <label><input type="checkbox" checked={rtl()} onChange={event => setRtl(event.currentTarget.checked)} /> Right-to-left layout</label>
    <button class={styles.Button} type="button" onClick={() => setCollapsed(current => !current)}>Toggle sidebar externally</button>
    <output aria-label="Splitter proposed size">Proposed: {proposal() === null ? "none" : `${proposal()}px`}</output>
    <output aria-label="Splitter accepted size">Accepted request: {size()}px</output>
    <output aria-label="Splitter committed size">Last accepted commit: {committed() === null ? "none" : `${committed()}px`}</output>
    <output aria-label="Splitter commit count">Commits: {commits()}</output>
    <output aria-label="Splitter collapsed state">Collapsed: {String(collapsed())}</output>
    </div>;
    }

    Real charts from @wsagency/radix2solid-charts. Their colors are this page's Themes tokens, so the theme panel's accent and appearance apply live. Hover or focus a chart for its tooltip.

    Position: bottom; offset: 8; layout: auto
    Visitors and signups by monthJanFebMarAprMayJunReporting month
    Visitors and signups, January–June

    Line chart

    Visitors and signups by monthJanFebMarAprMayJunReporting month

    Area chart

    Stacked visitors and signupsJanFebMarAprMayJun

    Bar chart

    Monthly visitors and signupsJanFebMarAprMayJunReporting month

    Composed chart

    Revenue bars with visitor trendJanFebMarAprMayJun

    Scatter chart

    Bubble scatter

    Pie chart

    Traffic sources

    Radar chart

    Team skill comparisonSpeedDesignDocsTestsA11y

    Radial bar chart

    Conversion steps

    Funnel chart

    Signup funnel

    Treemap

    ThemesButtonDialogTablePrimitivesMenuSelectChartsLinePie

    Sankey

    Documentation flowVisits flow through docs and playground to installation.
    Download runnable sandbox
    import { createSignal } from "solid-js";
    import { Bar, BarChart, CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Sankey, Tooltip, XAxis, YAxis, type CartesianPosition } from "@wsagency/radix2solid-charts";
    import styles from "./styles.module.css";
    const data = [
    { month: "Jan", visitors: 4000, signups: 2400 },
    { month: "Feb", visitors: 3000, signups: 1398 },
    { month: "Mar", visitors: 2000, signups: 3800 },
    { month: "Apr", visitors: 2780, signups: 3908 },
    { month: "May", visitors: 1890, signups: 4800 },
    { month: "Jun", visitors: 2390, signups: 3800 },
    ];
    const flow = { nodes: [{ name: "Visits" }, { name: "Docs" }, { name: "Install" }], links: [{ source: 0, target: 1, value: 60 }, { source: 1, target: 2, value: 35 }] };
    const ChartsDemo = () => {
    const [kind, setKind] = createSignal<"line" | "bar" | "sankey">("line");
    const [position, setPosition] = createSignal<Extract<CartesianPosition, string>>("bottom");
    return <figure class={styles.Root}>
    <div class={styles.Toolbar} role="group" aria-label="Chart type">
    <button class={styles.Button} aria-pressed={kind() === "line" ? "true" : "false"} onClick={() => setKind("line")}>Line</button>
    <button class={styles.Button} aria-pressed={kind() === "bar" ? "true" : "false"} onClick={() => setKind("bar")}>Bar</button>
    <button class={styles.Button} aria-pressed={kind() === "sankey" ? "true" : "false"} onClick={() => setKind("sankey")}>Sankey</button>
    </div>
    <label>Legend position <select aria-label="Legend position" value={position()} onChange={event => setPosition(event.currentTarget.value as Extract<CartesianPosition, string>)}>
    <option value="bottom">Outside bottom</option><option value="right">Outside right</option><option value="insideTopRight">Inside top right</option>
    </select></label>
    <output aria-label="Legend configuration">Position: {position()}; offset: 8; layout: auto</output>
    <ResponsiveContainer width="100%" height={240} initialDimension={{ width: 360, height: 240 }}>
    {kind() === "line" ? <LineChart data={data} title="Visitors and signups by month">
    <CartesianGrid strokeDasharray="3 3" />
    <XAxis dataKey="month" height="auto" angle={-35} label="Reporting month" />
    <Legend position={position()} offset={8} layout="auto" />
    <YAxis />
    <Tooltip />
    <Line type="monotone" dataKey="visitors" stroke="var(--violet-9)" strokeWidth={2} />
    <Line type="monotone" dataKey="signups" stroke="var(--teal-9)" strokeWidth={2} />
    </LineChart> : kind() === "bar" ? <BarChart data={data} title="Visitors and signups by month">
    <CartesianGrid strokeDasharray="3 3" vertical={false} />
    <XAxis dataKey="month" height="auto" angle={-35} label="Reporting month" />
    <Legend position={position()} offset={8} layout="auto" />
    <YAxis />
    <Tooltip />
    <Bar dataKey="visitors" fill="var(--violet-9)" radius={[4, 4, 0, 0]} />
    <Bar dataKey="signups" fill="var(--teal-9)" radius={[4, 4, 0, 0]} />
    </BarChart> : <Sankey data={flow} title="Documentation flow" desc="Visits flow through docs and playground to installation." accessibilityLayer><Tooltip /></Sankey>}
    </ResponsiveContainer>
    <figcaption class={styles.Caption}>Visitors and signups, January–June</figcaption>
    </figure>;
    };
    export default ChartsDemo;