MengTo / Skills
glass-dark-ui
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.
Install
npx skills add https://github.com/MengTo/Skills --skill glass-dark-uiGlass Dark UI Skill
Workflow
- Confirm environment (
HTML/CSS, Tailwind, or React) and target surface (hero,dashboard,modal,card). - Define dark UI tokens first (background, glass fill, border glow, primary text, muted text).
- Build frosted panels with
backdrop-filter, transparent dark fill, and subtle inner highlight. - Apply the masked gradient border (
.border-gradient::before) to key surfaces. - Add restrained depth (shadow + glow) and clear hover/focus states.
- Validate contrast and mobile behavior before finalizing.
Base Tokens
Use these as defaults and tune per brand.
Glass Panel Pattern
Border Gradient Pattern
Tailwind Usage Pattern
Dark Mode Checklist
- Keep body text at least
#cbd5e1on 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 (
outlineor 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."