How Theme Tokens works
Browse the Material 3 color roles that style jakelawrence.xyz, grouped by job. Each swatch is painted from the page as it is right now, so it follows the look (Material or Glass) and the scheme (light or dark); click to copy the hex.
Reads each role as a CSS custom property, resolves it through a hidden probe element and re-resolves whenever the theme attributes on the html element change, picking legible label text from each color's luminance.
Questions
- Where do these values come from?
- From the page itself. Each swatch reads a --md-sys-color-* custom property, which the generated theme stylesheet defines for every look and scheme.
- Do these change in dark mode?
- Yes. Switch the scheme or the look and the swatches re-resolve, so you see what the site actually paints.
- How do I use a role?
- In CSS, var(--md-sys-color-primary). In JavaScript, the legacy T accessor shown beside a role (for example T.red) is a var() pointing at it.
More Generate tools
- QR CodeURL, text, or contact card
- ShareX Config BuilderGenerate a .sxcu custom uploader
- Color PaletteHEX / RGB / HSL converter
- Regex TesterLive match highlighting
- Cron BuilderHuman-readable schedules
- Lorem IpsumParagraphs, sentences, words
- Aspect RatioCalculate and convert aspect ratios
- Markdown TableVisual editor for markdown tables
- Placeholder ImageCustom placeholder images for mockups
- Meta Tag PreviewerSee how links unfurl across platforms
- Contrast CheckerWCAG AA and AAA contrast ratio
- Favicon GeneratorEmoji, text, or image favicons
- Secret GeneratorRandom keys and passwords
- UUID GeneratorBulk v4 and v7 UUIDs
- Date CalculatorDays between dates, date math, time zones
- Chmod CalculatorUnix permissions: octal, symbolic, command