Skip to content

Commit

Permalink
design: 스토리북 커스터마이징
Browse files Browse the repository at this point in the history
  • Loading branch information
cobocho committed Jun 12, 2024
1 parent 6dceab0 commit ce2d017
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 17 deletions.
15 changes: 7 additions & 8 deletions apps/web/src/app/(onboarding)/onboarding/job/page.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ import { OnBoardingProvider } from '../_context/useOnboarding'

import OnboardingJobPage from './page'

const meta = {
const meta: Meta<typeof OnboardingJobPage> = {
title: 'OnboardingJob',
component: OnboardingJobPage,
parameters: {
layout: 'centered',
},
} satisfies Meta<typeof OnboardingJobPage>

export default meta

type Story = StoryObj<typeof meta>

export const Preview: Story = {
decorators: [
(Story) => (
<AppRouterContext.Provider value={{} as AppRouterInstance}>
Expand All @@ -35,3 +28,9 @@ export const Preview: Story = {
),
],
}

export default meta

type Story = StoryObj<typeof meta>

export const Preview: Story = {}
16 changes: 16 additions & 0 deletions apps/workshop/.storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { addons } from '@storybook/manager-api'
import { themes } from '@storybook/theming'
import { create } from '@storybook/theming/create'

addons.setConfig({
theme: create({
base: 'light',
brandTitle: 'Vook Client Workshop',
brandImage: '/logo.png',

colorPrimary: '#3A10E5',
colorSecondary: '#5D5CE5',

barTextColor: '#FFFFFF',
}),
})
6 changes: 4 additions & 2 deletions apps/workshop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@vook-client/api": "*",
"@vook-client/design-system": "*",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@vook-client/api": "*"
"react-dom": "^18.3.1"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.3.3",
Expand All @@ -22,9 +22,11 @@
"@storybook/addon-onboarding": "^8.0.10",
"@storybook/addon-styling-webpack": "^1.0.0",
"@storybook/blocks": "^8.0.10",
"@storybook/manager-api": "^8.1.7",
"@storybook/react": "^8.0.10",
"@storybook/react-vite": "^8.0.10",
"@storybook/test": "^8.0.10",
"@storybook/theming": "^8.1.7",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vanilla-extract/vite-plugin": "^4.0.9",
Expand Down
Binary file added apps/workshop/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 117 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce2d017

Please sign in to comment.