🎨Customize the docs

Light/dark toggle on the docs

To show a light/dark mode toggle on your published docs (e.g. docs.onraven.com):

  1. In GitBook, open your space and go to PublishCustomization (or Customize).

  2. Open the Modes section.

  3. Set Show mode toggle to On. Save.

The toggle will appear at the bottom of every published page (footer area), on both desktop and mobile. Readers can use it to switch between light and dark mode.

If you don’t see the toggle: You’re likely in the GitBook editor instead of the published site. Open the public docs URL (e.g. docs.onraven.com) and check the bottom of the page. If it’s still missing, confirm Show mode toggle is On in Customization → Modes and do a hard refresh (Ctrl+F5 or Cmd+Shift+R).

Customizing your OnRaven docs (GitBook)

Use this guide to get a minimalist, comfortable look that matches the OnRaven app (same colors and typography) for your published docs. All of these settings are applied in GitBook’s Customization panel, not in this repo.

Official docs: Site customizationarrow-up-right · Icons, colors, and themesarrow-up-right


OnRaven app colors (use these in GitBook)

These values come from the app's design system (apps/webapp/src/theme.ts) so the docs feel consistent with the product.

Use in GitBook
Hex
Name in app

Primary color

#3B82F6

Electric Blue (primary accent)

Tint color (optional)

#2563EB or #60A5FA

Primary hover / blue 400

Dark background (reference)

#0B1120

Midnight Void

Light background (reference)

#F8FAFC

Cloud Mist

Font: The app uses Inter for UI and body text. If your GitBook plan supports custom fonts, choose Inter for a perfect match.


Where to customize

  1. Open your GitBook space (the one synced to this repo).

  2. Go to Publish (or your site) → Customization (or Customize).

  3. Use the options below. Changes apply to the published site; the GitBook editor UI stays unchanged.


Theme

  • Theme: Clean or Muted

    • Clean — Modern, minimal styling, translucency. Best default for “minimalist.”

    • Muted — Softer contrast, more pronounced background; good if you want a calmer feel.

  • Avoid Bold/Gradient unless you want a stronger brand look (Premium/Ultimate).

Colors (OnRaven brand)

  • Primary color#3B82F6 (Electric Blue). This affects links, current page, and key UI in the docs and matches the app.

  • Tint color#2563EB (darker blue, app primary-hover) or #60A5FA (lighter blue) for a softer text/icon tint. Use GitBook’s suggestions based on primary if you prefer.

  • Semantic colors (hint blocks) — Keep defaults or soften so info/warning/success blocks don’t clash with the blue.

Icon style (minimalist icons)

  • Site stylesIcons

  • Choose a lighter weight / more minimal style (e.g. “Light” or “Thin” if available). GitBook offers several icon weights; pick the one that looks clean and consistent.

  • This affects how page icons look in the sidebar and in the published site.

Note: Icon style is available on Premium and Ultimate plansarrow-up-right. On other plans, the default icon set still applies.

Fonts (Premium / Ultimate) — match the app

  • Font familyInter (the same font as the OnRaven app: theme.fontFamily.sans in apps/webapp/src/theme.ts). Keeps docs and product visually consistent.

  • Custom fonts (Ultimate) — If you upload your own font, use Inter (or match the app's font stack) so the docs align with the product.

  • Corner styleRounded for a softer, more approachable look.

  • Link styleAccent (underline only) keeps the layout clean; Default (full highlight) is fine if you prefer.

Modes (light / dark)

  • Show mode toggleOn, so readers can switch between light and dark.

  • Default modeLight for general comfort, or Dark if your audience prefers it.

  • Background style — Use the option that fits your theme (e.g. subtle or flat). Avoid heavy contrast so the sidebar doesn’t overpower the content.

  • List style — Pick a style that makes the current page and hierarchy clear without looking busy.


Page icons (sidebar)

  • Page icons are set per page in GitBook: click the icon picker next to the page title in the editor (or in the page settings).

  • For a minimalist look, use a small set of simple icons (e.g. one style, light weight) and use them consistently (e.g. same icon type for “Getting started” pages, another for “Reference”).

  • GitBook’s picker includes many icons and emojis; stick to one family so the sidebar feels cohesive.


Quick checklist


What you can’t change (GitBook limits)

  • You can’t change the layout of elements (only hide some on specific pages).

  • You can’t inject custom CSS/HTML/JS.

  • The “Powered by GitBook” link cannot be removed.

For more detail and screenshots, see Site customizationarrow-up-right and Icons, colors, and themesarrow-up-right.

Last updated

Was this helpful?