Skip to content

Commit

Permalink
feat(material/theming): Open up new APIs to access theme values
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mmalerba committed Sep 28, 2023
1 parent 06559a0 commit 68dc246
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/material/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 68dc246

Please sign in to comment.