r/tailwindcss • • Oct 14 '26

glass-ui: Liquid Glass components for React 19 + Tailwind 4, open source

Pulled this out of one of my apps so my other projects could share the same look, and it grew into a proper design system. Posting here because the Tailwind 4 side of it might be interesting, or you might tear it apart, both fine.

It's three layers you import separately: tokens.css (colors, radius, motion, density), material.css (the glass itself: glass, glass-strong, glass-clear) and an optional base.css. On top of that, 70+ components, from buttons and dialogs to dashboard stuff like a command palette, split panes, a log viewer and a terminal.

A few Tailwind 4 details:

  • Tailwind doesn't scan node_modules, so classes used inside a package just don't get generated. tokens.css declares its own @source, so importing it is enough and you don't touch any config
  • Theming is all data attributes: data-theme, data-material (glass or flat), data-scale (big TV-style or dense desktop), data-accent, data-palette. Set one on <html> and the whole app follows
  • Every component has its own subpath export and keeps 'use client', so it works straight from server components without transpilePackages

Playground with every component live: https://glass.luna-realm.com

Repo (MIT): https://github.com/AndreyBegma/glass-ui

npm i @andrewbehma/glass-ui

Curious if glass holds up for you in dense UIs or gets tiring after a while.

6 Upvotes

5 comments sorted by

1

u/CriticalSwimming5694 Oct 15 '26

Se puede usar con puro TailwindCSS? Es que me gustó para usarlo en portafolios jaja

1

u/AndreyBegma Oct 15 '26

Feel free to mention me! 😄

1

u/mhtrnx 8d ago

This is not even close to be "liquid" glass

1

u/LaFllamme Oct 15 '26

!remindMe 1d

1

u/RemindMeBot Oct 15 '26

I will be messaging you in 1 day on 2026-10-16 09:04:54 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback