Tailwind Catalyst¶
The tailwind pack imitates Catalyst, the application UI kit of Tailwind Plus: React
components built on Headless UI and styled with Tailwind CSS v4. It follows the kit's own
classes at the sm: breakpoint — text-sm/6 (14/24 px) in Inter with a system fallback, zinc
neutrals, 36 px controls with rounded-lg corners, hairline rings (zinc-950/10, white/10 in
dark mode) instead of borders, rounded-xl menus with the blue-500 active item, rounded-2xl
dialogs, and the inset white panel on a zinc-100 (zinc-950 in dark mode) application shell. A few
Tailwind Plus marketing sections (hero, feature grid, pricing) come with it. Select it with
import Tailwind (or import TailwindPlus, import TailwindCatalyst).
Elements use the Catalyst component names: the shells SidebarLayout, StackedLayout,
AuthLayout; Navbar (NavbarSection, NavbarItem, NavbarSpacer, NavbarDivider) and
Sidebar (SidebarHeader, SidebarBody, SidebarFooter, SidebarSection, SidebarHeading,
SidebarItem, SidebarLabel, SidebarSpacer) with current: true; Heading, Subheading,
Text, Strong, Code, TextLink; Fieldset, Legend, FieldGroup, Field, Label,
Description, ErrorMessage; Input, InputGroup, Textarea, Select, Listbox /
ListboxOption, Combobox / ComboboxOption, Checkbox, CheckboxField, Radio, RadioGroup,
Switch, SwitchField; Button (variant: .solid | .outline | .plain, or .outline() /
.plain()), Badge, Avatar, Divider; Table (variant: .striped | .grid | .bleed,
dense: true), TableHeader, TableRow, TableCell; DescriptionList / DescriptionTerm /
DescriptionDetails; Pagination; Dialog (DialogBody, DialogActions), Alert (Catalyst's
small confirmation modal) and Dropdown (DropdownMenu, DropdownItem, DropdownHeading,
DropdownDivider, DropdownShortcut). Buttons, badges, switches, checkboxes, radios and avatars
take any Tailwind colour — color: .indigo, .emerald, .rose, .zinc, … all seventeen hues
plus zinc, slate, gray, neutral, stone — and buttons also take Catalyst's .light,
.dark, .white, .darkWhite and the default .darkZinc. From Tailwind Plus come Hero,
HeroHeading, Eyebrow, Lead, SectionHeading, FeatureGrid / Feature, PricingGrid /
PricingTier, InlineAlert, Notification, underline Tabs and EmptyState. Heroicons names
(home, cog-6-tooth, magnifying-glass, chevron-up-down, ellipsis-horizontal, …) map onto
the built-in icon set.
The custom components below — AppSidebar, UserChip, StatBlock, SettingsRow and Tier —
live in mockups/tailwind/catalyst.mockitdown and are imported with import "tailwind/catalyst".
Sign in¶
The AuthLayout puts a narrow form on the inset panel: a Heading, two Fields with Label and
Input (the password field focused, with the blue ring), a Checkbox, a full-width solid Button
and a TextLink.
Source
import Tailwind
AuthLayout {
VStack {
VStack(alignment: .stretch, spacing: 32) {
Avatar("Northwind", initials: "NL", square: true, color: .indigo).size(.large)
Heading("Sign in to your account")
Field {
Label("Email")
Input("you@example.com", text: "ines@northwind.example")
}
Field {
Label("Password")
Input("Password", type: .password, text: "correct-horse").state(.focused)
}
HStack {
Checkbox("Remember me", checked: true)
Spacer()
TextLink("Forgot password?").fontWeight(.semibold)
}
Button("Login").frame(maxWidth: .infinity)
Text("Don’t have an account? **Sign up**")
}
.frame(width: 384)
}
}Dashboard¶
The Catalyst demo's home page in a SidebarLayout: the AppSidebar component 1 with the
current item marked by its left bar, a greeting Heading with a Select for the period, four
Stats whose change badges are lime when up and pink when down 2, and a Table of recent
orders with avatars 3.
| Order number | Purchase date | Customer | Event | Amount |
|---|---|---|---|---|
| 3000 | May 9, 2026 | Harbour Lights Festival | US$80.00 | |
| 3001 | May 5, 2026 | Synth Night at the Depot | US$299.00 | |
| 3002 | Apr 28, 2026 | Autumn Folk Weekender | US$150.00 | |
| 3003 | Apr 23, 2026 | Harbour Lights Festival | US$80.00 |
Orders¶
A StackedLayout: a Navbar with a current item (underline bar), a NavbarDivider and an
AvatarButton, then a toolbar of InputGroup and Select, an open Dropdown with headings,
icons, shortcuts and the blue active item, a dense striped Table with colour Badges and
Pagination.
| Order | Date | Customer | Event | Status | Amount |
|---|---|---|---|---|---|
| 3010 | May 12 | Leon Weber | Harbour Lights Festival | Paid | US$80.00 |
| 3009 | May 11 | Amara Okafor | Synth Night at the Depot | Refunded | US$299.00 |
| 3008 | May 11 | Tomás Ruiz | Autumn Folk Weekender | Pending | US$150.00 |
| 3007 | May 10 | Hana Sato | Harbour Lights Festival | Paid | US$160.00 |
| 3006 | May 9 | Priya Natarajan | Synth Night at the Depot | Failed | US$299.00 |
| 3005 | May 9 | Jonas Berg | Autumn Folk Weekender | Paid | US$75.00 |
| 3004 | May 8 | Chloé Martin | Harbour Lights Festival | Disputed | US$80.00 |
Order detail¶
A detail page: a back Link, Heading with a Badge, outline and solid Buttons, a
DescriptionList for the summary, and Catalyst's Alert — the small confirmation modal — asking
before a refund.
Source
import Tailwind
SidebarLayout {
Sidebar {
SidebarBody {
SidebarSection {
SidebarItem("Home", systemImage: "home")
SidebarItem("Orders", systemImage: "ticket", current: true)
SidebarItem("Settings", systemImage: "cog-6-tooth")
}
}
}
VStack(alignment: .stretch, spacing: 0) {
Label("Orders", systemImage: "chevron-left").foregroundStyle(.secondary)
HStack(spacing: 16) {
Heading("Order #3008")
Badge("Pending", color: .amber)
Spacer()
Button("Resend invoice", variant: .outline)
Button("Refund")
}
.padding(.top, 16)
HStack(spacing: 24) {
Label("US$150.00", systemImage: "banknotes")
Label("Mastercard ending 1254", systemImage: "credit-card")
Label("May 11, 2026", systemImage: "calendar")
}
.padding(.top, 8)
VStack(alignment: .stretch, spacing: 16) {
Subheading("Summary")
Divider()
}
.padding(.top, 48)
DescriptionList {
DescriptionTerm("Customer")
DescriptionDetails("Tomás Ruiz")
DescriptionTerm("Event")
DescriptionDetails("Autumn Folk Weekender")
DescriptionTerm("Amount")
DescriptionDetails("US$150.00")
DescriptionTerm("Amount after exchange rate")
DescriptionDetails("US$150.00 → CA$205.21")
DescriptionTerm("Fee")
DescriptionDetails("US$4.65")
}
}
Alert("Are you sure you want to refund this payment?", description: "The refund will be reflected in the customer’s bank account 2 to 3 business days after processing.") {
} actions: {
Button("Cancel", variant: .plain)
Button("Refund")
}
}Settings¶
The Catalyst settings page: rows of SettingsRow (a custom component — Subheading and Text on
the left, the control on the right, a soft Divider below) holding Input, Textarea, an open
Listbox with its check mark and blue active option, a CheckboxField and SwitchFields in
Tailwind colours, plus a Fieldset with a RadioGroup.
Source
import Tailwind
import "tailwind/catalyst"
VStack(alignment: .stretch, spacing: 32) {
Heading("Settings")
Divider()
SettingsRow(title: "Organization Name", help: "This will be displayed on your public profile.") {
Input("Name", text: "Northwind Labs")
}
SettingsRow(title: "Organization Bio", help: "This will be displayed on your public profile. Maximum 240 characters.") {
Textarea("Bio", rows: 3)
}
SettingsRow(title: "Notifications", help: "Choose what reaches your inbox.") {
SwitchGroup {
SwitchField("Order receipts", isOn: true, description: "A copy of every receipt sent to a customer.", color: .emerald)
SwitchField("Weekly digest", isOn: false, description: "Revenue and ticket sales every Monday.")
}
}
HStack(alignment: .top, spacing: 32) {
Fieldset {
Legend("Payout schedule")
Text("Payouts land in your bank account on the chosen cadence.")
RadioGroup(selection: "Weekly") {
Radio("Daily")
Radio("Weekly")
Radio("Monthly")
}
}
.frame(maxWidth: .infinity)
CheckboxField("Allow embedding", description: "Allow others to embed your event details on their own site.", checked: true)
.frame(maxWidth: .infinity)
}
Divider(soft: true)
SettingsRow(title: "Currency", help: "The currency that your organization will be collecting.") {
Listbox(selection: "CAD - Canadian Dollar", open: true) {
ListboxOption("USD - United States Dollar")
ListboxOption("CAD - Canadian Dollar")
ListboxOption("EUR - Euro")
}
}
HStack(spacing: 16) {
Spacer()
Button("Reset", variant: .plain)
Button("Save changes")
}
.padding(.top, 48)
}
.padding(40)Colours and variants¶
Catalyst's colour props on one page: solid Buttons in the special colours and a few hues, the
outline and plain variants, a Badge in every Tailwind colour, Switches and Checkboxes with
color:, and square and round Avatars.
Source
import Tailwind
VStack(alignment: .leading, spacing: 28) {
HStack(spacing: 12) {
Button("Dark/zinc")
Button("Light", color: .light)
Button("Dark/white", color: .darkWhite)
Button("Indigo", color: .indigo)
Button("Cyan", color: .cyan)
Button("Rose", color: .rose)
Button("Outline", systemImage: "arrow-down-tray", variant: .outline)
Button("Plain", systemImage: "plus").plain()
}
HStack(spacing: 8, wrap: true) {
ForEach(["zinc", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky"]) { c in
Badge(c, color: c)
}
}
HStack(spacing: 8, wrap: true) {
ForEach(["blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose", "slate", "gray", "neutral", "stone"]) { c in
Badge(c, color: c)
}
}
HStack(spacing: 24) {
Switch(isOn: true)
Switch(isOn: true, color: .indigo)
Switch(isOn: true, color: .emerald)
Switch(isOn: true, color: .amber)
Switch(isOn: true, color: .rose)
Switch(isOn: false)
Divider()
Checkbox(checked: true)
Checkbox(checked: true, color: .indigo)
Checkbox(checked: .indeterminate, color: .sky)
Checkbox(checked: false)
}
HStack(spacing: 16) {
Avatar("Ines Moreau", image: "assets/images/avatar-2.svg")
Avatar("Leon Weber", image: "assets/images/avatar-1.svg").size(.large)
Avatar("TW", initials: "TW")
Avatar("Amara Okafor", color: .violet).size(.large)
Avatar("Northwind", initials: "NL", square: true, color: .indigo).size(.large)
Code("color=\"indigo\"")
TextLink("Read the docs")
}
}
.padding(40)Event overview¶
The AppSidebar again with another current item, a Heading with Badge and Kbd hint, an
AreaChart of ticket sales in the Tailwind data colours, a Tailwind Plus activity feed
(Timeline with icon circles) and an EmptyState for a section that has nothing yet.
Edit dialog with a notification¶
A Dialog with description:, a Field grid, a Combobox open on its matches and an
ErrorMessage; behind it a Tailwind Plus Notification and an InlineAlert on the page.
Landing page¶
Tailwind Plus marketing sections: a centred Hero with a pill Eyebrow, HeroHeading, Lead and
two buttons; a FeatureGrid of Features with indigo icon tiles; and a PricingGrid of the Tier
component, the featured tier ringed in indigo.