A rich, dark-gradient React component library for the baole.space ecosystem
- ๐จ 45+ Components โ Comprehensive library with Ant Design-level prop richness
- ๐ Dark-First Design โ Optimized for dark mode with gradient accents
- ๐ฎ Glassmorphism โ Frosted glass surfaces with backdrop blur
- โก Fully Typed โ TypeScript strict mode, zero
anytypes - ๐ฏ Radix UI Primitives โ Accessible components built on Radix
- ๐ญ CVA Variants โ Flexible styling with class-variance-authority
- ๐ช Motion Ready โ Animation support via motion/react
- ๐ฆ Tree-shakeable โ Only import what you need
npm install @baolq/ui lucide-react
# or
pnpm add @baolq/ui lucide-react
# or
yarn add @baolq/ui lucide-reactImport the stylesheet in your app entry point:
// src/main.tsx or src/app/App.tsx
import '@baolq/ui/style.css'import { Button, Card, CardHeader, CardTitle, CardContent, Input } from '@baolq/ui'
import { Plus } from 'lucide-react'
function App() {
return (
<Card variant="glass">
<CardHeader>
<CardTitle>Welcome to @baolq/ui</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
<Input placeholder="Enter your name" />
<Button variant="gradient" leftIcon={<Plus size={16} />}>
Get Started
</Button>
</CardContent>
</Card>
)
}Comprehensive guidelines are available in the /guidelines/ directory:
- Guidelines.md โ Master index and AI workflow
- overview-components.md โ Complete component reference
- overview-icons.md โ Icon system documentation
- colors.md โ Color system and usage
- typography.md โ Font scales and text patterns (coming soon)
- spacing.md โ Layout and spacing conventions (coming soon)
Detailed documentation for each component:
- button.md โ Button variants, sizes, and states
- card.md โ Card compositions and patterns
- input.md โ Form inputs with validation (coming soon)
- ...and 40+ more component guides
Button, Input, Textarea, Select, Checkbox, RadioGroup, Switch, Slider, Form, Label, Toggle, ToggleGroup, InputOTP
Dialog, AlertDialog, Drawer, Sheet, Popover, HoverCard, Tooltip, DropdownMenu, ContextMenu
Alert, Toast (Sonner), Progress, Skeleton
Tabs, Breadcrumb, NavigationMenu, Menubar, Pagination, Sidebar
Table, Accordion, Collapsible, Calendar, Carousel, Chart, Command
Card, Separator, AspectRatio, ScrollArea, Resizable
Avatar, Badge
@baolq/ui embodies the creative energy of a developer, photographer, and gamer:
- Dark backgrounds โ Base:
#0f0c29with gradient overlays - Glassmorphism โ Frosted glass surfaces with
backdrop-blur - Gradient accents โ Purple โ Fuchsia โ Pink spectrum
- Subtle glows โ Color-matched shadows for depth
- White text โ High contrast on dark backgrounds
- Minimal borders โ
rgba(255,255,255,0.1)barely-visible dividers
"In code we trust, in games we clutch, in photos we overexpose (+0.3 EV)"
โ Bao LE, baked into every pixel of this component library
| Technology | Version | Purpose |
|---|---|---|
| React | 19+ | UI framework |
| TypeScript | 5+ | Type safety (strict mode) |
| Tailwind CSS | v4 | Utility-first styling |
| Radix UI | Latest | Accessible primitives |
| CVA | Latest | Variant management |
| Lucide React | Latest | Icon system |
| Motion | Latest | Animations (optional) |
| react-hook-form | Latest | Form handling |
| sonner | Latest | Toast notifications |
@baolq/ui/
โโโ src/
โ โโโ components/
โ โ โโโ button.tsx
โ โ โโโ card.tsx
โ โ โโโ input.tsx
โ โ โโโ ... (45+ components)
โ โโโ lib/
โ โ โโโ utils.ts # cn() helper
โ โโโ hooks/
โ โ โโโ use-mobile.ts
โ โ โโโ ...
โ โโโ tokens/
โ โ โโโ index.css # Design tokens
โ โโโ index.ts # Barrel export
โ โโโ index.css # Tailwind + utilities
โโโ guidelines/
โ โโโ Guidelines.md # Master documentation
โ โโโ overview-components.md
โ โโโ overview-icons.md
โ โโโ design-tokens/
โ โ โโโ colors.md
โ โ โโโ typography.md
โ โ โโโ spacing.md
โ โโโ components/
โ โโโ button.md
โ โโโ card.md
โ โโโ ... (29+ guides)
โโโ showcase/ # Demo application
โโโ tailwind-preset.ts # Tailwind preset export
โโโ README.md
Run the showcase app to see all components in action:
cd showcase
npm install
npm run devVisit http://localhost:5173 to explore:
- All 45+ components with live examples
- Multiple variants and states
- Interactive demos
- Code snippets
Contributions are welcome! Please read the Guidelines.md first.
# Clone the repository
git clone https://github.com/unique01082/components.baole.space.git
# Install dependencies
npm install
# Build the library
npm run build
# Run showcase
cd showcase
npm install
npm run devMIT ยฉ Bao LE
- GitHub: https://github.com/unique01082/components.baole.space
- Portfolio: https://baole.space
- NPM: (coming soon)
- Storybook: (coming soon)
Built with inspiration from:
- shadcn/ui โ Component architecture and patterns
- Ant Design โ Prop richness and completeness
- Radix UI โ Accessible primitives
- Tailwind CSS โ Utility-first styling philosophy
Implemented (Core):
- โ Button (7 variants, 6 sizes, loading, icons)
- โ Card (4 variants, hoverable, composable)
- โ Badge (8 variants, removable, dots)
- โ Input (validation, icons, clearable)
- โ Separator (gradient, labels)
- โ Skeleton (animated, variants)
In Progress:
- ๐ง Dialog, Sheet, Drawer
- ๐ง Select, Checkbox, RadioGroup
- ๐ง Tabs, Accordion, Table
- ๐ง Form (react-hook-form integration)
- ๐ง Toast (Sonner wrapper)
- ๐ง And 35+ more...
Made with ๐ for the baole.space ecosystem