Skip to content

unique01082/components.baole.space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

@baolq/ui โ€” React Component Library

A rich, dark-gradient React component library for the baole.space ecosystem

Version React TypeScript Tailwind License


โœจ Features

  • ๐ŸŽจ 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 any types
  • ๐ŸŽฏ 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

๐Ÿš€ Quick Start

Installation

npm install @baolq/ui lucide-react
# or
pnpm add @baolq/ui lucide-react
# or
yarn add @baolq/ui lucide-react

Setup

Import the stylesheet in your app entry point:

// src/main.tsx or src/app/App.tsx
import '@baolq/ui/style.css'

Usage

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>
  )
}

๐Ÿ“š Documentation

Comprehensive guidelines are available in the /guidelines/ directory:

Getting Started

  1. Guidelines.md โ€” Master index and AI workflow
  2. overview-components.md โ€” Complete component reference
  3. overview-icons.md โ€” Icon system documentation

Design Tokens

  • colors.md โ€” Color system and usage
  • typography.md โ€” Font scales and text patterns (coming soon)
  • spacing.md โ€” Layout and spacing conventions (coming soon)

Component Guides

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

๐ŸŽจ Component Categories

Inputs & Forms

Button, Input, Textarea, Select, Checkbox, RadioGroup, Switch, Slider, Form, Label, Toggle, ToggleGroup, InputOTP

Overlays

Dialog, AlertDialog, Drawer, Sheet, Popover, HoverCard, Tooltip, DropdownMenu, ContextMenu

Feedback

Alert, Toast (Sonner), Progress, Skeleton

Navigation

Tabs, Breadcrumb, NavigationMenu, Menubar, Pagination, Sidebar

Data Display

Table, Accordion, Collapsible, Calendar, Carousel, Chart, Command

Layout

Card, Separator, AspectRatio, ScrollArea, Resizable

Utility

Avatar, Badge


๐ŸŽฏ Design Philosophy

@baolq/ui embodies the creative energy of a developer, photographer, and gamer:

Visual Language

  • Dark backgrounds โ€” Base: #0f0c29 with 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

Philosophy Quote

"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


๐Ÿ› ๏ธ Tech Stack

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

๐Ÿ“ฆ Project Structure

@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

๐ŸŽฎ Showcase

Run the showcase app to see all components in action:

cd showcase
npm install
npm run dev

Visit http://localhost:5173 to explore:

  • All 45+ components with live examples
  • Multiple variants and states
  • Interactive demos
  • Code snippets

๐Ÿค Contributing

Contributions are welcome! Please read the Guidelines.md first.

Development Setup

# 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 dev

๐Ÿ“„ License

MIT ยฉ Bao LE


๐Ÿ”— Links


๐Ÿ™ Acknowledgments

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

๐Ÿ“Š Component Checklist

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages