Skip to content

Commit c62c578

Browse files
authored
feat(material-experimental/theming): provide hook for formatting toke… (#28660)
* feat(material-experimental/theming): provide hook for formatting tokens internally * fixup! feat(material-experimental/theming): provide hook for formatting tokens internally * fixup! feat(material-experimental/theming): provide hook for formatting tokens internally * fixup! feat(material-experimental/theming): provide hook for formatting tokens internally
1 parent c72add6 commit c62c578

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.ng-dev/google-sync-config.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"src/material/core/theming/tests/**/*",
3434
"src/material/core/tokens/tests/**",
3535
"src/material/expansion/index.ts",
36+
"src/material-experimental/theming/_format-tokens.scss",
3637
"**/*import.scss"
3738
]
3839
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// DO NOT REMOVE
2+
// This function is used internally.
3+
@function private-format-tokens($systems) {
4+
@return $systems;
5+
}

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

+5
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.private-format-tokens($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)