Skip to content

Commit f1d6bbb

Browse files
authored
feat: support tag theme customization (#671)
* feat: support key Tag props in component configs * Bump version * Rename vars
1 parent 55df624 commit f1d6bbb

12 files changed

Lines changed: 69 additions & 12 deletions

File tree

packages/common/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
<!-- template-start -->
1010

11+
## 8.72.0 ((5/12/2026, 02:00 PM PST))
12+
13+
This is an artificial version bump with no new change.
14+
1115
## 8.71.0 ((5/12/2026, 11:37 AM PST))
1216

1317
This is an artificial version bump with no new change.

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/cds-common",
3-
"version": "8.71.0",
3+
"version": "8.72.0",
44
"description": "Coinbase Design System - Common",
55
"repository": {
66
"type": "git",

packages/mcp-server/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
<!-- template-start -->
1010

11+
## 8.72.0 ((5/12/2026, 02:00 PM PST))
12+
13+
This is an artificial version bump with no new change.
14+
1115
## 8.71.0 ((5/12/2026, 11:37 AM PST))
1216

1317
This is an artificial version bump with no new change.

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/cds-mcp-server",
3-
"version": "8.71.0",
3+
"version": "8.72.0",
44
"description": "Coinbase Design System - MCP Server",
55
"repository": {
66
"type": "git",

packages/mobile/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
88

99
<!-- template-start -->
1010

11+
## 8.72.0 (5/12/2026 PST)
12+
13+
#### 🚀 Updates
14+
15+
- Feat: support key Tag props in component configs. [[#671](https://github.com/coinbase/cds/pull/671)]
16+
1117
## 8.71.0 (5/12/2026 PST)
1218

1319
#### 🚀 Updates

packages/mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/cds-mobile",
3-
"version": "8.71.0",
3+
"version": "8.72.0",
44
"description": "Coinbase Design System - Mobile",
55
"repository": {
66
"type": "git",

packages/mobile/src/system/__stories__/componentConfigStickerSheet/customComponentConfig.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,11 @@ export const customComponentConfig: ComponentConfig = {
137137
color: 'fgMuted',
138138
activeBackground: 'fg',
139139
},
140+
141+
Tag: {
142+
paddingY: 0.5,
143+
paddingX: 1,
144+
font: 'caption',
145+
emphasis: 'low',
146+
},
140147
};

packages/mobile/src/tag/Tag.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ import type {
1919
import { useComponentConfig } from '../hooks/useComponentConfig';
2020
import { useTheme } from '../hooks/useTheme';
2121
import { Icon } from '../icons/Icon';
22-
import { Box, type BoxProps } from '../layout';
22+
import { Box, type BoxBaseProps, type BoxProps } from '../layout/Box';
2323
import { Text } from '../typography/Text';
2424

2525
export type TagBaseProps = SharedProps &
26-
SharedAccessibilityProps & {
26+
SharedAccessibilityProps &
27+
Omit<BoxBaseProps, 'children' | 'color' | 'background'> & {
2728
/** Children to render within the Tag. */
2829
children: React.ReactNode;
2930
/**
@@ -84,7 +85,13 @@ export const Tag = memo(
8485
flexDirection = 'row',
8586
gap = 0.5,
8687
justifyContent = 'center',
88+
paddingX,
8789
paddingY = 0.25,
90+
font,
91+
fontFamily,
92+
fontSize,
93+
fontWeight,
94+
lineHeight,
8895
testID = 'cds-tag',
8996
...props
9097
} = mergedProps;
@@ -103,7 +110,7 @@ export const Tag = memo(
103110
flexDirection={flexDirection}
104111
gap={gap}
105112
justifyContent={justifyContent}
106-
paddingX={tagHorizontalSpacing[intent]}
113+
paddingX={paddingX ?? tagHorizontalSpacing[intent]}
107114
paddingY={paddingY}
108115
testID={testID}
109116
{...props}
@@ -116,7 +123,11 @@ export const Tag = memo(
116123

117124
<Text
118125
dangerouslySetColor={color}
119-
font={tagFontMap[intent]}
126+
font={font ?? tagFontMap[intent]}
127+
fontFamily={fontFamily}
128+
fontSize={fontSize}
129+
fontWeight={fontWeight}
130+
lineHeight={lineHeight}
120131
numberOfLines={1}
121132
testID={`${testID}--text`}
122133
>

packages/web/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
88

99
<!-- template-start -->
1010

11+
## 8.72.0 (5/12/2026 PST)
12+
13+
#### 🚀 Updates
14+
15+
- Feat: support key Tag props in component configs. [[#671](https://github.com/coinbase/cds/pull/671)]
16+
1117
## 8.71.0 (5/12/2026 PST)
1218

1319
#### 🚀 Updates

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/cds-web",
3-
"version": "8.71.0",
3+
"version": "8.72.0",
44
"description": "Coinbase Design System - Web",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)