Skip to content

Commit

Permalink
feat(type): add new type tokens for productive and expressive (carbon…
Browse files Browse the repository at this point in the history
…-design-system#512)

* Update type tokens

* chore(type): sync changes to sass
  • Loading branch information
jeanservaas authored and joshblack committed May 2, 2019
1 parent 1cc4059 commit 9020b75
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 37 deletions.
106 changes: 106 additions & 0 deletions packages/elements/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,16 @@
- [✅code-01 [variable]](#code-01-variable)
- [✅code-02 [variable]](#code-02-variable)
- [✅heading-01 [variable]](#heading-01-variable)
- [✅productive-heading-01 [variable]](#productive-heading-01-variable)
- [✅heading-02 [variable]](#heading-02-variable)
- [✅productive-heading-02 [variable]](#productive-heading-02-variable)
- [✅productive-heading-03 [variable]](#productive-heading-03-variable)
- [✅productive-heading-04 [variable]](#productive-heading-04-variable)
- [✅productive-heading-05 [variable]](#productive-heading-05-variable)
- [✅productive-heading-06 [variable]](#productive-heading-06-variable)
- [✅productive-heading-07 [variable]](#productive-heading-07-variable)
- [✅expressive-heading-01 [variable]](#expressive-heading-01-variable)
- [✅expressive-heading-02 [variable]](#expressive-heading-02-variable)
- [✅expressive-heading-03 [variable]](#expressive-heading-03-variable)
- [✅expressive-heading-04 [variable]](#expressive-heading-04-variable)
- [✅expressive-heading-05 [variable]](#expressive-heading-05-variable)
Expand Down Expand Up @@ -6676,6 +6682,20 @@ $heading-01: (
- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-01 [variable]

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

```scss
$productive-heading-01: $heading-01;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅heading-02 [variable]

<details>
Expand All @@ -6695,6 +6715,20 @@ $heading-02: (
- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-02 [variable]

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

```scss
$productive-heading-02: $heading-02;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-03 [variable]

<details>
Expand Down Expand Up @@ -6752,6 +6786,72 @@ $productive-heading-05: (
- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-06 [variable]

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

```scss
$productive-heading-06: (
font-size: carbon--type-scale(8),
font-weight: carbon--font-weight('light'),
line-height: carbon--rem(50px),
letter-spacing: 0,
);
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-07 [variable]

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

```scss
$productive-heading-07: (
font-size: carbon--type-scale(10),
font-weight: carbon--font-weight('light'),
line-height: carbon--rem(64px),
letter-spacing: 0,
);
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅expressive-heading-01 [variable]

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

```scss
$expressive-heading-01: $heading-01;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅expressive-heading-02 [variable]

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

```scss
$expressive-heading-02: $heading-02;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅expressive-heading-03 [variable]

<details>
Expand Down Expand Up @@ -7149,10 +7249,16 @@ $tokens: (
code-02: $code-02,
heading-01: $heading-01,
heading-02: $heading-02,
productive-heading-01: $productive-heading-01,
productive-heading-02: $productive-heading-02,
productive-heading-03: $productive-heading-03,
productive-heading-04: $productive-heading-04,
productive-heading-05: $productive-heading-05,
productive-heading-06: $productive-heading-06,
productive-heading-07: $productive-heading-07,
expressive-paragraph-01: $expressive-paragraph-01,
expressive-heading-01: $expressive-heading-01,
expressive-heading-02: $expressive-heading-02,
expressive-heading-03: $expressive-heading-03,
expressive-heading-04: $expressive-heading-04,
expressive-heading-05: $expressive-heading-05,
Expand Down
106 changes: 106 additions & 0 deletions packages/type/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@
- [✅code-01 [variable]](#code-01-variable)
- [✅code-02 [variable]](#code-02-variable)
- [✅heading-01 [variable]](#heading-01-variable)
- [✅productive-heading-01 [variable]](#productive-heading-01-variable)
- [✅heading-02 [variable]](#heading-02-variable)
- [✅productive-heading-02 [variable]](#productive-heading-02-variable)
- [✅productive-heading-03 [variable]](#productive-heading-03-variable)
- [✅productive-heading-04 [variable]](#productive-heading-04-variable)
- [✅productive-heading-05 [variable]](#productive-heading-05-variable)
- [✅productive-heading-06 [variable]](#productive-heading-06-variable)
- [✅productive-heading-07 [variable]](#productive-heading-07-variable)
- [✅expressive-heading-01 [variable]](#expressive-heading-01-variable)
- [✅expressive-heading-02 [variable]](#expressive-heading-02-variable)
- [✅expressive-heading-03 [variable]](#expressive-heading-03-variable)
- [✅expressive-heading-04 [variable]](#expressive-heading-04-variable)
- [✅expressive-heading-05 [variable]](#expressive-heading-05-variable)
Expand Down Expand Up @@ -2069,6 +2075,20 @@ $heading-01: (
- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-01 [variable]

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

```scss
$productive-heading-01: $heading-01;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅heading-02 [variable]

<details>
Expand All @@ -2088,6 +2108,20 @@ $heading-02: (
- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-02 [variable]

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

```scss
$productive-heading-02: $heading-02;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-03 [variable]

<details>
Expand Down Expand Up @@ -2145,6 +2179,72 @@ $productive-heading-05: (
- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-06 [variable]

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

```scss
$productive-heading-06: (
font-size: carbon--type-scale(8),
font-weight: carbon--font-weight('light'),
line-height: carbon--rem(50px),
letter-spacing: 0,
);
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅productive-heading-07 [variable]

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

```scss
$productive-heading-07: (
font-size: carbon--type-scale(10),
font-weight: carbon--font-weight('light'),
line-height: carbon--rem(64px),
letter-spacing: 0,
);
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅expressive-heading-01 [variable]

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

```scss
$expressive-heading-01: $heading-01;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅expressive-heading-02 [variable]

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

```scss
$expressive-heading-02: $heading-02;
```

</details>

- **Group**: [@carbon/type](#carbontype)
- **Type**: `Map`

### ✅expressive-heading-03 [variable]

<details>
Expand Down Expand Up @@ -2542,10 +2642,16 @@ $tokens: (
code-02: $code-02,
heading-01: $heading-01,
heading-02: $heading-02,
productive-heading-01: $productive-heading-01,
productive-heading-02: $productive-heading-02,
productive-heading-03: $productive-heading-03,
productive-heading-04: $productive-heading-04,
productive-heading-05: $productive-heading-05,
productive-heading-06: $productive-heading-06,
productive-heading-07: $productive-heading-07,
expressive-paragraph-01: $expressive-paragraph-01,
expressive-heading-01: $expressive-heading-01,
expressive-heading-02: $expressive-heading-02,
expressive-heading-03: $expressive-heading-03,
expressive-heading-04: $expressive-heading-04,
expressive-heading-05: $expressive-heading-05,
Expand Down
46 changes: 46 additions & 0 deletions packages/type/scss/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ $heading-01: (
letter-spacing: 0.16px,
) !default;

/// @type Map
/// @access public
/// @group @carbon/type
$productive-heading-01: $heading-01 !default;

/// @type Map
/// @access public
/// @group @carbon/type
Expand All @@ -118,6 +123,11 @@ $heading-02: (
letter-spacing: 0,
) !default;

/// @type Map
/// @access public
/// @group @carbon/type
$productive-heading-02: $heading-02 !default;

/// @type Map
/// @access public
/// @group @carbon/type
Expand Down Expand Up @@ -148,6 +158,36 @@ $productive-heading-05: (
letter-spacing: 0,
) !default;

/// @type Map
/// @access public
/// @group @carbon/type
$productive-heading-06: (
font-size: carbon--type-scale(8),
font-weight: carbon--font-weight('light'),
line-height: carbon--rem(50px),
letter-spacing: 0,
) !default;

/// @type Map
/// @access public
/// @group @carbon/type
$productive-heading-07: (
font-size: carbon--type-scale(10),
font-weight: carbon--font-weight('light'),
line-height: carbon--rem(64px),
letter-spacing: 0,
) !default;

/// @type Map
/// @access public
/// @group @carbon/type
$expressive-heading-01: $heading-01 !default;

/// @type Map
/// @access public
/// @group @carbon/type
$expressive-heading-02: $heading-02 !default;

/// @type Map
/// @access public
/// @group @carbon/type
Expand Down Expand Up @@ -443,10 +483,16 @@ $tokens: (
code-02: $code-02,
heading-01: $heading-01,
heading-02: $heading-02,
productive-heading-01: $productive-heading-01,
productive-heading-02: $productive-heading-02,
productive-heading-03: $productive-heading-03,
productive-heading-04: $productive-heading-04,
productive-heading-05: $productive-heading-05,
productive-heading-06: $productive-heading-06,
productive-heading-07: $productive-heading-07,
expressive-paragraph-01: $expressive-paragraph-01,
expressive-heading-01: $expressive-heading-01,
expressive-heading-02: $expressive-heading-02,
expressive-heading-03: $expressive-heading-03,
expressive-heading-04: $expressive-heading-04,
expressive-heading-05: $expressive-heading-05,
Expand Down
Loading

0 comments on commit 9020b75

Please sign in to comment.