fufa-comlib
v1.0.0
Published
This project uses React + TypeScript + Vite with Storybook and Tailwind CSS.
Readme
FutureFace Storybook (Atomic Design + Tailwind)
This project uses React + TypeScript + Vite with Storybook and Tailwind CSS.
Tech stack
- Vite 7 + React 19
- Storybook 10 (
@storybook/react-vite) - Tailwind CSS 4 (via
@tailwindcss/vite)
Atomic Design structure
Components are organized by atomic design in src/components:
src/components/
atoms/
molecules/
organisms/
templates/
pages/Each level includes Storybook stories using the Atomic/... title hierarchy.
Available scripts
npm run dev– run Vite app locallynpm run build– type-check and production buildnpm run storybook– run Storybook locally on port 6006npm run build-storybook– build static Storybook outputnpm run test:components– run Vitest browser tests for all stories insrc/componentsnpm run test:components:watch– run story tests in watch modenpm run chromatic– publish Storybook to Chromatic (CHROMATIC_PROJECT_TOKENrequired)
Component testing coverage
Storybook is configured to load stories from:
src/components/**/*.stories.@(js|jsx|mjs|ts|tsx)Each component in src/components has a matching story file, so npm run test:components
executes interaction/a11y tests for all components via the Storybook Vitest integration.
Chromatic setup
- Create a project in Chromatic and copy the project token.
- Set
CHROMATIC_PROJECT_TOKENin your CI provider secrets. - Run
npm run chromaticlocally or in CI.
Tailwind usage
Tailwind is loaded in src/index.css with:
@import "tailwindcss";and enabled in vite.config.ts using the Tailwind Vite plugin.
