# Glassmorphism — AI design spec

> Blurred backgrounds, translucent elements, fine borders.
>
> Style page: https://www.aiwebstyle.com/styles/glassmorphism.html · Live preview: https://www.aiwebstyle.com/previews/glassmorphism.html
>
> Drop this file at the root of a project and point your coding agent at it. Every value is copied from the working stylesheet, not estimated.

## 1. What this style is

Glassmorphism is an interface design style that simulates a frosted glass effect. It creates a light, layered, and modern visual experience through background blur, translucency, subtle borders, and glossy effects.

## 2. Tokens

### Page surface

| Token | Value | Purpose |
|---|---|---|
| `--page-bg` | `#6a85b6` | Page background (solid fallback) |
| `--page-bg-gradient` | `linear-gradient(to bottom right, #b3ffab, #12fff7)` | Page background gradient; overrides the solid unless `none` |

### Text

| Token | Value | Purpose |
|---|---|---|
| `--text-color` | `#000` | Body text |
| `--heading-color` | `#000` | Headings |

### Links

| Token | Value | Purpose |
|---|---|---|
| `--link-color` | `#fff` | Link and inline accent |
| `--link-hover-color` | `#eee` | Link hover |

### Borders

| Token | Value | Purpose |
|---|---|---|
| `--border-color` | `rgba(255, 255, 255, 0.2)` | Dividers and input borders |

### Cards

| Token | Value | Purpose |
|---|---|---|
| `--card-bg` | `rgba(255, 255, 255, 0.15)` | Card surface |
| `--card-border-radius` | `12px` | Card corner radius |
| `--card-shadow` | `0 4px 20px rgba(0, 0, 0, 0.1)` | Card at rest |
| `--card-hover-shadow` | `0 6px 25px rgba(0, 0, 0, 0.15)` | Card on hover |

### Header

| Token | Value | Purpose |
|---|---|---|
| `--header-bg` | `rgba(255, 255, 255, 0.1)` | Sticky header surface |
| `--header-text-color` | `#fff` | Header text and nav links |
| `--header-shadow` | `none` | Header elevation (usually `none`) |

### Footer

| Token | Value | Purpose |
|---|---|---|
| `--footer-bg` | `transparent` | Footer surface |
| `--footer-text-color` | `#eee` | Footer text |

### Buttons

| Token | Value | Purpose |
|---|---|---|
| `--button-bg` | `rgba(255, 255, 255, 0.25)` | Primary button fill |
| `--button-text-color` | `#000` | Primary button label |
| `--button-hover-bg` | `rgba(255, 255, 255, 0.4)` | Primary button hover fill |
| `--button-border` | `1px solid rgba(255, 255, 255, 0.3)` | Primary button border |
| `--button-secondary-bg` | `rgba(0, 0, 0, 0.2)` | Secondary button fill |
| `--button-secondary-text-color` | `#eee` | Secondary button label |
| `--button-secondary-hover-bg` | `rgba(0, 0, 0, 0.4)` | Secondary button hover fill |

### Code / prompt block

| Token | Value | Purpose |
|---|---|---|
| `--prompt-bg` | `rgba(0, 0, 0, 0.15)` | Code / prompt block surface |
| `--prompt-text-color` | `#f0f0f0` | Code / prompt block text |

### Type

| Token | Value | Purpose |
|---|---|---|
| `--base-font` | `var(--font-pop)` | Body font stack |
| `--heading-font` | `var(--font-pop)` | Heading font stack |

### Other tokens in this theme

| Token | Value |
|---|---|
| `--button-secondary-border` | `1px solid rgba(255, 255, 255, 0.3)` |
| `--button-border-radius` | `8px` |

## 3. Do

- Drive every color, radius and shadow from the tokens below. No literal hex values in component code.
- Reuse the `--card-*` tokens for any elevated surface (card, panel, modal, dropdown) so elevation stays consistent.
- Keep header and footer on `--header-*` / `--footer-*` even when the page background is a gradient.

## 4. Don't

- Do not blend tokens from another style in this library — one page, one token set.
- Do not invent a hover state: every interactive element has a `*-hover-*` token above.

## 5. Using this with a coding agent

Place this file at the project root as `DESIGN.md`, then instruct the agent:

> Follow `DESIGN.md` for all UI. Every color, radius and shadow comes from its token table. If you need a state that is not listed, derive it from the nearest listed token and add the new token to `DESIGN.md` instead of hard-coding a value.

If the project already has a token layer (Tailwind config, CSS custom properties, a theme file), map these tokens onto it one-to-one and keep the names unchanged.

## 6. Original prompt

```text
Design a website section using glassmorphism. Use a colorful, blurred background image/gradient. Create semi-transparent white cards with backdrop-filter: blur(10px) and a subtle white border.
```

---

*Generated from the `glassmorphism` theme in `style.css`. Token values are verbatim — regenerate rather than edit by hand.*
