Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
galaxy-co-aiPublic archive

About

Create, manage, and export professional UI design systems. Next.js + TypeScript + Tailwind CSS + Prisma

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

UI Vault

Create, manage, and export professional UI design systems with one click.

Next.js TypeScript Tailwind CSS Prisma

UI Vault is a web application for building reusable design system foundations. Create your style tokens once, export them as Tailwind configs, CSS variables, or JSON tokens—ready to use in any project.

Features

  • Style Collections — Complete UI foundation packages with colors, typography, spacing, shadows, and animations
  • Live Preview — See your design system in action with real-time component previews
  • Dark/Light Mode — Full support for dual-theme design systems out of the box
  • One-Click Export — Generate Tailwind configs, CSS variables, or JSON design tokens instantly
  • Keyboard-First — Command palette (⌘K) and shortcuts for power users

Tech Stack

Layer Technology
Framework Next.js 15 (App Router)
Language TypeScript 5.7
Database PostgreSQL via Neon
ORM Prisma 6
Styling Tailwind CSS 4
State Zustand
Validation Zod
Components Radix UI + Framer Motion

Project Structure

ui-vault/
├── packages/
│   ├── core/              # Reusable UI component library (46+ components)
│   │   ├── components/    # Button, Input, Dialog, Animations, Effects...
│   │   ├── hooks/         # useReducedMotion, useScrollLock...
│   │   └── lib/           # Animation presets, utilities
│   │
│   └── web/               # Next.js application
│       ├── app/           # Pages and API routes
│       │   ├── api/       # REST API endpoints
│       │   └── dashboard/ # App pages
│       ├── components/    # App-specific components
│       ├── lib/           # Schemas, exporters, utilities
│       ├── stores/        # Zustand state management
│       └── prisma/        # Database schema
│
└── docs/                  # Architecture & design documentation
    ├── architecture/      # System design, data models
    └── design-system/     # Design tokens & principles

Quick Start

Prerequisites

  • Node.js 20+
  • pnpm 9+
  • PostgreSQL database (we recommend Neon — free tier available)

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/ui-vault.git
cd ui-vault

# Install dependencies
pnpm install

# Set up environment variables
cp packages/web/.env.example packages/web/.env
# Edit packages/web/.env with your DATABASE_URL

# Initialize the database
pnpm --filter @ui-vault/web db:generate
pnpm --filter @ui-vault/web db:push

# Start development server
pnpm dev

Open http://localhost:3000 to view the app.

Environment Variables

Create packages/web/.env:

# PostgreSQL connection string
DATABASE_URL="postgresql://user:password@host:5432/database?sslmode=require"

Scripts

Command Description
pnpm dev Start development server
pnpm build Build for production
pnpm lint Run ESLint
pnpm typecheck Run TypeScript checks
pnpm --filter @ui-vault/web db:studio Open Prisma Studio
pnpm --filter @ui-vault/web db:push Push schema to database

Export Formats

UI Vault exports your design system in three formats:

Tailwind Config — Drop-in configuration for Tailwind CSS projects

export default {
  theme: {
    extend: {
      colors: { gray: {...}, accent: {...} },
      fontFamily: { sans: [...], mono: [...] },
      spacing: { 0: "0px", 1: "4px", ... }
    }
  }
}

CSS Variables — Framework-agnostic custom properties

:root {
  --color-gray-50: #FAFBFC;
  --color-accent-default: #3B82F6;
  --font-family-sans: Inter, system-ui;
  --space-4: 16px;
}

JSON Tokens — Standard design tokens format

{
  "$schema": "https://design-tokens.github.io/...",
  "tokens": { "colors": {...}, "typography": {...} }
}

Component Library

The @ui-vault/core package includes 46+ production-ready components:

Category Components
Primitives Button, Input, Badge, Avatar, Switch, Checkbox, Label
Layout Card, Separator, ScrollArea, Tabs
Feedback Alert, Dialog, Popover, Toast, Tooltip
Animations BlurFade, TextAnimate, Marquee, NumberTicker, WordRotate
Effects AnimatedBorder, Confetti, Meteors, RainbowButton, ShimmerButton
Backgrounds DotPattern, GridPattern, Particles, Spotlight, AnimatedBeam

Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Import the project in Vercel
  3. Set the root directory to packages/web
  4. Add your DATABASE_URL environment variable
  5. Deploy

Deploy with Vercel

Documentation

Document Description
Architecture Overview System design and data flow
Data Model Schemas and database structure
Design Principles Core design philosophy
Color System Color tokens and usage
Typography Type scale and fonts
Quality Checklist Pre-ship verification

License

MIT License — see LICENSE for details.

About

Create, manage, and export professional UI design systems. Next.js + TypeScript + Tailwind CSS + Prisma

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages