Skip to content

Commit

Permalink
style: use figma.tokens.json as basis for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Aug 29, 2024
1 parent f51c27b commit cf5bd34
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions proprietary/design-tokens/style-dictionary-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ const build = async () => {
});

register(StyleDictionary, {
// TODO: Enable `excludeParentKeys` when Figma is the source of design tokens
// excludeParentKeys: true,
excludeParentKeys: true,
});

const sd = new StyleDictionary({
...createStyleDictionaryConfig({
selector: `.${themeConfig.prefix}-theme`,
source: [
"figma/figma.tokens.json",
"src/**/tokens.json",
"src/**/*.tokens.json",
],
}),
log: "warn",
preprocessors: ["tokens-studio", "dtcg-delegate"],
Expand Down

0 comments on commit cf5bd34

Please sign in to comment.