From 4869909123c37a4910f5fde3f70d59cda4b44816 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Thu, 10 Oct 2024 11:25:23 -0600 Subject: [PATCH] feat(material/core): rename theme mixin (#29857) --- src/dev-app/theme-m3.scss | 6 +++--- src/material/_index.scss | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dev-app/theme-m3.scss b/src/dev-app/theme-m3.scss index 6ac97f257b29..9326e4824a2b 100644 --- a/src/dev-app/theme-m3.scss +++ b/src/dev-app/theme-m3.scss @@ -47,7 +47,7 @@ html { } body.demo-experimental-theme { - @include mat.private-experimental-theme(( + @include mat.theme(( color: ( theme-type: light, primary: $primary, @@ -83,7 +83,7 @@ body.demo-unicorn-dark-theme { } &.demo-experimental-theme { - @include mat.private-experimental-theme(( + @include mat.theme(( color: ( theme-type: dark, primary: $primary, @@ -110,7 +110,7 @@ $density-scales: (-1, -2, -3, -4, minimum, maximum); } body.demo-experimental-theme & { - @include mat.private-experimental-theme((density: $scale)); + @include mat.theme((density: $scale)); } } } diff --git a/src/material/_index.scss b/src/material/_index.scss index 7a6e4c634274..3278a881b836 100644 --- a/src/material/_index.scss +++ b/src/material/_index.scss @@ -20,8 +20,7 @@ @forward './core/tokens/m2' show m2-tokens-from-theme; @forward './core/tokens/m3-system' show system-level-colors, system-level-typography, system-level-elevation, system-level-shape, - system-level-motion, system-level-state; -@forward './core/tokens/m3-system' as private-experimental-* show private-experimental-theme; + system-level-motion, system-level-state, theme; // Private/Internal @forward './core/density/private/all-density' show all-component-densities;