Export colors as code

Turn a list of colors into ready code: CSS custom properties, a Tailwind v4 @theme block, SCSS variables, JSON, W3C design tokens (DTCG), a JavaScript array or an SVG swatch strip. Unnamed colors get their closest color name.

post/api/v1/export-tokens

Request

  • Base URL: https://pickshade.com
  • URL: https://pickshade.com/api/v1/export-tokens
  • Auth: none declared

Request body

format'css' | 'tailwind' | 'scss' | 'json' | 'dtcg' | 'array' | 'svg'
values'oklch' | 'hex' | 'rgb' | 'hsl' | 'display-p3'

How color values are written

Response

Result

Changes

No recorded changes to this operation across all 1 revision of this API.