Skip to content

Commit 7130392

Browse files
authored
Deprecate marketing button tokens (#449)
1 parent 9352ca0 commit 7130392

File tree

4 files changed

+46
-49
lines changed

4 files changed

+46
-49
lines changed

.changeset/shy-islands-tap.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
'@primer/primitives': minor
3+
---
4+
5+
Deprecated marketing design tokens for Button components
6+
7+
Marketing tokens will be served from `@primer/brand-primitives` in future.
8+
9+
```bash
10+
npm install --save @primer/brand-primitives
11+
```
12+
13+
14+
```diff
15+
- ---color-mktg-btn-bg
16+
+ --brand-Button-background-base
17+
```
18+
19+
```diff
20+
- --color-mktg-btn-shadow-outline
21+
+ --brand-Button-shadow-default
22+
```
23+
24+
```diff
25+
- --color-mktg-btn-shadow-focus
26+
+ --brand-Button-shadow-focus
27+
```
28+
29+
```diff
30+
- --color-mktg-btn-shadow-hover
31+
+ --brand-Button-shadow-primary-hover
32+
```
33+
34+
```diff
35+
- --color-mktg-btn-shadow-muted
36+
+ --color-mktg-btn-shadow-hover-muted
37+
```
38+
39+
:link: [See the `0.9.0` for all other tokens.](https://unpkg.com/browse/@primer/brand-primitives@0.9.0/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css)

data/colors/deprecated.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
{}
1+
{
2+
"mktg.btn.bg": null,
3+
"mktg.btn.shadow.outline": null,
4+
"mktg.btn.shadow.focus": null,
5+
"mktg.btn.shadow.hover": null,
6+
"mktg.btn.shadow.hoverMuted": null
7+
}

src/tokens/functional/color/dark/marketing-dark.json5

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/tokens/functional/color/light/marketing-light.json5

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)