# UI Theme Library

A static, multi-theme component library for websites and apps. Two complete looks share the same 61 elements, organized into categories and sub-categories. Pure **HTML, CSS, and vanilla JS**. No build step, no runtime libraries. Google Fonts only (Nunito + Bangers for Manga Pop; Outfit for Liquid Glass and the landing page).

## Themes

1. **Manga Pop** — neo-manga pop-art. Periwinkle pills, hard tinted shadows, springy motion, and English comic SFX (BOOM!, SLASH!, WHOOSH!, SHINE!). Gallery: `themes/manga-pop/index.html`
2. **Liquid Glass** — glassmorphism. Frosted panels, gooey morphing, ripples, wave fills, soft gradients, and blur. Gallery: `themes/liquid-glass/index.html`

Open `index.html` for the theme picker.

## Live preview

https://manga-ui-kit-preview.whiteningplus.workers.dev/

## Preview locally

```bash
python3 -m http.server 4173
```

Then visit `http://127.0.0.1:4173/`. All links are relative, so the site also works from a file tree or any static host.

## Usage

1. Copy the theme folder you want (`themes/manga-pop/` or `themes/liquid-glass/`) into your project.
2. Add the font link and that theme’s CSS in `<head>`, and the theme’s JS before `</body>`.
3. Open the gallery and use **Copy code** on any card, or grab a standalone snippet from `elements/`.

`prefers-reduced-motion: reduce` shortens motion and disables decorative effects.

## Category tree

- **Buttons** — Primary, Icon, Group, Action
- **Forms** — Text fields, Pickers, Upload
- **Selection** — Toggles, Checks, Sliders, Ratings
- **Navigation** — Tabs, Menus, Pagination, Bars
- **Feedback** — Overlays, Notifications, Progress
- **Data Display** — Badges, Lists, Media
- **E-commerce** — Product, Pricing, Cart
- **App / Mobile** — Navigation, Notifications, System
- **Typography** — Headlines, Animated text

61 elements in each theme. Names are listed on every card.

## Deploying the site

The library is a folder of static files. Point any static host at the project root (the folder that contains `index.html`). Do not require a bundler.

### Cloudflare Pages or Workers

**Pages (direct upload):** in the Cloudflare dashboard, create a Pages project and upload this folder (or run `npx wrangler pages deploy . --project-name=ui-theme-library`). Output directory is the repo root, not `dist`.

**Workers:** serve the folder as static assets (`npx wrangler deploy`). A typical `wrangler.toml`:

```toml
name = "ui-theme-library"
main = "worker.js"
compatibility_date = "2025-10-01"
[assets]
directory = "."
```

### Vercel

```bash
npx vercel --yes
```

Leave the build command empty and set the output directory to `.` (or “other / static”). `vercel.json`:

```json
{ "cleanUrls": true }
```

### Netlify

Drag this folder onto Netlify Drop, or add `netlify.toml`:

```toml
[build]
  publish = "."
```

Publish directory is the project root. No build command.

## Adding a custom domain

After the deploy is live:

1. **Cloudflare:** Project → Custom domains → Add a domain you already manage on Cloudflare, or follow the DNS instructions (CNAME the host to the Pages/Workers target).
2. **Vercel:** Project → Settings → Domains → Add. Vercel will show the A/CNAME records to create at your DNS host.
3. **Netlify:** Site configuration → Domain management → Add domain, then create the CNAME (or use Netlify DNS).

Wait for HTTPS to provision (usually automatic). Because every path in this kit is relative, the site works at the domain root or in a subdirectory. If you host it under a subpath (for example `https://example.com/ui/`), upload the folder as that subpath and keep the same relative links — do not add a leading `/` to theme or asset URLs.

## Style notes

- **Manga Pop:** page `#F7F5FF` with a light halftone. Accent `#6B74E8` / `#8B5CF6`. Hard unblurred shadows. Flat color, no gradients.
- **Liquid Glass:** twilight aurora background, frosted `backdrop-filter` panels, fluid blobs, ripples, and wave fills. Gradients and blur are part of the look.

Standalone, copy-pastable demos live in each theme’s `elements/` folder.
