MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / dualThemeOptions

Function dualThemeOptions

packages/react/src/lib/shiki.ts:135–138  ·  view source on GitHub ↗
(theme?: ShikiThemeProp)

Source from the content-addressed store, hash-verified

133
134/** The shiki options that render dual-theme `light-dark(...)` colors. */
135export const dualThemeOptions = (theme?: ShikiThemeProp) => ({
136 themes: resolveShikiThemes(theme),
137 defaultColor: "light-dark()" as const,
138});
139
140export function resolveLang(lang: string): SupportedLang | null {
141 const l = lang.trim().toLowerCase();

Callers 3

useTokensFunction · 0.90
useHighlightedFunction · 0.90
highlightFunction · 0.85

Calls 1

resolveShikiThemesFunction · 0.85

Tested by

no test coverage detected