Skip to content

Commit 8f9df8d

Browse files
authored
Use tighter letter-spacing for Display (#2909)
1 parent e0000a1 commit 8f9df8d

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

.changeset/early-gifts-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sumup-oss/circuit-ui": minor
3+
---
4+
5+
Applied tighter letter spacing to the Display component.

.changeset/gold-monkeys-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sumup-oss/design-tokens": minor
3+
---
4+
5+
Added the `--cui-letter-spacing-tight` token. Use it for very large typography.

packages/circuit-ui/components/Display/Display.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
margin: 0;
33
font-weight: var(--cui-font-weight-bold);
44
color: var(--cui-fg-normal);
5-
letter-spacing: var(--cui-letter-spacing);
5+
letter-spacing: var(--cui-letter-spacing-tight);
66
}
77

88
/* Weights */

packages/design-tokens/themes/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export const schema = [
237237
{ name: '--cui-numeral-s-font-size', type: 'dimension' },
238238
{ name: '--cui-numeral-s-line-height', type: 'dimension' },
239239
{ name: '--cui-letter-spacing', type: 'dimension' },
240+
{ name: '--cui-letter-spacing-tight', type: 'dimension' },
240241
/* eslint-disable @sumup-oss/circuit-ui/no-deprecated-custom-properties */
241242
{
242243
name: '--cui-typography-headline-one-font-size',

packages/design-tokens/themes/shared.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export const shared = [
9292
value: '-0.01375rem',
9393
type: 'dimension',
9494
},
95+
{
96+
name: '--cui-letter-spacing-tight',
97+
value: '-0.08rem',
98+
type: 'dimension',
99+
},
95100
/* Icon sizes */
96101
{
97102
name: '--cui-icon-sizes-kilo',

0 commit comments

Comments
 (0)