/ nowkit

Theme generator

Light

9:41•••
Trips
A
✓ AllBeachCityHikes

Lisbon weekend

3 days · 2 friends · saved yesterday

BookShareLater

Price drop

Flights to Porto are 20% off

New
Home
Alerts
Profile
Settings

Dark

9:41•••
Trips
A
✓ AllBeachCityHikes

Lisbon weekend

3 days · 2 friends · saved yesterday

BookShareLater

Price drop

Flights to Porto are 20% off

New
Home
Alerts
Profile
Settings

Colour roles

Light scheme

primary

#65558F

primaryContainer

#E9DDFF

secondary

#625B71

secondaryContainer

#E8DEF8

tertiary

#7E5260

tertiaryContainer

#FFD9E3

error

#BA1A1A

errorContainer

#FFDAD6

surface

#FDF7FF

surfaceContainer

#F2ECF4

surfaceContainerHighest

#E6E0E9

inverseSurface

#322F35

outline

#7A757F

outlineVariant

#CAC4CF

surfaceDim

#DED8E0

surfaceBright

#FDF7FF

Dark scheme

primary

#CFBDFE

primaryContainer

#4D3D75

secondary

#CBC2DB

secondaryContainer

#4A4458

tertiary

#EFB8C8

tertiaryContainer

#633B48

error

#FFB4AB

errorContainer

#93000A

surface

#141218

surfaceContainer

#211F24

surfaceContainerHighest

#36343A

inverseSurface

#E6E0E9

outline

#948F99

outlineVariant

#49454E

surfaceDim

#141218

surfaceBright

#3B383E

Tonal palettes

Primary

0
10
20
30
40
50
60
70
80
90
95
99
100

Secondary

0
10
20
30
40
50
60
70
80
90
95
99
100

Tertiary

0
10
20
30
40
50
60
70
80
90
95
99
100

Neutral

0
10
20
30
40
50
60
70
80
90
95
99
100

Neutral variant

0
10
20
30
40
50
60
70
80
90
95
99
100

Error

0
10
20
30
40
50
60
70
80
90
95
99
100

Material 3 theme generator from one brand color

Pick one brand color and get a full Material 3 color scheme for light and dark mode. Copy the code for Jetpack Compose, SwiftUI, React Native or CSS, or download it all as a zip.

Free · runs in your browser · nothing is uploaded

How to make a Material 3 theme from one color

  1. Pick your brand color, or type its hex code.
  2. Choose a style. Tonal spot is Android's default. Content keeps your brand color closer.
  3. Check the light and dark previews. The buttons, chips, card and FAB use the real roles.
  4. Copy the file you need, or download the zip with every platform in it.

Where each file goes

PlatformFileWhere to put it
Jetpack ComposeColor.kt, Theme.ktui/theme/, then wrap your app in AppTheme { }
SwiftUIAppColors.swift or Colors.xcassetsAnywhere in your app target
React Native / Expotheme.tsYour src/ or constants/ folder
Webtheme.cssImport once, then use var(--md-sys-color-primary)

How the colors are made

Material 3 turns your seed into five tonal palettes: primary, secondary, tertiary, neutral and neutral variant. Each palette has tones from 0 (black) to 100 (white) in the HCT color space, so the same tone number has the same lightness in every hue. Light mode uses tone 40 for primary, dark mode uses tone 80. That is why the contrast stays right in both modes. Read more in Google's Material 3 color system guide.

The math here is Google's open source Material Color Utilities (Apache 2.0), version 0.3.0, running in your browser.

FAQ

+Is this the same algorithm as Google's Material Theme Builder?

Yes. It runs Google's Material Color Utilities (Apache 2.0) in your browser: the HCT color space, tonal palettes and the Tonal spot and Content schemes. A seed of #6750A4 gives a light primary of #65558F, the same as Material Theme Builder.

+Why is my primary color not exactly my brand color?

Tonal spot picks the tone that reads well on a light or dark surface, so the primary is often a little darker or lighter than your seed. Pick the Content style if you want your exact brand color to show up as the primary container.

+Should I turn on dynamic color in Compose?

Dynamic color uses the user's wallpaper on Android 12 and newer, so your brand color disappears. The generated Theme.kt has dynamicColor set to false by default. Turn it on only if you don't mind that.

+Does the SwiftUI code need an asset catalog?

No. AppColors.swift builds each color with a light and dark value in code. If you prefer Xcode's asset catalog, the zip also has a Colors.xcassets folder with one color set per role.

+Can I use it with React Native Paper?

Yes. The role names in theme.ts match Material 3, which is what React Native Paper's MD3 themes use. Spread lightTheme.colors and darkTheme.colors over MD3LightTheme and MD3DarkTheme.

+Is anything uploaded?

No. The colors are computed in your browser and the zip is built on your device.

More free tools