Thanks for your interest in contributing!
git clone https://github.com/florextech/florex-ui.git
cd florex-ui
pnpm install
pnpm dev # watch mode
pnpm storybook # visual playground- Create
src/components/Name/Name.tsx - Create
src/__tests__/Name.test.tsx(2-3 tests minimum) - Create
src/stories/Name.stories.tsx - Create
docs/Name.mdx - Export in
src/index.ts
- Props must be
Readonly<> - Use
cn()from../../utils/cnfor class merging - Use
cvafromclass-variance-authorityfor variants - Use Tailwind canonical syntax:
text-(--muted)nottext-[var(--muted)] - Use CSS variables for all colors:
var(--brand-700), never hardcoded hex - Components that need icons internally should use
../../utils/icons(Phosphor with text fallback) - Use
forwardReffor form elements (Input, Textarea, Select, etc.)
pnpm lint # eslint + tailwind canonical
pnpm typecheck # tsc --noEmit
pnpm test # vitest
pnpm build # tsupUse conventional commits:
feat: add avatar componentfix: resolve tooltip positioningdocs: update button examplestest: add select testschore: update dependencies