What problem does it solve?
This Skill provides a concise design system and CSS token reference for building consistent frosted-glass UI components, reducing time spent tuning blur, transparency, borders, shadows, and cross-browser fallbacks while ensuring accessibility.
Core Features & Use Cases
- Design tokens and CSS: Centralized variables for backgrounds, blur levels, borders, radii, and shadows to keep theming consistent.
- Component patterns: Ready examples and guidance for cards, navbars, modals, and buttons that use layered depth and translucency.
- Browser compatibility and fallbacks: Recommendations for -webkit-backdrop-filter, @supports fallbacks for older Firefox, and practical fallback backgrounds.
- Accessibility guidance: Contrast ratio targets, prefers-reduced-transparency and prefers-contrast media query patterns to accommodate users and maintain legibility.
- Use case: Standardize a dashboard or marketing site to use cohesive glass components across light and dark themes while preserving performance and accessibility.
Quick Start
Import references/tokens.css into your project and apply the .glass-card class to an element to create a frosted-glass card using the recommended blur, border, and shadow tokens.