Last updated:

Aug 19, 2025

Variables

Variable collections

Variables are grouped into four collections, each handling a specific part of your design system

1. Spacing

This collection houses primitive spacing variables used for auto layout

2. Primitives

This collection includes standard Tailwind utility-based values. It’s designed to match the utility-first approach used in shadcn/ui.

Use these variables to:

  • Set component dimensions (height, width) and spacing

  • Define borders, including radius and stroke width

  • Adjust opacity values

  • Set line-height for text styles

Group

Usage

border-radius

Border radius values for rounded corners

border-width

Set border thickness

height

Control the height of components and individual elements

max-width

Set minimum and maximum width constraints for components or individual elements

opacity

Adjust element transparency

width

Control the width of components and individual elements

3. Theme

Edit these variables to apply your brand styling. This is where the majority of the theming variables live for light and dark mode in Shadcraft. The Theme collection allows you to house multiple brands with unique styling from the one library.

Use these variables to define theme-specific:

  • Typography

  • Shadows

  • Radii

Group

Usage

colors

Define the colour palette used for your theme

custom

Misc things like icon border width

font

Control all the facets of typography including family, size and weight

radius

Theme-specific radii – references Primitive collection

shadow

Define all the properties of the various shadows

Colour variable usage guide

Colour

Usage

primary

Define the colour palette used for your theme

primary-foreground

For elements on top of primary

secondary

Your secondary brand colour

secondary-foreground

For elements on top of secondary

accent

Highlight colour for active or focused elements

accent-foreground

For elements on top of accent

background

Main application background colour

foreground

For elements on top of background

card

Background colour for cards

card-foreground

For elements on top of card

popover

Background colour for things like select menus

popover-foreground

For elements on top of popover

muted

Subtle background for elements requiring less attention

muted-foreground

For elements on top of muted

destructive

For errors and destructive actions like delete

destructive-foreground

For elements on top of destructive

border

Main border colour

input

Border colour for form input elements

ring

Helps define the focus indicator

opacity-90

Applied to elements to lighten their background colour

opacity-50

Applied to elements to lighten their background colour

opacity-30

Applied to elements to lighten their background colour

  1. Mode

These are the colours you apply to elements in your library. They enable the use of light and dark modes. These reference variables in the Theme collection.

Group

Usage

Root

The majority of colours for UI in Shadcraft. These reference colours in the theme collection.

custom

Figma-specific colours used to achieve the shadcn/ui look.

chart

Colours used for charts

shadow

Colours used for shadows

sidebar

Colours specific for the sidebar component

Best practices

  • Use variables instead of hard-coded values to maintain consistency across your designs.

  • Apply Mode variables to any elements that need to respond to light or dark themes.

  • Use the collections in different ways:

    • Alter the values of Theme for Theme-specific styles

    • Apply mode variables rather than editing their values

Following these practices ensures your Figma designs stay aligned with the shadcn/ui framework and are easily translatable to Tailwind CSS in code.

Get the kit now

Base

Essential shadcn/ui components and blocks for Figma. Build faster with a solid design foundation.

Easy theming via tweakcn

All 55 shadcn/ui Components

All 44 shadcn/ui Blocks

1500+ Lucide icons

2025 Figma features

Prototype interactions

Figma variables

Light & dark mode

$119

One time payment. Lifetime access. 1 year of updates

Pro Components, Blocks, and Templates. Assemble complete layouts in seconds.

Everything in Figma Base

Full library of Pro Components

Pre-built Blocks for faster workflows

Ready-to-use Templates for complete pages

Perfect for marketing sites

Ideal for product apps [soon]

Assemble entire experiences in seconds

Small & large screen layouts

$299

$399

One time payment. Lifetime access. 1 year of updates

Prices in USD.

Secure payment with Lemon Squeezy

Get the kit now

Base

Essential shadcn/ui components and blocks for Figma. Build faster with a solid design foundation.

Easy theming via tweakcn

All 55 shadcn/ui Components

All 44 shadcn/ui Blocks

1500+ Lucide icons

2025 Figma features

Prototype interactions

Figma variables

Light & dark mode

$119

One time payment. Lifetime access. 1 year of updates

Pro Components, Blocks, and Templates. Assemble complete layouts in seconds.

Everything in Figma Base

Full library of Pro Components

Pre-built Blocks for faster workflows

Ready-to-use Templates for complete pages

Perfect for marketing sites

Ideal for product apps [soon]

Assemble entire experiences in seconds

Small & large screen layouts

$299

$399

One time payment. Lifetime access. 1 year of updates

Prices in USD.

Secure payment with Lemon Squeezy

Get the kit now

Base

Essential shadcn/ui components and blocks for Figma. Build faster with a solid design foundation.

Easy theming via tweakcn

All 55 shadcn/ui Components

All 44 shadcn/ui Blocks

1500+ Lucide icons

2025 Figma features

Prototype interactions

Figma variables

Light & dark mode

$119

One time payment. Lifetime access. 1 year of updates

Pro Components, Blocks, and Templates. Assemble complete layouts in seconds.

Everything in Figma Base

Full library of Pro Components

Pre-built Blocks for faster workflows

Ready-to-use Templates for complete pages

Perfect for marketing sites

Ideal for product apps [soon]

Assemble entire experiences in seconds

Small & large screen layouts

$299

$399

One time payment. Lifetime access. 1 year of updates

Prices in USD.

Secure payment with Lemon Squeezy

Female avatar image
Female avatar image
Female avatar image

Join top designers leading the way with Shadcraft

Become an ambassador and get a free kit.

Female avatar image
Female avatar image
Female avatar image

Join top designers leading the way with Shadcraft

Become an ambassador and get a free kit.

Female avatar image
Female avatar image
Female avatar image

Join top designers leading the way with Shadcraft

Become an ambassador and get a free kit.

Stay in the know

Keep updated on all things happening with Shadcraft.

We respect your privacy

Stay in the know

Keep updated on all things happening with Shadcraft.

We respect your privacy

Stay in the know

Keep updated on all things happening with Shadcraft.

We respect your privacy