• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
vex

vex

css-theme-color-gen

Public
Like
css-theme-color-gen
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/30/2025
Viewing readonly version of main branch: v48
View latest version
README.md

css-theme-color-gen

An easy CSS theme color variable generator using query parameters as configuration.

Try tweaking the query parameters here and see the generated output: https://www.css-theme-color-gen.val.run?name=primary-theme-color&hsl=20deg,40pct,40pct&output-color-space=rgb

Query Parameters

NameValue FormatDocs
hsl<0-360>(deg)?,<0-100>(percent|pct)?,<0-100>(percent|pct)?WARNING: DO NOT USE THE LITERAL PERCENT SIGN (%) TO ANNOTATE THE SATURATION OR LIGHTNESS; ONLY USE THE WORDS percent OR pct.
A hue-saturation-lightness color modeled after the CSS function hsl().
rgb<0-255>,<0-255>,<0-255>A red-green-blue color.
color<check https://gka.github.io/chroma.js/#chroma>WARNING: DO NOT USE THE OCTOTHROPE # FOR HEX NUMBERS; JUST TYPE THE HEX NUMBER BY ITSELF
A color that is auto-detected by chroma.js. CSS color keywords and hexadecimal RGB work here.

hsl Can rgb, color: colorString, "alphas-generated": alphasGenerated = "10", name, style = "tailwind", "luminance-range-size": luminanceRangeSize = "100", "output-color-space": outputColorSpace = "oklab",

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.