MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / make_var_styles

Function make_var_styles

packages/shared/src/theme.ts:192–203  ·  view source on GitHub ↗
(root_class: string)

Source from the content-addressed store, hash-verified

190} as const
191
192export function make_var_styles(root_class: string): string {
193 return `
194 .${root_class} {
195 ${css_vars.map(css_var => `${css_var.name}: ${css_var.light};`).join('')}
196 }
197 @media (prefers-color-scheme: dark) {
198 .${root_class} {
199 ${css_vars.map(css_var => `${css_var.name}: ${css_var.dark};`).join('')}
200 }
201 }
202 `
203}
204
205export const colors = {
206 inherit: 'inherit',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…