Skip to content

Commit

Permalink
feat(styles): add component tokens to button, tag
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Sep 14, 2021
1 parent cb5b4bd commit fd71cc6
Show file tree
Hide file tree
Showing 5 changed files with 1,169 additions and 686 deletions.
8 changes: 4 additions & 4 deletions packages/carbon-react/.storybook/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
@use '../scss/components/tag';

:root {
@include styles.theme(styles.$white, button.$white, tag.$white);
@include styles.theme(styles.$white);
}

[data-carbon-theme='g10'] {
@include styles.theme(styles.$g10, button.$g10, tag.$g10);
@include styles.theme(styles.$g10);
}

[data-carbon-theme='g90'] {
@include styles.theme(styles.$g90, button.$g90, tag.$g90);
@include styles.theme(styles.$g90);
}

[data-carbon-theme='g100'] {
@include styles.theme(styles.$g100, button.$g100, tag.$g100);
@include styles.theme(styles.$g100);
}

body {
Expand Down
4 changes: 4 additions & 0 deletions packages/styles/scss/components/button/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
@forward 'vars';
@forward 'button';
@forward 'tokens';

@use '../../theme';
@use 'button';
@use 'tokens';

@include theme.add-component-tokens(tokens.$button-tokens);
@include button.button;
Loading

0 comments on commit fd71cc6

Please sign in to comment.