How to use the @carbon/themes.unstable__meta.colors function in @carbon/themes

To help you get started, we’ve selected a few @carbon/themes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github carbon-design-system / carbon / packages / sketch / src / sharedStyles / themes.js View on Github external
.map(token => {
        const { type } = meta.colors.find(group => {
          return group.tokens.includes(token);
        });
        const name = `theme / ${theme.toLowerCase()} / ${type} tokens / ${formatTokenName(
          token
        )}`;
        return syncColorStyle(document, name, themes[theme][token]);
      });
  });

@carbon/themes

Themes for applying color in the Carbon Design System

Apache-2.0
Latest version published 1 month ago

Package Health Score

95 / 100
Full package analysis