Skip to content

Commit

Permalink
[Tokens] Introduced new accent color tokens.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 506307041
  • Loading branch information
pekingme authored and dsn5ft committed Feb 1, 2023
1 parent 23dc14c commit dac9450
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Expand Up @@ -59,17 +59,29 @@

<!-- Generated from token set (md.sys.color) in context (theme=light, platform=android, audience=3p, scheme=dynamic). -->
<!-- Primary colors -->
<color name="m3_sys_color_dynamic_primary_fixed">@color/m3_ref_palette_dynamic_primary90</color>
<color name="m3_sys_color_dynamic_on_primary_fixed">@color/m3_ref_palette_dynamic_primary10</color>
<color name="m3_sys_color_dynamic_primary_fixed_dim">@color/m3_ref_palette_dynamic_primary80</color>
<color name="m3_sys_color_dynamic_on_primary_fixed_variant">@color/m3_ref_palette_dynamic_primary30</color>
<color name="m3_sys_color_dynamic_light_primary">@color/m3_ref_palette_dynamic_primary40</color>
<color name="m3_sys_color_dynamic_light_primary_container">@color/m3_ref_palette_dynamic_primary90</color>
<color name="m3_sys_color_dynamic_light_on_primary">@color/m3_ref_palette_dynamic_primary100</color>
<color name="m3_sys_color_dynamic_light_on_primary_container">@color/m3_ref_palette_dynamic_primary10</color>
<color name="m3_sys_color_dynamic_light_inverse_primary">@color/m3_ref_palette_dynamic_primary80</color>
<!-- Secondary colors -->
<color name="m3_sys_color_dynamic_secondary_fixed">@color/m3_ref_palette_dynamic_secondary90</color>
<color name="m3_sys_color_dynamic_on_secondary_fixed">@color/m3_ref_palette_dynamic_secondary10</color>
<color name="m3_sys_color_dynamic_secondary_fixed_dim">@color/m3_ref_palette_dynamic_secondary80</color>
<color name="m3_sys_color_dynamic_on_secondary_fixed_variant">@color/m3_ref_palette_dynamic_secondary30</color>
<color name="m3_sys_color_dynamic_light_secondary">@color/m3_ref_palette_dynamic_secondary40</color>
<color name="m3_sys_color_dynamic_light_secondary_container">@color/m3_ref_palette_dynamic_secondary90</color>
<color name="m3_sys_color_dynamic_light_on_secondary">@color/m3_ref_palette_dynamic_secondary100</color>
<color name="m3_sys_color_dynamic_light_on_secondary_container">@color/m3_ref_palette_dynamic_secondary10</color>
<!-- Tertiary colors -->
<color name="m3_sys_color_dynamic_tertiary_fixed">@color/m3_ref_palette_dynamic_tertiary90</color>
<color name="m3_sys_color_dynamic_on_tertiary_fixed">@color/m3_ref_palette_dynamic_tertiary10</color>
<color name="m3_sys_color_dynamic_tertiary_fixed_dim">@color/m3_ref_palette_dynamic_tertiary80</color>
<color name="m3_sys_color_dynamic_on_tertiary_fixed_variant">@color/m3_ref_palette_dynamic_tertiary30</color>
<color name="m3_sys_color_dynamic_light_tertiary">@color/m3_ref_palette_dynamic_tertiary40</color>
<color name="m3_sys_color_dynamic_light_tertiary_container">@color/m3_ref_palette_dynamic_tertiary90</color>
<color name="m3_sys_color_dynamic_light_on_tertiary">@color/m3_ref_palette_dynamic_tertiary100</color>
Expand Down
12 changes: 12 additions & 0 deletions lib/java/com/google/android/material/color/res/values/tokens.xml
Expand Up @@ -65,17 +65,29 @@

<!-- Generated from token set (md.sys.color) in context (theme=light, platform=android, audience=3p, scheme=non-dynamic). -->
<!-- Primary colors -->
<color name="m3_sys_color_primary_fixed">@color/m3_ref_palette_primary90</color>
<color name="m3_sys_color_on_primary_fixed">@color/m3_ref_palette_primary10</color>
<color name="m3_sys_color_primary_fixed_dim">@color/m3_ref_palette_primary80</color>
<color name="m3_sys_color_on_primary_fixed_variant">@color/m3_ref_palette_primary30</color>
<color name="m3_sys_color_light_primary">@color/m3_ref_palette_primary40</color>
<color name="m3_sys_color_light_primary_container">@color/m3_ref_palette_primary90</color>
<color name="m3_sys_color_light_on_primary">@color/m3_ref_palette_primary100</color>
<color name="m3_sys_color_light_on_primary_container">@color/m3_ref_palette_primary10</color>
<color name="m3_sys_color_light_inverse_primary">@color/m3_ref_palette_primary80</color>
<!-- Secondary colors -->
<color name="m3_sys_color_secondary_fixed">@color/m3_ref_palette_secondary90</color>
<color name="m3_sys_color_on_secondary_fixed">@color/m3_ref_palette_secondary10</color>
<color name="m3_sys_color_secondary_fixed_dim">@color/m3_ref_palette_secondary80</color>
<color name="m3_sys_color_on_secondary_fixed_variant">@color/m3_ref_palette_secondary30</color>
<color name="m3_sys_color_light_secondary">@color/m3_ref_palette_secondary40</color>
<color name="m3_sys_color_light_secondary_container">@color/m3_ref_palette_secondary90</color>
<color name="m3_sys_color_light_on_secondary">@color/m3_ref_palette_secondary100</color>
<color name="m3_sys_color_light_on_secondary_container">@color/m3_ref_palette_secondary10</color>
<!-- Tertiary colors -->
<color name="m3_sys_color_tertiary_fixed">@color/m3_ref_palette_tertiary90</color>
<color name="m3_sys_color_on_tertiary_fixed">@color/m3_ref_palette_tertiary10</color>
<color name="m3_sys_color_tertiary_fixed_dim">@color/m3_ref_palette_tertiary80</color>
<color name="m3_sys_color_on_tertiary_fixed_variant">@color/m3_ref_palette_tertiary30</color>
<color name="m3_sys_color_light_tertiary">@color/m3_ref_palette_tertiary40</color>
<color name="m3_sys_color_light_tertiary_container">@color/m3_ref_palette_tertiary90</color>
<color name="m3_sys_color_light_on_tertiary">@color/m3_ref_palette_tertiary100</color>
Expand Down

0 comments on commit dac9450

Please sign in to comment.