HomeStylesTemplates
StyleKit
StylesTemplatesCommunity
  1. Home
  2. /Styles
  3. /Film Noir
Style Catalog/Film Noir

Film Noir

黑色电影

D
59/100Poor
Rate this style

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.

film noirnoir aestheticblack and whitechiaroscurohigh contrastdramatic shadowsmonochrome1940s cinemamoody dark themespotlight effectphotography portfolio
View Full Showcase →
Templates

Best For

film noir / noir aesthetic / black and white

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.

View Full Showcase →

Color Palette

Primary

#1a1a1a

Secondary

#f5f5f0

Accent 1

#c41e3a

Accent 2

#8b7355

Accent 3

#d4af37

Accent 4

#7c3e00

AI ImplementationRatings & FeedbackComponent PreviewReadinessFAQExports

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

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.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • -When AI should generate UI directly
  • -When repeated outputs must stay consistent
  • -When style drift is the main risk

How to use

  • -Copy the full prompt
  • -Append the concrete requirement
  • -Review against forbidden rules and UI states
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
- Emoji or playful iconography
- 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)

COLOR SYSTEM:
- Background: #0a0a0a (near black)
- Card: neutral-900
- Card border hover: neutral-600 (from neutral-800)
- Text primary: neutral-100 → white on group-hover
- Text secondary: neutral-400 → neutral-300 on group-hover
- Text muted: neutral-500
- Crimson accent: #c41e3a (very sparingly)
- Gold accent: #d4af37 (very sparingly)
- Borders: neutral-700 to neutral-800

