spirewise 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/bin/cli.js +65 -37
- package/install.sh +3 -3
- package/package.json +2 -4
- package/skills/README.md +0 -1
- package/skills/ai-agent-os-design-system/README.md +105 -0
- package/skills/ai-agent-os-design-system/SKILL.md +195 -0
- package/skills/ai-agent-os-design-system/accessibility-system.md +67 -0
- package/skills/ai-agent-os-design-system/color-system.md +102 -0
- package/skills/ai-agent-os-design-system/component-library.md +147 -0
- package/skills/ai-agent-os-design-system/design-principles.md +79 -0
- package/skills/ai-agent-os-design-system/example-page-structures.md +93 -0
- package/skills/ai-agent-os-design-system/layout-system.md +74 -0
- package/skills/ai-agent-os-design-system/motion-system.md +85 -0
- package/skills/ai-agent-os-design-system/spacing-system.md +87 -0
- package/skills/ai-agent-os-design-system/typography-system.md +91 -0
- package/skills/ai-agent-os-design-system/website-generation-rules.md +192 -0
- package/skills/ai-dark-futuristic-design-system/README.md +91 -0
- package/skills/ai-dark-futuristic-design-system/SKILL.md +179 -0
- package/skills/ai-dark-futuristic-design-system/accessibility-system.md +61 -0
- package/skills/ai-dark-futuristic-design-system/color-system.md +99 -0
- package/skills/ai-dark-futuristic-design-system/component-library.md +140 -0
- package/skills/ai-dark-futuristic-design-system/design-principles.md +66 -0
- package/skills/ai-dark-futuristic-design-system/example-page-structures.md +124 -0
- package/skills/ai-dark-futuristic-design-system/layout-system.md +85 -0
- package/skills/ai-dark-futuristic-design-system/motion-system.md +76 -0
- package/skills/ai-dark-futuristic-design-system/spacing-system.md +73 -0
- package/skills/ai-dark-futuristic-design-system/typography-system.md +89 -0
- package/skills/ai-dark-futuristic-design-system/website-generation-rules.md +220 -0
- package/skills/apple-premium-minimal-design-system/README.md +95 -0
- package/skills/apple-premium-minimal-design-system/SKILL.md +166 -0
- package/skills/apple-premium-minimal-design-system/accessibility-system.md +60 -0
- package/skills/apple-premium-minimal-design-system/color-system.md +100 -0
- package/skills/apple-premium-minimal-design-system/component-library.md +136 -0
- package/skills/apple-premium-minimal-design-system/design-principles.md +65 -0
- package/skills/apple-premium-minimal-design-system/example-page-structures.md +90 -0
- package/skills/apple-premium-minimal-design-system/layout-system.md +89 -0
- package/skills/apple-premium-minimal-design-system/motion-system.md +75 -0
- package/skills/apple-premium-minimal-design-system/spacing-system.md +73 -0
- package/skills/apple-premium-minimal-design-system/typography-system.md +86 -0
- package/skills/apple-premium-minimal-design-system/website-generation-rules.md +207 -0
- package/skills/bento-grid-design-system/README.md +97 -0
- package/skills/bento-grid-design-system/SKILL.md +185 -0
- package/skills/bento-grid-design-system/accessibility-system.md +54 -0
- package/skills/bento-grid-design-system/color-system.md +98 -0
- package/skills/bento-grid-design-system/component-library.md +138 -0
- package/skills/bento-grid-design-system/design-principles.md +72 -0
- package/skills/bento-grid-design-system/example-page-structures.md +91 -0
- package/skills/bento-grid-design-system/layout-system.md +93 -0
- package/skills/bento-grid-design-system/motion-system.md +81 -0
- package/skills/bento-grid-design-system/spacing-system.md +77 -0
- package/skills/bento-grid-design-system/typography-system.md +85 -0
- package/skills/bento-grid-design-system/website-generation-rules.md +193 -0
- package/skills/brutalist-tech-design-system/README.md +100 -0
- package/skills/brutalist-tech-design-system/SKILL.md +185 -0
- package/skills/brutalist-tech-design-system/accessibility-system.md +61 -0
- package/skills/brutalist-tech-design-system/color-system.md +101 -0
- package/skills/brutalist-tech-design-system/component-library.md +117 -0
- package/skills/brutalist-tech-design-system/design-principles.md +73 -0
- package/skills/brutalist-tech-design-system/example-page-structures.md +92 -0
- package/skills/brutalist-tech-design-system/layout-system.md +74 -0
- package/skills/brutalist-tech-design-system/motion-system.md +80 -0
- package/skills/brutalist-tech-design-system/spacing-system.md +86 -0
- package/skills/brutalist-tech-design-system/typography-system.md +94 -0
- package/skills/brutalist-tech-design-system/website-generation-rules.md +195 -0
- package/skills/crunchbase-profile-generator/README.md +64 -0
- package/skills/crunchbase-profile-generator/SKILL.md +189 -0
- package/skills/editorial-luxury-design-system/README.md +98 -0
- package/skills/editorial-luxury-design-system/SKILL.md +187 -0
- package/skills/editorial-luxury-design-system/accessibility-system.md +63 -0
- package/skills/editorial-luxury-design-system/color-system.md +95 -0
- package/skills/editorial-luxury-design-system/component-library.md +131 -0
- package/skills/editorial-luxury-design-system/design-principles.md +77 -0
- package/skills/editorial-luxury-design-system/example-page-structures.md +94 -0
- package/skills/editorial-luxury-design-system/layout-system.md +80 -0
- package/skills/editorial-luxury-design-system/motion-system.md +82 -0
- package/skills/editorial-luxury-design-system/spacing-system.md +77 -0
- package/skills/editorial-luxury-design-system/typography-system.md +107 -0
- package/skills/editorial-luxury-design-system/website-generation-rules.md +194 -0
- package/skills/enterprise-data-viz-design-system/README.md +98 -0
- package/skills/enterprise-data-viz-design-system/SKILL.md +195 -0
- package/skills/enterprise-data-viz-design-system/accessibility-system.md +68 -0
- package/skills/enterprise-data-viz-design-system/color-system.md +112 -0
- package/skills/enterprise-data-viz-design-system/component-library.md +142 -0
- package/skills/enterprise-data-viz-design-system/design-principles.md +75 -0
- package/skills/enterprise-data-viz-design-system/example-page-structures.md +89 -0
- package/skills/enterprise-data-viz-design-system/layout-system.md +75 -0
- package/skills/enterprise-data-viz-design-system/motion-system.md +86 -0
- package/skills/enterprise-data-viz-design-system/spacing-system.md +85 -0
- package/skills/enterprise-data-viz-design-system/typography-system.md +100 -0
- package/skills/enterprise-data-viz-design-system/website-generation-rules.md +196 -0
- package/skills/f6s-copywriting/README.md +16 -6
- package/skills/f6s-copywriting/SKILL.md +162 -46
- package/skills/glassmorphism-design-system/README.md +98 -0
- package/skills/glassmorphism-design-system/SKILL.md +190 -0
- package/skills/glassmorphism-design-system/accessibility-system.md +62 -0
- package/skills/glassmorphism-design-system/color-system.md +128 -0
- package/skills/glassmorphism-design-system/component-library.md +120 -0
- package/skills/glassmorphism-design-system/design-principles.md +77 -0
- package/skills/glassmorphism-design-system/example-page-structures.md +92 -0
- package/skills/glassmorphism-design-system/layout-system.md +81 -0
- package/skills/glassmorphism-design-system/motion-system.md +86 -0
- package/skills/glassmorphism-design-system/spacing-system.md +73 -0
- package/skills/glassmorphism-design-system/typography-system.md +90 -0
- package/skills/glassmorphism-design-system/website-generation-rules.md +195 -0
- package/skills/linkedin-copywriting/README.md +15 -8
- package/skills/linkedin-copywriting/SKILL.md +129 -51
- package/skills/motion-storytelling-design-system/README.md +100 -0
- package/skills/motion-storytelling-design-system/SKILL.md +191 -0
- package/skills/motion-storytelling-design-system/accessibility-system.md +71 -0
- package/skills/motion-storytelling-design-system/color-system.md +101 -0
- package/skills/motion-storytelling-design-system/component-library.md +122 -0
- package/skills/motion-storytelling-design-system/design-principles.md +81 -0
- package/skills/motion-storytelling-design-system/example-page-structures.md +91 -0
- package/skills/motion-storytelling-design-system/layout-system.md +79 -0
- package/skills/motion-storytelling-design-system/motion-system.md +116 -0
- package/skills/motion-storytelling-design-system/spacing-system.md +83 -0
- package/skills/motion-storytelling-design-system/typography-system.md +89 -0
- package/skills/motion-storytelling-design-system/website-generation-rules.md +200 -0
- package/skills/nvidia-inception-idea-booster/README.md +43 -24
- package/skills/nvidia-inception-idea-booster/SKILL.md +260 -116
- package/skills/nvidia-inception-starter/README.md +6 -5
- package/skills/nvidia-inception-starter/SKILL.md +80 -43
- package/skills/nvidia-product-inventor/README.md +44 -37
- package/skills/nvidia-product-inventor/SKILL.md +265 -227
- package/skills/nvidia-startup-idea-founder/README.md +66 -26
- package/skills/nvidia-startup-idea-founder/SKILL.md +245 -189
- package/skills/product-demo-first-design-system/README.md +96 -0
- package/skills/product-demo-first-design-system/SKILL.md +185 -0
- package/skills/product-demo-first-design-system/accessibility-system.md +58 -0
- package/skills/product-demo-first-design-system/color-system.md +109 -0
- package/skills/product-demo-first-design-system/component-library.md +142 -0
- package/skills/product-demo-first-design-system/design-principles.md +66 -0
- package/skills/product-demo-first-design-system/example-page-structures.md +95 -0
- package/skills/product-demo-first-design-system/layout-system.md +76 -0
- package/skills/product-demo-first-design-system/motion-system.md +82 -0
- package/skills/product-demo-first-design-system/spacing-system.md +74 -0
- package/skills/product-demo-first-design-system/typography-system.md +87 -0
- package/skills/product-demo-first-design-system/website-generation-rules.md +194 -0
- package/skills/website-design-skills/01-proof/README.md +0 -47
- package/skills/website-design-skills/01-proof/SKILL.md +0 -303
- package/skills/website-design-skills/02-kajabi/README.md +0 -42
- package/skills/website-design-skills/02-kajabi/SKILL.md +0 -272
- package/skills/website-design-skills/03-lattice/README.md +0 -42
- package/skills/website-design-skills/03-lattice/SKILL.md +0 -271
- package/skills/website-design-skills/04-petal/README.md +0 -42
- package/skills/website-design-skills/04-petal/SKILL.md +0 -271
- package/skills/website-design-skills/05-dropbox-sign/README.md +0 -42
- package/skills/website-design-skills/05-dropbox-sign/SKILL.md +0 -271
- package/skills/website-design-skills/06-distributional/README.md +0 -42
- package/skills/website-design-skills/06-distributional/SKILL.md +0 -271
- package/skills/website-design-skills/07-appcues/README.md +0 -42
- package/skills/website-design-skills/07-appcues/SKILL.md +0 -271
- package/skills/website-design-skills/08-memberstack/README.md +0 -42
- package/skills/website-design-skills/08-memberstack/SKILL.md +0 -271
- package/skills/website-design-skills/09-flank/README.md +0 -42
- package/skills/website-design-skills/09-flank/SKILL.md +0 -275
- package/skills/website-design-skills/10-slidebean/README.md +0 -42
- package/skills/website-design-skills/10-slidebean/SKILL.md +0 -275
- package/skills/website-design-skills/11-formstack/README.md +0 -42
- package/skills/website-design-skills/11-formstack/SKILL.md +0 -275
- package/skills/website-design-skills/12-thalamus/README.md +0 -42
- package/skills/website-design-skills/12-thalamus/SKILL.md +0 -275
- package/skills/website-design-skills/13-grow/README.md +0 -42
- package/skills/website-design-skills/13-grow/SKILL.md +0 -275
- package/skills/website-design-skills/14-gemnote/README.md +0 -42
- package/skills/website-design-skills/14-gemnote/SKILL.md +0 -275
- package/skills/website-design-skills/15-draftbit/README.md +0 -42
- package/skills/website-design-skills/15-draftbit/SKILL.md +0 -275
- package/skills/website-design-skills/16-payman/README.md +0 -42
- package/skills/website-design-skills/16-payman/SKILL.md +0 -273
- package/skills/website-design-skills/17-effortel/README.md +0 -42
- package/skills/website-design-skills/17-effortel/SKILL.md +0 -272
- package/skills/website-design-skills/18-adopt/README.md +0 -42
- package/skills/website-design-skills/18-adopt/SKILL.md +0 -273
- package/skills/website-design-skills/19-kraftful/README.md +0 -42
- package/skills/website-design-skills/19-kraftful/SKILL.md +0 -273
- package/skills/website-design-skills/20-greenhouse/README.md +0 -42
- package/skills/website-design-skills/20-greenhouse/SKILL.md +0 -273
- package/skills/website-design-skills/21-weavy/README.md +0 -42
- package/skills/website-design-skills/21-weavy/SKILL.md +0 -273
- package/skills/website-design-skills/22-safetykit/README.md +0 -42
- package/skills/website-design-skills/22-safetykit/SKILL.md +0 -273
- package/skills/website-design-skills/23-modulify/README.md +0 -42
- package/skills/website-design-skills/23-modulify/SKILL.md +0 -270
- package/skills/website-design-skills/24-realm/README.md +0 -42
- package/skills/website-design-skills/24-realm/SKILL.md +0 -270
- package/skills/website-design-skills/25-modyfi/README.md +0 -42
- package/skills/website-design-skills/25-modyfi/SKILL.md +0 -269
- package/skills/website-design-skills/26-altitude/README.md +0 -42
- package/skills/website-design-skills/26-altitude/SKILL.md +0 -270
- package/skills/website-design-skills/27-way/README.md +0 -42
- package/skills/website-design-skills/27-way/SKILL.md +0 -270
- package/skills/website-design-skills/28-zentail/README.md +0 -42
- package/skills/website-design-skills/28-zentail/SKILL.md +0 -270
- package/skills/website-design-skills/29-zams/README.md +0 -42
- package/skills/website-design-skills/29-zams/SKILL.md +0 -270
- package/skills/website-design-skills/30-user-interviews/README.md +0 -44
- package/skills/website-design-skills/30-user-interviews/SKILL.md +0 -273
- package/skills/website-design-skills/31-bland/README.md +0 -44
- package/skills/website-design-skills/31-bland/SKILL.md +0 -273
- package/skills/website-design-skills/32-nauto/README.md +0 -44
- package/skills/website-design-skills/32-nauto/SKILL.md +0 -273
- package/skills/website-design-skills/33-bill/README.md +0 -44
- package/skills/website-design-skills/33-bill/SKILL.md +0 -273
- package/skills/website-design-skills/34-localyzer/README.md +0 -44
- package/skills/website-design-skills/34-localyzer/SKILL.md +0 -273
- package/skills/website-design-skills/35-jasper/README.md +0 -44
- package/skills/website-design-skills/35-jasper/SKILL.md +0 -273
- package/skills/website-design-skills/README.md +0 -108
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# glassmorphism-design-system
|
|
2
|
+
|
|
3
|
+
A world-class, **glassmorphism design system** for building modern websites around
|
|
4
|
+
**tasteful frosted-glass surfaces** — translucent, blurred, layered panels floating over a
|
|
5
|
+
vivid mesh-gradient background, with depth, light, and **legibility-first restraint**.
|
|
6
|
+
Distilled from glass-leaning references (**Apple/visionOS, Stripe, Linear, Family, Arc,
|
|
7
|
+
Vercel**) and modern AI sites (**OpenAI, Anthropic, Perplexity, Cursor**). It gives coding/
|
|
8
|
+
design/UI/branding/website-generation agents a complete, reusable system so they can ship
|
|
9
|
+
premium glass sites that stay accessible and fast.
|
|
10
|
+
|
|
11
|
+
It also ships a **production website-generation framework**: a multipage site (15+ pages,
|
|
12
|
+
10+ sections/page, **no borders/dividers between sections**) in **pure HTML/CSS/vanilla JS**
|
|
13
|
+
(glass is `backdrop-filter` + CSS, with fallbacks; no React/Vue/Tailwind/Bootstrap/jQuery/
|
|
14
|
+
any library), with **clean Vercel-ready URLs** (no `.html`), navigation, and full SEO.
|
|
15
|
+
|
|
16
|
+
> The full design intelligence is **baked into the companion files** (live research
|
|
17
|
+
> optional, to save tokens). Outputs a generated site/system into a `website/` folder.
|
|
18
|
+
> Sibling skills: `ai-dark-futuristic-design-system`, `apple-premium-minimal-design-system`,
|
|
19
|
+
> `product-demo-first-design-system`, `bento-grid-design-system`.
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx spirewise install -s glassmorphism-design-system # pick agents + scope
|
|
25
|
+
npx spirewise install -s glassmorphism-design-system -a claude,cursor -sc workspace
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Remove
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx spirewise remove -s glassmorphism-design-system # pick agents + scope
|
|
32
|
+
npx spirewise remove -s glassmorphism-design-system -a claude,cursor -sc both
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
(No Node? `./install.sh -s glassmorphism-design-system` and `./install.sh remove -s glassmorphism-design-system`.)
|
|
36
|
+
|
|
37
|
+
## Use
|
|
38
|
+
|
|
39
|
+
After installing, ask your agent:
|
|
40
|
+
|
|
41
|
+
> "Build a glassmorphism website for our product"
|
|
42
|
+
> "Frosted-glass UI over a vivid gradient — like Apple/visionOS, but legible"
|
|
43
|
+
|
|
44
|
+
It reads the companion files, locks the tokens, sets one living mesh background, places a
|
|
45
|
+
few tasteful glass panels over it, applies motion + accessibility (with fallbacks), and
|
|
46
|
+
emits **pure HTML + CSS + vanilla JS + tokens + `vercel.json` + `sitemap.xml`** into a
|
|
47
|
+
`website/` folder.
|
|
48
|
+
|
|
49
|
+
## What's inside
|
|
50
|
+
|
|
51
|
+
| File | What it gives you |
|
|
52
|
+
|---|---|
|
|
53
|
+
| `SKILL.md` | Orchestrator: glass philosophy, mandates, workflow, output, checklist |
|
|
54
|
+
| `design-principles.md` | Glass-with-discipline philosophy, restraint rules, do/don'ts |
|
|
55
|
+
| `color-system.md` | Mesh background + **glass-surface** tokens + the glass utility & fallback |
|
|
56
|
+
| `typography-system.md` | Fonts, fluid type scale, **on-glass legibility** rules |
|
|
57
|
+
| `spacing-system.md` | 4/8-pt scale, container widths, glass-panel padding/lift |
|
|
58
|
+
| `layout-system.md` | Page shell (one backdrop) + canonical glass section layouts |
|
|
59
|
+
| `component-library.md` | 17 components as glass + the glass utilities |
|
|
60
|
+
| `motion-system.md` | Mesh drift, hover sheen, parallax, pointer glow, micro-interactions |
|
|
61
|
+
| `accessibility-system.md` | Contrast on glass, reduced transparency/motion, focus, fallbacks |
|
|
62
|
+
| `website-generation-rules.md` | Pure-vanilla build: pages, clean URLs + `vercel.json`, nav, SEO |
|
|
63
|
+
| `example-page-structures.md` | Glass page blueprints per site type |
|
|
64
|
+
|
|
65
|
+
## The look
|
|
66
|
+
|
|
67
|
+
A deep, vivid **mesh-gradient background** (aurora violet/blue/teal, faint grain) with
|
|
68
|
+
**frosted glass panels** floating above — blurred, lightly tinted, edged with a thin top
|
|
69
|
+
highlight and a soft shadow. High-contrast text on tuned glass, **solid accent CTAs**,
|
|
70
|
+
gentle light/parallax motion. Premium and futuristic — never a blurry, low-contrast mess.
|
|
71
|
+
Default deep-aurora dark; a light "frost" theme included.
|
|
72
|
+
|
|
73
|
+
## Components (17, as glass)
|
|
74
|
+
|
|
75
|
+
Glass Navbar · Glass Hero · Glass Feature Grid · Glass Bento · Testimonials · Logos ·
|
|
76
|
+
Pricing · FAQ · CTA (solid action) · Footer · Dashboard Preview · Agent Workflow · Code
|
|
77
|
+
Preview · Terminal Preview · Trust · Security · Enterprise — plus the **glass-surface
|
|
78
|
+
utility** (`.glass` / `.glass--strong` / `.glass--nav`) with built-in fallback.
|
|
79
|
+
|
|
80
|
+
## Rules it enforces
|
|
81
|
+
|
|
82
|
+
- **Tasteful, accessible glass** — one living background per page; glass on a *few*
|
|
83
|
+
deliberate surfaces (not everything); **every glass panel passes AA**; **solid fallback**
|
|
84
|
+
for unsupported `backdrop-filter` and `prefers-reduced-transparency`; primary CTAs solid.
|
|
85
|
+
- **Multipage scale (mandatory)** — **15+ pages (≈20)**, **≥10 sections/page (≈12)**, and
|
|
86
|
+
**no borders/dividers between sections** (separation by whitespace + backdrop + elevation).
|
|
87
|
+
- **Pure vanilla stack** — HTML5 + CSS3 + vanilla JS only (glass = `backdrop-filter` + CSS);
|
|
88
|
+
**no React/Vue/Angular/Svelte/Bootstrap/Tailwind/jQuery/any library**; no build step.
|
|
89
|
+
- **Clean Vercel-ready URLs** — extensionless routes (`/pricing`), with `vercel.json`
|
|
90
|
+
(`cleanUrls`), `sitemap.xml`, `robots.txt`; refresh + deep links work.
|
|
91
|
+
- **Full navigation + SEO** — glass desktop dropdowns, mobile overlay, breadcrumbs; per-page
|
|
92
|
+
title/description, Open Graph, Twitter card, canonical, JSON-LD.
|
|
93
|
+
- **Centralized tokens**, **mobile-first responsive**, **performance-aware** (few blurs, one
|
|
94
|
+
fixed backdrop), reduced motion/transparency honored. **Zero anti-patterns** — no excessive
|
|
95
|
+
glass, low-contrast text, busy backgrounds behind text, blur without fallback, template
|
|
96
|
+
look, or frameworks in the shipped site.
|
|
97
|
+
|
|
98
|
+
See `SKILL.md` for the full workflow and the companion files for every token and spec.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: glassmorphism-design-system
|
|
3
|
+
description: >-
|
|
4
|
+
A world-class, GLASSMORPHISM design system for building modern websites around
|
|
5
|
+
tasteful frosted-glass surfaces — translucent, blurred, layered panels floating over
|
|
6
|
+
vivid gradient/mesh backgrounds, with depth, light, and legibility-first restraint.
|
|
7
|
+
Distilled from glass-leaning references (Apple/visionOS, Stripe, Linear, Family,
|
|
8
|
+
Arc, Vercel) and modern AI sites (OpenAI, Anthropic, Perplexity, Cursor). It gives
|
|
9
|
+
coding/design/UI/branding/website-generation agents a complete, reusable system:
|
|
10
|
+
design philosophy, color/typography/spacing/grid/layout tokens (with a first-class
|
|
11
|
+
glass-surface engine + accessible fallbacks), a 17+ -component library (glass Navbar,
|
|
12
|
+
glass cards, Hero over mesh…), a motion system, accessibility + responsive rules, and
|
|
13
|
+
a production website-generation framework. The framework builds a multipage site (15+
|
|
14
|
+
pages, 10+ sections/page, NO borders/dividers between sections) in PURE HTML/CSS/
|
|
15
|
+
vanilla JS (no React/Vue/Tailwind/Bootstrap/jQuery/any library), with clean Vercel-
|
|
16
|
+
ready URLs (no `.html`), navigation, and full SEO. Use when the user asks for a
|
|
17
|
+
"glassmorphism / frosted glass website", "glass UI", "blurred translucent cards",
|
|
18
|
+
"make it like Apple/visionOS glass", or "a glass design system / tokens". The full
|
|
19
|
+
system is baked into the companion files (live research optional). Outputs a generated
|
|
20
|
+
site/system into a `website/` folder.
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Glassmorphism Design System
|
|
24
|
+
|
|
25
|
+
A complete, agent-ready design system for **glassmorphism websites** — frosted, blurred,
|
|
26
|
+
translucent surfaces that float over vivid gradient/mesh backgrounds with real depth and
|
|
27
|
+
light, applied with **legibility-first restraint** so it looks premium, not gimmicky.
|
|
28
|
+
Distilled from Apple/visionOS, Stripe, Linear, Family, Arc, Vercel, and modern AI sites
|
|
29
|
+
(OpenAI, Anthropic, Perplexity, Cursor).
|
|
30
|
+
|
|
31
|
+
This skill is the **single source of truth**. The detailed system lives in the companion
|
|
32
|
+
files in this folder — read the ones relevant to the task, then generate.
|
|
33
|
+
|
|
34
|
+
## The core idea — glass with discipline
|
|
35
|
+
|
|
36
|
+
- **Glass surfaces float over a living background.** A soft, animated **mesh/gradient
|
|
37
|
+
backdrop** provides the color and light that the frosted panels refract.
|
|
38
|
+
- **Frosted panels carry the UI.** Nav, cards, modals, and key tiles use translucency +
|
|
39
|
+
`backdrop-filter: blur()` + a thin highlight edge + soft shadow to read as glass.
|
|
40
|
+
- **Legibility first, always.** Glass never costs contrast. Text sits on a tuned glass
|
|
41
|
+
tint (and an optional scrim) that guarantees AA. Background motion stays gentle and
|
|
42
|
+
low-contrast behind any text.
|
|
43
|
+
- **Restraint is the craft.** Not everything is glass. A page has **one living
|
|
44
|
+
background** and a *few* deliberate glass layers — the shared anti-pattern is
|
|
45
|
+
**excessive glassmorphism**, and this skill exists to do it *tastefully*.
|
|
46
|
+
- **Robust fallbacks.** Where `backdrop-filter` is unsupported (or for reduced
|
|
47
|
+
transparency), glass degrades to a solid tinted surface that keeps the same contrast.
|
|
48
|
+
|
|
49
|
+
## Hard structural requirements (MANDATORY — never skip)
|
|
50
|
+
|
|
51
|
+
These are non-negotiable and override any conflicting guidance elsewhere:
|
|
52
|
+
|
|
53
|
+
1. **Multipage — 15+ pages (≈20).** Always generate a **full multipage website with
|
|
54
|
+
more than 15 distinct pages** (not a single landing page) — a real site map.
|
|
55
|
+
2. **10+ sections per page (≈12).** Every page contains **at least 10 full sections**,
|
|
56
|
+
composed from the layout + component library.
|
|
57
|
+
3. **No borders/dividers between sections.** **Zero border widths, lines, rules, or
|
|
58
|
+
`<hr>` between sections.** Separate sections with whitespace, the living background's
|
|
59
|
+
shifts, glass-panel elevation, and type hierarchy — never a section border. (A glass
|
|
60
|
+
panel's own thin highlight edge is part of the panel, not a section divider.)
|
|
61
|
+
4. **Pure HTML + CSS + vanilla JS — no frameworks/libraries.** The generated site uses
|
|
62
|
+
**only HTML5, CSS3, and vanilla JavaScript** (glass is `backdrop-filter` + CSS; the
|
|
63
|
+
mesh is CSS/canvas). No React/Vue/Angular/Svelte/Next, no Bootstrap/Tailwind/any CSS
|
|
64
|
+
framework, no jQuery/any UI or JS library, no build step. (Exporting `tokens.json`
|
|
65
|
+
for other agents is fine — that's data, not a framework.)
|
|
66
|
+
5. **Clean, Vercel-ready URLs.** All routes are **extensionless** (`/pricing`, not
|
|
67
|
+
`/pricing.html`); ship a `vercel.json` (`cleanUrls: true`) plus `sitemap.xml` /
|
|
68
|
+
`robots.txt` so production refresh and deep links work.
|
|
69
|
+
6. **Full navigation + SEO.** Desktop nav (a **glass** dropdown/mega-menu) + mobile menu
|
|
70
|
+
+ breadcrumbs; per-page SEO (unique title/description, Open Graph, Twitter card,
|
|
71
|
+
canonical, JSON-LD). Every component: responsive, accessible, reusable,
|
|
72
|
+
production-ready, animation-ready.
|
|
73
|
+
|
|
74
|
+
See `website-generation-rules.md` for the required page list, required sections, the
|
|
75
|
+
`vercel.json`, navigation, and SEO specifics. Enforce in code: `.section { border: 0 }`
|
|
76
|
+
and never place `<hr>`/divider elements between sections.
|
|
77
|
+
|
|
78
|
+
## When to use
|
|
79
|
+
|
|
80
|
+
Building or designing any landing page, marketing site, or product site that should use a
|
|
81
|
+
**glassmorphism / frosted-glass** aesthetic (Apple/visionOS, Stripe, Linear energy) — for
|
|
82
|
+
a product, AI startup, developer platform, or enterprise SaaS — or producing **design
|
|
83
|
+
tokens / a design system** for other agents.
|
|
84
|
+
|
|
85
|
+
## The companion files (read what you need)
|
|
86
|
+
|
|
87
|
+
| File | What it gives you |
|
|
88
|
+
|---|---|
|
|
89
|
+
| `design-principles.md` | The glass philosophy, hierarchy laws, restraint rules, do/don'ts |
|
|
90
|
+
| `color-system.md` | Mesh-background + **glass-surface** tokens (with fallbacks) as CSS vars |
|
|
91
|
+
| `typography-system.md` | Fonts, fluid type scale, weights, on-glass text legibility rules |
|
|
92
|
+
| `spacing-system.md` | 4/8-pt scale, container widths, glass-panel padding/rhythm |
|
|
93
|
+
| `layout-system.md` | Grid + canonical glass section layouts (over the living background) |
|
|
94
|
+
| `component-library.md` | 17 components as glass + the glass-surface utilities |
|
|
95
|
+
| `motion-system.md` | Animated mesh, parallax light, hover sheen, micro-interactions |
|
|
96
|
+
| `accessibility-system.md` | Contrast on glass, reduced transparency/motion, focus, fallbacks |
|
|
97
|
+
| `website-generation-rules.md` | Pure-vanilla build: pages, clean URLs + `vercel.json`, nav, SEO |
|
|
98
|
+
| `example-page-structures.md` | Ready glass page blueprints |
|
|
99
|
+
|
|
100
|
+
All tokens use the same names across files, so they compose into one stylesheet.
|
|
101
|
+
|
|
102
|
+
## Phase 1 — Research is baked in (live analysis OPTIONAL)
|
|
103
|
+
|
|
104
|
+
The design intelligence extracted from the reference sites is **already encoded in the
|
|
105
|
+
companion files** — patterns, palettes, type scales, spacing, the glass engine,
|
|
106
|
+
components, motion. **Do NOT re-scrape the references for the basics; use the baked-in
|
|
107
|
+
system** (saves tokens). Only browse live when the user wants a *current* look from a
|
|
108
|
+
specific site, a brand-new pattern not covered here, or to verify a font/feature.
|
|
109
|
+
|
|
110
|
+
What the baked-in system already captures (the Phase-1 extraction): design patterns,
|
|
111
|
+
visual hierarchy, typography/spacing/grid/layout systems, color + gradient systems,
|
|
112
|
+
animation/motion, navigation, CTA + hero patterns, trust/enterprise/social-proof
|
|
113
|
+
components, footer/pricing/feature structures, interactive + micro-interactions,
|
|
114
|
+
glassmorphism usage (and how to keep it tasteful + accessible), accessibility, mobile
|
|
115
|
+
responsiveness, developer-experience patterns, and AI-startup conversion patterns.
|
|
116
|
+
|
|
117
|
+
## Phase 2 — Generate (the workflow)
|
|
118
|
+
|
|
119
|
+
1. **Clarify intent:** site type (product / SaaS / dev platform / AI / enterprise), theme
|
|
120
|
+
(default deep-aurora dark, or light frost), brand accent, and page set.
|
|
121
|
+
2. **Lock the tokens:** start from `color-system.md` + `typography-system.md` +
|
|
122
|
+
`spacing-system.md`. Emit them once as `:root` CSS variables (and `tokens.json`).
|
|
123
|
+
3. **Set the living background:** one mesh/gradient backdrop (gentle motion) that the
|
|
124
|
+
glass refracts; keep it low-contrast behind text.
|
|
125
|
+
4. **Compose layouts + components:** place a *few* deliberate glass surfaces (nav, hero
|
|
126
|
+
card, feature/pricing cards) over the background; everything else is calm.
|
|
127
|
+
5. **Apply motion + a11y:** mesh drift + hover sheen per `motion-system.md`, gated by
|
|
128
|
+
`prefers-reduced-motion`; meet every rule in `accessibility-system.md` (incl. fallbacks).
|
|
129
|
+
6. **Emit code:** follow `website-generation-rules.md` to produce clean, semantic,
|
|
130
|
+
responsive **pure HTML + CSS + vanilla JS** plus tokens, `vercel.json`, `sitemap.xml`,
|
|
131
|
+
`robots.txt`.
|
|
132
|
+
7. **Self-check** against the anti-patterns and the verification checklist below.
|
|
133
|
+
|
|
134
|
+
## Output
|
|
135
|
+
|
|
136
|
+
Unless the user specifies otherwise, write the generated **multipage site (15+ pages,
|
|
137
|
+
~20)** into a `website/` folder in the project root:
|
|
138
|
+
- `website/index.html` **plus 15+ additional pages** (≥10 sections each, glass over one
|
|
139
|
+
living background, no inter-section borders), linked with **extensionless URLs**
|
|
140
|
+
- `website/css/tokens.css` + `website/css/styles.css`
|
|
141
|
+
- `website/js/main.js` (vanilla nav, mesh/parallax, hover sheen — progressively enhanced)
|
|
142
|
+
- `website/vercel.json`, `website/sitemap.xml`, `website/robots.txt`
|
|
143
|
+
- `website/assets/` (icons, og images, optional noise/grain texture)
|
|
144
|
+
- `website/tokens.json` (machine-readable tokens for other agents)
|
|
145
|
+
|
|
146
|
+
When the user only wants the **system** (not a site), emit the tokens + component specs.
|
|
147
|
+
|
|
148
|
+
## Default look (baked-in identity)
|
|
149
|
+
|
|
150
|
+
A deep, vivid **mesh-gradient background** (aurora violet/blue/teal on near-black) with a
|
|
151
|
+
subtle grain, over which **frosted glass panels** float — blurred, lightly tinted, edged
|
|
152
|
+
with a thin top highlight and a soft shadow. High-contrast text on tuned glass, one
|
|
153
|
+
restrained accent, gentle light/parallax motion. Premium and futuristic — never a blurry,
|
|
154
|
+
low-contrast mess. (Default deep-aurora dark; a light "frost" theme is included. Siblings:
|
|
155
|
+
`ai-dark-futuristic-design-system`, `apple-premium-minimal-design-system`,
|
|
156
|
+
`product-demo-first-design-system`, `bento-grid-design-system`.)
|
|
157
|
+
|
|
158
|
+
## Anti-patterns (never ship these)
|
|
159
|
+
|
|
160
|
+
Outdated startup designs · Bootstrap/template look · generic SaaS layouts · poor
|
|
161
|
+
typography · weak visual hierarchy · overloaded gradients · **excessive glassmorphism
|
|
162
|
+
(glass on everything) · low-contrast text on glass · busy backgrounds behind text ·
|
|
163
|
+
blur with no fallback** · poor accessibility · inconsistent spacing · **borders or
|
|
164
|
+
dividers between sections · single-page sites or thin pages with fewer than 10 sections ·
|
|
165
|
+
any framework/library in the shipped site · `.html` in URLs**. The result must feel like
|
|
166
|
+
Apple/visionOS/Stripe glass — tasteful and legible, never gimmicky.
|
|
167
|
+
|
|
168
|
+
## Verification checklist (run before finishing)
|
|
169
|
+
|
|
170
|
+
0. **Multipage scale met:** the site has **> 15 pages** (≈20), each page has **≥ 10
|
|
171
|
+
sections** (≈12), and there are **no borders/dividers between sections**.
|
|
172
|
+
0b. **Tasteful glass met:** one living background per page; glass used on a *few*
|
|
173
|
+
deliberate surfaces (not everything); **every glass panel passes AA text contrast**;
|
|
174
|
+
backgrounds behind text are low-contrast.
|
|
175
|
+
0c. **Fallbacks met:** glass degrades to a solid tinted surface where `backdrop-filter`
|
|
176
|
+
is unsupported and under `prefers-reduced-transparency`/`prefers-reduced-motion`.
|
|
177
|
+
0d. **Pure vanilla + clean URLs:** zero frameworks/libraries; routes extensionless with a
|
|
178
|
+
working `vercel.json` (`cleanUrls`), `sitemap.xml`, `robots.txt`.
|
|
179
|
+
0e. **Nav + SEO:** glass desktop nav/dropdowns + mobile menu + breadcrumbs; per-page
|
|
180
|
+
title/description, Open Graph + Twitter card, canonical, JSON-LD.
|
|
181
|
+
1. Tokens emitted once (`:root`/`tokens.css`) and reused — no scattered one-off hex.
|
|
182
|
+
2. Type uses the fluid scale; spacing uses the 4/8-pt scale; layout uses the grid +
|
|
183
|
+
container widths — all from the companion files.
|
|
184
|
+
3. Every section is a recognized layout; every component matches `component-library.md`.
|
|
185
|
+
4. Body/on-glass text ≥ 4.5:1, large text ≥ 3:1; visible focus; motion + transparency
|
|
186
|
+
respect user prefs; semantic landmarks + alt text present.
|
|
187
|
+
5. Fully responsive (360 → 1440+), no horizontal scroll, tap targets ≥ 44px; blur is
|
|
188
|
+
reduced/disabled on low-power where needed.
|
|
189
|
+
6. Trips **zero** anti-patterns; glass is restrained and legible; performance is good.
|
|
190
|
+
7. Output looks like it belongs next to Apple/visionOS/Stripe — premium glass, legible.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Accessibility System — Glassmorphism
|
|
2
|
+
|
|
3
|
+
Glassmorphism is the **highest-risk** style for accessibility — translucency and busy
|
|
4
|
+
backgrounds threaten contrast, blur can disorient, and `backdrop-filter` isn't universal.
|
|
5
|
+
This system bakes WCAG 2.1 AA into the look so the glass stays beautiful **and** usable.
|
|
6
|
+
|
|
7
|
+
## Color & contrast (the critical area)
|
|
8
|
+
- **On-glass body text ≥ 4.5:1**, large/UI text **≥ 3:1**, measured over the **brightest
|
|
9
|
+
region of the background** the panel can overlap (not the average). If it fails: switch
|
|
10
|
+
to `--glass-bg-strong`, add a `--scrim`, increase text weight/size, or make the panel
|
|
11
|
+
more opaque. **Never trade contrast for the effect.**
|
|
12
|
+
- **Keep backgrounds calm behind text.** The mesh must be low-contrast where words sit;
|
|
13
|
+
don't place text over the busiest/brightest mesh area or over imagery without a scrim.
|
|
14
|
+
- **Non-text contrast ≥ 3:1** for the panel edge/controls/focus ring against their backdrop.
|
|
15
|
+
- **Don't encode meaning in color alone**; the highlighted pricing tier says "Most popular"
|
|
16
|
+
in text. **Primary CTAs are solid** (not glass) so actions are unmistakable.
|
|
17
|
+
- **No gradient/low-contrast text for body**; `--grad-text` only on one large hero phrase.
|
|
18
|
+
|
|
19
|
+
## Transparency & motion preferences
|
|
20
|
+
- **`prefers-reduced-transparency`:** glass → solid tinted surface (handled in
|
|
21
|
+
color-system); the layout/contrast must still hold.
|
|
22
|
+
- **`prefers-reduced-motion`:** freeze the mesh drift; disable parallax/sheen/pointer-glow/
|
|
23
|
+
marquee; reveal panels in final state. No essential info conveyed by motion alone.
|
|
24
|
+
- No flashing > 3×/sec; no autoplaying audio.
|
|
25
|
+
|
|
26
|
+
## Fallbacks & robustness
|
|
27
|
+
- Wrap blur in `@supports (backdrop-filter: blur(1px))`; **always define the solid
|
|
28
|
+
fallback first** so unsupported browsers (and reduced transparency) get a legible surface.
|
|
29
|
+
- Consider reducing/disabling blur on low-power/mobile (performance) without losing contrast.
|
|
30
|
+
- Text legibility must never depend on `backdrop-filter` rendering.
|
|
31
|
+
|
|
32
|
+
## Focus & keyboard
|
|
33
|
+
- **Always-visible focus:** `:focus-visible { outline:2px solid var(--ring);
|
|
34
|
+
outline-offset:2px }` — the ring (`--ring`) is tuned to contrast with glass. Never bare
|
|
35
|
+
`outline:none`.
|
|
36
|
+
- **Full keyboard operability**; logical tab order; no traps (except modal focus-trap with
|
|
37
|
+
ESC). **Skip link** to `#main` first in DOM. Glass dropdowns/menus: arrow-key nav, ESC.
|
|
38
|
+
|
|
39
|
+
## Semantics & structure
|
|
40
|
+
- One `<h1>` per page; ordered headings (size with CSS). Landmarks:
|
|
41
|
+
`<header><nav><main id="main"><section><footer>`. Native elements over ARIA; minimal correct ARIA.
|
|
42
|
+
- Buttons vs links: `<button>` actions, `<a href>` navigation. Lists `<ul>/<ol>`; quotes
|
|
43
|
+
`<blockquote><cite>`; code `<pre><code>`.
|
|
44
|
+
|
|
45
|
+
## Media & forms
|
|
46
|
+
- Informative images have meaningful `alt`; decorative glows/mesh/panel edges are
|
|
47
|
+
`aria-hidden`/`alt=""`.
|
|
48
|
+
- Every input has a programmatic `<label>`; `<fieldset><legend>` for groups; errors in text
|
|
49
|
+
+ `aria-describedby`, focus to first error. Inputs on glass use a more opaque surface for legibility.
|
|
50
|
+
|
|
51
|
+
## Touch & responsive
|
|
52
|
+
- **Tap targets ≥ 44×44px**; reflow to 320px, no horizontal scroll; 200% zoom OK; pinch-zoom
|
|
53
|
+
not disabled.
|
|
54
|
+
|
|
55
|
+
## Checklist (run before finishing)
|
|
56
|
+
1. Every glass panel's text meets AA over the brightest backdrop it can overlap.
|
|
57
|
+
2. Backgrounds behind text are calm; scrim/`--glass--strong` used where needed.
|
|
58
|
+
3. Solid fallback present (`@supports` + `prefers-reduced-transparency`); legible without blur.
|
|
59
|
+
4. Reduced motion freezes mesh + disables parallax/sheen; primary CTAs are solid.
|
|
60
|
+
5. Visible (glass-contrasting) focus everywhere; keyboard-complete; skip link; correct landmarks + one H1.
|
|
61
|
+
6. Informative media has alt; decorative hidden; labelled forms; inputs legible on glass.
|
|
62
|
+
7. 44px targets; reflow to 320px; 200% zoom; zoom not disabled; blur reduced on low-power if needed.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Color System — Glassmorphism
|
|
2
|
+
|
|
3
|
+
Two layers of color: a **living mesh-gradient background** that provides light, and
|
|
4
|
+
**frosted-glass surfaces** (translucent tint + blur + highlight edge + shadow) that float
|
|
5
|
+
over it — with **accessible fallbacks**. Ships **deep-aurora dark by default**; a light
|
|
6
|
+
"frost" theme is included. Sections separate via the background + glass elevation —
|
|
7
|
+
**never borders**. Override `--accent-*` to rebrand. Contrast: on-glass body ≥ 4.5:1.
|
|
8
|
+
|
|
9
|
+
## Tokens (`:root`) — deep-aurora dark (default)
|
|
10
|
+
|
|
11
|
+
```css
|
|
12
|
+
:root {
|
|
13
|
+
/* ---- Living background (the light glass refracts) ---- */
|
|
14
|
+
--bg-base: #07070d; /* deepest backdrop / page base */
|
|
15
|
+
--mesh-1: #6d28d9; /* violet */
|
|
16
|
+
--mesh-2: #2563eb; /* blue */
|
|
17
|
+
--mesh-3: #0891b2; /* teal */
|
|
18
|
+
--mesh-4: #db2777; /* magenta (use faintly) */
|
|
19
|
+
--bg-mesh: radial-gradient(40% 50% at 18% 12%, rgba(109,40,217,0.45) 0%, transparent 60%),
|
|
20
|
+
radial-gradient(45% 55% at 85% 18%, rgba(37,99,235,0.40) 0%, transparent 60%),
|
|
21
|
+
radial-gradient(50% 60% at 70% 88%, rgba(8,145,178,0.38) 0%, transparent 62%),
|
|
22
|
+
radial-gradient(40% 50% at 25% 85%, rgba(219,39,119,0.22) 0%, transparent 60%),
|
|
23
|
+
#07070d;
|
|
24
|
+
--grain: url("/assets/noise.png"); /* faint tiled grain over the mesh (optional) */
|
|
25
|
+
|
|
26
|
+
/* ---- GLASS SURFACES (tint + blur + edge + shadow) ---- */
|
|
27
|
+
--glass-bg: rgba(255,255,255,0.08); /* default frosted tint (dark theme) */
|
|
28
|
+
--glass-bg-strong: rgba(255,255,255,0.14); /* more opaque — use behind text-heavy panels */
|
|
29
|
+
--glass-bg-solid: #14141d; /* FALLBACK solid (no backdrop-filter / reduced transparency) */
|
|
30
|
+
--glass-blur: 18px; /* backdrop blur radius */
|
|
31
|
+
--glass-edge: rgba(255,255,255,0.22); /* thin top highlight (1px inner border) */
|
|
32
|
+
--glass-border: rgba(255,255,255,0.12); /* panel hairline */
|
|
33
|
+
--glass-shadow: 0 20px 60px rgba(0,0,0,0.45);
|
|
34
|
+
--glass-nav: rgba(12,12,20,0.55); /* nav glass (a bit darker for legibility) */
|
|
35
|
+
--scrim: rgba(7,7,13,0.45); /* optional darkening behind text on busy bg */
|
|
36
|
+
|
|
37
|
+
/* ---- Text ramp (on glass / on backdrop) ---- */
|
|
38
|
+
--text-primary: #f4f5fb;
|
|
39
|
+
--text-secondary: #c7cbd9;
|
|
40
|
+
--text-muted: #9aa0b4; /* still AA on the tuned glass tints */
|
|
41
|
+
--text-faint: #6b7184; /* decorative/disabled — non-essential only */
|
|
42
|
+
--text-on-accent: #0a0612;
|
|
43
|
+
|
|
44
|
+
/* ---- Borders / hairlines (panels/inputs — NOT between sections) ---- */
|
|
45
|
+
--border-subtle: rgba(255,255,255,0.08);
|
|
46
|
+
--border-default: rgba(255,255,255,0.14);
|
|
47
|
+
--ring: #a78bfa; /* focus ring (high-contrast on glass) */
|
|
48
|
+
|
|
49
|
+
/* ---- Accent (one, restrained — solid for CTAs) ---- */
|
|
50
|
+
--accent: #8b5cf6; /* violet */
|
|
51
|
+
--accent-hover: #9d75f7;
|
|
52
|
+
--accent-press: #7c46ec;
|
|
53
|
+
--accent-2: #22d3ee; /* cyan — sparing highlights */
|
|
54
|
+
--accent-soft: rgba(139,92,246,0.16);
|
|
55
|
+
|
|
56
|
+
/* ---- Semantic ---- */
|
|
57
|
+
--success: #34d399; --success-soft: rgba(52,211,153,0.16);
|
|
58
|
+
--warning: #fbbf24; --warning-soft: rgba(251,191,36,0.16);
|
|
59
|
+
--error: #fb7185; --error-soft: rgba(251,113,133,0.16);
|
|
60
|
+
--info: #38bdf8; --info-soft: rgba(56,189,248,0.16);
|
|
61
|
+
|
|
62
|
+
/* ---- Accent gradient (CTAs / one highlight) ---- */
|
|
63
|
+
--grad-accent: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
|
|
64
|
+
--grad-text: linear-gradient(90deg, #ffffff 0%, #c4b5fd 60%, #67e8f9 100%);
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## The glass utility (with fallback)
|
|
69
|
+
|
|
70
|
+
```css
|
|
71
|
+
.glass {
|
|
72
|
+
background: var(--glass-bg-solid); /* fallback first */
|
|
73
|
+
border: 1px solid var(--glass-border);
|
|
74
|
+
border-radius: var(--radius-xl);
|
|
75
|
+
box-shadow: var(--glass-shadow);
|
|
76
|
+
position: relative;
|
|
77
|
+
}
|
|
78
|
+
.glass::before { /* thin top highlight edge */
|
|
79
|
+
content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
|
|
80
|
+
box-shadow: inset 0 1px 0 var(--glass-edge);
|
|
81
|
+
}
|
|
82
|
+
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
83
|
+
.glass {
|
|
84
|
+
background: var(--glass-bg);
|
|
85
|
+
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
|
|
86
|
+
backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.glass--strong { background: var(--glass-bg-strong); } /* behind text-heavy content */
|
|
90
|
+
.glass--nav { background: var(--glass-nav); }
|
|
91
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
92
|
+
.glass, .glass--strong, .glass--nav { background: var(--glass-bg-solid) !important;
|
|
93
|
+
-webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Palette roles
|
|
98
|
+
|
|
99
|
+
- **Background palette** (`--bg-*`, `--mesh-*`, `--bg-mesh`): the one living backdrop per
|
|
100
|
+
page. Keep it **low-contrast where text sits**; add `--scrim` behind text over a busy area.
|
|
101
|
+
- **Glass surfaces** (`--glass-*`): nav, hero card, feature/pricing cards, modals. Use
|
|
102
|
+
`--glass-bg` normally and `--glass-bg-strong` behind reading text. Always include the
|
|
103
|
+
**solid fallback** + the highlight edge + shadow.
|
|
104
|
+
- **Text** (`--text-*`): primary near-white, secondary, muted — all tuned to clear AA on
|
|
105
|
+
the glass tints. Never `--text-faint` for real content.
|
|
106
|
+
- **Borders** (`--border-*`, `--glass-border`/`--glass-edge`): panel edges/hairlines only —
|
|
107
|
+
not section dividers.
|
|
108
|
+
- **Accent** (`--accent*`, `--grad-accent`): **solid** primary CTAs + a few highlights —
|
|
109
|
+
CTAs are NOT glass (actions must be unmistakable). `--accent-2` sparingly.
|
|
110
|
+
- **Success / Warning / Error / Info**: status, badges, validation only.
|
|
111
|
+
|
|
112
|
+
## Usage rules
|
|
113
|
+
|
|
114
|
+
1. **One background, few glass panels.** Don't make every element glass (anti-pattern).
|
|
115
|
+
2. **Separate sections with the backdrop + glass elevation + space, not borders.** Mandatory.
|
|
116
|
+
3. **Guarantee contrast.** Test on-glass text over the *brightest* region of the mesh it
|
|
117
|
+
could sit on; bump to `--glass-bg-strong` or add `--scrim` until ≥ 4.5:1.
|
|
118
|
+
4. **Always ship the fallback** (`@supports` + `prefers-reduced-transparency`).
|
|
119
|
+
5. **Watch performance.** Few large blurred surfaces per viewport; reduce `--glass-blur`
|
|
120
|
+
on mobile/low-power if needed.
|
|
121
|
+
|
|
122
|
+
## Optional light "frost" theme
|
|
123
|
+
|
|
124
|
+
`[data-theme="light"]`: lighten the mesh (pastel aurora on `#f4f6fc`), set
|
|
125
|
+
`--glass-bg: rgba(255,255,255,0.55); --glass-bg-strong: rgba(255,255,255,0.72);
|
|
126
|
+
--glass-bg-solid:#ffffff; --glass-edge: rgba(255,255,255,0.9); --glass-border:
|
|
127
|
+
rgba(13,16,30,0.08); --text-primary:#0c0e16; --text-secondary:#39405a;
|
|
128
|
+
--text-muted:#5d6480;` and re-verify contrast. **Deep-aurora dark is the default.**
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Component Library — Glassmorphism
|
|
2
|
+
|
|
3
|
+
Specs for the 17 required components rendered as **tasteful glass** + the glass utilities.
|
|
4
|
+
Each: purpose, anatomy, tokens, states, responsive + a11y. Semantic HTML; shared tokens;
|
|
5
|
+
**no borders between sections** (glass panel edges are part of the panel, not dividers).
|
|
6
|
+
|
|
7
|
+
Shared primitives (see `color-system.md` for the full `.glass` utility + fallback):
|
|
8
|
+
|
|
9
|
+
```css
|
|
10
|
+
.btn { display:inline-flex; align-items:center; gap: var(--space-2);
|
|
11
|
+
font-weight:600; font-size:.9375rem; padding: var(--space-3) var(--space-6);
|
|
12
|
+
border-radius: var(--radius-pill); border:1px solid transparent; cursor:pointer;
|
|
13
|
+
transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
|
|
14
|
+
.btn:active { transform: translateY(1px); }
|
|
15
|
+
.btn-primary { background: var(--accent); color: var(--text-on-accent); } /* SOLID, not glass */
|
|
16
|
+
.btn-primary:hover { background: var(--accent-hover); }
|
|
17
|
+
.btn-ghost { background: var(--glass-bg); color: var(--text-primary);
|
|
18
|
+
border-color: var(--glass-border); } /* a glass ghost button */
|
|
19
|
+
:where(a,button,input,[tabindex]):focus-visible { outline:2px solid var(--ring);
|
|
20
|
+
outline-offset:2px; border-radius: var(--radius-sm); }
|
|
21
|
+
```
|
|
22
|
+
**Rule: primary CTAs are SOLID accent buttons** (actions must be unmistakable); glass is
|
|
23
|
+
for surfaces, not the main action.
|
|
24
|
+
|
|
25
|
+
## ★ Glass surface (the signature) — use for nav/cards/modals, not everything
|
|
26
|
+
`.glass` (default), `.glass--strong` (behind reading text), `.glass--nav` (nav). Each =
|
|
27
|
+
translucent tint + `backdrop-filter: blur` + thin top highlight edge (`::before`) + soft
|
|
28
|
+
shadow, **with a solid fallback** (`@supports` + `prefers-reduced-transparency`). Optional
|
|
29
|
+
hover **sheen** (see motion). Keep ≤ ~2–3 large glass surfaces per viewport.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 1. Navbar (+ glass dropdown/mega-menu + breadcrumb)
|
|
34
|
+
Sticky **`.glass--nav`** bar over the backdrop. Logo · nav links · primary CTA (solid) +
|
|
35
|
+
"Sign in" ghost · mobile hamburger. **Extensionless hrefs** (`/platform`). **Dropdown/
|
|
36
|
+
mega-menu** is a floating `.glass` panel (vanilla JS): hover/click toggle, ESC + click-
|
|
37
|
+
outside, `aria-haspopup/expanded`, arrow-key nav. Mobile: full-screen `.glass--strong`
|
|
38
|
+
overlay, accordion, focus-trap, ESC. **Breadcrumb** on deep pages. a11y: `aria-current`.
|
|
39
|
+
|
|
40
|
+
## 2. Hero
|
|
41
|
+
Layout GH-A/GH-B/GH-C. Eyebrow · H1 (optional `--grad-text` on one word) · lead · CTA pair
|
|
42
|
+
(solid primary + ghost) inside a centered **`.glass--strong` hero panel** over a calm mesh
|
|
43
|
+
region. Optional product preview in a second glass panel. One H1, one solid primary CTA.
|
|
44
|
+
Decorative mesh/glow `aria-hidden`.
|
|
45
|
+
|
|
46
|
+
## 3. Feature Grid
|
|
47
|
+
`.grid.cols-3` of **`.glass` feature cards**: icon chip · H3 · body · optional link. Hover:
|
|
48
|
+
lift + faint sheen. Keep body weight ~460 on glass for legibility.
|
|
49
|
+
|
|
50
|
+
## 4. Bento Grid
|
|
51
|
+
A few varied **glass tiles** (one anchor) floating on the mesh — mixed content (feature,
|
|
52
|
+
metric, mini preview). Don't over-tile; leave background visible between tiles.
|
|
53
|
+
|
|
54
|
+
## 5. Testimonials
|
|
55
|
+
Featured quote in a large `.glass` panel + small glass quote cards, or a 3-up grid.
|
|
56
|
+
`<blockquote>` + `<cite>`; carousel optional. Ensure quote text clears AA on the tint.
|
|
57
|
+
|
|
58
|
+
## 6. Logos Section
|
|
59
|
+
"Trusted by" eyebrow + logos in a slim `.glass` strip or directly on the backdrop
|
|
60
|
+
(monochrome, `opacity:.7`). Pausable marquee optional. `<img alt="Company">`.
|
|
61
|
+
|
|
62
|
+
## 7. Pricing
|
|
63
|
+
Layout P-A/P-B. Tier **`.glass` cards** (price tabular-nums, feature list, CTA);
|
|
64
|
+
highlighted tier = accent edge + `.glass--strong` (more opaque) + "Most popular" pill;
|
|
65
|
+
monthly/annual toggle. Primary CTA solid. a11y: real `role="switch"`/radio.
|
|
66
|
+
|
|
67
|
+
## 8. FAQ
|
|
68
|
+
Accordion inside a `.glass--strong` panel (reading legibility). `<button>` + collapsible
|
|
69
|
+
answer; height/opacity animation. a11y: `aria-expanded`/`aria-controls`.
|
|
70
|
+
|
|
71
|
+
## 9. CTA
|
|
72
|
+
Layout C-A: a centered **`.glass--strong` band**, big H2, supporting line, **solid accent
|
|
73
|
+
CTA** + ghost. `--section-y-lg`, no border.
|
|
74
|
+
|
|
75
|
+
## 10. Footer
|
|
76
|
+
FT-A on a `.glass--nav`/near-solid panel: brand · 4–6 link columns · legal · locale/social.
|
|
77
|
+
Muted-but-AA text. `<footer>`, `<nav>` link lists.
|
|
78
|
+
|
|
79
|
+
## 11. Dashboard Preview
|
|
80
|
+
Product app shell inside a **glass frame** (or a solid app frame on a glass mount), floated
|
|
81
|
+
with `--glass-shadow` + subtle parallax. Real-looking data. Decorative → `aria-hidden`;
|
|
82
|
+
informative → alt text. Keep in-app text on solid surfaces (don't blur the product UI).
|
|
83
|
+
|
|
84
|
+
## 12. Agent Workflow Section
|
|
85
|
+
Steps as connected **glass cards** (Plan → Retrieve → Act → Verify), or a glass panel
|
|
86
|
+
showing the agent running. Sequential reveal. a11y: `<ol>` text equivalent.
|
|
87
|
+
|
|
88
|
+
## 13. Code Preview
|
|
89
|
+
Mono code in a **glass-framed** card with a window header (filename, copy). Put the code on
|
|
90
|
+
a slightly more opaque inner surface so syntax stays legible. `<pre><code>`; copy `aria-label`.
|
|
91
|
+
|
|
92
|
+
## 14. Terminal Preview
|
|
93
|
+
Glass-framed terminal: header + prompt lines on a near-solid inner surface; optional
|
|
94
|
+
typewriter (reduced-motion → final state). Real text, not an image.
|
|
95
|
+
|
|
96
|
+
## 15. Trust Section
|
|
97
|
+
Metric **glass tiles**: big tabular-nums numbers + muted labels (count-up on reveal, final
|
|
98
|
+
value in DOM). Accent on numbers only. Ensure contrast on the tint.
|
|
99
|
+
|
|
100
|
+
## 16. Security Section
|
|
101
|
+
Compliance badges (SOC 2/ISO/GDPR/HIPAA) + assurances in a `.glass` panel with an icon
|
|
102
|
+
list + "Read security docs". Calm, factual. Badges have alt text.
|
|
103
|
+
|
|
104
|
+
## 17. Enterprise Section
|
|
105
|
+
"Built for enterprise" glass panel: SSO/RBAC/SLAs/VPC props + "Talk to sales" (solid CTA)
|
|
106
|
+
+ optional logo strip. No border.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Component rules
|
|
111
|
+
- **Glass for surfaces, solid for actions.** Primary CTAs are solid accent buttons, never glass.
|
|
112
|
+
- **Every glass component ships the fallback** (`@supports` + `prefers-reduced-transparency`
|
|
113
|
+
→ solid tinted surface) and the highlight edge + shadow.
|
|
114
|
+
- **Guarantee AA** on every glass panel's text (use `.glass--strong`/scrim behind reading text).
|
|
115
|
+
- Compose from shared `.btn`/`.glass`/tokens — no bespoke effects per component.
|
|
116
|
+
- Every interactive element has hover **and** `:focus-visible`; components reflow to single
|
|
117
|
+
column by `md`/`sm`.
|
|
118
|
+
- Decorative visuals `aria-hidden`; informative media has meaningful `alt`.
|
|
119
|
+
- Restraint: ≤ ~2–3 large glass surfaces per viewport; hairlines/edges belong to panels —
|
|
120
|
+
**never between page sections**; keep blurred-surface count performant.
|