Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit c58632a

Browse files
committed
Add zero tokens for consistency as per team decision
1 parent 64ee750 commit c58632a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.changeset/brown-ghosts-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/polaris-tokens': minor
3+
---
4+
5+
Add 0 tokens where missing as per [the team's decision](https://github.com/Shopify/polaris/discussions/7334#discussioncomment-4988991).

polaris-tokens/src/themes/base/border.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type BorderRadiusAlias = 'full';
1616

1717
export type BorderRadiusAliasOrScale = BorderRadiusAlias | BorderRadiusScale;
1818

19-
export type BorderWidthScale = '0165' | '025' | '050' | '100';
19+
export type BorderWidthScale = '0' | '0165' | '025' | '050' | '100';
2020

2121
export type BorderTokenName =
2222
| `border-radius-${BorderRadiusAliasOrScale}`
@@ -59,6 +59,9 @@ export const border: {
5959
'border-radius-full': {
6060
value: '9999px',
6161
},
62+
'border-width-0': {
63+
value: size['0'],
64+
},
6265
'border-width-0165': {
6366
value: size['0165'],
6467
},

polaris-tokens/src/themes/base/zIndex.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {MetaTokenProperties} from '../types';
22

33
export type ZIndexZScale =
4+
| '0'
45
| '1'
56
| '2'
67
| '3'
@@ -23,6 +24,9 @@ export type ZIndexTokenGroup = {
2324
export const zIndex: {
2425
[TokenName in ZIndexTokenName]: MetaTokenProperties;
2526
} = {
27+
'z-index-0': {
28+
value: 'auto',
29+
},
2630
'z-index-1': {
2731
value: '100',
2832
},

0 commit comments

Comments
 (0)