Plain CSS
No build step and no JavaScript to wire up. One stylesheet, class names you can read.
Glimmer is a set of glass-and-glow components in plain CSS, with a matching SwiftUI package. Build the web app and the Apple app from the same parts.
npm i github:huntercash/glimmer-uiOr hand the setup to an AI agent. Change the frost and colours in the navbar and this prompt follows.
Set up the Glimmer UI kit in this project and use it for all UI. Docs and every component: https://glimmer-ui.com
1. Install it (it is not on npm yet, so install from GitHub):
npm i github:huntercash/glimmer-ui
2. Import it in the main stylesheet. With Tailwind CSS v4, put it straight after Tailwind:
@import "tailwindcss";
@import "glimmer-ui";
Without Tailwind, use: @import "glimmer-ui/css/index.css";
Optional extras: @import "glimmer-ui/css/fonts.css"; for the bundled SUIT and Fragment Mono fonts, and (Tailwind only)
@import "glimmer-ui/css/tailwind.css"; so variants such as md:btn-lg and hover:btn-primary work.
If the project already uses class names like .btn or .card, import "glimmer-ui/css/prefixed.css" instead and write every class with a gl- prefix.
3. Apply this theme. Add class="frost-1" (clear glass) to the <html> element, and add this to the main stylesheet:
:root {
--gl-primary: #f5a05a;
--gl-secondary: #3b9ef5;
}
4. Load the two small scripts once on the client:
import "glimmer-ui/glow.js"; // light follows the pointer on .glow surfaces
import "glimmer-ui/behaviors.js"; // tab panels, toast(), carousel buttons, list filtering, tooltip accessibility
5. Build with Glimmer's classes instead of writing custom CSS:
- One class makes a component, on the natural HTML element: btn, card, input, select, toggle, badge, alert, tabs, navbar, menu, modal and drawer (on <dialog>), popover (on an element with the popover attribute).
- A suffix sets the colour: -primary, -secondary, -success, -warning, -danger. For example btn-primary, badge-success.
- State comes from HTML attributes, not classes: disabled, open, aria-busy, aria-invalid, aria-selected, aria-current, data-done.
- Any element becomes a glass panel with the class "glass". Add "glow" and its light follows the pointer.
- For charts, import from "glimmer-ui/charts.js" (lineChart, barChart, candlestickChart, chordDiagram and more), or use <gl-chart type="..." data='...'> (add the zoom attribute to let people zoom and pan).
- In React, the classes go on plain elements (<button className="btn btn-primary">). Only the parts with behaviour have components: import { Chart, Tabs, Modal, Drawer, toast } from "glimmer-ui/react".
6. Each component's markup is documented in the comment above its rule in node_modules/glimmer-ui/css/*.css, each chart in node_modules/glimmer-ui/charts.js, and each behaviour in node_modules/glimmer-ui/behaviors.js. Read those before writing a component, and do not invent class names.Every surface is frosted, rimmed with a hairline of light, and lit from within. Move your pointer over the panel and the light follows it.
No build step and no JavaScript to wire up. One stylesheet, class names you can read.
Import it after Tailwind v4. Utilities override it, and its colours become Tailwind's.
The same surfaces, colours and fonts as a Swift package for iOS and macOS.
From clear glass with edge reflections to milky. Set it for the app or one panel.
Dialogs, popovers and form controls are the browser's own, so they stay accessible.
Colours, corners and fonts live in one place and generate both kits.
| Name | Status | Count |
|---|---|---|
| Photos | Synced | 2,418 |
| Places | Pending | 36 |
| Stories | Idle | 112 |
Line, area, bar, scatter, histogram, box plot, heatmap, pie and sparkline, plus a chord diagram for showing how groups interact. They are drawn as SVG with no dependencies and take their colours from the kit. Hover a group on the ring.
@import "tailwindcss";
@import "glimmer-ui";