Use The Design System

If the project already has a UI system, use it before building anything new. Use this WHENEVER you add or change UI in an existing codebase: a button, modal, form, card, page, or any component. Look first for the project's component library, design tokens, theme, and utility setup (a components or ui folder, shadcn/ui, MUI, Chakra, Mantine, Radix, a Tailwind config, CSS variables), and build with those. Reinventing a button from scratch when the project has one creates inconsistency and duplicate work. Only hand-roll a component when nothing in the system fits, and then match the system's conventions so it belongs.

TheArmagan 0a81ff3 3.5 KB Updated

File contents

TheArmagan/skills/tree/main/use-the-design-system commit 0a81ff3212

Frequently asked questions

npx skillmds@latest add thearmagan/use-the-design-system