Pixel Art
像素艺术风
stylekitMITGaming · gamingPixel · pixelRetro · retroExperimental · experimentalLight and dark · bothMedium · mediumBlue · blueMedium · mediumSerif · serifLanding · landing
复古 8-bit 像素游戏风格,无圆角、像素化边框、硬边阴影和鲜明的 8-bit 配色,适合游戏、复古应用和独立开发者项目。
NNorthwind
Product · PricingSpecimen
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
"Pixel Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86.
https://github.com/AnxForever/stylekit · api/styles/pixel-art · bfa7da909e86 · © AnxForever
Do
- 使用无圆角 rounded-none
- 使用粗边框 border-4
- 使用硬边阴影 shadow-[4px_4px_0_color]
- 使用 8-bit 调色板配色
- 使用像素字体或等宽字体
- 按钮按下时阴影消失并位移
- Absolute Zero: use `transition-none` throughout — pixel games run on a state machine, all visual state changes are instantaneous hard cuts
- Palette Swap: hover directly replaces the primary palette color with another 8-bit color (e.g., `hover:bg-[#29adff]` replacing red with blue), no gradients or opacity fades
Don't
- 禁止使用任何圆角
- 禁止使用渐变
- 禁止使用柔和阴影
- 禁止使用过于复杂的颜色
- 禁止使用细边框
- 禁止使用任何 transition-* 除 transition-none(像素游戏是状态机,不是动画引擎)
- 禁止在 Palette Swap 中使用 opacity 过渡或中间状态(颜色切换必须是硬切)
Prompt
用 Pixel Art 风格创建一个游戏主菜单,要求: 1. 背景:深色 #1a1c2c 2. 标题:大号像素字体,黄色闪烁 3. 菜单项:START, OPTIONS, CREDITS 4. 按钮:红色背景,硬边阴影,按下效果 5. 装饰:像素化的星星或图案 --- "Pixel Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86. powered by Styledex — https://styledex.dev
Tokens
DTCG
{
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
"$description": "Pixel Art. \"Pixel Art\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86.",
"$extensions": {
"dev.styledex": {
"id": "stylekit-pixel-art",
"license": "MIT",
"attribution": "\"Pixel Art\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86.",
"banner": "powered by Styledex — https://styledex.dev"
}
},
"color": {
"background": {
"$type": "color",
"$value": "#f4f4f4"
},
"foreground": {
"$type": "color",
"$value": "#1a1c2c"
},
"card": {
"$type": "color",
"$value": "#f4f4f4"
},
"card-foreground": {
"$type": "color",
"$value": "#1a1c2c"
},
"primary": {
"$type": "color",
"$value": "#1a1c2c"
},
"primary-foreground": {
"$type": "color",
"$value": "#fafaf9"
},
"secondary": {
"$type": "color",
"$value": "#f4f4f4"
},
"secondary-foreground": {
"$type": "color",
"$value": "#1a1c2c"
},
"accent": {
"$type": "color",
"$value": "#ff004d"
},
"accent-foreground": {
"$type": "color",
"$value": "#fafaf9"
},
"muted": {
"$type": "color",
"$value": "#e5e5e5"
},
"muted-foreground": {
"$type": "color",
"$value": "#6a6b76"
},
"border": {
"$type": "color",
"$value": "#d2d2d2"
},
"destructive": {
"$type": "color",
"$value": "#dc2626"
},
"ring": {
"$type": "color",
"$value": "#1a1c2c"
}
},
"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": "0px"
}
},
"spacing": {
"base": {
"$type": "dimension",
"$value": "1rem"
}
},
"shadow": {
"base": {
"$type": "shadow",
"$value": "4px 4px 0 #1a1c2c"
}
}
}
CSS
/* powered by Styledex — https://styledex.dev */
/* "Pixel Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86. */
:root {
--background: #f4f4f4;
--foreground: #1a1c2c;
--card: #f4f4f4;
--card-foreground: #1a1c2c;
--primary: #1a1c2c;
--primary-foreground: #fafaf9;
--secondary: #f4f4f4;
--secondary-foreground: #1a1c2c;
--accent: #ff004d;
--accent-foreground: #fafaf9;
--muted: #e5e5e5;
--muted-foreground: #6a6b76;
--border: #d2d2d2;
--destructive: #dc2626;
--ring: #1a1c2c;
--radius: 0px;
--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: 4px 4px 0 #1a1c2c;
}
Tailwind
/* powered by Styledex — https://styledex.dev */
/* "Pixel Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86. */
/** Tailwind theme extend for Pixel Art (stylekit-pixel-art) */
module.exports = {
"theme": {
"extend": {
"colors": {
"background": "#f4f4f4",
"foreground": "#1a1c2c",
"card": "#f4f4f4",
"primary": "#1a1c2c",
"primary-foreground": "#fafaf9",
"secondary": "#f4f4f4",
"accent": "#ff004d",
"muted": "#e5e5e5",
"border": "#d2d2d2",
"destructive": "#dc2626",
"ring": "#1a1c2c"
},
"borderRadius": {
"lg": "0px"
},
"fontFamily": {
"sans": [
"ui-sans-serif",
"system-ui",
"sans-serif"
],
"serif": [
"ui-serif",
"Georgia",
"serif"
],
"mono": [
"ui-monospace",
"SFMono-Regular",
"Menlo",
"monospace"
]
},
"boxShadow": {
"styledex": "4px 4px 0 #1a1c2c"
}
}
}
};
shadcn
/* powered by Styledex — https://styledex.dev */
/* "Pixel Art" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/pixel-art @ bfa7da909e86. */
@layer base {
:root {
--background: #f4f4f4;
--foreground: #1a1c2c;
--card: #f4f4f4;
--card-foreground: #1a1c2c;
--primary: #1a1c2c;
--primary-foreground: #fafaf9;
--secondary: #f4f4f4;
--secondary-foreground: #1a1c2c;
--accent: #ff004d;
--accent-foreground: #fafaf9;
--muted: #e5e5e5;
--muted-foreground: #6a6b76;
--border: #d2d2d2;
--destructive: #dc2626;
--ring: #1a1c2c;
--radius: 0px;
--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: 4px 4px 0 #1a1c2c;
}
}