About the theme preview

The theme preview shows a Material 3 color scheme on your own interface instead of a sample app. Drop in a screenshot of your app or site, or paste its HTML and CSS, and see it in any seed color, scheme style and mode.

Screenshots are recolored pixel by pixel. Every color keeps its lightness (its HCT tone) and takes its hue from the theme, so grays become the neutral palette and colored parts the primary, secondary or tertiary palette. Pasted HTML gets the --md-sys-color-* tokens, the component gallery's classes and, if you want, the same mapping for its hard-coded hex colors. Nothing leaves your browser.

How to use it

  1. Pick a seed color and scheme style, or open the preview from the theme builder.
  2. Drop a screenshot, or switch to HTML and CSS and paste your markup.
  3. Drag the slider to compare before and after, switch to dark mode, then download the PNG or export the theme.

Questions

Is my screenshot uploaded?

No. The image is read and recolored on a canvas in your browser. Nothing is sent to a server.

How accurate is the recolored screenshot?

It is a quick approximation for judging a palette. Colors keep their lightness and take the theme's hue, so layouts, contrast and hierarchy stay the same, but every colored element gets the same accent palette. Dark mode inverts lightness, which also flips photos and shadows. For exact role colors, use the theme builder export.

Which HTML works in the preview?

Any HTML with a style block. Code that uses var(--md-sys-color-primary) and the other Material tokens, or the md- classes from the component gallery, picks the theme up directly. With Recolor hex colors on, fixed

How do I use the theme in my app afterwards?

Open the theme builder from the preview and export CSS tokens, Tailwind, Compose, Android XML, Flutter, design tokens or Figma variables, then replace hard-coded colors with the matching roles.