Xiaohongshu
Identity
Media & Consumer
Bundled OpenDesign package for Xiaohongshu, derived from curated DESIGN.md, tokens.css, and components.html fixtures.
Typography
Ag
Ag
Ag
--text-4xl · 32pxThe quick brown fox--text-3xl · 28pxThe quick brown fox--text-2xl · 24pxThe quick brown fox--text-xl · 20pxThe quick brown fox--text-lg · 18pxThe quick brown fox--text-base · 16pxThe quick brown fox--text-sm · 14pxThe quick brown fox--text-xs · 12pxThe quick brown foxPalette
#f5f5f5Page background — defines the brand canvas.#ffffffCard / lifted container background.#fafafaTertiary surface tier (kami warm-sand).rgba(0, 0, 0, 0.8)Primary text color.rgba(0, 0, 0, 0.62)Secondary text tier (kami dark-warm).rgba(0, 0, 0, 0.45)Subtext / captions.rgba(0, 0, 0, 0.27)Tertiary FG / metadata tier (kami stone).rgba(0, 0, 0, 0.08)Default border / card edge.rgba(0, 0, 0, 0.05)Inner row separator that should not visually compete.#ff2442Brand accent. ≤2 visible uses per screen (lint enforced).#ffffffFG when --accent is the bg.#02b940Success state.#ff7d03Warning state.#ff2442Danger state.Also named in DESIGN.md
#ff2e4dhard-coded on .reds-button-new.primary, .active-bar, outlined-button border. Slightly pinker and marginally l…#fdbc5fbookmark / collect-active icon fill (sampled from <symbol id="collected"> SVG). Only place yellow is allowed.#eaeaeaopaque-separator. When a real solid border is needed.#3d8af5info / --color-blue. Almost never appears in consumer flow.#133667link. Deep navy, not a typical link blue. In practice, brand red is used for emphasis instead.#ff25430%, #FF5225 100%)) — --search-hotspot-hint. Trending-search badge only.Imagery & layout
Radius
8px12px16px9999pxSpacing
--space-1 · 4px--space-2 · 8px--space-3 · 12px--space-4 · 16px--space-5 · 20px--space-6 · 24px--space-8 · 32px--space-12 · 48pxElevation
--elev-raisedLayout
Layout rules
- Two columns, each ~48.2% of viewport width
- Row gap ~7px
- Outer side margin 12rpx per side (≈ 6px @ 375px)
- Two-pane: left ~500px image carousel / right ~500px metadata + comments, total ~1100px
- Image aspect chosen at upload time — vertical 3:4 / square 1:1 / horizontal 4:3
- The carousel is the dominant visual; comments scroll independently on the right