Styledex
← Index

macOS Vibrancy

macOS 毛玻璃

stylekitMITGlassmorphism · glassmorphismProfessional · professionalMinimal · minimalLight and dark · bothMedium · mediumNeutral · neutralMuted · mutedSerif · serifGeneral · generalLanding · landing

macOS 原生暗色毛玻璃风格。通过多层深灰面板、系统级 backdrop-blur 和极度克制的装饰,还原桌面应用的沉稳质感。

NNorthwind
Product · Pricing
Specimen
Make the work feel finished

One interface, dressed in this style. Compare type, color, radius, and density.

128
Active
4.8
Score
12ms
Edge

Attribution

"macOS Vibrancy" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/macos-vibrancy · bfa7da909e86 · © AnxForever

Do

  • Use three-depth dark gray system: #1c1c1e (deepest) -> #2c2c2e -> #3a3a3c (lightest)
  • Sidebar uses backdrop-blur-xl with bg-[#1c1c1e]/80 for vibrancy effect
  • All borders are 1px border-white/8 to border-white/12, never thicker
  • Headings use serif font (Georgia, serif), body uses system sans-serif
  • Transitions are subtle: duration-200 ease-out, colors only
  • Active nav items use slightly lighter background bg-white/8 to bg-white/12
  • Code blocks use monospace font with bg-[#1c1c1e] background
  • System accent color #0a84ff for interactive highlights

Don't

  • No gradients on any element (backgrounds are solid dark grays)
  • No glow effects, no box-shadow larger than 2px spread
  • No decorative animations (pulse, bounce, spin)
  • No rounded-3xl or rounded-full (max rounded-xl)
  • No bright accent colors as backgrounds (only for text highlights)
  • No borders thicker than 1px

Prompt

Create a macOS Vibrancy settings page with:
1. Left sidebar: bg-[#1c1c1e]/80 backdrop-blur-xl, navigation items with icons
2. Active item: bg-white/10 rounded-lg
3. Main content: bg-[#2c2c2e], settings sections with 1px borders
4. Toggle switches, input fields, dropdown selects
5. All text white/95 for labels, white/60 for descriptions
6. No gradients, no shadows, no animations

---
"macOS Vibrancy" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "macOS Vibrancy. \"macOS Vibrancy\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-macos-vibrancy",
      "license": "MIT",
      "attribution": "\"macOS Vibrancy\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#1c1c1e"
    },
    "foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "card": {
      "$type": "color",
      "$value": "#1c1c1e"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "primary": {
      "$type": "color",
      "$value": "#3a3a3c"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "secondary": {
      "$type": "color",
      "$value": "#1c1c1e"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "accent": {
      "$type": "color",
      "$value": "#0a84ff"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#2a2a2c"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#a3a3a2"
    },
    "border": {
      "$type": "color",
      "$value": "#3c3c3e"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#3a3a3c"
    }
  },
  "font": {
    "sans": {
      "$type": "fontFamily",
      "$value": [
        "ui-sans-serif",
        "system-ui",
        "sans-serif"
      ]
    },
    "serif": {
      "$type": "fontFamily",
      "$value": [
        "ui-serif",
        "Georgia",
        "serif"
      ]
    },
    "mono": {
      "$type": "fontFamily",
      "$value": [
        "ui-monospace",
        "SFMono-Regular",
        "Menlo",
        "monospace"
      ]
    }
  },
  "radius": {
    "base": {
      "$type": "dimension",
      "$value": "0.5rem"
    }
  },
  "spacing": {
    "base": {
      "$type": "dimension",
      "$value": "1rem"
    }
  },
  "shadow": {
    "base": {
      "$type": "shadow",
      "$value": "0 1px 0 rgba(255,255,255,0.05)"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "macOS Vibrancy" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86. */
:root {
  --background: #1c1c1e;
  --foreground: #fafaf9;
  --card: #1c1c1e;
  --card-foreground: #fafaf9;
  --primary: #3a3a3c;
  --primary-foreground: #fafaf9;
  --secondary: #1c1c1e;
  --secondary-foreground: #fafaf9;
  --accent: #0a84ff;
  --accent-foreground: #fafaf9;
  --muted: #2a2a2c;
  --muted-foreground: #a3a3a2;
  --border: #3c3c3e;
  --destructive: #dc2626;
  --ring: #3a3a3c;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 0 1px 0 rgba(255,255,255,0.05);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "macOS Vibrancy" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86. */
/** Tailwind theme extend for macOS Vibrancy (stylekit-macos-vibrancy) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#1c1c1e",
        "foreground": "#fafaf9",
        "card": "#1c1c1e",
        "primary": "#3a3a3c",
        "primary-foreground": "#fafaf9",
        "secondary": "#1c1c1e",
        "accent": "#0a84ff",
        "muted": "#2a2a2c",
        "border": "#3c3c3e",
        "destructive": "#dc2626",
        "ring": "#3a3a3c"
      },
      "borderRadius": {
        "lg": "0.5rem"
      },
      "fontFamily": {
        "sans": [
          "ui-sans-serif",
          "system-ui",
          "sans-serif"
        ],
        "serif": [
          "ui-serif",
          "Georgia",
          "serif"
        ],
        "mono": [
          "ui-monospace",
          "SFMono-Regular",
          "Menlo",
          "monospace"
        ]
      },
      "boxShadow": {
        "styledex": "0 1px 0 rgba(255,255,255,0.05)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "macOS Vibrancy" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/macos-vibrancy @ bfa7da909e86. */
@layer base {
:root {
  --background: #1c1c1e;
  --foreground: #fafaf9;
  --card: #1c1c1e;
  --card-foreground: #fafaf9;
  --primary: #3a3a3c;
  --primary-foreground: #fafaf9;
  --secondary: #1c1c1e;
  --secondary-foreground: #fafaf9;
  --accent: #0a84ff;
  --accent-foreground: #fafaf9;
  --muted: #2a2a2c;
  --muted-foreground: #a3a3a2;
  --border: #3c3c3e;
  --destructive: #dc2626;
  --ring: #3a3a3c;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 0 1px 0 rgba(255,255,255,0.05);
}
}