--bg-colorLight #fbfbfbDark #0a0a0aPage background · bodyMomo’s visual spec: color, typography, spacing, radius, shadow, motion, and the components used across the site.
Colors come in three layers: surfaces, text hierarchy, and semantic colors.
--bg-colorLight #fbfbfbDark #0a0a0aPage background · body--surface-colorLight #ffffffDark #141414Surface · cards / panels--surface-color-hoverLight #eeeeeeDark #262626Surface hover · hover / chips--text-colorLight #000000Dark #ffffffText · headings / body--text-color-70Light #4c4c4cDark #b5b5b5Muted text · meta / captions--text-color-30Light #7a7a7aDark #8a8a8aFaint text · placeholder / disabled--border-colorLight #d6d6d6Dark #3d3d3dBorder · dividers / cards--border-color-strongLight #b5b5b5Dark #5a5a5aStrong border · hover / focus--quote-left-colorLight #dadde1Dark #606770Quote rule · blockquote left rule--link-colorLight #10558cDark #57ace7Brand (text) · links / icons--accent-bgLight #10558cDark #0d5a94Brand (fill) · primary button--accent-fgLight #ffffffDark #ffffffOn brand · text on accent--accent-softLight rgba(16, 85, 140, 0.08)Dark rgba(87, 172, 231, 0.12)Brand tint · soft highlight--success-colorLight #009400Dark #009400Success · tip callout--success-bg-colorLight #e6f6e6Dark #1a2e1aSuccess surface · tip callout--error-colorLight #e13238Dark #e13238Error · caution callout--error-bg-colorLight #ffebecDark #3b1d1eError surface · caution callout--warning-colorLight #e6a700Dark #ad8002Warning · warning callout--warning-bg-colorLight #fff7edDark #332a00Warning surface · warning callout--info-colorLight #4cb3d4Dark #4cb3d4Info · important callout--info-bg-colorLight #eef9fdDark #1a2d33Info surface · important calloutBody copy uses Source Serif; UI labels use WenKai; the wordmark and footer use EB Garamond; code and numbers use JetBrains Mono. Sizes are listed below.
A 4px base with ten steps. Inner component spacing uses the same set.
--momo-space-14px--momo-space-28px--momo-space-312px--momo-space-416px--momo-space-520px--momo-space-624px--momo-space-732px--momo-space-840px--momo-space-952px--momo-space-1064pxFour steps plus a pill. Cards use lg, buttons and fields use md, filter chips use sm (6px rounded labels), tiny badges use xs.
xs4pxinline code / tagsm6pxchip / tooltip / calloutmd8pxbuttons / fields / rowslg12pxcards / code blocksxl16pxmodals / drawerspill999pxpills / avatarsStatic cards use xs/sm, popovers use md, drawers and the lightbox use lg/xl.
--momo-shadow-xs--momo-shadow-sm--momo-shadow-md--momo-shadow-lg--momo-shadow-xlThree durations, three curves. Movement settles with ease-out; objects with volume may overshoot slightly. Text only changes color.
--momo-t-fast140mshover / focus--momo-t-base220msmovement / enter--momo-t-slow360mslong / stagger--momo-t-press90mspress feedback--momo-t-reveal800msentrance / scroll reveal--momo-t-reveal-row480msentrance / list rows--momo-ease-outcubic-bezier(0.22, 1, 0.36, 1)settle · no overshoot--momo-ease-popcubic-bezier(0.34, 1.56, 0.64, 1)light overshoot--momo-ease-sheetcubic-bezier(0.32, 0.72, 0, 1)sheet · fast in, slow outEntry travel: cards rise 32px with a 0.96 scale (--momo-ease-pop); prose blocks rise 120px (--momo-ease-out).
--momo-t-fast--momo-t-base--momo-t-slowThree variants (default / primary / ghost) × three sizes. One primary action per page.
Inputs, textareas and search share the same border and placeholder color. Focus turns the border brand blue.
A card is surface + 1px border + lg radius + one shadow step. Article cards skip the surface and keep only border and shadow; clickable cards lift 2px and gain one shadow step on hover.
Surface, border and one shadow step.
Lifts 2px and gains one shadow step on hover.
Interactive categories / filters use chip (a 6px rounded label); read-only locale and category markers use tag (a 4px badge). Selected is always blue on white.
Five semantic callouts (note / tip / important / warning / caution) with a colored left rule and an icon in the title. tip / important / warning / caution take their colors straight from the semantic tokens.
A plain note.
A suggestion that saves time.
Read this before acting.
Worth noticing, but not blocking.
Risky: this can lose content.
Only two widths: 776px for prose, 1024px for header and footer. Breakpoints follow Tailwind sm / lg; mobile kicks in at 776px.
The block below is real Markdown, rendered by the same markdown.css as article pages: headings, quotes, lists, code, tables, captions.
Music cards, GitHub cards, centered quotes and inline syntax all come from Markdown plugins; the demos below use the same classes, and the two cards render the real directives with live data.
::github{repo="Motues/Momo"}::music{id="30431366"}::quote[content]The same kind of information, shown the same way.
{base}(reading) · !!spoiler!! · ==rainbow== · ++underline++Designhover or click to revealRainbow textUnderline
The comment area has no card shell: avatar + name + time + body, then name / email / website fields and the body input, with buttons at body size. Bodies support Markdown; emoji render inline at 1.25em.
The demo reuses the utility classes of the live comment components (CommentItem / Comments): inputs, textareas and buttons all use --momo-radius-sm (6px), and text-red-500 / min-h-[100px] come from the live components too.
Three states: loading, empty, and failed.
Keyboard focus stays visible, icon-only buttons always have a readable name, and reduced-motion stops movement while keeping color changes.
Tab through the page: buttons and links get a 2px blue outline.
Icon-only buttons need an aria-label so screen readers can name them. When enabled, movement stops and color changes stay.
New styles go in one of four layers: token, base rule, shared component, or page-private.
| Layer | Location | Example |
|---|---|---|
| Token | variables.css | --momo-radius-lg |
| Base | global.css | body / ::selection |
| Component | components.css | .momo-card |
| Feature | page / component styles | .ds-swatch |
inline codeand lists all work.