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.
No. The image is read and recolored on a canvas in your browser. Nothing is sent to a server.
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.
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
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.