Skip to content

feat(material-experimental/theming): provide hook for formatting toke… #28660

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

Merged
merged 4 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ng-dev/google-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"src/material/core/theming/tests/**/*",
"src/material/core/tokens/tests/**",
"src/material/expansion/index.ts",
"src/material-experimental/theming/_format-tokens.scss",
"**/*import.scss"
]
}
5 changes: 5 additions & 0 deletions src/material-experimental/theming/_format-tokens.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// DO NOT REMOVE
// This function is used internally.
@function private-format-tokens($systems) {
@return $systems;
}
5 changes: 5 additions & 0 deletions src/material-experimental/theming/_m3-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@use '@material/tokens/v0_161' as mdc-tokens;
@use './m3-density';
@use './custom-tokens';
@use './format-tokens';

// TODO(mmalerba): Split up this file into smaller pieces.

Expand Down Expand Up @@ -500,6 +501,10 @@
), $systems);
$exclude-hardcoded: not $include-non-systemized;

// DO NOT REMOVE
// This function is used internally.
$systems: format-tokens.private-format-tokens($systems);

// TODO(mmalerba): Refactor this to not depend on the legacy theme when moving out of
// material-experimental. This is a hack for now because there is no good way to get the token
// slots in material-experimental without exposing them all from material.
Expand Down