Best For
parallax / editorial / magazine
视差杂志
Editorial layout with physical depth. On warm paper, foreground text and background layers scroll at different rates to build real parallax; sticky image-text interlock, chapter numbers and drop caps turn long-form into a paced turn of the page.
Best For
parallax / editorial / magazine
Primary Move
Warm paper base #F5F0E6 with near-black ink body #1A1712 for a printed feel
Watch Out
Never mutate top/margin/height in a scroll handler (layout thrash) — parallax is transform-only
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#1A1712
Secondary
#F5F0E6
Accent 1
#B3401F
Accent 2
#2E2A22
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: Parallax Editorial
style_slug: parallax-editorial
style_source: /styles/parallax-editorial
# 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
# Parallax Editorial Design System
You are an expert frontend developer specializing in parallax editorial layout. Generate all code strictly following these specifications.
## Style Identity
- **Name**: Parallax Editorial
- **Essence**: Scrolling is turning pages; depth is the layout's fourth dimension
- **Mood**: Printed, considered, literary, cinematic long-form
- **Inspiration**: Magazine spreads, longform scrollytelling features, printed editorial typography
---
## Forbidden
| Pattern | Reason |
|---------|--------|
| Mutating top/margin/height in a scroll handler | Layout thrash; parallax is transform: translate3d only |
| More than 3 parallax rate tiers per viewport | Muddy depth |
| Parallax overpowering readability | Body copy is never the parallax subject; measure stays under 75ch |
| Heavy parallax on mobile | Performance and motion sickness — weaken or disable |
| Multiple accents / brick-red surfaces | One accent; brick is a signal, not a fill |
| Cold or pure-white backgrounds | Kills the warm paper feel |
| Missing prefers-reduced-motion fallback | Accessibility is non-negotiable |
## Required
### Paper and Ink
- Background #F5F0E6 (warm paper), deep paper #EBE3D3
- Body #1A1712 (near-black ink), secondary rgba(26,23,18,0.7)
- The one accent #B3401F (brick red): drop caps, chapter numbers, pull quotes, links
- Sand #C9BBA0 for dividers / secondary decoration
### Type
Serif display face for headings (Fraunces or Playfair Display recommended):
```html
<link rel="stylesheet" href="https://fonts.loli.net/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&display=swap" />
```
Headings font-family: "Fraunces", Georgia, serif; body same-family or a humanist sans.
(fonts.googleapis.com works too; loli.net mirrors it for CN access.)
### Parallax Engine (signature, rAF-throttled)
Tag each layer with data-parallax="rate" (0.1-0.5); one shared rAF loop updates them:
```js
let ticking = false;
function onScroll() {
if (ticking) return; ticking = true;
requestAnimationFrame(() => {
const y = window.scrollY;
document.querySelectorAll("[data-parallax]").forEach((el) => {
const rate = parseFloat(el.dataset.parallax);
el.style.setProperty("--pe-y", `${-y * rate}px`);
});
ticking = false;
});
}
window.addEventListener("scroll", onScroll, { passive: true });
```
```css
[data-parallax] { transform: translate3d(0, var(--pe-y, 0), 0); will-change: transform; }
```
Background layers small rate (0.1-0.2), foreground large (0.35-0.5).
### Sticky Interlock
Two-column grid; the image column is position: sticky; top: 0; height: 100vh while the text column flows normally — a pin-and-scroll mesh.
### Editorial Typography Grammar
- Chapters: large serif numerals (text-4xl+) with a thin top rule (border-t)
- Drop caps: .pe-dropcap with ::first-letter float, scaled 3-4 lines, brick red
- Measure: body max-width 65-75ch, line-height 1.6-1.75
- Pull quotes: large italic serif with a left brick rule
### GSAP Recipe (preferred when gsap is available)
```js
import gsap from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);
gsap.utils.toArray("[data-parallax]").forEach((el) => {
gsap.to(el, {
yPercent: () => -30 * parseFloat(el.dataset.parallax) * 5,
ease: "none",
scrollTrigger: { trigger: el, start: "top bottom", end: "bottom top", scrub: true },
});
});
```
### Reduced Motion
```css
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }
```
All layers drop to zero rate difference; the layout becomes static and reading order is unchanged.
## Self-Verification Checklist
- [ ] Warm paper base, ink body, single brick-red accent
- [ ] Parallax is transform: translate3d + rAF-throttled only
- [ ] No more than 3 rate tiers per viewport
- [ ] Body measure 65-75ch with serif headings / chapter numbers / drop caps
- [ ] Sticky image-text interlock present
- [ ] prefers-reduced-motion zero-rate fallback
- [ ] Parallax weakened or disabled on mobile
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- mutate top/margin/height in a scroll handler (layout thrash) — parallax is transform-only
- exceed three parallax rate tiers per viewport (muddy depth)
- let parallax overpower reading: body copy is never the parallax subject, measure stays under 75 chars
- keep heavy parallax on mobile (perf + motion sickness) — weaken or disable it
- use multiple accents or flood brick red as a surface color
- omit the prefers-reduced-motion fallback
- use cold or pure-white backgrounds (kills the warm paper feel)
## 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
- [ ] never mutate top/margin/height in a scroll handler (layout thrash) — parallax is transform-only
- [ ] never exceed three parallax rate tiers per viewport (muddy depth)
- [ ] never let parallax overpower reading: body copy is never the parallax subject, measure stays under 75 chars
- [ ] never keep heavy parallax on mobile (perf + motion sickness) — weaken or disable it
- [ ] never use multiple accents or flood brick red as a surface colorUse it in your workflow
Drop this style's theme into an existing shadcn project with one command.
npx shadcn add https://www.stylekit.top/r/parallax-editorial.jsonContributors can build the unpublished CLI from a local checkout.
pnpm --filter stylekit-cli build && node packages/cli/dist/index.js add parallax-editorialContributors can preview Parallax Editorial through the repository-local MCP package.
pnpm --filter stylekit-mcp build && node packages/mcp/dist/index.jsComponent Templates
Editorial link-button with brick underline sweep
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI 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
/* Parallax Editorial Global Styles */
:root {
--pe-ink: #1A1712;
--pe-ink-soft: rgba(26, 23, 18, 0.7);
--pe-paper: #F5F0E6;
--pe-paper-deep: #EBE3D3;
--pe-brick: #B3401F;
--pe-sand: #C9BBA0;
--pe-measure: 68ch;
}
body {
background: var(--pe-paper);
color: var(--pe-ink);
}
/* Parallax layers: JS sets --pe-y from scroll progress * rate; transform-only */
[data-parallax] {
transform: translate3d(0, var(--pe-y, 0), 0);
will-change: transform;
}
/* Drop cap */
.pe-dropcap::first-letter {
float: left;
font-family: var(--font-serif), Georgia, serif;
font-size: 3.6em;
line-height: 0.82;
padding: 0.05em 0.12em 0 0;
color: var(--pe-brick);
font-weight: 600;
}
/* Comfortable measure for body copy */
.pe-measure {
max-width: var(--pe-measure);
}
/* Column rule between text blocks */
.pe-rule {
border-top: 1px solid rgba(26, 23, 18, 0.2);
}
@media (prefers-reduced-motion: reduce) {
[data-parallax] {
transform: none !important;
}
}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
The parallax-editorial creed: scrolling is turning pages, and depth is the fourth dimension of the layout. When foreground and background move at different rates, a flat page finally gains the thickness of paper — the reader doesn't swipe across a screen, they move through a stack of spreads sliding out of register.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: B - Good
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#1A1712 / #F5F0E6 | 15.73:1 | ||
| Secondary text on background | /#1A1712 / #F5F0E6 | 15.73:1 | ||
| Muted text on background | /#1A1712 / #F5F0E6 | 15.73:1 | ||
| Text on secondary background | /#1A1712 / #EBE3D3 | 14.01:1 | ||
| Secondary text on secondary | /#1A1712 / #EBE3D3 | 14.01:1 | ||
| Button primary | /#F5F0E6 / #1A1712 | 15.73:1 | ||
| Text on accent 1 | /#1A1712 / #1A1712 | 1:1 | ||
| Alt text on accent 1 | /#1A1712 / #1A1712 | 1:1 |
Readability
Score
80/100
Font Size
text-base md:text-lg
Font Weight
font-serif text-[#1A1712]
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.