Skip to content

Instantly share code, notes, and snippets.

@Waxaranai
Created August 23, 2026 10:43
Show Gist options
  • Select an option

  • Save Waxaranai/203147e1445b010837f6cf7efd5d7f87 to your computer and use it in GitHub Desktop.

Select an option

Save Waxaranai/203147e1445b010837f6cf7efd5d7f87 to your computer and use it in GitHub Desktop.

SettingsLib Material Theme Color Scheme

Source: frameworks/base/packages/SettingsLib/SettingsTheme/res/values/colors.xml (day) and values-night/colors.xml (night).

Swatches are rendered as inline HTML color chips (GitHub strips raw HTML in some contexts, but renders it in <details>/browsers and many MD viewers).

Core Material 3 Roles

Role Day Night
primary #006B5F #83D6C7
onPrimary #FFFFFF #003730
primaryContainer #C5EAE2 #005047
onPrimaryContainer #00201C #A1F1E2
primaryInverse #83D6C7 #A1F1E2
secondary #4A635E #B1CCC6
onSecondary #FFFFFF #1C342F
secondaryContainer #CCE8E2 #334C47
onSecondaryContainer #051F1B #CCE8E2
tertiary #456179 #ADCAE5
onTertiary #FFFFFF #123349
tertiaryContainer #CBE6FF #2D4960
onTertiaryContainer #001E31 #CEE7FF
error #B3261E #F2B8B5
onError #FFFFFF #601410
errorContainer #F9DEDC #8C1D18
onErrorContainer #3A0A08 #F9DEDC

Surfaces

Role Day Night
background #F9FAF8 #131313
onBackground #1B1B1B #E5E2E1
surface #F9FAF8 #131313
onSurface #1B1B1B #E5E2E1
surfaceVariant #E3E3E3 #474747
onSurfaceVariant #474747 #C7C7C7
surfaceInverse #303030 #E5E2E1
onSurfaceInverse #F1F1F1 #303030
surfaceBright #F9FAF8 #393939
surfaceDim #DADADA #131313
surfaceContainer #EEEEEE #1F1F1F
surfaceContainerLow #F4F4F4 #0E0E0E
surfaceContainerLowest #FFFFFF #1B1B1B
surfaceContainerHigh #E8E8E8 #2A2A2A
surfaceContainerHighest #E3E3E3 #343434

Outlines

Role Day Night
outline #777777 #919191
outlineVariant #C7C6C5 #474747

Error Palette (day only)

Role Swatch
error_0 #FFFFFF
error_10 #FFFBFF
error_50 #FFEDEA
error_100 #FFDAD6
error_200 #FFB4AB
error_300 #FF897D
error_400 #FF5449
error_500 #DE3730
error_600 #BA1A1A
error_700 #93000A
error_800 #690005
error_900 #410002
error_1000 #000000

Status Level Colors

Role Day Night
backgroundLevel_high m3_ref_palette_red50 m3_ref_palette_red60
contentLevel_high m3_ref_palette_red100 m3_ref_palette_red10
backgroundLevel_medium m3_ref_palette_yellow80 —
contentLevel_medium m3_ref_palette_yellow10 —
backgroundLevel_low m3_ref_palette_green50 m3_ref_palette_green70
contentLevel_low m3_ref_palette_green100 m3_ref_palette_green10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment