Design Token Generator – Export Colors, Spacing & Typography
Define and export design tokens for your project. Choose colors, spacing, and fonts, then download as CSS custom properties, JSON, or SCSS variables.
UD5 Toolkit
Paste your CSS with custom properties — instantly generate IE11-compatible fallback declarations. No server, no build step, 100% client-side.
var(--name, fallback) usage, this tool inserts a standard property declaration before it. IE11 ignores the var() line (since it doesn't understand it) and uses the fallback value above. Modern browsers use the var() line, overriding the fallback. This is the same strategy used by postcss-custom-properties.
| Variable | Defined Value | Used | Status |
|---|---|---|---|
| Paste CSS to see detected variables | |||
--primary-color and var()) to render pages that use them. The most common approach—used by postcss-custom-properties—is to insert a duplicate declaration with the resolved fallback value before each var() usage. IE11 uses the first declaration it understands, ignoring the var() line, while modern browsers use the var() version. This checker automates that process visually.
--custom-property declarations or the var() function.
var() function accepts an optional fallback value: var(--name, fallback). When a CSS variable is not defined, the browser uses the fallback. For IE11 polyfills: (1) If var() has a fallback parameter (e.g., var(--color, red)), the polyfill uses that fallback value. (2) If no fallback is provided but the variable is defined elsewhere (e.g., :root { --color: blue; }), the polyfill looks up the defined value. (3) If neither exists, the property may be left unresolved, and a warning is generated. This tool follows the same logic.
var(--a, var(--b)) is extremely difficult to polyfill statically and usually requires manual intervention. 3. calc() with var(): calc(var(--w) * 2) requires the variable value to be known at build time. 4. Scoped variables: Variables defined in specific selectors (not :root) may resolve differently depending on the DOM context, which static polyfills cannot fully replicate. 5. Increased file size: Each fallback adds extra bytes to your CSS bundle.
preserve: true option, which keeps the original var() declarations for modern browsers while adding fallbacks for IE11—exactly the strategy this online tool demonstrates. Alternative tools include css-vars-ponyfill (runtime) and postcss-ie11-custom-properties. This checker helps you understand and preview the transformation before integrating it into your build process.
Define and export design tokens for your project. Choose colors, spacing, and fonts, then download as CSS custom properties, JSON, or SCSS variables.
Upload a WebP image and automatically generate a <picture> tag with JPEG/PNG fallback. Ensure compatibility everywhere.
Pick colors for the shadcn/ui design system and generate the complete CSS variable theme file. Copy into your project.
Define a set of colors for light and dark themes. Get the CSS custom properties snippet. Toggle live.
Demonstrate how to add custom headers and POST‑like functionality to EventSource using a polyfill. Code and example.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
Type any character and see how it renders in different font stacks. Detect missing glyphs and fallback behavior.
Build a complete font‑stack for your website. Choose a primary font and get the best fallback options for different OS. Copy the CSS.