Skip to content

Conversation

@matscalia
Copy link
Contributor

Allow the user to configure the main theme and the markdown theme via the "theme" and "markdown-theme" fields respectively. Given that the theme objects are quite bulky, the user can choose to pass either the object directly or the path to a file containing the theme. Examples:
Theme: nord.json

{
  "primary": {"light": "#8FBCBB", "dark": "#8FBCBB"},
  "secondary": {"light": "#88C0D0", "dark": "#88C0D0"},
  "success": {"light": "#A3BE8C", "dark": "#A3BE8C"},
  "warning": {"light": "#EBCB8B", "dark": "#EBCB8B"},
  "error": {"light": "#BF616A", "dark": "#BF616A"},
  "info": {"light": "#88C0D0", "dark": "#88C0D0"},
  "text": {"light": "#2E3440", "dark": "#D8DEE9"},
  "muted": {"light": "#4C566A", "dark": "#434C5E"},
  "very-muted": {"light": "#3B4252", "dark": "#3B4252"},
  "background": {"light": "#D8DEE9", "dark": "#2E3440"},
  "border": {"light": "#4C566A", "dark": "#3B4252"},
  "muted-border": {"light": "#434C5E", "dark": "#434C5E"},
  "system": {"light": "#8FBCBB", "dark": "#8FBCBB"},
  "tool": {"light": "#88C0D0", "dark": "#88C0D0"},
  "accent": {"light": "#8FBCBB", "dark": "#8FBCBB"},
  "highlight": {"light": "#B48EAD", "dark": "#B48EAD"}
}

Markdown theme: nord-md.json

{
  "text": {"light": "#4C566A", "dark": "#D8DEE9"},
  "muted": {"light": "#4C566A", "dark": "#4C566A"},
  "heading": {"light": "#88C0D0", "dark": "#88C0D0"},
  "emph": {"light": "#BF616A", "dark": "#BF616A"},
  "strong": {"light": "#BF616A", "dark": "#BF616A"},
  "link": {"light": "#81A1C1", "dark": "#81A1C1"},
  "code": {"light": "#A3BE8C", "dark": "#A3BE8C"},
  "error": {"light": "#BF616A", "dark": "#BF616A"},
  "keyword": {"light": "#B48EAD", "dark": "#B48EAD"},
  "string": {"light": "#A3BE8C", "dark": "#A3BE8C"},
  "number": {"light": "#EBCB8B", "dark": "#EBCB8B"},
  "comment": {"light": "#4C566A", "dark": "#4C566A"}
}

No theme/markdown theme is passed, the embedded default theme is used.

@ezynda3 ezynda3 merged commit 4efc2e2 into mark3labs:main Sep 2, 2025
1 check passed
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.

2 participants