Skip to content

Commit

Permalink
Match interactive color tokens to default values (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jul 19, 2024
1 parent 717d814 commit a1f877a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-pots-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/design-tokens': patch
---

Matched the interactive variants of the `fg-normal`, `fg-subtle`, `fg-on-strong`, and `fg-on-strong-subtle` color tokens to their default values.
1 change: 1 addition & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ jobs:
externals: |
'.storybook/public/**'
'packages/design-tokens/**'
'packages/icons/**'
4 changes: 1 addition & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import path from 'node:path';
import remarkGfm from 'remark-gfm';
import { mergeConfig } from 'vite';

const toPath = (filePath: string) => path.join(process.cwd(), filePath);

const config: StorybookConfig = {
staticDirs: [toPath('.storybook/public')],
staticDirs: [path.join(process.cwd(), '.storybook/public')],
stories: [
'../packages/circuit-ui/**/*.@(mdx|stories.@(js|jsx|ts|tsx))',
'../docs/**/*.@(mdx|stories.@(js|jsx|ts|tsx))',
Expand Down
20 changes: 10 additions & 10 deletions packages/design-tokens/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ export const light = [
},
{
name: '--cui-fg-normal-hovered',
value: '#52565d',
value: '#0f131a',
type: 'color',
},
{
name: '--cui-fg-normal-pressed',
value: '#565c65',
value: '#0f131a',
type: 'color',
},
{
Expand All @@ -323,12 +323,12 @@ export const light = [
},
{
name: '--cui-fg-subtle-hovered',
value: '#33373e',
value: '#6a737c',
type: 'color',
},
{
name: '--cui-fg-subtle-pressed',
value: '#0f131a',
value: '#6a737c',
type: 'color',
},
{
Expand All @@ -343,12 +343,12 @@ export const light = [
},
{
name: '--cui-fg-placeholder-hovered',
value: '#86929e',
value: '#9da7b1',
type: 'color',
},
{
name: '--cui-fg-placeholder-pressed',
value: '#657381',
value: '#9da7b1',
type: 'color',
},
{
Expand All @@ -363,12 +363,12 @@ export const light = [
},
{
name: '--cui-fg-on-strong-hovered',
value: 'rgba(255, 255, 255, 0.8000)',
value: '#ffffff',
type: 'color',
},
{
name: '--cui-fg-on-strong-pressed',
value: 'rgba(255, 255, 255, 0.8000)',
value: '#ffffff',
type: 'color',
},
{
Expand All @@ -383,12 +383,12 @@ export const light = [
},
{
name: '--cui-fg-on-strong-subtle-hovered',
value: 'rgba(255, 255, 255, 0.8000)',
value: 'rgba(255, 255, 255, 0.7000)',
type: 'color',
},
{
name: '--cui-fg-on-strong-subtle-pressed',
value: 'rgba(255, 255, 255, 0.8000)',
value: 'rgba(255, 255, 255, 0.7000)',
type: 'color',
},
{
Expand Down

0 comments on commit a1f877a

Please sign in to comment.