## 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. The skew creates a diagonal "flashlight beam" effect. The sweep is slow and deliberate — this is noir, not a sprint.
- Harsh Monochrome Swap: Primary button hover does hover:bg-neutral-100 hover:text-neutral-950 hover:border-neutral-100. This is a complete binary inversion (dark→light), not a gradual shade change. The abruptness reflects 40s film drama where scenes cut hard between shadow and light.
- Venetian Blinds Pattern: Cards have an absolute overlay with bg-[repeating-linear-gradient(180deg,transparent,transparent_4px,#fff_4px,#fff_6px)] at opacity-0, transitioning to group-hover:opacity-[0.06]. This is barely perceptible — like light filtering through half-closed window blinds in a detective's office.
- 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. Simulates blood spreading, or a film title card's crimson underline unfurling.
- Text Reveal: Card headings and body text brighten on group-hover (neutral-100→white, neutral-400→neutral-300) using transition-colors duration-500. Combined with venetian blinds pattern, creates the effect of light falling on text.
- 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. The sweeping light shaft uses duration-700 ease-in-out. NEVER use duration below 300ms — slowness is inherent to noir's dramatic weight.

## Self-Check

After generating code, verify:
1. All buttons are wrapped in group, have the light shaft sweep div inside
2. All buttons have active:scale-[0.98]
3. All focusable elements have focus:ring-offset-neutral-950
4. Cards have venetian blinds overlay (opacity-0 → group-hover:opacity-[0.06])
5. Cards have crimson bleed line (w-12 → group-hover:w-full)
6. No animation duration below 300ms
7. No rounded-2xl or larger

---

# Film Noir Design System

> 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.

## Design Philosophy

Film Noir style draws from the visual language of 1940-50s Hollywood film noir.

Core principles:
- Extreme contrast: almost no middle ground between deep black and bright white, creating dramatic tension
- Light and shadow narrative: diagonal shadows, window-blind light patterns, and spotlight effects tell stories
- Grayscale dominance: black, white, and gray as primary tones, with only minimal accent colors (crimson, gold)
- Classical typography: serif headings + sans-serif body text, echoing vintage newspaper aesthetics
- Mysterious atmosphere: information is barely visible, drawing users to explore deeper

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border-b
Color: border-neutral-800
Radius: rounded-none
```

### Shadow
```
sm: shadow-sm
md: shadow-md
lg: shadow-lg
hover: shadow-lg
focus: ring-1 ring-neutral-600
```

### Interaction
```
Hover translate: (none)
Hover scale: hover:bg-neutral-800/80
Hover opacity: (none)
Transition: transition-colors duration-500
Active: active:scale-95
```

### Typefaces
```
Heading: font-serif italic
Body: font-sans
Mono: font-mono
```

### Type scale
```
Hero: text-5xl md:text-7xl lg:text-8xl
H1: text-4xl md:text-5xl
H2: text-2xl md:text-3xl
H3: text-xl md:text-2xl
Body: text-sm md:text-base
Small: text-xs
```

### Spacing
```
Section: py-20 md:py-32
Container: px-8 md:px-12
Card: p-8
Gap sm: gap-4
Gap md: gap-6
Gap lg: gap-10
```

### Color roles
```
Background primary: bg-[#0a0a0a]
Background secondary: bg-neutral-900
Background accent: bg-neutral-800, bg-[#c41e3a]
Text primary: text-neutral-100
Text secondary: text-neutral-400
Text muted: text-neutral-600
Button primary: bg-neutral-100 text-neutral-950
Button secondary: bg-transparent border border-neutral-500 text-neutral-300
```

---

## [FORBIDDEN]

These classes are banned in this style. Check for them before returning code:

### Banned classes
- `bg-blue-`
- `bg-green-`
- `bg-pink-`
- `bg-purple-`
- `bg-yellow-`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-[0_0_`
- `text-shadow`
- `bg-gradient-to-r from-pink`
- `bg-gradient-to-r from-blue`
- `animate-bounce`
- `animate-spin`

### Banned patterns
- matches `^bg-(?:blue|green|pink|purple|yellow|cyan|teal|indigo|violet|fuchsia)-`
- matches `^rounded-(?:2xl|3xl|full)`
- matches `^shadow-\[0_0_`
- matches `^animate-(?:bounce|spin|wiggle)`

### Why they are banned
- `bg-blue-`: Film Noir uses grayscale only; no colored backgrounds
- `rounded-2xl`: Film Noir uses sharp corners or minimal rounding
- `shadow-[0_0_`: No glow effects; use directional shadows for drama
- `animate-bounce`: Playful animations break the noir atmosphere

> WARNING: if your code contains any of the above, replace it before shipping.

---

## [REQUIRED]

### Every button must include
```
font-serif
italic
tracking-wide
transition-colors
```

### Every card must include
```
bg-neutral-900
relative
overflow-hidden
```

### Every input must include
```
bg-neutral-950
border-b
font-serif
focus:outline-none
```

---

## [COMPARE] Film Noir wrong vs right

The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.

### Button

[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
 Click me
</button>
```

[CORRECT] **Right** (uses this style's tokens):
```html
<button class="font-serif italic tracking-wide transition-colors bg-neutral-100 text-neutral-950">
 Click me
</button>
```

### Card

[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
 <h3>{TITLE}</h3>
</div>
```

[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="bg-neutral-900 relative overflow-hidden p-8">
 <h3 class="font-serif italic text-xl md:text-2xl">{TITLE}</h3>
</div>
```

### Input

[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```

[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="bg-neutral-950 border-b font-serif focus:outline-none" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Film Noir page skeletons

These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:

### Navigation
```html
<nav class="bg-[#0a0a0a] text-neutral-100 border-b border-neutral-800 px-8 md:px-12">
 <div class="flex items-center justify-between max-w-6xl mx-auto gap-6">
 <a href="/" class="font-serif italic text-xl md:text-2xl">
 {LOGO_TEXT}
 </a>
 <div class="flex gap-6 font-sans text-xs">
 {NAV_LINKS}
 </div>
 </div>
</nav>
```

### Hero section
```html
<section class="bg-neutral-800 text-neutral-100 py-20 md:py-32 px-8 md:px-12">
 <div class="max-w-4xl mx-auto">
 <h1 class="font-serif italic text-5xl md:text-7xl lg:text-8xl">
 {HEADLINE}
 </h1>
 <p class="font-sans text-sm md:text-base max-w-xl">
 {SUBHEADLINE}
 </p>
 <button class="font-serif italic tracking-wide transition-colors bg-neutral-100 text-neutral-950">
 {CTA_TEXT}
 </button>
 </div>
</section>
```

### Card grid
```html
<section class="bg-[#0a0a0a] text-neutral-100 py-20 md:py-32 px-8 md:px-12">
 <div class="max-w-6xl mx-auto">
 <h2 class="font-serif italic text-2xl md:text-3xl">{SECTION_TITLE}</h2>
 <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
 <!-- Card template - repeat for each card -->
 <div class="bg-neutral-900 relative overflow-hidden p-8">
 <h3 class="font-serif italic text-xl md:text-2xl">{CARD_TITLE}</h3>
 <p class="font-sans text-sm md:text-base text-neutral-600">{CARD_DESCRIPTION}</p>
 </div>
 </div>
 </div>
</section>
```

### Form input
```html
<input class="bg-neutral-950 border-b font-serif focus:outline-none" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-neutral-900 text-neutral-400 py-20 md:py-32 px-8 md:px-12">
 <div class="max-w-6xl mx-auto">
 <div class="grid grid-cols-1 md:grid-cols-3 gap-10">
 <div>
 <span class="font-serif italic text-xl md:text-2xl">{LOGO_TEXT}</span>
 <p class="font-sans text-xs">{TAGLINE}</p>
 </div>
 <div>
 <h4 class="font-serif italic text-xl md:text-2xl">{COLUMN_TITLE}</h4>
 <ul class="font-sans text-xs">
 {FOOTER_LINKS}
 </ul>
 </div>
 </div>
 </div>
</footer>
```

---

## [CHECKLIST] Film Noir post-generation self check

**Before returning code, verify every token and rule below. Fix any violation before delivering:**

### Token check
- [ ] Button includes: `font-serif italic tracking-wide transition-colors`
- [ ] Card includes: `bg-neutral-900 relative overflow-hidden`
- [ ] Input includes: `bg-neutral-950 border-b font-serif focus:outline-none`

### Forbidden check
- [ ] Not using `bg-blue-`
- [ ] Not using `bg-green-`
- [ ] Not using `bg-pink-`
- [ ] Not using `bg-purple-`
- [ ] Not using `bg-yellow-`
- [ ] Not using `rounded-2xl`
- [ ] Not using `rounded-3xl`
- [ ] Not using `rounded-full`

### Style rule check
- [ ] Use deep black backgrounds bg-[#0a0a0a] or bg-neutral-950
- [ ] Text uses gray-white colors text-neutral-100 text-neutral-300
- [ ] Use serif fonts for headings font-serif italic
- [ ] Cards use extremely subtle gray to distinguish layers bg-neutral-900 bg-neutral-800
- [ ] Emphasis elements use crimson text-[#c41e3a] (very sparingly)

### Style drift check
- [ ] Does not violate: Do not use colorful backgrounds
- [ ] Does not violate: Do not use high-saturation colors (crimson only as accent)
- [ ] Does not violate: Do not use overly large rounded corners rounded-2xl+
- [ ] Does not violate: Do not use cartoon/cute elements
- [ ] Does not violate: Do not use glow effects

### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Film Noir

---

## [EXAMPLES] Example prompts

### 1. 

```
Create a detective story portfolio using Film Noir style:
- Near-black background with subtle grey card layers
- Serif italic headings for dramatic titles
- Diagonal light shaft effects across cards
- Minimal crimson accent lines for emphasis
- Uppercase tracking labels for metadata
- Vintage newspaper-inspired typography
- Mysterious atmospheric hover effects
```

## Absolute Bans (Match and Refuse)

If any of the following patterns appear, it is a style violation — rewrite without exception.

- use colorful backgrounds
- use high-saturation colors (crimson only as accent)
- use overly large rounded corners rounded-2xl+
- use cartoon/cute elements
- use glow effects
- use gradient buttons
- omit active:scale-[0.98] from buttons (no tactile confirmation = button is decorative)
- use focus:ring without focus:ring-offset-neutral-950 (focus ring must separate from element on dark backgrounds)

## Self-Check (Verify Before Shipping)

If any item fails, the style has drifted — fix before shipping.

- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do not use colorful backgrounds
- [ ] do not use high-saturation colors (crimson only as accent)
- [ ] do not use overly large rounded corners rounded-2xl+
- [ ] do not use cartoon/cute elements
- [ ] do not use glow effects

More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate
0 comments
Sign in to post a comment. Sign In

Component Templates

Component Preview

Noir 按钮

光束扫射按钮:group 包裹,白色对角光束从左扫到右(duration-700),hover 时极端明暗翻转(dark→light),active:scale-[0.98] 触觉确认

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

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%

Fallback

UI States

79%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

35%

Fallback

Key State Coverage

light / dark
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

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

Implementation Notes

  • This style contains dark-mode signals, but no curated dark token contract has been reviewed.
  • Check contrast in both light and dark modes.
  • Check heavy shadows, blur, large media, and scroll-linked effects manually.
  • No style-specific performance cost profile has been curated yet.

FAQ

Film Noir — Frequently Asked Questions

01What is the Film Noir design style?
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. Its core principle: Film Noir style draws from the visual language of 1940-50s Hollywood film noir.
02What colors does Film Noir use?
Film Noir uses #1a1a1a as its primary color and #f5f5f0 as its secondary color, with accent colors #c41e3a, #8b7355, #d4af37, #7c3e00. Every hex value can be copied from the palette on this page.
03How do I apply Film Noir correctly?
Key practices: Use deep black backgrounds bg-[#0a0a0a] or bg-neutral-950. Text uses gray-white colors text-neutral-100 text-neutral-300. Use serif fonts for headings font-serif italic.
04What are common mistakes with Film Noir?
Avoid: Do not use colorful backgrounds. Do not use high-saturation colors (crimson only as accent). Do not use overly large rounded corners rounded-2xl+.
05How do I prompt AI to generate Film Noir UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: film noir, noir aesthetic, black and white, chiaroscuro.
Global Styles

Global CSS

css
/* 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

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export 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

Design Philosophy

Film Noir style draws from the visual language of 1940-50s Hollywood film noir.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

59

Overall Score

Grade: D - Poor

Contrast Ratios

Score: 50/100Average Ratio: 0:1
AA FailAAA Fail

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.

StyleKit

A curated web design style library to help AI generate better-looking websites.

FeedbackSupport Maintenance
Explore+
StylesTemplatesAnimationsResource LibraryPromptsCollectionsCommunity
Learn+
FoundationsGuideRecipesChangelogBlog
Trust+
AboutContactPrivacyTermsSupport UsRefunds

(c) 2026 StyleKit. Open source project.

闄旾CP澶?025065501鍙?3

Colophon/SK — 2026

Built with the Editorial style

01FeedbackTell us what could work better02Support MaintenanceIf StyleKit helps your workflow, voluntary support helps cover servers, domains, and ongoing upkeep.

StyleKit

A curated web design style library to help AI generate better-looking websites.

GitHub Repository

Explore

StylesTemplatesAnimationsResource LibraryPromptsCollectionsCommunity

Learn

FoundationsGuideRecipesChangelogBlog

Dispatch

Get notified when new styles, templates and tools ship.

Stay Updated

By subscribing, you agree to our Privacy Policy and Terms.

(c) 2026 StyleKit. Open source project.

AboutContactPrivacyTermsSupport UsRefunds/陕ICP备2025065501号-3

StyleKit