Skip to content

Commit

Permalink
✨ feat: グラデーションを追加し、それをStorybookのデフォルトの背景色するとする
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi0602 committed Dec 12, 2023
1 parent c342e75 commit a83182f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ export const parameters: Parameters = {
),
},
backgrounds: {
default: 'gradientBlue',
values: [
{
name: 'blue',
value: colors.blue,
name: 'gradientBlue',
value: colors.gradientBlue,
},
],
},
Expand Down
1 change: 1 addition & 0 deletions src/styles/themes.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const colors = {
purple: '#B01CF6',
red: '#E6002F',
lightRed: '#FBD4D4',
gradientBlue: 'linear-gradient(#0078B7, #001E43)',
} as const;

export type Color = keyof typeof colors;
Expand Down

0 comments on commit a83182f

Please sign in to comment.