Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(multiple): fallback to system level variables #29480

Merged
merged 7 commits into from
Jul 31, 2024

Conversation

andrewseguin
Copy link
Contributor

@andrewseguin andrewseguin commented Jul 24, 2024

Introduces a new theme API that takes the theme-config and emits system-level CSS variables. Component tokens will fallback to these system-level variables, removing the need to call component-specific mixins and setting fine-grained tokens.

This theme API is not exposed, because hardcoded values still fallback to M2 values in some cases. This will need to be updated before this API can be used, but it will require updating a number of internal screenshots. This will be a follow-up change before adding theme to the index.scss.

@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Jul 24, 2024
@andrewseguin andrewseguin force-pushed the theme-exp branch 6 times, most recently from 4901740 to 3f368a5 Compare July 30, 2024 15:24
@andrewseguin andrewseguin changed the title feat(multiple): experiment with system variables feat(multiple): fallback to system level variables Jul 30, 2024
@andrewseguin andrewseguin marked this pull request as ready for review July 30, 2024 15:26
@andrewseguin andrewseguin requested a review from a team as a code owner July 30, 2024 15:26
@andrewseguin andrewseguin requested review from crisbeto, amysorto, mmalerba and wagnermaciel and removed request for a team July 30, 2024 15:26
@andrewseguin andrewseguin force-pushed the theme-exp branch 2 times, most recently from 8c4b151 to af430cf Compare July 30, 2024 15:34
@andrewseguin andrewseguin added target: minor This PR is targeted for the next minor release target: patch This PR is targeted for the next patch release and removed target: minor This PR is targeted for the next minor release labels Jul 30, 2024
src/material/core/tokens/_m3-tokens.scss Outdated Show resolved Hide resolved
src/material/core/tokens/_m3-tokens.scss Outdated Show resolved Hide resolved
Copy link
Contributor

@wagnermaciel wagnermaciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Jul 30, 2024
@angular-robot angular-robot bot requested a review from crisbeto July 31, 2024 13:21
@andrewseguin andrewseguin removed the request for review from crisbeto July 31, 2024 15:21
@andrewseguin andrewseguin added target: minor This PR is targeted for the next minor release target: patch This PR is targeted for the next patch release and removed target: patch This PR is targeted for the next patch release target: minor This PR is targeted for the next minor release labels Jul 31, 2024
@andrewseguin andrewseguin merged commit db5b8dc into angular:main Jul 31, 2024
23 of 26 checks passed
@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 Aug 31, 2024
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: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants