Styledex
← Index

Generative Art

生成艺术

stylekitMITTexture · textureExperimental · 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

"Generative Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/generative-art · bfa7da909e86 · © AnxForever

Do

  • 背景使用近黑色 bg-[#0a0a0a] 或 bg-neutral-950
  • 使用 HSL 旋转生成算法色板,以紫色 #7c3aed 为基准
  • 所有文字使用 font-mono 等宽字体
  • 用 SVG 几何图案(圆、线、曲线网格)作为装饰背景
  • 展示参数元素:seed 值、坐标、迭代次数等
  • 使用数学缓动函数驱动动画
  • 卡片使用 bg-neutral-900/80 backdrop-blur 的暗色玻璃效果
  • 交互元素使用紫色发光 shadow-[0_0_20px_rgba(124,58,237,0.4)]

Don't

  • 禁止使用图片或光栅位图
  • 禁止使用传统 UI 模式(除非加入算法化改造)
  • 禁止使用静态、毫无生气的布局
  • 禁止使用超过 5 种颜色而没有算法依据
  • 禁止使用非程序化派生的装饰元素
  • 禁止使用浅色/白色背景
  • 禁止使用 serif 或 sans 字体(必须用 monospace)
  • 禁止使用 spring、bounce 等拟物弹性动效

Prompt

Create a generative art gallery using Generative Art style:
- Dark background with dot-grid pattern overlay
- Cards for each artwork with SVG geometric illustrations
- Parameter badges showing seed, iterations, scale
- Algorithmic color palette display
- Monospace typography throughout

---
"Generative Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Generative Art. \"Generative Art\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-generative-art",
      "license": "MIT",
      "attribution": "\"Generative Art\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#0a0a0a"
    },
    "foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "card": {
      "$type": "color",
      "$value": "#0a0a0a"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "primary": {
      "$type": "color",
      "$value": "#7c3aed"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "secondary": {
      "$type": "color",
      "$value": "#0a0a0a"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "accent": {
      "$type": "color",
      "$value": "#3b82f6"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#191919"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#a6a6a6"
    },
    "border": {
      "$type": "color",
      "$value": "#2c2c2c"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#7c3aed"
    }
  },
  "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 0 20px rgba(124,58,237,0.25)"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Generative Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86. */
:root {
  --background: #0a0a0a;
  --foreground: #ffffff;
  --card: #0a0a0a;
  --card-foreground: #ffffff;
  --primary: #7c3aed;
  --primary-foreground: #fafaf9;
  --secondary: #0a0a0a;
  --secondary-foreground: #ffffff;
  --accent: #3b82f6;
  --accent-foreground: #fafaf9;
  --muted: #191919;
  --muted-foreground: #a6a6a6;
  --border: #2c2c2c;
  --destructive: #dc2626;
  --ring: #7c3aed;
  --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 0 20px rgba(124,58,237,0.25);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Generative Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86. */
/** Tailwind theme extend for Generative Art (stylekit-generative-art) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#0a0a0a",
        "foreground": "#ffffff",
        "card": "#0a0a0a",
        "primary": "#7c3aed",
        "primary-foreground": "#fafaf9",
        "secondary": "#0a0a0a",
        "accent": "#3b82f6",
        "muted": "#191919",
        "border": "#2c2c2c",
        "destructive": "#dc2626",
        "ring": "#7c3aed"
      },
      "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 0 20px rgba(124,58,237,0.25)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Generative Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/generative-art @ bfa7da909e86. */
@layer base {
:root {
  --background: #0a0a0a;
  --foreground: #ffffff;
  --card: #0a0a0a;
  --card-foreground: #ffffff;
  --primary: #7c3aed;
  --primary-foreground: #fafaf9;
  --secondary: #0a0a0a;
  --secondary-foreground: #ffffff;
  --accent: #3b82f6;
  --accent-foreground: #fafaf9;
  --muted: #191919;
  --muted-foreground: #a6a6a6;
  --border: #2c2c2c;
  --destructive: #dc2626;
  --ring: #7c3aed;
  --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 0 20px rgba(124,58,237,0.25);
}
}