Skip to content

Latest commit

 

History

History
221 lines (171 loc) · 9.89 KB

README.en.md

File metadata and controls

221 lines (171 loc) · 9.89 KB

banner

Bloom for Typora

Release License Stars Listed on Typora official theme gallery Chinese Document

A Typora theme collection made for long-form writing.
Calmer pages, clearer hierarchy, and a more consistent look for code and prose.

Preview Site · Download Latest · 🗳️ Vote for palettes

What Bloom Is

Bloom is a Typora theme set built around three goals:

  • make long writing sessions easier on the eyes
  • keep code fences, quotes, tables, alerts, and YAML frontmatter visually consistent
  • preserve stable contrast and hierarchy across light and dark themes

The current release is v1.7.2 (badge is auto-synced from github/v/release).

Why Bloom

Feature Description
24-theme matrix 12 light themes and 12 dark themes for different moods and writing environments.
OKLCH palette system Uses a perceptual color model to keep lightness more stable across theme switches.
Unified module styling Code fences, HTML blocks, YAML frontmatter, and alerts follow the same visual logic.
Tuned for Typora Adjusted specifically for Markdown editing, reading flow, and dark-mode contrast.

Theme Matrix

12 palettes, each with a light and a dark (-dark) variant — 24 themes in total.

petal petal · petal-dark mist-dark mist · mist-dark
verdant verdant · verdant-dark stone-dark stone · stone-dark
wheat wheat · wheat-dark ink ink · ink-dark
amber-dark amber · amber-dark lapis lapis · lapis-dark
ripple-dark ripple · ripple-dark cinnabar cinnabar · cinnabar-dark
sage-dark sage · sage-dark spring spring · spring-dark

Quick Install

  1. Download Bloom-theme.zip from Releases.
  2. In Typora, open Preferences -> Appearance -> Open Theme Folder.
  3. Copy all bloom-*.css files and the bloom/ directory into the Typora theme folder.
  4. Restart Typora, or switch to a Bloom theme from the Themes menu.

Bloom does not appear in the Themes menu?

  • Typora lists .css files placed directly in the theme folder. Many unzip tools create an extra Bloom-theme/ folder; if the bloom-*.css files ended up inside it, move them up one level so they sit next to the other themes.
  • Keep the bloom/ folder beside the .css files; it holds the fonts the themes load.
  • Quit Typora completely and reopen it after copying.
  • Each palette has a light and a dark file (for example bloom-ink.css and bloom-ink-dark.css); pick the one you want from the Themes menu.

Latest Release Highlights

v1.7.2 (2026-09-10):

  • WCAG AA link-color guardrail — six light themes now meet AA contrast for links, and accent is gated by CI.
  • CI switched to pnpm — release-please workflow now runs on pnpm.

Key milestones since v1.3.5:

  • v1.4.0 — compile oklch / color-mix to static sRGB for legacy Typora compatibility; unified release flow; theme alerts & print cleanup.
  • v1.5.0 — Ink / Amber / Lapis palettes + palette wall with GitHub voting (24 themes total).
  • v1.6.0 — CJK reading measure, tracking, scoped transitions; WCAG CI online.
  • v1.7.0 — fluent-inspired sidebar file tree.

See CHANGELOG.md for the full history.

Development and Build

Local Development

pnpm install
npm run dev

npm run dev prepares a local browser preview through Typora's official toolkit flow: it fetches typora/typora-theme-toolkit, copies the selected theme CSS into html-preview/theme/test.css, and opens the toolkit HTML preview. To choose a theme:

npm run dev -- wheat-dark

Common Commands

  • npm run build: regenerate theme CSS files and website theme data
  • npm run dev: preview locally through the official toolkit path for debugging and screenshots
  • npm run dev:site: build and open the local website display page
  • npm run sync:typora: build and sync theme CSS files plus bloom/ assets to Typora's theme folder
  • npm run dev:typora: watch theme sources, rebuild, and sync to Typora's theme folder
  • npm run validate:themes: validate theme variables and generated color definitions against the mist / wheat standard
  • npm run package: create Bloom-theme.zip

Debug in Typora

Before the first run, open Preferences -> Appearance -> Open Theme Folder in Typora and make sure the theme folder exists. The default macOS path is:

~/Library/Application Support/abnerworks.Typora/themes

Then run:

npm run dev:typora

After changes under theme-src/, the script rebuilds and syncs the generated theme files into Typora's theme folder. If Typora does not refresh immediately, switch to another Bloom theme and back, or restart Typora. For selector-level debugging, enable Typora debug mode and inspect elements with DevTools.

Official Toolkit Browser Preview

The browser preview is local-only for debugging and screenshots. It is not deployed as a public website page:

npm run dev -- petal

The script writes dist/bloom-<theme>.css to .cache/typora-theme-toolkit/html-preview/theme/test.css and copies the bloom/ assets folder. This matches the test location recommended by Typora's official toolkit.

Generated themes such as wheat / wheat-dark use scripts/theme-list.js as the color entrypoint. The build derives theme CSS and website theme data from that single definition. Theme colors must follow Theme Color Standard.

Repository Layout

  • theme-src/: source styles, base layers, and theme-specific variables
  • dist/: generated CSS files used by Typora
  • bloom/: shared static assets such as bundled fonts
  • scripts/: build, packaging, and site-data scripts
  • website/ and _pages/: public website assets

Star History

Star History Chart for webkubor/typora-Bloom-theme

License

MIT

Author

webkubor