Skip to content

Commit

Permalink
feat(themes): add skeleton tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
shixiedesign authored May 29, 2019
1 parent 705b1a2 commit a4c4fdb
Show file tree
Hide file tree
Showing 17 changed files with 181 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
$disabled-02: map-get($theme, 'disabled-02') !global;
$disabled-03: map-get($theme, 'disabled-03') !global;
$highlight: map-get($theme, 'highlight') !global;
$skeleton-01: map-get($theme, 'skeleton-01') !global;
$skeleton-02: map-get($theme, 'skeleton-02') !global;
$brand-01: map-get($theme, 'brand-01') !global;
$brand-02: map-get($theme, 'brand-02') !global;
$brand-03: map-get($theme, 'brand-03') !global;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ $carbon--theme--white: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -123,6 +125,8 @@ $carbon--theme--g10: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -185,6 +189,8 @@ $carbon--theme--g90: (
disabled-02: #565656,
disabled-03: #8c8c8c,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #565656,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -247,6 +253,8 @@ $carbon--theme--g100: (
disabled-02: #3d3d3d,
disabled-03: #6f6f6f,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #3d3d3d,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ $disabled-03: map-get($carbon--theme, 'disabled-03') !default;
/// @access public
/// @group @carbon/themes
$highlight: map-get($carbon--theme, 'highlight') !default;
/// Skeleton state of graphics
/// @type Color
/// @access public
/// @group @carbon/themes
$skeleton-01: map-get($carbon--theme, 'skeleton-01') !default;
/// Skeleton state of text
/// @type Color
/// @access public
/// @group @carbon/themes
$skeleton-02: map-get($carbon--theme, 'skeleton-02') !default;
/// @type Color
/// @access public
/// @group @carbon/themes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
$disabled-02: map-get($theme, 'disabled-02') !global;
$disabled-03: map-get($theme, 'disabled-03') !global;
$highlight: map-get($theme, 'highlight') !global;
$skeleton-01: map-get($theme, 'skeleton-01') !global;
$skeleton-02: map-get($theme, 'skeleton-02') !global;
$brand-01: map-get($theme, 'brand-01') !global;
$brand-02: map-get($theme, 'brand-02') !global;
$brand-03: map-get($theme, 'brand-03') !global;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ $carbon--theme--white: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -123,6 +125,8 @@ $carbon--theme--g10: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -185,6 +189,8 @@ $carbon--theme--g90: (
disabled-02: #565656,
disabled-03: #8c8c8c,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #565656,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -247,6 +253,8 @@ $carbon--theme--g100: (
disabled-02: #3d3d3d,
disabled-03: #6f6f6f,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #3d3d3d,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ $disabled-03: map-get($carbon--theme, 'disabled-03') !default;
/// @access public
/// @group @carbon/themes
$highlight: map-get($carbon--theme, 'highlight') !default;
/// Skeleton state of graphics
/// @type Color
/// @access public
/// @group @carbon/themes
$skeleton-01: map-get($carbon--theme, 'skeleton-01') !default;
/// Skeleton state of text
/// @type Color
/// @access public
/// @group @carbon/themes
$skeleton-02: map-get($carbon--theme, 'skeleton-02') !default;
/// @type Color
/// @access public
/// @group @carbon/themes
Expand Down
50 changes: 50 additions & 0 deletions packages/elements/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
- [✅disabled-02 [variable]](#disabled-02-variable)
- [✅disabled-03 [variable]](#disabled-03-variable)
- [✅highlight [variable]](#highlight-variable)
- [✅skeleton-01 [variable]](#skeleton-01-variable)
- [✅skeleton-02 [variable]](#skeleton-02-variable)
- [✅⚠️brand-01 [variable]](#brand-01-variable)
- [✅⚠️brand-02 [variable]](#brand-02-variable)
- [✅⚠️brand-03 [variable]](#brand-03-variable)
Expand Down Expand Up @@ -3341,6 +3343,8 @@ Define theme variables from a map of tokens
$disabled-02: map-get($theme, 'disabled-02') !global;
$disabled-03: map-get($theme, 'disabled-03') !global;
$highlight: map-get($theme, 'highlight') !global;
$skeleton-01: map-get($theme, 'skeleton-01') !global;
$skeleton-02: map-get($theme, 'skeleton-02') !global;
$brand-01: map-get($theme, 'brand-01') !global;
$brand-02: map-get($theme, 'brand-02') !global;
$brand-03: map-get($theme, 'brand-03') !global;
Expand Down Expand Up @@ -3442,6 +3446,8 @@ Define theme variables from a map of tokens
- [disabled-02 [variable]](#disabled-02-variable)
- [disabled-03 [variable]](#disabled-03-variable)
- [highlight [variable]](#highlight-variable)
- [skeleton-01 [variable]](#skeleton-01-variable)
- [skeleton-02 [variable]](#skeleton-02-variable)
- [brand-01 [variable]](#brand-01-variable)
- [brand-02 [variable]](#brand-02-variable)
- [brand-03 [variable]](#brand-03-variable)
Expand Down Expand Up @@ -3509,6 +3515,8 @@ $carbon--theme--white: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -3584,6 +3592,8 @@ $carbon--theme--g10: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -3657,6 +3667,8 @@ $carbon--theme--g90: (
disabled-02: #565656,
disabled-03: #8c8c8c,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #565656,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -3730,6 +3742,8 @@ $carbon--theme--g100: (
disabled-02: #3d3d3d,
disabled-03: #6f6f6f,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #3d3d3d,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -4686,6 +4700,42 @@ $highlight: map-get($carbon--theme, 'highlight');

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `Color`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅skeleton-01 [variable]

Skeleton state of graphics

<details>
<summary>Source code</summary>

```scss
$skeleton-01: map-get($carbon--theme, 'skeleton-01');
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `Color`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅skeleton-02 [variable]

Skeleton state of text

<details>
<summary>Source code</summary>

```scss
$skeleton-02: map-get($carbon--theme, 'skeleton-02');
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `Color`
- **Used by**:
Expand Down
50 changes: 50 additions & 0 deletions packages/themes/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
- [✅disabled-02 [variable]](#disabled-02-variable)
- [✅disabled-03 [variable]](#disabled-03-variable)
- [✅highlight [variable]](#highlight-variable)
- [✅skeleton-01 [variable]](#skeleton-01-variable)
- [✅skeleton-02 [variable]](#skeleton-02-variable)
- [✅⚠️brand-01 [variable]](#brand-01-variable)
- [✅⚠️brand-02 [variable]](#brand-02-variable)
- [✅⚠️brand-03 [variable]](#brand-03-variable)
Expand Down Expand Up @@ -136,6 +138,8 @@ Define theme variables from a map of tokens
$disabled-02: map-get($theme, 'disabled-02') !global;
$disabled-03: map-get($theme, 'disabled-03') !global;
$highlight: map-get($theme, 'highlight') !global;
$skeleton-01: map-get($theme, 'skeleton-01') !global;
$skeleton-02: map-get($theme, 'skeleton-02') !global;
$brand-01: map-get($theme, 'brand-01') !global;
$brand-02: map-get($theme, 'brand-02') !global;
$brand-03: map-get($theme, 'brand-03') !global;
Expand Down Expand Up @@ -237,6 +241,8 @@ Define theme variables from a map of tokens
- [disabled-02 [variable]](#disabled-02-variable)
- [disabled-03 [variable]](#disabled-03-variable)
- [highlight [variable]](#highlight-variable)
- [skeleton-01 [variable]](#skeleton-01-variable)
- [skeleton-02 [variable]](#skeleton-02-variable)
- [brand-01 [variable]](#brand-01-variable)
- [brand-02 [variable]](#brand-02-variable)
- [brand-03 [variable]](#brand-03-variable)
Expand Down Expand Up @@ -304,6 +310,8 @@ $carbon--theme--white: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -379,6 +387,8 @@ $carbon--theme--g10: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -452,6 +462,8 @@ $carbon--theme--g90: (
disabled-02: #565656,
disabled-03: #8c8c8c,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #565656,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -525,6 +537,8 @@ $carbon--theme--g100: (
disabled-02: #3d3d3d,
disabled-03: #6f6f6f,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #3d3d3d,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -1481,6 +1495,42 @@ $highlight: map-get($carbon--theme, 'highlight');

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `Color`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅skeleton-01 [variable]

Skeleton state of graphics

<details>
<summary>Source code</summary>

```scss
$skeleton-01: map-get($carbon--theme, 'skeleton-01');
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `Color`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅skeleton-02 [variable]

Skeleton state of text

<details>
<summary>Source code</summary>

```scss
$skeleton-02: map-get($carbon--theme, 'skeleton-02');
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `Color`
- **Used by**:
Expand Down
6 changes: 6 additions & 0 deletions packages/themes/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ tokens:
- name: highlight
role:
- interactive01 high light
- name: skeleton01
role:
- Skeleton state of graphics
- name: skeleton02
role:
- Skeleton state of text
- name: brand01
alias: interactive01
deprecated: true
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
$disabled-02: map-get($theme, 'disabled-02') !global;
$disabled-03: map-get($theme, 'disabled-03') !global;
$highlight: map-get($theme, 'highlight') !global;
$skeleton-01: map-get($theme, 'skeleton-01') !global;
$skeleton-02: map-get($theme, 'skeleton-02') !global;
$brand-01: map-get($theme, 'brand-01') !global;
$brand-02: map-get($theme, 'brand-02') !global;
$brand-03: map-get($theme, 'brand-03') !global;
Expand Down
8 changes: 8 additions & 0 deletions packages/themes/scss/_theme-maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ $carbon--theme--white: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -123,6 +125,8 @@ $carbon--theme--g10: (
disabled-02: #bebebe,
disabled-03: #8c8c8c,
highlight: #c9deff,
skeleton-01: #e5e5e5,
skeleton-02: #bebebe,
brand-01: #0062ff,
brand-02: #171717,
brand-03: #0062ff,
Expand Down Expand Up @@ -185,6 +189,8 @@ $carbon--theme--g90: (
disabled-02: #565656,
disabled-03: #8c8c8c,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #565656,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down Expand Up @@ -247,6 +253,8 @@ $carbon--theme--g100: (
disabled-02: #3d3d3d,
disabled-03: #6f6f6f,
highlight: #061f80,
skeleton-01: #353535,
skeleton-02: #3d3d3d,
brand-01: #0062ff,
brand-02: #6f6f6f,
brand-03: #ffffff,
Expand Down
Loading

0 comments on commit a4c4fdb

Please sign in to comment.