glasscn
Introduction

glasscn

Glassmorphic components for shadcn — frosted surfaces over a living aurora, built on Radix and Tailwind v4, installed as source.

glasscn is a shadcn registry. You don’t install a package: the shadcn CLI copies each component into your project, where it’s yours to read and change. Components keep shadcn’s APIs where one exists, so @/components/ui/button becomes @/components/glass/button and nothing else changes.

Everything visual is a CSS variable — the frost, the rim, the blur and saturation, the aurora’s three colours — set by one foundation item and a palette theme. Start with Installation, then make it yours in Theming.

Surfaces

Typography

Controls

Overlays

Navigation

Data

Activity rings
Concentric Activity-style rings that sweep in and lap past 100%. Server-component safe.
Progress ring
One ring that closes around its content — a goal, a countdown, a seal.
Sparkline
A smooth measure over time that draws itself, with a soft area and the latest point lit.
Stat
A figure on a glass tile: icon, value, label, trend.
Bar list
Ranked horizontal bars with the label inside and the value at the end — top habits, sources, pages.
Gauge
A three-quarter meter with an optional target tick and the figure in its bowl. Server-component safe.
Tracker
A row of status blocks — uptime, or a habit's last 30 days.
Category bar
A range split into coloured bands with a marker — a readiness score, a budget.
Heatmap
Days in week columns coloured by intensity — a contribution graph with month and weekday labels and a legend.
Chart
The chart host: TanStack Charts in a container that maps glass tokens — series colours from --chart-*, a glass-strong tooltip, inherited type — plus an HTML legend and chartColor().
Area chart
Volume over time: gradient areas under a line per series, optionally stacked, with a grouped glass tooltip.
Bar chart
Amounts per category, grouped or stacked, vertical or horizontal, with theme-rounded bar ends.
Line chart
Measures over time, one smooth line per series, with a grouped glass tooltip and a crosshair.
Donut chart
Parts of a whole as a ring of rounded slices, with content in the hole and a legend.
Table
shadcn's Table for glass: hairline rows, fill on hover and selection, muted headers, density-aware cells.
Data table
A sortable, searchable, paginated table with row selection — TanStack Table v9 on the glass table.

Chat

Blocks