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(material-experimental/theming): provide hook for formatting toke… #28660

Merged
merged 4 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
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-internal-format($systems) {
wagnermaciel marked this conversation as resolved.
Show resolved Hide resolved
@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-internal-format($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
Loading