Components (components/)
This directory follows atomic design principles to organize UI components by complexity:
Structure
Conventions
- Styling: All components use Tailwind CSS utility classes via string constants at the bottom of each file. No component-scoped CSS files — use Tailwind’s
cn()helper from@/lib/utilsfor conditional classes. - State: Components access state via Zustand stores from
@/data/store— never prop-drill store data. - Bridge calls: Use
nativeFunction()from@/data/bridgefor C++ communication. - Barrel exports: Each folder has an
index.tsfor clean imports (e.g.,import { Button } from '@/components/atoms').