Y2K

千禧风格

D
53/100Poor
Rate this style

Early-2000s futuristic aesthetic with metallic textures, transparent plastics, bubble elements, silver and rainbow gradients, brimming with optimistic visions of the digital age.

Y2KY2K aestheticretro futurismearly 2000s designchrome metalliciridescent gradientholographictransparent plasticbubble elementscyber Y2Krainbow gradientnostalgic web design
View Full Showcase →
Templates

Best For

Y2K / Y2K aesthetic / retro futurism

Primary Move

Use silver/metallic gradients bg-gradient-to-r from-gray-300 via-white to-gray-300

Watch Out

Do not use dull, muted color schemes

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • When AI should generate UI directly
  • When repeated outputs must stay consistent
  • When style drift is the main risk

How to use

  • Copy the full prompt
  • Append the concrete requirement
  • Review against forbidden rules and UI states
STYLEKIT_STYLE_REFERENCE
style_name: Y2K
style_slug: y2k
style_source: /styles/y2k

# Hard Prompt

## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.

## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.

Strictly follow the style rules below and maintain consistency. No style drift allowed.

## Requirements

- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.

## Style Rules

You are a Y2K design style frontend development expert. All generated code must strictly follow these constraints:

## Absolutely Forbidden

- Dull, muted color schemes
- Overly flat design
- Omitting gloss and reflection effects
- Sharp right angles

## Must Follow

- Metallic gradients bg-gradient-to-b from-gray-200 via-white to-gray-300
- Rounded shapes rounded-full, rounded-3xl
- Transparent effects bg-white/60 backdrop-blur
- Rainbow gradients from-pink-400 via-purple-400 to-cyan-400
- Bubble/sphere decorative elements

## Color Palette

Primary:
- Silver: #c0c0c0, from-gray-300
- Pink: #ff69b4, from-pink-400
- Cyan: #00ffff, from-cyan-400
- Purple: #ff00ff, from-purple-400

## Decorative Elements

- Star/sparkle decorations
- Bubble spheres
- Rainbow gradients
- Transparent plastic textures

## Animation & Interaction Rules

