@codophile/ui
v0.1.0
Published
Theme-based React UI primitives (glass, vintage). Install a theme, own the source.
Maintainers
Readme
@codophile/ui
Theme-based React UI primitives for Tailwind CSS. Import a theme (glass or vintage); each includes Button, Card, and Input with that theme’s styles.
Full documentation (Next.js setup, Tailwind, CLI, troubleshooting, publishing):
github.com/YOUR_GITHUB_ORG/codophile
Install
npm install @codophile/uiPeer dependency: React 18+.
Usage
import { Button, Card, Input } from "@codophile/ui/glass";import { Button, Card, Input } from "@codophile/ui/vintage";Next.js (App Router)
transpilePackages: ["@codophile/ui"]innext.config.ts.- Tailwind v4:
@sourceyournode_modules/@codophile/uipath in global CSS (see main README). - Use the imports above in client or server components.
Copy source into your repo
Use the codophile CLI (install @codophile/ui + codophile, then npx codophile add glass). Files land in components/ui/<theme>/.
Exports
| Path | Description |
| ----------------------- | ---------------- |
| @codophile/ui/glass | Glass theme |
| @codophile/ui/vintage | Vintage theme |
License
MIT
