All tools

CSS Theme Previewer

Edit your CSS theme and see it applied to shadcn/ui components as you type.

Browser onlyYour input is processed in this browser and is not sent to SpeedyTools servers.
Share:
Live Preview
Valid CSS — 39 variables detected, light theme, dark theme
About the CSS theme previewer

This tool shows how your CSS theme looks on UI components. Paste your globals.css with its CSS variables and see the result on buttons, cards, form fields and more. Use it for shadcn/ui themes or any design system built on CSS variables.

How it works

The previewer parses your CSS variables and applies them to sample components in an isolated preview. It supports these variable names:

--color-primary, --color-secondary
--color-background, --color-foreground
--color-muted, --color-accent
--color-destructive, --color-border
--radius

Features

Syntax highlighting

Edit CSS with syntax highlighting and autocompletion

Live preview

The preview updates as you edit the CSS

Light and dark mode

Switch the preview between light and dark to test both

Sample components

Buttons, cards, form fields, badges, alerts, tables and more

Frequently asked questions

How do I preview my theme?

Paste your CSS variables, from a :root block or a whole CSS file. The preview updates as you type.

What components are included?

Buttons, a card, form fields, badges, alerts, tabs, progress bars, avatars, a table, a dialog, skeleton loaders and a swatch of each theme color.

Can I copy the theme code?

Yes. The copy button copies the CSS from the editor, so you can paste it back into your project.

What CSS variables are supported?

The standard shadcn/ui theme variables, such as background, foreground, primary, secondary, accent, muted, destructive, border and radius. Both --primary and --color-primary naming work.

Does this work with Tailwind CSS?

Yes. You can paste a Tailwind CSS @theme block, and the tool treats it like a :root block of CSS variables.

Private by default

The tool processes CSS in your browser. It never uploads your theme code to a server.