- Chrome Liquid: Interactions must convey a "liquid metal" or "plastic jelly" texture. On hover, metallic gradients enhance through highlight inner shadows (e.g., hover:shadow-[inset_0_4px_8px_rgba(255,255,255,1)]), simulating a 3D reflective sheen sliding across a metallic surface.
- Bubble Pop: Y2K is full of optimism and toy-like feel. Must use elastic custom easing ease-[cubic-bezier(0.34,1.56,0.64,1)], exaggerated scaling on hover (hover:scale-105 or hover:-translate-y-1), and jelly-like squish on click (active:scale-90).
- CD Glare: Shadow colors must use high-saturation cyan (#00ffff) and pink (#ff69b4) mixed glow, simulating CD disc laser reflections. No black shadows allowed.
- Lava Lamp Effect: Circular bubble decorations inside cards produce asymmetric movement or stretching on hover, like liquid droplets rising in a lava lamp.

---

# Y2K Design System

> Early-2000s futuristic aesthetic with metallic textures, transparent plastics, bubble elements, silver and rainbow gradients, brimming with optimistic visions of the digital age.

## Design Philosophy

Y2K is the design aesthetic of the late 1990s to early 2000s, reflecting people's optimistic imagination of the new millennium and the digital future.

Core concepts:
- Futurism: Optimistic visions of the digital age
- Metallic texture: Silver, chrome alloy, reflective materials
- Transparent elements: Clear plastics, bubbles, water-drop effects
- Rainbow gradients: Holographic effects, rainbow reflections

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border-2
Color: border-[#c0c0c0]
Radius: rounded-2xl
```

### Shadow
```
sm: shadow-[0_2px_8px_rgba(255,105,180,0.3)] md:shadow-[0_4px_12px_rgba(255,105,180,0.3)]
md: shadow-[0_4px_16px_rgba(255,105,180,0.4)] md:shadow-[0_6px_24px_rgba(255,105,180,0.4)]
lg: shadow-[0_8px_32px_rgba(255,105,180,0.5)] md:shadow-[0_12px_48px_rgba(255,105,180,0.5)]
hover: hover:shadow-[0_8px_32px_rgba(192,192,192,0.6)]
focus: focus:shadow-[0_4px_20px_rgba(255,105,180,0.5)]
```

### Interaction
```
Hover translate: (none)
Hover scale: hover:scale-105
Hover opacity: (none)
Transition: transition-all duration-300 ease-out
Active: active:scale-95
```

### Typefaces
```
Heading: font-bold tracking-wide
Body: font-sans
Mono: font-mono
```

### Type scale
```
Hero: text-4xl md:text-6xl lg:text-7xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-3xl
H3: text-xl md:text-2xl
Body: text-sm md:text-base
Small: text-xs md:text-sm
```

### Spacing
```
Section: py-10 md:py-20 lg:py-28
Container: px-4 md:px-8 lg:px-12
Card: p-5 md:p-7
Gap sm: gap-2 md:gap-4
Gap md: gap-4 md:gap-6
Gap lg: gap-6 md:gap-8
```

### Color roles
```
Background primary: bg-gradient-to-br from-[#e0e0e0] to-[#f5f5f5]
Background secondary: bg-[#c0c0c0]
Background accent: bg-[#ff69b4], bg-[#00bfff], bg-[#c0c0c0], bg-[#ff6ec7]
Text primary: text-[#333333]
Text secondary: text-[#ff69b4]
Text muted: text-[#808080]
Button primary: bg-gradient-to-r from-[#ff69b4] to-[#ff6ec7] text-white
Button secondary: bg-gradient-to-b from-[#e8e8e8] to-[#c0c0c0] text-[#333333]
```

---

## [FORBIDDEN]

These classes are banned in this style. Check for them before returning code:

### Banned classes
- `rounded-none`
- `rounded-sm`
- `border-black`
- `border-4`
- `bg-[#1a1a2e]`
- `bg-black`
- `text-black`
- `shadow-[2px_2px_0px`
- `shadow-[4px_4px_0px`
- `font-mono`
- `bg-amber-`
- `bg-stone-`
- `bg-yellow-900`

### Banned patterns
- matches `^rounded-none$`
- matches `^shadow-\[\d+px_\d+px_0px`
- matches `^bg-amber-`
- matches `^bg-stone-`
- matches `^bg-yellow-(?:[7-9])`
- matches `^text-amber-`

### Why they are banned
- `rounded-none`: Y2K uses bubble-like rounded shapes (rounded-2xl or rounded-full)
- `border-black`: Y2K uses metallic silver borders, not solid black
- `shadow-[4px_4px_0px`: Y2K uses soft metallic/pink glowing shadows, not hard-edge
- `bg-amber-700`: Y2K avoids muted earth tones, uses pinks and silvers

> WARNING: if your code contains any of the above, replace it before shipping.

---

## [REQUIRED]

### Every button must include
```
rounded-2xl
border-2 border-[#c0c0c0]
shadow-[0_4px_16px_rgba(255,105,180,0.4)]
hover:scale-105
transition-all duration-300 ease-out
font-bold
```

### Every card must include
```
rounded-2xl
border-2 border-[#c0c0c0]
shadow-[0_4px_16px_rgba(255,105,180,0.4)]
bg-white/80
```

### Every input must include
```
rounded-2xl
border-2 border-[#c0c0c0]
bg-white
focus:shadow-[0_4px_20px_rgba(255,105,180,0.5)]
focus:outline-none
```

---

## [COMPARE] Y2K wrong vs right

The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.

### Button

[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
  Click me
</button>
```

[CORRECT] **Right** (uses this style's tokens):
```html
<button class="rounded-2xl border-2 border-[#c0c0c0] shadow-[0_4px_16px_rgba(255,105,180,0.4)] hover:scale-105 transition-all duration-300 ease-out font-bold bg-gradient-to-r from-[#ff69b4] to-[#ff6ec7] text-white">
  Click me
</button>
```

### Card

[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
  <h3>{TITLE}</h3>
</div>
```

[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="rounded-2xl border-2 border-[#c0c0c0] shadow-[0_4px_16px_rgba(255,105,180,0.4)] bg-white/80 p-5 md:p-7">
  <h3 class="font-bold tracking-wide text-xl md:text-2xl">{TITLE}</h3>
</div>
```

### Input

[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```

[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="rounded-2xl border-2 border-[#c0c0c0] bg-white focus:shadow-[0_4px_20px_rgba(255,105,180,0.5)] focus:outline-none" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Y2K page skeletons

These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:

### Navigation
```html
<nav class="bg-gradient-to-br from-[#e0e0e0] to-[#f5f5f5] text-[#333333] border-2 border-[#c0c0c0] px-4 md:px-8 lg:px-12">
  <div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
    <a href="/" class="font-bold tracking-wide text-xl md:text-2xl">
      {LOGO_TEXT}
    </a>
    <div class="flex gap-4 md:gap-6 font-sans text-xs md:text-sm">
      {NAV_LINKS}
    </div>
  </div>
</nav>
```

### Hero section
```html
<section class="bg-[#ff69b4] text-[#333333] py-10 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-4xl mx-auto">
    <h1 class="font-bold tracking-wide text-4xl md:text-6xl lg:text-7xl">
      {HEADLINE}
    </h1>
    <p class="font-sans text-sm md:text-base max-w-xl">
      {SUBHEADLINE}
    </p>
    <button class="rounded-2xl border-2 border-[#c0c0c0] shadow-[0_4px_16px_rgba(255,105,180,0.4)] hover:scale-105 transition-all duration-300 ease-out font-bold bg-gradient-to-r from-[#ff69b4] to-[#ff6ec7] text-white">
      {CTA_TEXT}
    </button>
  </div>
</section>
```

### Card grid
```html
<section class="bg-gradient-to-br from-[#e0e0e0] to-[#f5f5f5] text-[#333333] py-10 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-6xl mx-auto">
    <h2 class="font-bold tracking-wide text-2xl md:text-3xl">{SECTION_TITLE}</h2>
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
      <!-- Card template - repeat for each card -->
      <div class="rounded-2xl border-2 border-[#c0c0c0] shadow-[0_4px_16px_rgba(255,105,180,0.4)] bg-white/80 p-5 md:p-7">
        <h3 class="font-bold tracking-wide text-xl md:text-2xl">{CARD_TITLE}</h3>
        <p class="font-sans text-sm md:text-base text-[#808080]">{CARD_DESCRIPTION}</p>
      </div>
    </div>
  </div>
</section>
```

### Form input
```html
<input class="rounded-2xl border-2 border-[#c0c0c0] bg-white focus:shadow-[0_4px_20px_rgba(255,105,180,0.5)] focus:outline-none" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-[#c0c0c0] text-[#ff69b4] py-10 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-6xl mx-auto">
    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8">
      <div>
        <span class="font-bold tracking-wide text-xl md:text-2xl">{LOGO_TEXT}</span>
        <p class="font-sans text-xs md:text-sm">{TAGLINE}</p>
      </div>
      <div>
        <h4 class="font-bold tracking-wide text-xl md:text-2xl">{COLUMN_TITLE}</h4>
        <ul class="font-sans text-xs md:text-sm">
          {FOOTER_LINKS}
        </ul>
      </div>
    </div>
  </div>
</footer>
```

---

## [CHECKLIST] Y2K post-generation self check

**Before returning code, verify every token and rule below. Fix any violation before delivering:**

### Token check
- [ ] Button includes: `rounded-2xl border-2 border-[#c0c0c0] shadow-[0_4px_16px_rgba(255,105,180,0.4)] hover:scale-105 transition-all duration-300 ease-out font-bold`
- [ ] Card includes: `rounded-2xl border-2 border-[#c0c0c0] shadow-[0_4px_16px_rgba(255,105,180,0.4)] bg-white/80`
- [ ] Input includes: `rounded-2xl border-2 border-[#c0c0c0] bg-white focus:shadow-[0_4px_20px_rgba(255,105,180,0.5)] focus:outline-none`

### Forbidden check
- [ ] Not using `rounded-none`
- [ ] Not using `rounded-sm`
- [ ] Not using `border-black`
- [ ] Not using `border-4`
- [ ] Not using `bg-[#1a1a2e]`
- [ ] Not using `bg-black`
- [ ] Not using `text-black`
- [ ] Not using `shadow-[2px_2px_0px`

### Style rule check
- [ ] Use silver/metallic gradients bg-gradient-to-r from-gray-300 via-white to-gray-300
- [ ] Add bubble/sphere decorative elements
- [ ] Use transparent/semi-transparent effects bg-white/30 backdrop-blur
- [ ] Rainbow gradient text effects
- [ ] Rounded futuristic shapes rounded-full

### Style drift check
- [ ] Does not violate: Do not use dull, muted color schemes
- [ ] Does not violate: Do not use overly flat design
- [ ] Does not violate: Do not omit gloss/reflection effects
- [ ] Does not violate: Do not use rough textures

### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Y2K

## Absolute Bans (Match and Refuse)

If any of the following patterns appear, it is a style violation — rewrite without exception.

- use dull, muted color schemes
- use overly flat design
- omit gloss/reflection effects
- use rough textures

## Self-Check (Verify Before Shipping)

If any item fails, the style has drifted — fix before shipping.

- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do not use dull, muted color schemes
- [ ] do not use overly flat design
- [ ] do not omit gloss/reflection effects
- [ ] do not use rough textures

More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

按钮

Y2K风格按钮,金属光泽

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.

Overall

51%

Fallback

Dark Mode

0%

Missing

UI States

79%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

35%

Fallback

Key State Coverage

light
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

Default / Hover / Focus Visible / Active / Disabled

Input

Default / Hover / Focus Visible / Disabled / Error

Card

Default / Hover / Focus Visible / Loading / Skeleton

Form

Default / Focus Visible / Disabled / Loading / Error

Implementation Notes

  • No curated dark-mode contract exists yet.
  • Check contrast in both light and dark modes.
  • Check heavy shadows, blur, large media, and scroll-linked effects manually.
  • No style-specific performance cost profile has been curated yet.

FAQ

Y2K — Frequently Asked Questions

What is the Y2K design style?
Early-2000s futuristic aesthetic with metallic textures, transparent plastics, bubble elements, silver and rainbow gradients, brimming with optimistic visions of the digital age. Its core principle: Y2K is the design aesthetic of the late 1990s to early 2000s, reflecting people's optimistic imagination of the new millennium and the digital future.
What colors does Y2K use?
Y2K uses #c0c0c0 as its primary color and #ff69b4 as its secondary color, with accent colors #00ffff, #ff00ff, #87ceeb, #93c4ff. Every hex value can be copied from the palette on this page.
How do I apply Y2K correctly?
Key practices: Use silver/metallic gradients bg-gradient-to-r from-gray-300 via-white to-gray-300. Add bubble/sphere decorative elements. Use transparent/semi-transparent effects bg-white/30 backdrop-blur.
What are common mistakes with Y2K?
Avoid: Do not use dull, muted color schemes. Do not use overly flat design. Do not omit gloss/reflection effects.
How do I prompt AI to generate Y2K UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: Y2K, Y2K aesthetic, retro futurism, early 2000s design.
Global Styles

Global CSS

css
/* Y2K 全局样式 */

:root {
  --y2k-silver: #c0c0c0;
  --y2k-pink: #ff69b4;
  --y2k-cyan: #00ffff;
  --y2k-purple: #ff00ff;
}

/* 金属光泽效果 */
.y2k-metallic {
  background: linear-gradient(
    135deg,
    #e8e8e8 0%,
    #ffffff 25%,
    #e8e8e8 50%,
    #ffffff 75%,
    #e8e8e8 100%
  );
}

/* 彩虹渐变文字 */
.y2k-rainbow-text {
  background: linear-gradient(90deg, #ff69b4, #00ffff, #ff00ff, #ff69b4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
  to { background-position: 200% center; }
}

/* 气泡效果 */
.y2k-bubble {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent);
  border-radius: 50%;
}
.y2k-card {
  position: relative;
  overflow: hidden;
}

.y2k-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), transparent);
  pointer-events: none;
}

.y2k-card:hover::before {
  opacity: 1;
}

.y2k-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(192, 192, 192, 0.08);
}

.y2k-accent-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}

.y2k-animate-in {
  animation: y2k-fade-in 0.5s ease-out both;
}

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export Style Pack

Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.

Metadata

Style metadata including version information

Design Tokens

Compatible with Figma / Style Dictionary / Tokens Studio

Tailwind Preset

Tailwind CSS theme preset, import directly in config

Global CSS

CSS variables and base styles

shadcn Theme

shadcn/ui theme configuration

CSS Variables

Pure CSS variables, works with any project

SKILL.md

Loadable skill pack for Cursor / Claude Code / VS Code

Design Philosophy

Y2K is the design aesthetic of the late 1990s to early 2000s, reflecting people's optimistic imagination of the new millennium and the digital future.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

53

Overall Score

Grade: D - Poor

Contrast Ratios

Score: 38/100Average Ratio: 3.88:1
AA FailAAA Fail
ContextColorsRatioAAAAA
Text on background
/#333333 / #e0e0e0
9.57:1
Secondary text on background
/#ff69b4 / #e0e0e0
2.01:1
Muted text on background
/#808080 / #e0e0e0
2.99:1
Text on secondary background
/#333333 / #c0c0c0
6.94:1
Secondary text on secondary
/#ff69b4 / #c0c0c0
1.46:1
Text on accent 1
/#333333 / #ff69b4
4.77:1
Alt text on accent 1
/#ff69b4 / #ff69b4
1:1
Text on accent 2
/#333333 / #00bfff
5.95:1
Alt text on accent 2
/#ff69b4 / #00bfff
1.25:1
Text on accent 3
/#333333 / #c0c0c0
6.94:1
Alt text on accent 3
/#ff69b4 / #c0c0c0
1.46:1
Text on accent 4
/#333333 / #ff6ec7
5:1
Alt text on accent 4
/#ff69b4 / #ff6ec7
1.05:1

Readability

Score

87/100

Font Size

text-sm md:text-base

Font Weight

font-bold tracking-wide

Line Height

default

Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.