HomeDocsComponentsBlocksChartsThemes
Introduction
  • Introduction
  • Installation
  • Themes
  • Artwork
  • llms.txt
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Meter
  • Multi Select
  • Native Select
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Cart Button
  • Cart Line Item
  • Cart Summary
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Fill Blank
  • File Icon
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Person Avatar
  • Phone Input
  • Popover
  • Price
  • Product Card
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert Dialog
  • Alert
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar Upload
  • Avatar
  • Badge
  • Banner
  • Bot Avatar
  • Brand SVG
  • Breadcrumb
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Cart Button
  • Cart Line Item
  • Cart Summary
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker Primitive
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Icon
  • File Upload
  • Fill Blank
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input Group
  • Input OTP
  • Input
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Person Avatar
  • Phone Input
  • Popover
  • Price
  • Product Card
  • Progress Circle
  • Progress
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat Tabs
  • Stat
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toggle Group
  • Toggle
  • Tooltip
  • Tree
  • Video Player
  • Window Mockup
AI
  • Message Scroller
  • Message
  • Bubble
  • Marker
  • Attachment
  • Questionnaire
  • Composer
  • Reasoning
  • Tool Call
  • Approval Card
  • Citations
  • Message Toolbar
Blocks
  • Airtable
  • Airtable Kanban
  • CRM
  • ClickUp List
  • ClickUp Kanban
  • Repeatable Group
  • Command Palette
  • App Shell
  • Record Files
  • Settings Shell
  • Help Panel
  • Note Editor
  • Email Drafts
  • Task List
  • Notifications Panel
  • Dual Pane Sidebar
  • Team Members Panel
  • Mix Pack Builder
  • Record Picker and Date Quick-pick
  • Record List
  • Record Page
  • Sign In and Sign Up
  • Availability Scheduler
  • AI Chat
  • AI Assistant
  • Voice Message
  • Action Bar
  • Notion
  • Banking
  • Lineup Builder
  • Sports Score
  • Standings
  • Strava
  • Sheets
  • Notices
  • Settings
  • Billing
Templates
  • Sign In Page
  • Upload Page
  • Showcase Onboarding
  • Agreement Sign
  • Email
  • Email Composer
  • Share Dialog
  • Integrations
  • Transactions
  • Analytics
Utilities
  • motion
  • sounds
  • scroll-fade
  • shimmer
Another UI. Built on shadcn/ui with Phosphor icons.

Styles

PreviousNext

Pick the look of every component with one setting.

A style maps every component slot to utilities: radius, spacing, shadows and surfaces. Components stay the same, so you can change the style of a project without touching its code.

Another UI ships ten styles: vega, nova, maia, lyra, mira, luma, sera, rhea, candy and ledger. Each one looks complete on its own, with no per-example overrides.

Choose a style#

A project picks one style in components.json. The value is the base followed by the style.

components.json
{
  "style": "radix-candy"
}

To set it up from the CLI, pass a preset. The Style picker on /create writes the code for you.

pnpm dlx shadcn@latest init --preset b2Q1IfNA

Install a style's build of a component#

A component installed from the root URL, https://anotherui.dev/r/button.json, is the Nova build. To get the build of the style in your components.json, use the per-style URL.

pnpm dlx shadcn@latest add https://anotherui.dev/r/another/radix-candy/button.json

Every radix style has its own copy of each component at /r/another/<base>-<style>/<name>.json, for example radix-maia or radix-candy. Its dependencies point at the same style, so button pulls the matching button-variants. Each item also depends on another-ui-styles, which carries the Candy tokens and overrides. For Candy, add the style-candy class on <html> as described below. Blocks are published once, at the root, and depend on the Nova components, so a block install or update brings the Nova build of those components back. Add the per-style components again afterwards.

Candy needs one more step#

"style": "radix-candy" gives the components Candy's classes. A project that also installs another-ui-styles needs one more thing for Candy to look right: the class style-candy on <html>.

Why: another-ui-styles styles buttons, cards, inputs and tabs straight from data-slot and data-variant, outside the component classes, and those rules win. Candy's overrides in the same stylesheet only switch on under .style-candy, so the other styles and plain Another UI projects stay as they are. Without the class, a radix-candy project with another-ui-styles shows the default Another UI buttons and cards with Candy tokens underneath. It is a required step, not an option.

app/layout.tsx
<html lang="en" className="style-candy">

Use <html> rather than a wrapper if the page has menus, tooltips, dialogs or sheets, because they render in a portal outside any wrapper. A wrapper div works for a page with none of those.

Ledger needs one more step#

Ledger is the dense data-app style: Inter at 13px, 28px controls, hairline borders and one blue accent. "style": "radix-ledger" gives the components Ledger's classes. For the same reason as Candy, a project that installs another-ui-styles also needs the class style-ledger on <html> or a wrapper. Without it you get the 42px gradient buttons of the default stylesheet over Ledger's tokens. See the showcase.

