Styledex
← Index

Modern Gradient

现代渐变风

stylekitMITGradient · gradientGlassmorphism · glassmorphismExperimental · experimentalLight · lightMedium · mediumPurple · purpleVivid · vividSerif · serifGeneral · generalLanding · landing

充满活力的现代渐变风格,多彩渐变背景、玻璃质感卡片、动态光影效果。适合创业公司、数字产品、活动页面。

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

"Modern Gradient" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/modern-gradient · bfa7da909e86 · © AnxForever

Do

  • 使用 bg-gradient-to-r from-violet-500 via-purple-500 to-fuchsia-500 等渐变
  • 卡片使用 backdrop-blur-xl bg-white/10 的玻璃效果
  • 按钮使用渐变 + hover 时渐变位移效果
  • 深色背景 bg-slate-950 或 bg-[#1e1b4b]
  • 文字使用 bg-gradient-to-r bg-clip-text text-transparent 渐变效果
  • 使用 rounded-2xl 或 rounded-3xl 圆角
  • 添加光晕效果 blur-3xl opacity-30 作为装饰

Don't

  • 禁止使用纯色背景(主要区域)
  • 禁止使用单调的灰色调
  • 禁止使用尖锐边角 rounded-none
  • 禁止使用老式渐变(如垂直渐变的按钮)
  • 禁止过度使用渐变导致视觉混乱
  • 禁止在深色渐变上使用深色文字

Prompt

Create a startup landing using Modern Gradient style:
- Full-width hero with animated gradient background
- Floating glass cards with features
- Gradient CTAs with shadow glow
- Stats section with gradient numbers
- Testimonials in glass cards
- Dark footer with gradient accents
- Add decorative glow orbs

---
"Modern Gradient" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Modern Gradient. \"Modern Gradient\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-modern-gradient",
      "license": "MIT",
      "attribution": "\"Modern Gradient\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#020617"
    },
    "foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "card": {
      "$type": "color",
      "$value": "#020617"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "primary": {
      "$type": "color",
      "$value": "#8b5cf6"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "secondary": {
      "$type": "color",
      "$value": "#1e1b4b"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "accent": {
      "$type": "color",
      "$value": "#06b6d4"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#111525"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#a6a6a6"
    },
    "border": {
      "$type": "color",
      "$value": "#252937"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#8b5cf6"
    }
  },
  "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 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Modern Gradient" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86. */
:root {
  --background: #020617;
  --foreground: #ffffff;
  --card: #020617;
  --card-foreground: #ffffff;
  --primary: #8b5cf6;
  --primary-foreground: #fafaf9;
  --secondary: #1e1b4b;
  --secondary-foreground: #ffffff;
  --accent: #06b6d4;
  --accent-foreground: #fafaf9;
  --muted: #111525;
  --muted-foreground: #a6a6a6;
  --border: #252937;
  --destructive: #dc2626;
  --ring: #8b5cf6;
  --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 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Modern Gradient" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86. */
/** Tailwind theme extend for Modern Gradient (stylekit-modern-gradient) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#020617",
        "foreground": "#ffffff",
        "card": "#020617",
        "primary": "#8b5cf6",
        "primary-foreground": "#fafaf9",
        "secondary": "#1e1b4b",
        "accent": "#06b6d4",
        "muted": "#111525",
        "border": "#252937",
        "destructive": "#dc2626",
        "ring": "#8b5cf6"
      },
      "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 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Modern Gradient" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/modern-gradient @ bfa7da909e86. */
@layer base {
:root {
  --background: #020617;
  --foreground: #ffffff;
  --card: #020617;
  --card-foreground: #ffffff;
  --primary: #8b5cf6;
  --primary-foreground: #fafaf9;
  --secondary: #1e1b4b;
  --secondary-foreground: #ffffff;
  --accent: #06b6d4;
  --accent-foreground: #fafaf9;
  --muted: #111525;
  --muted-foreground: #a6a6a6;
  --border: #252937;
  --destructive: #dc2626;
  --ring: #8b5cf6;
  --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 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}