Skip to content

Latest commit

 

History

History
98 lines (64 loc) · 3.07 KB

File metadata and controls

98 lines (64 loc) · 3.07 KB

How Codex Helped Build shadcn-extras

shadcn-extras is a collection of reusable React components, themes, and CSS tools. Codex helped analyze the codebase, implement features, connect project files, write documentation, and verify changes.

Main contributions

AI theme generator

Codex helped build the theme generator that creates a shadcn/ui theme from text or an image.

  • Gemini API integration
  • Light and dark color palettes
  • Safe validation of AI-generated colors, fonts, shadows, and radius
  • Theme preview and CSS export

Key files: app/theme-generator/, app/api/generate-theme/route.ts, components/themes/, and lib/themes/.

Complex components

Codex helped turn visual ideas into reusable, typed, and responsive components.

Examples include:

  • 3D circular and parallax galleries
  • Enlarge gallery
  • Holographic card
  • Animated testimonial carousel
  • Timeline, spinners, pricing cards, and animated icons

Components are stored in components/core/, with examples in app/docs/.

Tailwind and CSS generators

Codex helped create interactive generators for:

  • Shadows
  • Buttons
  • Tables
  • Cards, badges, inputs, and skeletons
  • Gradients, patterns, noise, and glassmorphism

Users can change settings, see a live preview, and copy the generated code. These tools are in components/tools/.

One-command component installation

Codex helped connect the components to a registry and CLI. Developers can add a component to their own project with one command:

npx shadcn-extras add kpi-card

List all available components with:

npx shadcn-extras list

The CLI copies editable source files into the developer's project and installs required dependencies. The main files are cli/src/index.ts, scripts/registry-build.ts, and scripts/registry-components.ts.

Storybook and testing

Codex helped integrate Storybook so components can be reviewed separately from the website.

  • Light and dark theme previews
  • Controls and interaction testing
  • Accessibility checks
  • Automatic component documentation
  • Jest and Testing Library tests

Run Storybook with:

npm run storybook

Stories are in stories/, tests are in __tests__/, and configuration is in .storybook/.

Development workflow

Codex supports the complete component workflow:

  1. Analyze similar components and project conventions.
  2. Build the component and responsive styles.
  3. Add examples, documentation, stories, and tests.
  4. Register the component for CLI installation.
  5. Run type checking, linting, tests, and builds.

The developer still controls the product idea, visual design, final review, and release decisions.

Quick review for judges

  1. Try the AI theme generator at /theme-generator.
  2. Try the shadow, button, and table generators under /tools.
  3. Review complex components in /docs.
  4. Run npm run storybook to see isolated component states.
  5. Run npx shadcn-extras add kpi-card in a React and Tailwind project to test one-command installation.

Codex helped make the project faster to develop, easier to test, and simpler for other developers to use.