Project: Dragonglass
The team is reviewing the final interface states.
Pure CSS for app interfaces
Dragonglass turns semantic HTML into app interfaces with readable data-* component contracts, responsive layouts, focused utilities, and compiled themes. Install the CSS and start building.
<article data-card>
<header>
<h2>Project: Dragonglass</h2>
</header>
<p>The team is reviewing the final interface states.</p>
<footer>
<a href="/dragonglass/app-components.html">Open project</a>
</footer>
</article>The team is reviewing the final interface states.
The markup keeps the structure, component, and visual adjustments easy to read.
Define the interface structure with native HTML elements.
Select documented components, variants, and states with readable data-* attributes.
Adjust layout and presentation while the underlying structure stays visible.
Install the package, import Dragonglass and one theme, then add semantic HTML.
Import the theme after dragonglass.css so it can provide the color tokens.
npm install dragonglassimport "dragonglass/dist/dragonglass.css";
import "dragonglass/dist/themes/default.css";<article data-card>
<header>
<h2>Project: Dragonglass</h2>
</header>
<p>The team is reviewing the final interface states.</p>
<footer>
<a href="/dragonglass/app-components.html">Open project</a>
</footer>
</article>Dragonglass styles the semantic regions and applies the card contract through data-card.
Component guides show the available markup, variants, and states.
Buttons, links, and chips for the actions people can take.
Fields, validation states, toggles, native pickers, and search interfaces.
Toolbars, breadcrumbs, expansion panels, steppers, tabs, and menus.
Alerts, notifications, and progress indicators.
Cards, dialogs, bottom sheets, and drawers.
Badges, lists, responsive tables, and tooltips.
Use utilities for focused changes to spacing, layout, typography, color, borders, and elevation.
Dragonglass includes twelve compiled themes built on the same semantic token contract. Each theme supports light and dark color schemes while the component markup stays unchanged.
@use "pkg:dragonglass/theme" as dragonglass;
:root {
@include dragonglass.tokens(#7c3aed);
}Go directly to the part of Dragonglass you need next.
Install Dragonglass and build your first interface.
Find components by purpose and inspect their markup, variants, and states.
Build application shells, content regions, toolbars, and responsive layouts.
Find the available classes for layout, spacing, typography, color, borders, and elevation.
Choose a bundled theme or compile custom color tokens.
Review fields, validation states, toggles, pickers, and search layouts.
Dragonglass supports Chrome 119+, Edge 119+, Firefox 121+, Safari 16.5+, and iOS Safari 16.5+.