What the library is
Buttons, cards, loaders, inputs, forms, checkboxes, toggles, radio buttons, tooltips, notifications and background patterns, imported from the open-source Uiverse community library (MIT).
Every element works in a Next.js app, a static page, a Rails view or anything else that serves HTML. No runtime to install, no component framework, nothing that has to match your build tooling. People use it two ways:
- Manual. Find an element, preview it on a light or dark background, recolour it onto your palette, and copy the markup into your codebase.
- Conversational. Paste or name the element in the chat while the agent builds. It places it in the right component, recolours it to the project palette and wires it to real data. The build agent can also query the library itself, with the
find_elementstool, including by theme.
It is the same trade the backend makes with bricks: a piece someone already got right, inserted rather than re-derived.
Categories
11 categories, grouped by what a component does rather than who made it.
| Category | Elements | What it holds |
|---|---|---|
| Buttons | 1,229 | Flat, outlined, glassy, neumorphic and 3D buttons, most with a hover or press animation. |
| Cards | 725 | Profile, pricing, product tiles, flip cards, hover-reveal surfaces. |
| Loaders | 714 | Spinners, progress bars, skeleton shimmers — mostly keyframe-only, so they cost nothing at runtime. |
| Toggle switches | 260 | On/off switches, theme togglers, animated state controls. |
| Inputs | 225 | Text fields, search bars, floating-label inputs, animated focus states. |
| Forms | 180 | Whole assembled blocks: sign-in, sign-up, contact and subscribe forms. |
| Checkboxes | 171 | Animated ticks, morphing boxes, custom-drawn check marks. |
| Patterns | 103 | Background textures: grids, dots, gradients, animated fields. |
| Radio buttons | 102 | Segmented pickers, animated dots, card-style option groups. |
| Tooltips | 62 | CSS hover hints and small pop-overs. |
| Notifications | 23 | Toasts, alert bars, status messages. |
Themes
The second axis. Besides its category, every element carries one of 11 visual themes, so a whole app can keep one look.
| Theme | Elements | The look |
|---|---|---|
| Minimal | 1,876 | Flat, quiet and clean: plain fills, thin borders, little or no shadow. Fits almost any site. |
| Glass | 153 | Glassmorphism: frosted, translucent panels with backdrop blur over colour. |
| Neumorphic | 197 | Soft UI: shapes pressed into or raised out of the surface with paired light and dark shadows. |
| Neon | 195 | Glow and futurism: luminous outlines, text glows and cyber accents on dark grounds. |
| Gradient | 465 | Colour-forward: multi-stop gradients, gradient borders and gradient text. |
| 3D | 348 | Depth and skeuomorphism: perspective, raised keycap buttons, cubes and realistic materials. |
| Material | 165 | Material Design: elevation shadows, ripples and Google-style controls. |
| Brutalist | 48 | Neo-brutalism: heavy black borders, hard offset shadows and bold flat colour. |
| Retro | 18 | Pixel, terminal and old-OS looks: monospace type, stepped animation, vintage chrome. |
| Playful | 115 | Animated and fun: bouncy motion, characters, emoji-like and game-like pieces. |
| Dark luxe | 214 | Dark, premium surfaces: black grounds with gold, metallic or subtle light accents. |
lib/elements/themes.ts. Filter the library by theme, or ask the agent for elements in a theme by name.Linking straight to a theme
/elements/library?theme=<key> opens the library filtered to one look — for example ?theme=glass. The pick survives sign-in, because the sign-in link carries it forward (next=/elements/library?theme=…), and choosing a theme on a drifting tile on /elements does the same.
Neon, Glass and Dark luxe are authored against a dark stage, so they always preview on ink. Every other theme previews on a light stage, in both site themes.
Adding an element to your app
- Find and preview it. Pick a category, or search by name, tag or author. Flip the preview background between light and dark.
- Recolour it (optional). Choose a palette and loaded elements are remapped live. “Original colours” keeps the author’s design.
- Copy. The Copy button puts the HTML and a matching
<style>block on the clipboard, in the colours you are previewing. - Or ask for it in a build. Inside a project, tell the agent which element you want.
The library API
All three libraries — elements, templates and palettes — are queryable as JSON.
GET /api/library?q=loader&type=element
GET /api/library?type=element&id=<id>
GET /api/library?type=element&id=<id>&palette=aurora→ one element: name, category, author, tags, HTML and CSS,
already recoloured when a palette is passedWhy elements are safe next to your own CSS
Each element is normalised on import by scripts/import-uiverse.mjs, so pasting one cannot break the rest of the page.
- Every rule is scoped to the element, so nothing leaks into the rest of the page.
- Keyframe names are made unique, so two animated elements never collide.
- Tailwind-authored elements are compiled to static CSS — no Tailwind runtime needed.
- Plain HTML and CSS, usable in any framework or none.
How recolouring works
- Originals are preserved. Nothing is recoloured on import; the catalogue stores each element exactly as published, and recolouring is a transform applied on demand (
lib/recolor). - Remapped, not overwritten. Coloured values are re-hued to the palette’s accents while keeping their original lightness, so a darker hover state stays darker than its base. Neutrals map onto the palette’s own neutral ramp.
Browsing tips
- The gallery reads a static manifest plus per-category page chunks served from /elements. Category tabs carry live counts; Load more pulls the next chunk.
- The theme filter knows, from a per-category theme index, which chunks hold that theme, so it loads only those.
- Search matches name, tags and author handle (1,046 authors) over the elements already loaded in the current category; load more to widen the net. Style words work well: neumorphism, glassmorphism, gradient, 3d, minimalist.
- Starred cards are featured picks. Previews are slightly scaled on a neutral stage, so judge animated pieces against your own palette and background.
Attribution and licence
The catalogue is imported from Uiverse under the MIT License. The author handle is kept on each element and printed on every card.
Use the elements in personal and commercial work, modify them, ship them in a paid product. Keep the copyright notice and licence text with the copies, and don’t strip the credit from your source. The full text is at /elements/LICENSE.txt.
Our role is plumbing, not design: scoping, unique keyframes and Tailwind compilation. Colours are left as published and recoloured only on demand. Authors who want an element changed or removed can get in touch.
Elements questions, answered
What is the elements library?
A browsable library of 3,794 drop-in UI components imported from Uiverse: plain HTML plus scoped CSS, previewed live, copyable, or addable to an app built on code-anything.
Who made these elements, and are they free?
Uiverse community authors, under the MIT licence: free for personal and commercial use. Each element credits its author, and the licence text is at /elements/LICENSE.txt.
Do I have to credit the author?
MIT asks you to keep the copyright notice and licence text with copies. Keep the licence file in your project; crediting the designer is the decent thing to do.
How do I add an element to my app?
Copy it (markup plus a style block), paste it into the chat mid-build, or fetch it as JSON from /api/library?type=element&id=<id>.
Do I need an account?
The full searchable library — every category and theme, recolouring and Copy — is free once you sign in, at /elements/library. Signed out, /elements shows a live sample.
Can I pick elements by look?
Yes. Every element carries one of 11 themes; filter the library by theme, or ask the agent for a theme by name.
Can I recolour an element to my brand?
Yes. The palette selector remaps every loaded element live and Copy copies what you see; the API takes &palette=<slug>.
Do elements need Tailwind or a component library?
No. They are normalised to plain HTML and scoped CSS on import, keyframes are renamed, and Tailwind is compiled to static CSS.
Can I search by author or tag?
Yes — by name, tags or author handle, over the loaded elements of the selected category.