Skip to content

shadcn Color Preview

A VS Code extension that previews the HSL values in shadcn-style CSS variables right in your editor.

marketplace.visualstudio.com/items

shadcn Color Preview website screenshot
Added
Price
Free

About

About shadcn Color Preview

shadcn Color Preview is a Visual Studio Code extension by Dexxiez. shadcn/ui stores theme colors as bare HSL numbers in CSS variables, which editors do not recognize as colors. This extension draws a preview for those values and updates it as you type. Hovering a value shows more color information, including a mixer and conversion utilities.

Install it from the Visual Studio Marketplace, where it is listed as free with about 7,100 installs. It works in CSS, SCSS, LESS, PostCSS, JS, JSX, TS, TSX and files the Tailwind language server recognizes. Hex highlighting is left out on purpose so it does not clash with other color extensions.

shadcn Color Preview features

6 features

  • Live preview of shadcn HSL variables
  • Hover card with a color mixer
  • Conversion utilities
  • CSS, SCSS, LESS and PostCSS support
  • JS, JSX, TS and TSX support
  • Tailwind CSS file support

What you can build with shadcn Color Preview

3 use cases

  • Tweaking --primary and --background in globals.css
  • Checking a pasted theme from a theme generator
  • Converting a color value while editing a stylesheet

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What shadcn Color Preview is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro