bobzhang/beautiful_mermaid/themes/core does not have a README file
pub(all) struct ShikiTheme {
theme_type : String?
colors : Map[String, String]?
token_colors : Array[ShikiTokenColor]?
}impl Eq for ShikiThemeimpl Show for ShikiThemeimpl ToJson for ShikiThemeimpl Eq for ShikiTokenColorimpl Show for ShikiTokenColorimpl ToJson for ShikiTokenColorpub enum ThemeName {
ZincLight
ZincDark
TokyoNight
TokyoNightStorm
TokyoNightLight
CatppuccinMocha
CatppuccinLatte
Nord
NordLight
Dracula
GithubLight
GithubDark
SolarizedLight
SolarizedDark
OneDark
}fn built_in_theme_slugs_csv() -> Stringfn canonical_theme_slug(name : String) -> String?fn normalize_theme_name(name : String) -> Stringtest {
match parse_theme_name("TOKYO NIGHT") {
Some(theme) => assert_eq(theme_slug(theme), "tokyo-night")
None => fail("theme should parse")
}
match parse_theme_name("default") {
Some(theme) => assert_eq(theme_slug(theme), "zinc-light")
None => fail("default should parse")
}
assert_true(parse_theme_name("not-a-theme") is None)
}fn shiki_dark_theme(colors : Map[String, String]?, token_colors : Array[ShikiTokenColor]?) -> ShikiThemefn shiki_light_theme(colors : Map[String, String]?, token_colors : Array[ShikiTokenColor]?) -> ShikiThemefn shiki_theme(theme_type : String?, colors : Map[String, String]?, token_colors : Array[ShikiTokenColor]?) -> ShikiThemetest {
match theme_by_name("github-dark") {
Some(colors) => assert_eq(colors.bg, "#0d1117")
None => fail("theme should resolve")
}
}fn theme_exists(name : String) -> BoolMoonBit port of beautiful-mermaid: render Mermaid diagrams to SVG and ASCII/Unicode text.