@asantemedia-org/atlas-copco-vt-storybook
v1.0.12
Published
Atlas Copco VTBA Design System - Storybook
Readme
Atlas Copco VTBA – Storybook
Storybook-based design system for Atlas Copco VTBA, bootstrapped from the Leybold Storybook boilerplate.
Tech stack
- React 18 + TypeScript
- Storybook 7 with
@storybook/nextjs - SCSS modules + Tailwind CSS + PostCSS
- Next.js 13 (App Router) for optional dev app
Getting started
# Install dependencies
npm install
# Run Storybook (default: http://localhost:6006)
npm run storybook
# Build static Storybook
npm run build-storybookScripts
| Script | Description |
|---------------------|--------------------------------|
| npm run storybook | Start Storybook dev server |
| npm run build-storybook | Build static Storybook |
| npm run dev | Start Next.js dev server |
| npm run build | Build Next.js app |
| npm run lint | Run ESLint |
Project structure
.storybook/ # Storybook config, theme, preview
src/
app/ # Next.js App Router (optional)
components/ # React components + *.stories.tsx
stories/ # Introduction & foundation MDX
utils/styles/ # Design tokens, base, typography
public/ # Static assetsAdding components
- Add a component under
src/components/<Name>/(e.g.Button.tsx,Button.module.scss). - Add
*.stories.tsxin the same folder or insrc/stories/. - Use design tokens from
src/utils/styles/base.scss(e.g.--atlascopco-blue).
Design tokens
- Primary:
--atlascopco-blue(#0062b0) - Greys:
--atlascopco-grey-100…--atlascopco-grey-600 - Typography:
--font-family-base(Inter), heading/body CSS vars inbase.scss
Customize tokens in src/utils/styles/base.scss and reuse in components.
