MCPcopy Index your code
hub / github.com/coder/coder / baseModeFor

Function baseModeFor

site/src/theme/index.ts:98–102  ·  view source on GitHub ↗
(
	concreteName: ConcreteThemeName,
)

Source from the content-addressed store, hash-verified

96};
97
98export const baseModeFor = (
99 concreteName: ConcreteThemeName,
100): "dark" | "light" => {
101 return concreteName.startsWith("dark") ? "dark" : "light";
102};
103
104const theme = {
105 dark,

Callers 6

ThemePreviewFunction · 0.90
ThemeSwatchFunction · 0.90
applyEmbedThemeFunction · 0.90
ThemeProviderFunction · 0.90
extractEffectiveBlockFunction · 0.85
colorblind.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 1

extractEffectiveBlockFunction · 0.68