UI Enhancement Guidelines
Use this skill when improving the Anyapp user interface.
Component Library
Anyapp uses shadcn/ui components. Import from:
import { Button } from '@/components/ui/button'
import { Card } from '@/components/ui/card'
import { Dialog } from '@/components/ui/dialog'
Styling Guidelines
Tailwind CSS
- Use utility classes directly in components
- Follow mobile-first responsive design
- Use the neutral color palette for dark mode consistency
- Common patterns:
bg-neutral-950- main backgroundbg-neutral-900- card/panel backgroundbg-neutral-800- input/elevated surfacetext-neutral-50- primary texttext-neutral-400- secondary textborder-neutral-700/800- borders
Dark Mode
The app uses a dark theme by default. Ensure:
- Sufficient contrast for text readability
- Consistent use of the neutral color scale
- Hover/focus states are visible
Adding New Components
- Check if a shadcn/ui component exists first
- Read existing similar components for patterns
- Follow the existing file naming convention (kebab-case)
- Use named exports, not default exports
- Add TypeScript interfaces with TSDoc comments
State Management
- Use React hooks for local state
- Use IPC for data from main process
- Consider React Query for caching server state
Testing Changes
- Run
bun run devto start hot reload - Test in the Electron window
- Check responsive behavior
- Verify dark mode consistency
- Run
bun run typecheck:allbefore committing
Converted and distributed by TomeVault — claim your Tome and manage your conversions.