Tangly v0.2 ships richer code blocks, page chrome, and more — see what's new

Tang

The default theme. Mintlify-Mint inspired — sans-serif, warm off-white surface, mandarin accent.

~ 2 min read

Tang

Tang is what tangly init ships. Sans-serif everywhere, warm off-white background, mandarin orange accent. Sidebar to the left, two-row top bar (logo + tabs), right-rail TOC. Familiar to anyone coming from Mintlify Mint.

When to use it

  • General-purpose OSS docs.
  • Dev-tool product sites.
  • API references with a sidebar of grouped endpoints.
  • Anything where you want zero design ambiguity.

If your docs are a long-form manuscript, readable reads better. If they fit on one page, pip is leaner.

Set it

json
{ "theme": "tang" }

This is the default. You can omit the field entirely — same result.

Token table

From packages/theme-tang/src/styles/theme.css:

Colors — light

TokenValueRole
--tangly-color-primary#ea580cTang-600 — mandarin. Active nav, primary buttons.
--tangly-color-primary-light#f97316Tang-500. Hover states, gradient highlights.
--tangly-color-primary-dark#c2410cTang-700. Active states.
--tangly-color-bg#fafaf7Paper — warm off-white surface.
--tangly-color-bg-elevated#f4f2ecSlightly recessed paper. Cards, code blocks.
--tangly-color-fg#0b0b0fInk — primary text.
--tangly-color-muted#6b6b70Mute — secondary text.
--tangly-color-border#e6e4deHairlines.

Colors — dark

The dark mode variant uses the same accents on a near-black surface (#0b0b0f) with darker hairlines (#1f1f23).

Typography

TokenValue
--tangly-font-headingInter (Google Fonts) → system fallback
--tangly-font-bodyInter
--tangly-font-monoJetBrains Mono → ui-monospace

Layout

TokenValueNotes
--tangly-sidebar-width17rem
--tangly-content-max-width48rem
--tangly-toc-width15remRight-rail TOC.
--tangly-topnav-row1-height3.75remLogo row.
--tangly-topnav-row2-height2.5remTabs row.

Radii

TokenValue
--tangly-radius0.5rem
--tangly-radius-sm0.375rem
--tangly-radius-lg0.75rem

Customizing

Three layered options:

json
{
  "theme": "tang",
  "colors": {
    "primary": "#0ea5e9",
    "light":   "#38bdf8",
    "dark":    "#0284c7"
  },
  "fonts": {
    "heading": { "family": "DM Sans" },
    "body":    { "family": "Inter" }
  }
}

For deeper changes (sidebar width, line heights, radii), drop a theme/styles/theme.css at your project root. The CSS file is concatenated after the bundled theme — your declarations win.

css
:root {
  --tangly-sidebar-width: 20rem;
  --tangly-content-max-width: 52rem;
}

Source

packages/theme-tang/src/styles/theme.css

Last updated Edit this page
↑↓ navigate open esc close