Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(material/theming): Open up new APIs to access theme values#27865

Merged
mmalerba merged 1 commit intoangular:mainfrom
mmalerba:open-inspection
Oct 1, 2023
Merged

feat(material/theming): Open up new APIs to access theme values#27865
mmalerba merged 1 commit intoangular:mainfrom
mmalerba:open-inspection

Conversation

@mmalerba
Copy link
Contributor

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

@mmalerba mmalerba added the target: major This PR is targeted for the next major release label Sep 28, 2023
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Sep 28, 2023
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Sep 28, 2023
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
@mmalerba mmalerba requested a review from jelbourn as a code owner September 28, 2023 18:39
@mmalerba mmalerba removed the request for review from jelbourn October 1, 2023 17:38
@mmalerba mmalerba merged commit 82844b3 into angular:main Oct 1, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants