Skip to content

Commit

Permalink
feat(material-experimental/theming): provide hook for formatting toke…
Browse files Browse the repository at this point in the history
…ns internally
  • Loading branch information
wagnermaciel committed Feb 28, 2024
1 parent f6e8584 commit 0f56cf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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 format($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.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

0 comments on commit 0f56cf6

Please sign in to comment.