https://github.com/pittaya-ui/ui-kit
Pittaya UI kit
https://github.com/pittaya-ui/ui-kit
nextjs react shadcn shadcn-ui taildwindcss typescript ui-library uikit
Last synced: about 2 months ago
JSON representation
Pittaya UI kit
- Host: GitHub
- URL: https://github.com/pittaya-ui/ui-kit
- Owner: pittaya-ui
- License: mit
- Created: 2025-08-11T17:40:18.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-01-26T19:44:21.000Z (2 months ago)
- Last Synced: 2026-01-27T03:56:18.321Z (about 2 months ago)
- Topics: nextjs, react, shadcn, shadcn-ui, taildwindcss, typescript, ui-library, uikit
- Language: TypeScript
- Homepage: https://ui.pittaya.org/
- Size: 1.33 MB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shadcn-ui - Link - 01-27 | (Libs and Components)
README
# Pittaya UI
### Components that scale with your ideas
A fully open-source UI library for React, powered by TypeScript and Tailwind CSS. Fast, composable, and ready for production.
[](https://github.com/pittaya-ui/ui-kit)
[](https://github.com/pittaya-ui/ui-kit/graphs/contributors)
[](./LICENSE)
[](https://github.com/pittaya-ui/ui-kit/commits/main)
[Components](https://ui.pittaya.org/docs/components) ยท [Report Bug](https://github.com/pittaya-ui/ui-kit/issues) ยท [Request Feature](https://github.com/pittaya-ui/ui-kit/issues)
---
## ๐ Overview
**Pittaya UI** is a modern, accessible, and highly customizable component library built on top of industry-leading tools like **React**, **TypeScript**, **Tailwind CSS**, **Shadcn UI**, and **Radix UI**.
Our mission is to provide developers with production-ready components that are:
- โก **Fast** โ Optimized for performance with Server Components
- ๐จ **Beautiful** โ Modern design with smooth animations
- โฟ **Accessible** โ Built with accessibility in mind (ARIA compliant)
- ๐ง **Customizable** โ Full TypeScript support with flexible variants
- ๐ฑ **Responsive** โ Mobile-first approach for all screen sizes
---
## ๐ Quick Start
### Prerequisites
- Node.js 18+
- npm, yarn or pnpm
### Installation
1. **Clone the repository**
```bash
git clone https://github.com/pittaya-ui/ui-kit.git
cd ui-kit
```
2. **Install dependencies**
```bash
npm install
```
3. **Run the development server**
```bash
npm run dev
```
4. **Open your browser**
Navigate to [http://localhost:3000](http://localhost:3000)
---
## ๐ฆ Available Components
| Component | Status | Category | Description |
| ------------------------ | --------- | ------------- | ----------------------------------------------------------------- |
| **Announcement Badge** | โ
Stable | Components | Displays a badge with an icon and a title |
| **Button** | โ
Stable | Actions | Displays a button or a component that looks like a button |
| **Card** | โ
Stable | Components | Displays a card with a title, description, content and footer |
| **Carousel** | โ
Stable | Components | Displays a carousel of images or content |
| **Copy Button** | โ
Stable | Actions | Displays a copy button that copies text to clipboard when clicked |
| **Installation Section** | โ
Stable | Documentation | Displays installation instructions with code snippets |
| **Orbit Images** | โ
Stable | Components | Displays a set of images in an orbiting motion |
| **Tabs** | โ
Stable | Navigation | A set of layered sections of content displayed one at a time |
> ๐ง More components coming soon! Check our [roadmap](https://github.com/pittaya-ui/ui-kit/issues) for planned features.
---
## ๐๏ธ Project Architecture
```
pittaya-ui/
โโโ src/
โ โโโ app/ # Next.js App Router
โ โ โโโ docs/ # Documentation pages
โ โ โ โโโ components/[slug]/ # Dynamic component docs
โ โ
โ โโโ components/ # React components
โ โ โโโ ui/ # UI primitives
โ โ โโโ docs/ # Documentation components
โ โ
โ โโโ lib/ # Utility functions
โ โ โโโ docs/ # Documentation system
โ โ โโโ utils.ts # Helper functions
โ โ โโโ query-client.ts # React Query config
โ โ
โ โโโ hooks/ # Custom React hooks
โ โ
โ โโโ services/ # API services
โ โ
โ โโโ providers/ # Context providers
โ โ
โ โโโ constants/ # Constants & config
โ
โโโ public/ # Static assets
โ
โโโ docs/ # Internal documentation
โ
โโโ package.json
โโโ tsconfig.json
โโโ next.config.ts
โโโ README.md
```
---
## ๐ง Tech Stack
### Core
- **[Next.js 15](https://nextjs.org/)** - React framework with App Router
- **[React 19](https://react.dev/)** - UI library
- **[TypeScript 5](https://www.typescriptlang.org/)** - Type safety
### Styling
- **[Tailwind CSS 4](https://tailwindcss.com/)** - Utility-first CSS
- **[Radix UI](https://www.radix-ui.com/)** - Unstyled, accessible components
- `@radix-ui/react-slot` - Composition utility
- `@radix-ui/react-separator` - Separator component
- `@radix-ui/react-tabs` - Tabs component
- **[Class Variance Authority](https://cva.style/)** - Component variants
- **[Tailwind Merge](https://github.com/dcastil/tailwind-merge)** - Merge Tailwind classes
### UI Components
- **[Lucide React](https://lucide.dev/)** - Icon library
- **[Sonner](https://sonner.emilkowal.ski/)** - Toast notifications
- **[React Syntax Highlighter](https://react-syntax-highlighter.github.io/react-syntax-highlighter/)** - Code highlighting
- **[Unicorn Studio](https://unicornstudio.io/)** - Animated backgrounds
- **[clsx](https://github.com/lukeed/clsx)** - Utility for constructing className strings
### State & Data
- **[TanStack Query](https://tanstack.com/query/)** - Server state management
- **[Next Themes](https://github.com/pacocoursey/next-themes)** - Theme management
### Development
- **[ESLint](https://eslint.org/)** - Code linting
- **[Prettier](https://prettier.io/)** - Code formatting
- **[Vercel Analytics](https://vercel.com/analytics)** - Performance monitoring
- **[Vercel Speed Insights](https://vercel.com/docs/speed-insights)** - Real user metrics
---
## ๐ Documentation System
Pittaya UI features a comprehensive documentation system built with:
### Key Features
- **Live Code Preview** - See components in action
- **Copy-Paste Code** - One-click code snippets
- **API Reference** - Complete props documentation
- **Best Practices** - Usage guidelines and patterns
- **Accessibility** - A11y notes for each component
- **Table of Contents** - Easy navigation within docs
- **Responsive Layout** - Mobile-friendly documentation
### Adding New Components
Follow these steps to document a new component:
**1. Add to Component Index** (`src/lib/docs/components-index.ts`)
```typescript
{
slug: "your-component",
name: "Your Component",
description: "Brief description of what the component does.",
category: "Components", // or "Actions", "Documentation", etc.
status: "stable",
tags: ["feature", "interaction"],
dependencies: ["@radix-ui/react-slot"], // Optional: external dependencies
internalDependencies: ["button"] // Optional: other UI components used
}
```
**2. Create Documentation** (`src/lib/docs/component-details.tsx`)
- Import the component
- Define metadata, sections, props, examples, and TOC
- Add to the `docs` registry
**3. Test the Documentation**
- Navigate to `/docs/components/your-component`
- Verify all sections render correctly
> ๐ **For complete step-by-step instructions**, including examples and troubleshooting, see [COMPONENT_DOCS_GUIDE.md](./docs/COMPONENT_DOCS_GUIDE.md)
---
## ๐จ Design Principles
### 1. Accessibility First
All components follow WCAG guidelines and are keyboard navigable with proper ARIA attributes.
### 2. Composability
Components are designed to work together seamlessly with consistent APIs and behavior.
### 3. Performance
Server Components by default, minimal client-side JavaScript, and optimized bundle sizes.
### 4. Developer Experience
TypeScript support, IntelliSense autocomplete, and clear documentation.
### 5. Customization
Every component supports custom classes and can be styled with Tailwind utilities.
---
## ๐ ๏ธ Development
### Available Scripts
| Command | Description |
| -------------------- | --------------------------------------- |
| `npm run dev` | Start development server with Turbopack |
| `npm run build` | Build for production |
| `npm run start` | Start production server |
| `npm run lint` | Run ESLint |
| `npm run type-check` | Run TypeScript type checking |
| `npm run analyze:ci` | Analyze bundle size |
### Code Style
This project follows strict code style guidelines:
- **Functional Components** - Use function keyword
- **TypeScript** - Interfaces over types
- **Named Exports** - For better tree-shaking
- **Lowercase Directories** - Use kebab-case
- **Descriptive Names** - Use auxiliary verbs (isLoading, hasError)
See `.eslintrc` and `prettier.config.js` for details.
---
## ๐ค Contributing
We welcome contributions! Here's how you can help:
### Ways to Contribute
- ๐ Report bugs
- ๐ก Suggest new features
- ๐ Improve documentation
- ๐จ Add new components
- โ
Write tests
- ๐ Translate documentation
### Contribution Process
1. **Fork the repository**
2. **Create a feature branch**
```bash
git checkout -b feature/amazing-feature
```
3. **Make your changes**
4. **Commit with conventional commits**
```bash
git commit -m "feat: add amazing feature"
```
5. **Push to your branch**
```bash
git push origin feature/amazing-feature
```
6. **Open a Pull Request**
### Commit Convention
We follow [Conventional Commits](https://www.conventionalcommits.org/):
- `feat:` - New feature
- `fix:` - Bug fix
- `docs:` - Documentation changes
- `style:` - Code style changes (formatting)
- `refactor:` - Code refactoring
- `test:` - Adding tests
- `chore:` - Maintenance tasks
---
## ๐ License
This project is licensed under the **MIT License** - see the [LICENSE](./LICENSE) file for details.
---
## ๐ Acknowledgments
- **[Shadcn UI](https://ui.shadcn.com/)** - For component inspiration and architecture
- **[Radix UI](https://www.radix-ui.com/)** - For accessible primitives
- **[Vercel](https://vercel.com/)** - For hosting and deployment
- **[Tailwind CSS](https://tailwindcss.com/)** - For the utility-first CSS framework
---
## ๐ Contact & Links
**Website**: [pittaya-ui.vercel.app](https://pittaya-ui.vercel.app)
**GitHub**: [@pittaya-ui](https://github.com/pittaya-ui)
**Issues**: [Report a bug or request a feature](https://github.com/pittaya-ui/ui-kit/issues)
---
Built with โค๏ธ by the Pittaya team
โญ Star us on GitHub โ it motivates us a lot!