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.
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/.
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/.
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/.
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-cardList all available components with:
npx shadcn-extras listThe 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.
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 storybookStories are in stories/, tests are in __tests__/, and configuration is in .storybook/.
Codex supports the complete component workflow:
- Analyze similar components and project conventions.
- Build the component and responsive styles.
- Add examples, documentation, stories, and tests.
- Register the component for CLI installation.
- Run type checking, linting, tests, and builds.
The developer still controls the product idea, visual design, final review, and release decisions.
- Try the AI theme generator at
/theme-generator. - Try the shadow, button, and table generators under
/tools. - Review complex components in
/docs. - Run
npm run storybookto see isolated component states. - Run
npx shadcn-extras add kpi-cardin 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.