From 68dc246b3ce775c71304bf35db76260181a27f04 Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Thu, 28 Sep 2023 18:22:08 +0000 Subject: [PATCH] feat(material/theming): Open up new APIs to access theme values This PR opens up the following Sass APIs used to access theme values: - `get-theme-version`: Gets the version of the theme object - `get-theme-type`: Gets the type of theme (light or dark) - `get-theme-color`: Gets a color from the theme - `get-theme-typography`: Gets a typography value from the theme - `get-theme-density`: Gets the density scale from the theme - `theme-has`: Checks if the theme has information for the given theming system --- src/material/_index.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/material/_index.scss b/src/material/_index.scss index 67f5981b2bd7..10e11d74c54e 100644 --- a/src/material/_index.scss +++ b/src/material/_index.scss @@ -142,7 +142,6 @@ list-density, list-base; $private-mdc-base-styles-query, $private-mdc-base-styles-without-animation-query, $private-mdc-theme-styles-query, $private-mdc-typography-styles-query; -// New theming APIs, currently in development: -@forward './core/theming/inspection' as private-* show private-get-theme-version, - private-get-theme-type, private-get-theme-color, private-get-theme-typography, - private-get-theme-density, private-theme-has; +// New theming APIs: +@forward './core/theming/inspection' show get-theme-version, get-theme-type, get-theme-color, + get-theme-typography, get-theme-density, theme-has;