DRYL.Components
3.18.1
See the version list below for details.
dotnet add package DRYL.Components --version 3.18.1
NuGet\Install-Package DRYL.Components -Version 3.18.1
<PackageReference Include="DRYL.Components" Version="3.18.1" />
<PackageVersion Include="DRYL.Components" Version="3.18.1" />
<PackageReference Include="DRYL.Components" />
paket add DRYL.Components --version 3.18.1
#r "nuget: DRYL.Components, 3.18.1"
#:package DRYL.Components@3.18.1
#addin nuget:?package=DRYL.Components&version=3.18.1
#tool nuget:?package=DRYL.Components&version=3.18.1
DRYL Components
An AI-Native, Zero-NPM, Glassmorphic UI Component Library for Blazor. Built for the era of LLMs and high-performance SaaS applications.
</div>
| Aurora Glow Cards | Live Token Streaming | Agentic Tool Calls |
|---|---|---|
![]() |
![]() |
![]() |
| Responsive card layouts with AI-driven gradient borders and breathing glow effects | Real-time token streaming with animated content updates and live AI indicators | Tool-call chains with animated state transitions and contextual feedback |
Why DRYL?
Most Blazor component libraries are ports of Bootstrap or Material — safe, neutral, indistinguishable. DRYL starts from a different premise: your app has a language model in it, and AI is a first-class state of the UI, not a spinner you bolt on at the end.
- AI-native. Every AI-capable surface accepts a single
Aiparameter that drives a shared visual vocabulary — rotating gradient border, streaming glow, one-shot reveal — across the whole library. - Light & dark, one identity. Translucent glass layers on a deep-dark or luminous-light ground — following the user's system by default, switchable and persisted at runtime.
- Accents glow, never scream. A violet-to-cyan gradient lives in 1px borders, glow rings and tiny indicators — never as a background fill.
- Motion is intentional. Three durations, three easings, system-wide. Nothing flickers, nothing crawls. Every component animates its enter, exit and state changes.
- One token file. Every color, spacing, radius, shadow and duration is a CSS variable in
dryl.css. - ~90 components, zero npm dependencies. No JS framework underneath, no third-party package — just CSS, Razor, and a single hand-written interop file (
dryl.js) for the DOM-level concerns Blazor can't do alone (focus traps, portals, clipboard). - Accessible by default. Keyboard-reachable, ARIA-labeled, visible focus rings — and AI activity announced via
aria-live.
Make it yours — theming
Most libraries make you hand-tune dozens of colors and hope they stay coherent. DRYL flips that: you set a few seeds and the system derives the rest — gradient, soft fills, accent lines, glow rings and the AI aura all stay in sync.
@* One line in your root layout *@
<DrylThemeProvider Theme="DrylThemes.Ember" />
Switch at runtime — the whole accent chain glides (and respects
prefers-reduced-motion):
@inject IDrylThemeService Theme
await Theme.SetAccentAsync("#f59e0b", "#f43f5e"); // or Theme.SetThemeAsync(DrylThemes.Verdant)
Ships with curated presets — Nebula (default), Ember, Verdant,
Mono — and a dedicated, opt-in AI accent so AI moments can glow in their
own color. The dark glass core stays fixed by design, so a theme can't break the
look. Full guide: theming.md.
Quick start
DRYL targets .NET 8, 9, 10 and 11.
1. Add the package
dotnet add package DRYL.Components
2. Register services in Program.cs
builder.Services.AddDrylComponents();
3. Reference the assets in your host page (App.razor / _Host.cshtml / wwwroot/index.html)
<head>
<link rel="stylesheet" href="_content/DRYL.Components/dryl.css" />
</head>
<body>
<script src="_content/DRYL.Components/js/dryl.js"></script>
</body>
4. Add the providers once in your root layout
<DrylThemeProvider />
<DrylDialogProvider />
<DrylToastProvider />
5. Use components
@using DRYL.Components
<DrylCard>
<DrylButton Variant="DrylButton.ButtonVariant.Primary">Hello DRYL</DrylButton>
</DrylCard>
Using DRYL with AI coding agents
Claude Code, Codex, GitHub Copilot and Cursor know little about DRYL from training, so they tend to guess parameter names and enum values. DRYL runs a read-only MCP server that hands them the real API instead — no key, no install:
| Tool | What the agent gets |
|---|---|
search_components |
The right component for a job, found by name, category or purpose |
get_component |
Every parameter with type and default, every enum member, an example |
get_tokens |
The CSS variables, with their dark and light values |
validate_markup |
A check of its own <Dryl…> markup against the real API, with fixes |
Claude Code
claude mcp add --transport http dryl https://components.dryl.dev/mcp
Codex — ~/.codex/config.toml
[mcp_servers.dryl]
url = "https://components.dryl.dev/mcp"
VS Code / GitHub Copilot — .vscode/mcp.json
{ "servers": { "dryl": { "type": "http", "url": "https://components.dryl.dev/mcp" } } }
Cursor — .cursor/mcp.json
{ "mcpServers": { "dryl": { "url": "https://components.dryl.dev/mcp" } } }
Without MCP, point the agent at llms.txt or the complete
llms-full.txt.
Rules for your agent — paste into AGENTS.md or CLAUDE.md:
## DRYL (Blazor UI library)
- Look DRYL components up with the `dryl` MCP server (`search_components`, `get_component`) before using them; never guess parameters.
- Variants, sizes and states are enums, never strings. Write them as `qualifiedName.Member` from `get_component`, e.g. `Variant="DrylButton.ButtonVariant.Secondary"` — many enums are nested in their component.
- Style with DRYL's CSS variables (`var(--sp-3)`, `var(--accent)`, `var(--dur-med)`), never literal colors, sizes or durations; `get_tokens` lists them. DRYL follows the user's color mode through them.
- Wrap conditionally shown content in `<DrylPresence Visible="…">` so it animates in and out instead of popping.
- Mark AI-driven surfaces with the `Ai` parameter (`AiState.Thinking`, `AiState.Streaming`, …) instead of styling them yourself.
- Run `validate_markup` on every DRYL markup you write or change, and fix its findings.
AI Mode — first-class citizen
Every surface that can carry AI-generated content accepts a single Ai parameter of type AiState. That parameter drives a consistent, learnable visual vocabulary across cards, tables, dialogs, inputs and more — users see the same rotating gradient border on a card that's streaming tokens as they do on a step being filled by a tool call.
The six states
| State | Visual | When to use |
|---|---|---|
None |
Default styling — no AI signal. | Surface is rendered normally, unrelated to AI output. |
Active |
Slow rotating gradient border + breathing accent glow. | Persistent AI-driven surface (a chat panel, an LLM card). |
Thinking |
Faster pulse on border and glow. | A tool call is in flight. |
Streaming |
Moderate pulse; content updates incrementally. | Tokens are arriving from the model. |
Generated |
One-shot accent wash sweep + soft lift. | Reveal moment immediately after generation completes. |
Proposed |
A still, frozen aurora edge that rests until decided. | The AI is done and a human has to accept or dismiss it. |
Contributing
DRYL is a solo effort built in the open, and with the API now frozen for 1.0 it's a great time to get involved. If you want to help:
- Read
CLAUDE.md— the contribution rules (they apply to humans too). - Open an issue before starting work on a new component.
- Every PR must respect the token system. No invented colors, no arbitrary spacings.
Support DRYL
DRYL is built and maintained in the open as a solo effort. If it saves you time or you'd like to see it reach a stable 1.0 faster, you can support the work:
- GitHub Sponsors — one-off or recurring.
Sponsorships are appreciated but never required: DRYL is MIT-licensed and will always be free to use. Starring the repo and filing good issues helps just as much.
Found a problem? Open an issue.
Credits
DRYL stands on the shoulders of these open-source projects:
- Lucide — the icon set behind
DrylIcon. ISC-licensed. Some Lucide icons themselves derive from Feather Icons (MIT, Cole Bemis). - Inter by Rasmus Andersson — primary UI typeface. SIL Open Font License.
- JetBrains Mono — monospace typeface used for code, IDs and timestamps. SIL Open Font License.
Full license texts for bundled third-party assets are in THIRD_PARTY_NOTICES.md.
License
MIT — see LICENSE. Use it, fork it, ship it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Markdig (>= 1.6.0)
- Microsoft.AspNetCore.Components.Web (>= 10.0.0)
-
net11.0
- Markdig (>= 1.6.0)
- Microsoft.AspNetCore.Components.Web (>= 11.0.0)
-
net8.0
- Markdig (>= 1.6.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
-
net9.0
- Markdig (>= 1.6.0)
- Microsoft.AspNetCore.Components.Web (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DRYL.Components:
| Package | Downloads |
|---|---|
|
DRYL.Components.Agents
Companion package for DRYL.Components: bridges the Microsoft Agent Framework to DRYL's AI vocabulary — automatic AiState from an agent run, structured streaming UI (DrylAiGenerate<T>), ready-made DrylDialog-backed human-in-the-loop tool functions, and display tools that let the model answer with live DRYL components inline in the chat (DrylDisplayTools + DrylAgentAttachments). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.19.0 | 99 | 11/25/2026 |
| 3.18.1 | 98 | 11/24/2026 |
| 3.18.0 | 111 | 11/24/2026 |
| 3.17.1 | 95 | 11/24/2026 |
| 3.17.0 | 128 | 11/21/2026 |
| 3.16.0 | 125 | 11/2/2026 |
| 3.15.0 | 145 | 10/31/2026 |
| 3.14.0 | 138 | 10/31/2026 |
| 3.13.0 | 114 | 10/31/2026 |
| 3.12.3 | 118 | 10/30/2026 |
| 3.12.2 | 130 | 10/30/2026 |
| 3.12.1 | 134 | 10/29/2026 |
| 3.12.0 | 121 | 10/28/2026 |
| 3.11.0 | 153 | 10/18/2026 |
| 3.10.1 | 127 | 10/17/2026 |
| 3.10.0 | 115 | 10/17/2026 |
| 3.9.0 | 143 | 10/17/2026 |
| 3.7.0 | 119 | 10/16/2026 |
| 3.6.0 | 137 | 10/16/2026 |
| 3.5.1 | 130 | 10/16/2026 |
See CHANGELOG.md at https://github.com/Zimpi/DRYL.Components/blob/main/CHANGELOG.md


