Skip to content

Commit 05d4db0

Browse files
committed
feat: provide hook for formatting tokens internally
1 parent f6e8584 commit 05d4db0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// DO NOT REMOVE
2+
// This function is used internally.
3+
@function format($systems) {
4+
@return $systems;
5+
}

src/material-experimental/theming/_m3-tokens.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@use '@material/tokens/v0_161' as mdc-tokens;
66
@use './m3-density';
77
@use './custom-tokens';
8+
@use './format-tokens';
89

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

@@ -500,6 +501,10 @@
500501
), $systems);
501502
$exclude-hardcoded: not $include-non-systemized;
502503

504+
// DO NOT REMOVE
505+
// This function is used internally.
506+
$systems: format-tokens.format($systems);
507+
503508
// TODO(mmalerba): Refactor this to not depend on the legacy theme when moving out of
504509
// material-experimental. This is a hack for now because there is no good way to get the token
505510
// slots in material-experimental without exposing them all from material.

0 commit comments

Comments
 (0)