Web Designer Skill
This skill guides you through creating professional UI components that match the Leave Maximiser project's architectural and stylistic constraints.
Instructions
1. Gather Context
- •Read
AGENTS.mdto refresh memory on naming conventions and tech stack. - •Read
.factory/skills/web-designer/references.mdto see the "Gold Standard" component structure. - •Read
src/styles.cssto understand global styles.
2. Design Phase
- •Propose a layout that fits the "modern, clean, and usable" aesthetic (Dark mode default:
bg-slate-900,text-slate-100, accentscyan-500/blue-500). - •Plan for responsiveness (mobile-first approach).
- •Select icons from
lucide-solid.
3. Implementation Phase
- •Create/Edit the component file (e.g.,
src/components/MyComponent.tsx). - •Strictly follow:
- •SolidJS: Use
createSignal,<Show>,<For>. - •Tailwind: Use utility classes directly in JSX.
- •Typography: Use standard Tailwind sans/mono stacks.
- •SolidJS: Use
- •Ensure
tabindentation (Biome requirement).
4. Verification Phase
- •Run
npm run checkto verify linting and formatting. Fix all errors. - •Review the code against
.factory/skills/web-designer/checklist.md. - •Ensure no
anytypes are used (Strict TS).
Example Usage
bash
# User: "Create a footer component" # Droid: Invokes web-designer skill