CSS Variables Generator
Visually generate CSS custom property code with Tailwind CSS v4 format export support.
Color Variables
rgb(99, 102, 241)hsl(239, 84%, 67%)
rgb(139, 92, 246)hsl(258, 90%, 66%)
rgb(244, 114, 182)hsl(329, 86%, 70%)
rgb(255, 255, 255)hsl(0, 0%, 100%)
rgb(24, 24, 27)hsl(240, 6%, 10%)
rgb(244, 244, 245)hsl(240, 5%, 96%)
rgb(228, 228, 231)hsl(240, 6%, 90%)
Font Variables
Spacing Variables
Radius Variables
Generated Code
Usage Guide
Variable Types
Supports four types of CSS custom properties: color, font, spacing, and radius. Color variables auto-calculate RGB and HSL values, spacing variables provide visual preview, and radius variables show real-time border-radius effects.
Output Format
!Tailwind CSS v4: Uses the @theme directive per v4 spec; Standard CSS: Outputs :root block; SCSS: Uses $ variable syntax
Color Picker
Click the color swatch to open the system color picker, or enter a HEX value in the input field manually. Items with an empty variable name are automatically filtered out.
Related tools
More from the same category · Developer Tools
Cron ExpressionVisual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.JSON FormatterJSON beautify, minify and validate with auto error location for missing brackets and stray commas.Timestamp ConverterConvert Unix timestamps to dates and back with second/millisecond precision and live current time.Regex TesterTest regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.JWT ParserSplit a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.JWT GeneratorIssue JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.