Skip to content

Commit

Permalink
revert: feat(color): add color folder for md-sys-color theming APIs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 559268365
  • Loading branch information
asyncLiz authored and Copybara-Service committed Aug 23, 2023
1 parent e0201e5 commit a528393
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 353 deletions.
193 changes: 0 additions & 193 deletions color/_color.scss

This file was deleted.

9 changes: 7 additions & 2 deletions testing/table/internal/_test-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use '../../../color/color';
@use '../../../tokens';
// go/keep-sorted end

Expand Down Expand Up @@ -97,6 +96,12 @@ $dark-theme: tokens.md-comp-test-table-values(
}

:host([dark]) {
@include color.dark-theme;
$dark: tokens.md-sys-color-values-dark(
$exclude-custom-properties: true,
);

@each $token, $value in $dark {
--md-sys-color-#{$token}: #{$value};
}
}
}
102 changes: 1 addition & 101 deletions tokens/_md-ref-palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,108 +5,8 @@

// go/keep-sorted start
@use './v0_172/md-ref-palette';
@use './values';
// go/keep-sorted end

$supported-tokens: (
// go/keep-sorted start
'black',
'error0',
'error10',
'error100',
'error20',
'error30',
'error40',
'error50',
'error60',
'error70',
'error80',
'error90',
'error95',
'error99',
'neutral-variant0',
'neutral-variant10',
'neutral-variant100',
'neutral-variant20',
'neutral-variant30',
'neutral-variant40',
'neutral-variant50',
'neutral-variant60',
'neutral-variant70',
'neutral-variant80',
'neutral-variant90',
'neutral-variant95',
'neutral-variant99',
'neutral0',
'neutral10',
'neutral100',
'neutral12',
'neutral17',
'neutral20',
'neutral22',
'neutral24',
'neutral30',
'neutral4',
'neutral40',
'neutral50',
'neutral6',
'neutral60',
'neutral70',
'neutral80',
'neutral87',
'neutral90',
'neutral92',
'neutral94',
'neutral95',
'neutral96',
'neutral98',
'neutral99',
'primary0',
'primary10',
'primary100',
'primary20',
'primary30',
'primary40',
'primary50',
'primary60',
'primary70',
'primary80',
'primary90',
'primary95',
'primary99',
'secondary0',
'secondary10',
'secondary100',
'secondary20',
'secondary30',
'secondary40',
'secondary50',
'secondary60',
'secondary70',
'secondary80',
'secondary90',
'secondary95',
'secondary99',
'tertiary0',
'tertiary10',
'tertiary100',
'tertiary20',
'tertiary30',
'tertiary40',
'tertiary50',
'tertiary60',
'tertiary70',
'tertiary80',
'tertiary90',
'tertiary95',
'tertiary99',
'white',
// go/keep-sorted end
);

@function values($exclude-hardcoded-values: false) {
@return values.validate(
md-ref-palette.values($exclude-hardcoded-values),
$supported-tokens: $supported-tokens
);
@return md-ref-palette.values($exclude-hardcoded-values);
}

0 comments on commit a528393

Please sign in to comment.