Design Tokens
EditableCSS custom properties extracted from the OFS Design Kit Figma file. Click any color swatch to customize it using the Tailwind color palette.
--backgroundPage background
--foregroundPrimary text
--cardCard background
--card-foregroundCard text
--popoverPopover background
--popover-foregroundPopover text
--primaryPrimary actions
--primary-foregroundPrimary action text
--secondarySecondary elements
--secondary-foregroundSecondary text
--mutedMuted backgrounds
--muted-foregroundMuted text
--accentAccent backgrounds
--accent-foregroundAccent text
--destructiveError/danger
--destructive-foregroundDestructive text
--borderBorder color
--inputInput borders
--ringFocus rings
--chart-1Chart primary
--chart-2Chart secondary
--chart-3Chart tertiary
--chart-4Chart quaternary
--chart-5Chart quinary
--sidebarSidebar background
--sidebar-foregroundSidebar text
--sidebar-primarySidebar primary
--sidebar-primary-foregroundSidebar primary text
--sidebar-accentSidebar accent
--sidebar-accent-foregroundSidebar accent text
--sidebar-borderSidebar border
--sidebar-ringSidebar ring
text-xs12px / 16px
Captions, badges
text-sm14px / 20px
Body text, labels
text-base16px / 24px
Default body
text-lg18px / 28px
Section headings
text-xl20px / 28px
Card titles
text-2xl24px / 32px
Page headings
text-3xl30px / 36px
Hero headings
text-4xl36px / 40px
Display text
00px
p-0, m-0, gap-0
0.52px
p-0.5, m-0.5, gap-0.5
14px
p-1, m-1, gap-1
1.56px
p-1.5, m-1.5, gap-1.5
28px
p-2, m-2, gap-2
312px
p-3, m-3, gap-3
416px
p-4, m-4, gap-4
520px
p-5, m-5, gap-5
624px
p-6, m-6, gap-6
832px
p-8, m-8, gap-8
1040px
p-10, m-10, gap-10
1248px
p-12, m-12, gap-12
rounded-sm6px
Small elements
rounded-md8px
Buttons, inputs
rounded-lg10px
Cards, dialogs
rounded-xl14px
Large containers
rounded-full9999px
Pills, avatars
shadow-xsSubtle elevation
shadow-smButtons, inputs
shadow-mdCards, dropdowns
shadow-lgModals, popovers
CSS Custom Properties
.my-element {
background-color: var(--background);
color: var(--foreground);
border-radius: var(--radius-md);
}Tailwind Classes
<div className="bg-background text-foreground rounded-md">
<button className="bg-primary text-primary-foreground">
Click me
</button>
</div>