Best For
黑色电影 / 明暗对比 / 光影
Film Noir
A dramatic visual style drawn from classic 1940-50s film noir. Extreme light-dark contrast, deep grayscale layers, diagonal shadows, and a mysterious atmosphere, suited for story-driven products, photography portfolios, and premium brands.
Best For
黑色电影 / 明暗对比 / 光影
Primary Move
Use deep black backgrounds bg-[#0a0a0a] or bg-neutral-950
Watch Out
Do not use colorful backgrounds
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#1a1a1a
Secondary
#f5f5f0
Accent 1
#c41e3a
Accent 2
#8b7355
AI Implementation
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.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
STYLEKIT_STYLE_REFERENCE
style_name: Film Noir
style_slug: film-noir
style_source: /styles/film-noir
# 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
STYLE: Film Noir
TYPE: Dramatic high-contrast monochrome interface
MUST USE:
- Deep black background: bg-[#0a0a0a] or bg-neutral-950
- Grayscale palette: neutral-100 through neutral-950
- Serif italic headings: font-serif italic
- Extremely subtle layer separation: bg-neutral-900 vs bg-neutral-800
- Minimal crimson accent: text-[#c41e3a] / bg-[#c41e3a] (sparingly)
- Diagonal gradient light effects for drama
- Thin or no borders: border-neutral-800
- Uppercase small tracking labels: text-xs uppercase tracking-[0.2em]
MUST AVOID:
- Colorful backgrounds
- High saturation colors (crimson only as rare accent)
- Large rounded corners (rounded-2xl+)
- Cartoon/cute elements
- Glow effects (forbidden -- breaks the noir darkness)
- Gradient buttons
- Buttons without active:scale-[0.98]
- focus:ring without focus:ring-offset-neutral-950
- Animation duration below 300ms (Noir is slow and dramatic, not snappy)
Animation & Interaction Rules:
- Light Shaft Sweep: ALL buttons use group class. Inside, an absolute div with bg-gradient-to-r from-transparent via-white/30 to-transparent starts at -translate-x-[200%] skew-x-[-20deg] and sweeps to translate-x-[200%] on group-hover. Use transition-transform duration-700 ease-in-out.
- Harsh Monochrome Swap: Primary button hover does hover:bg-neutral-100 hover:text-neutral-950 hover:border-neutral-100. Complete binary inversion (dark to light).
- Venetian Blinds Pattern: Cards have an absolute overlay with repeating-linear-gradient at opacity-0, transitioning to group-hover:opacity-[0.06]. Barely perceptible -- like light filtering through half-closed window blinds.
- Crimson Bleed: Cards include a horizontal line w-12 h-[2px] bg-[#c41e3a] that expands to group-hover:w-full over duration-700 ease-out.
- Tactile Confirmation: ALL buttons must use active:scale-[0.98].
- Focus Ring Dark: Always use focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2 focus:ring-offset-neutral-950.
- Slow Easing: Buttons use duration-500. Cards use duration-700. NEVER use duration below 300ms.Component Templates
光束扫射按钮:group 包裹,白色对角光束从左扫到右(duration-700),hover 时极端明暗翻转(dark→light),active:scale-[0.98] 触觉确认
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
58%
Fallback
Dark Mode
35%
FallbackUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
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
/* Film Noir Global Styles */
@layer base {
body {
@apply bg-[#0a0a0a] text-neutral-300 antialiased;
}
h1, h2, h3 {
@apply font-serif italic;
}
::selection {
@apply bg-neutral-300 text-neutral-950;
}
}
@keyframes noir-spotlight {
0%, 100% { opacity: 0.05; }
50% { opacity: 0.1; }
}
@keyframes noir-fade-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Film Noir Design Tokens */
:root {
--film-noir-primary: #1a1a1a;
--film-noir-secondary: #f5f5f0;
--film-noir-accent: #c41e3a;
--film-noir-glow: rgba(26, 26, 26, 0.3);
}
.film-noir-card {
position: relative;
overflow: hidden;
}
.film-noir-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(26, 26, 26, 0.05), transparent);
pointer-events: none;
}
.film-noir-card:hover::before {
opacity: 1;
}
.film-noir-gradient {
background: linear-gradient(135deg, #1a1a1a, #c41e3a);
}
.film-noir-gradient-text {
background: linear-gradient(135deg, #1a1a1a, #c41e3a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.film-noir-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(26, 26, 26, 0.08);
}
.film-noir-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.film-noir-animate-in {
animation: film-noir-fade-in 0.5s ease-out both;
}IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
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
Film Noir style draws from the visual language of 1940-50s Hollywood film noir.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
Readability
Score
80/100
Font Size
text-sm md:text-base
Font Weight
font-serif italic
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.