<html lang="en" className="style-ledger">

Apart from Candy and Ledger, the other eight styles need no class.

Try a style#

Two places show a style on real components.

  • /create is the builder. Pick a style, base color, theme, font and icons. The preview updates without a reload, and Get Code copies the --preset command for your pick.
  • Component pages have a Style menu above the first demo. Pick any style but Nova and a pane opens under it with that component in the style, and a Code tab with the source shadcn add installs for it. The pick is saved in your browser and applies to every component page.

The demos on the page stay in Nova, so the page itself does not change. The pane is an iframe of the same preview that /create uses, so menus and dialogs stay inside it.

Candy#

Candy is raised white surfaces, recessed wells and glossy accents. Selections sit on a raised chip inside a well, and a press sinks a button by 2%. It sets its own surfaces and primary color, so the color theme picker does not change them. See it in the showcase and on a dense page.

Light and dark both work. Status text, tint text, keycap ink and white text on every accent gradient measure at 4.5:1 or better. pnpm --filter=v4 check:candy-contrast measures it.

Accents#

The primary button, switch, slider and progress bar use one gradient token. It starts as pink. With the style-candy class and the Another UI stylesheet in place, set data-accent on an element to use another.

<Button>Ask AI</Button>
<Button data-accent="sunset">Book a Call</Button>
<Button data-accent="ocean">New league</Button>

To change the default for the whole project, point the primary tokens at another gradient. ink is a near-black pill and grey a soft grey one.

globals.css
.style-candy {
  --candy-primary: var(--candy-gradient-ocean);
  --candy-primary-glow: var(--candy-glow-ocean);
  --candy-primary-shadow: var(--candy-accent-sheen), var(--candy-primary-glow);
}
/* Dark mode needs nothing more: the defaults sit at zero specificity and the dark block never redefines them. */

Tokens#

TokenWhat it controls
--candy-raise, --candy-raise-hover, --candy-pressRaised surface, hover lift and pressed shadow.
--candy-raise-chipThe raised selection inside a well.
--candy-well, --candy-well-shadowRecessed fields, tracks and tab lists.
--candy-floatMenus, popovers, dialogs and tooltips.
--candy-gradient-pink, -sunset, -ocean, -ink, -grey, -destructiveAccent gradients, with matching --candy-glow-*.
--candy-primary, --candy-primary-glow, --candy-primary-shadowThe default accent. Set all three on the element that carries style-candy, or use data-accent.
--candy-tint-<tone>-bg, --candy-tint-<tone>-inkTinted badge pills.
--candy-key-*, --candy-glow-lime, --candy-selectedKeycaps, the lime glow and the selected calendar day.
--candy-ink-success, -info, -warning, -destructive, -mutedStatus text.
--candy-radius-control, --candy-radius-surfaceCorner radius of controls and surfaces.

Badges#

Candy badges are white pills with a colored label. A leading icon becomes a glossy dot. fill="tint" makes the soft tinted pill used for Online and In progress.

<Badge variant="success"><CheckIcon weight="bold" />Success</Badge>
<Badge variant="success" fill="tint">Online</Badge>
<Badge variant="secondary"><ClockIcon weight="bold" />Expired</Badge>

The success, warning, info, orange and violet badge variants read their colors from the style. fill="tint" tints success, warning, info, orange and violet in every style, and every variant in Candy. fill="solid" fills success, warning, info, orange, violet and destructive. The other eight styles look the same as before.

Keep styles in step#

Every component adds cn-* slot classes, and every style file defines them. A check fails when a style leaves one out or defines one no component uses.

pnpm --filter=v4 check:style-parity
pnpm --filter=v4 test:style-parity

Slots that are hooks only, with no styling in any style, are listed in registry/styles/style-slot-markers.json. The same check confirms a new style is registered in the picker, in registry/config.ts, in app/globals.css, in app/style-registry.css and in the CLI preset list.

Add a style#

  1. Copy a close style to registry/styles/style-<name>.css and rename its .style-<name> root.
  2. Add the name to registry/styles.tsx and PRESET_STYLES in packages/registry/src/preset/preset.ts.
  3. Add a <name> preset in packages/shadcn/src/preset/defaults.ts and three entries in registry/config.ts.
  4. Add @source and @custom-variant lines in app/globals.css and an import in app/style-registry.css.
  5. Run pnpm --filter=v4 check:style-parity. It names anything you missed.
ThemingDark Mode

On This Page

Choose a styleInstall a style's build of a componentCandy needs one more stepLedger needs one more stepTry a styleCandyAccentsTokensBadgesKeep styles in stepAdd a style