SuperAPI AI Directory

design

Design & creation

View repository

Updated 10-15 21:47

About this skill

freeCodeCamp UIKit (copy-source registry)

Components are COPIED into this project's source, shadcn-style. Nothing installs from npm.

Adding a component

  1. GET https://design.freecodecamp.org/registry/index.json - every item, its raw file URLs, npm deps, registry deps, and the registry version.
  2. Copy registryDependencies first (always theme; sometimes shared hooks).
  3. Fetch each files[].url verbatim and write it to files[].target (default src/ui/<slug>/).
  4. Import the component CSS once, globally.
  5. Need props or usage? https://design.freecodecamp.org/components/<slug>.md.

First-time setup in a project

Follow https://design.freecodecamp.org/registry/starter.md - theme install, self-hosted fonts, directory layout.

Rules

  • Keep CSS custom property (token) names intact - components reference them.
  • Recolour by editing token VALUES in src/ui/theme/tokens.css. Never hard-code colors in component CSS.
  • Dark is default; class="light-palette" on <html> for light.
  • Copied source is this project's code - tailor it freely, but do not re-fetch to "update" without diffing local edits first.