Skip to main content
skill CX Codex

glass-dark-ui — Claude Code skill: what it does, how to install

Builds dark glassmorphism layouts with frosted surfaces and gradient masked borders. Useful for dark dashboards, hero sections, and cards in HTML, Tailwind, or React.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add MengTo/Skills --skill glass-dark-ui -a claude-code
Open on GitHub

What glass-dark-ui does

The skill provides styling rules for dark glassmorphism across HTML/CSS, Tailwind, and React. The workflow starts by identifying the target component, such as a card or modal window. It then establishes base tokens, including a deep background --bg-0 (#020617) and transparent panel fills.

Frosted glass surfaces rely on backdrop-filter: blur(18px) saturate(140%) with a subtle inner shadow. Accent borders use a .border-gradient::before pseudo-element with mask-composite: exclude, producing a crisp one-pixel gradient outline without extra DOM wrappers.

In environments without backdrop blur support, semi-transparent panels degrade quickly without the solid --glass-fill-strong fallback. The built-in checklist enforces body text brightness of at least #cbd5e1, visible focus outlines, and deep navy alpha layers instead of pure black overlays.

What it helps with

  • build frosted glass panels with backdrop-filter and inner highlights
  • create gradient border outlines using pseudo-elements and CSS masks
  • define dark-mode design tokens with high-contrast text defaults
  • configure solid background fallbacks for environments without blur support

Example prompts for the agent

  • Create a dark glass hero section with glowing border cards in Tailwind CSS.
  • Convert this dashboard to dark glassmorphism without losing text contrast.
  • Add a frosted modal with border gradient glow and backdrop blur.

How to install glass-dark-ui

1Skills CLI (Vercel)

npx skills add MengTo/Skills --skill glass-dark-ui -a claude-code

2Manually: put the files in place

~/.claude/skills/glass-dark-ui/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/glass-dark-ui/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about glass-dark-ui

How to install glass-dark-ui in Claude Code?

Run npx skills add MengTo/Skills --skill glass-dark-ui -a claude-code. The skill file will be stored in ~/.claude/skills/glass-dark-ui/SKILL.md.

What does the glass-dark-ui skill do?

It provides guidelines and CSS patterns for dark glassmorphism interfaces. The skill includes color tokens, frosted panel setups with backdrop-filter, and masked gradient borders.

How does the skill implement gradient borders on cards?

It uses a ::before pseudo-element with mask-composite: exclude or -webkit-mask-composite: xor. The mask cuts out the center content area, leaving a one-pixel gradient border.

Source text

SKILL.md · MIT
---
name: glass-dark-ui
description: Build dark-mode glassmorphism interfaces with readable contrast, frosted surfaces, and gradient borders using a pseudo-element mask. Use when asked for glass cards, frosted dark hero sections, blur panels, or dark UI systems with gradient/glow borders.
---

# Glass Dark UI Skill

## Workflow
1. Confirm environment (`HTML/CSS`, Tailwind, or React) and target surface (`hero`, `dashboard`, `modal`, `card`).
2. Define dark UI tokens first (background, glass fill, border glow, primary text, muted text).
3. Build frosted panels with `backdrop-filter`, transparent dark fill, and subtle inner highlight.
4. Apply the masked gradient border (`.border-gradient::before`) to key surfaces.
5. Add restrained depth (shadow + glow) and clear hover/focus states.
6. Validate contrast and mobile behavior before finalizing.

## Base Tokens
Use these as defaults and tune per brand.

```css
:root {
  --bg-0: #020617;
  --bg-1: #0b1220;
  --glass-fill: rgba(15, 23, 42, 0.45);
  --glass-fill-strong: rgba(15, 23, 42, 0.62);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #60a5fa;
}
```

## Glass Panel Pattern

```css
.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  background-color: var(--glass-fill);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
```

## Border Gradient Pattern

```css
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: linear-gradient(
    145deg,
    rgba(148, 163, 184, 0.28) 0%,
    rgba(96, 165, 250, 0.36) 45%,
    rgba(168, 85, 247, 0.3) 70%,
    rgba(148, 163, 184, 0.18) 100%
  );
  pointer-events: none;
}
```

## Tailwind Usage Pattern

```html
<section class="relative rounded-3xl border-gradient bg-slate-950/45 backdrop-blur-xl p-8 shadow-[0_20px_48px_rgba(2,6,23,0.45),inset_0_1px_0_rgba(255,255,255,0.12)]">
  <h2 class="text-slate-100 text-2xl font-semibold">Frosted Panel</h2>
  <p class="text-slate-400 mt-2">Dark glass card with masked gradient border.</p>
</section>
```

## Dark Mode Checklist
- Keep body text at least `#cbd5e1` on dark glass surfaces.
- Avoid pure black overlays over blur; use deep navy/charcoal alpha instead.
- Limit glow radius/intensity to preserve readability.
- Ensure focus rings are visible (`outline` or bright border state).
- Add fallback for non-blur environments: stronger solid background (`--glass-fill-strong`).

## Common Requests This Skill Should Handle
- "Create a dark glass hero section with glowing border cards."
- "Convert this bright UI to dark glassmorphism without losing contrast."
- "Add border gradient glow to a frosted navbar/card/modal."
- "Make my dark dashboard feel premium with glass panels and subtle depth."

© MengTo · MIT · MengTo/Skills

Similar skills

Everything for Frontend and UI →

From the same set148

atmosphere-background A skill for building a dark atmospheric backdrop: vertical light folds drift slowly across the frame and the glow concentrates in one corner or along the lower edge. CX Codex +1 1,500installs editorial-tech Guides code agents to blend magazine typography with technical product UI using asymmetrical grids, mono labels, and restrained accent color. CX Codex +1 1,500installs css-alpha-masking This skill adds CSS alpha masks with gradient edge fades. Use it when an image, text block, or container needs a horizontal or vertical fade. CX Codex +1 1,500installs stitched-full-page-capture Stitches a full-page screenshot from settled viewport slices when a one-shot fullPage capture comes back blank. Built for Framer, WebGL and lazy-loaded pages. CX Codex +1 1,500installs build-threejs-scroll-worlds Builds scroll-controlled Three.js worlds that stay spatially continuous across authored chapters. Useful for interactive portfolios, product stories, exhibitions, and WebGL explainers. CX Codex +1 1,500installs container-lines This skill adds thin vertical guide lines at the edges of the content container, plus mini corner squares on sections. Useful when a layout feels loose and needs structure. CX Codex +1 1,500installs company-logos Guides agents to use Iconify Simple Icons in a 64x64 box instead of plain text names or random raster images. CX Codex +1 1,500installs marquee-loop This skill guides an agent through building a looping marquee from repeated items. Use it for scrolling logos, testimonials, screenshots, or tags. CX Codex +1 1,500installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor