Export palette code
export_paletteExports color palettes as Tailwind, Radix, CSS variables, SCSS, Less, Stylus, auto-dark CSS/Tailwind, SVG, or JSON code for direct project use.
Instructions
Export palettes as the code the site's "Export Your Colors" and "Tailwind Auto-Dark Mode" sections produce: tailwind (theme colors object), radix (light + dark scales), css-vars, scss, less, stylus, auto-dark-css (CSS variables that flip in dark mode), auto-dark-tailwind (tailwind.config.js for those variables), svg (the "Export Svgs" swatch sheet) or json (raw swatch data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lums | No | Custom luminance targets (0-100, WCAG relative luminance x100), lightest first. Same as dragging the site sliders. | |
| count | No | Number of shades (site +/- buttons, 3-20). | |
| colors | No | Base colors, one palette each. | |
| format | Yes | Output format. | |
| preset | No | Luminance preset from the site menu: default (12 shades, 50-1100), tailwind (11 shades, 50-950), radix (12 steps), or bell/linear/dark/light which redistribute the current min..max range. | |
| share_url | No | A grayscale.design/app?... share link to load instead of colors/lums. | |
| color_type | No | Color notation for tailwind/radix/css-vars/scss/less/stylus. Site default: rgb. |