Skip to content

feat(editor): add heading theme tokens - #587

Merged
murongg merged 1 commit into
v2from
feature/581-heading-theme-tokens
Jul 26, 2026
Merged

feat(editor): add heading theme tokens#587
murongg merged 1 commit into
v2from
feature/581-heading-theme-tokens

Conversation

@murongg

@murongg murongg commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • expose per-level H1-H6 theme tokens for color, font size, font weight, and line height
  • apply the tokens to both CodeMirror heading lines and rendered Markdown headings, including compact H1/H2 font sizes
  • include the new tokens in the default custom theme CSS and cover the theme contract with focused tests

Validation

  • pnpm --filter @markra/app test — 127 files and 1438 tests passed
  • pnpm --filter @markra/app typecheck:test — passed
  • pnpm --filter @markra/desktop build — production build and vendor chunk verification passed

Risk

  • Low: the token defaults preserve the current heading values, while existing custom themes inherit the new defaults through .markdown-paper.

Related Issues

Closes #581

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markra-web Ready Ready Preview, Comment Jul 26, 2026 12:44pm

@murongg
murongg merged commit f304ff9 into v2 Jul 26, 2026
21 checks passed
@murongg
murongg deleted the feature/581-heading-theme-tokens branch July 26, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] 支持在自定义主题中独立配置各级标题(H1-H6)的颜色

1 participant