工具 指南
Design 免费 无需注册

CSS Custom Properties Generator

Build a complete CSS design token system with colors, typography, spacing, shadows, and export to CSS, SCSS, JS, or Tailwind.

正在加载工具…

关于此工具

Design a complete CSS custom properties (design token) system without writing code by hand. Organize tokens into seven sections: Colors, Typography (font sizes, families, weights, line heights), Spacing scale, Border Radius, Box Shadows, Z-Index layers, and Breakpoints. Add, remove, and edit token names and values in each section using the interactive table editor. A live preview panel shows color swatches, typography specimens, spacing blocks, and shadow examples that update as you type. Paste an existing CSS block into the Import panel to automatically parse all `--variable: value` declarations and populate the editor. Export your token system in four formats: a CSS `:root { }` block, SCSS `$variable: value` declarations, a JavaScript/TypeScript object literal, or a Tailwind `theme.extend` configuration block ready to paste into `tailwind.config.js`.

使用方法

  1. 1 Click a section tab (Colors, Typography, Spacing, etc.) to start adding tokens.
  2. 2 Click 'Add Token' to create a new row — type the token name and value.
  3. 3 Watch the live preview update instantly as you edit values.
  4. 4 To import existing tokens, paste your CSS into the Import panel and click Parse.
  5. 5 Choose an export format (CSS, SCSS, JS, or Tailwind) and click Copy to clipboard.

常见问题

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}