Home / Function/ renderCssVariable() — astro Function Reference

renderCssVariable() — astro Function Reference

Architecture documentation for the renderCssVariable() function in minifiable-css-renderer.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  4009a574_3a30_0f00_432f_c45bb5e47f22["renderCssVariable()"]
  4df2df7e_7b50_0a76_f17c_a22a7c396706["minifiable-css-renderer.ts"]
  4009a574_3a30_0f00_432f_c45bb5e47f22 -->|defined in| 4df2df7e_7b50_0a76_f17c_a22a7c396706
  9d87466f_a283_cbac_86c7_a9474910b447["generateCssVariable()"]
  9d87466f_a283_cbac_86c7_a9474910b447 -->|calls| 4009a574_3a30_0f00_432f_c45bb5e47f22
  07f80b71_5226_aac3_479e_2afb963f3697["handleValueWithSpaces()"]
  4009a574_3a30_0f00_432f_c45bb5e47f22 -->|calls| 07f80b71_5226_aac3_479e_2afb963f3697
  style 4009a574_3a30_0f00_432f_c45bb5e47f22 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/infra/minifiable-css-renderer.ts lines 18–25

export function renderCssVariable(key: string, values: Array<string>, minify: boolean): string {
	// Line feed
	const lf = minify ? '' : `\n`;
	// Space
	const sp = minify ? '' : ' ';

	return `:root${sp}{${lf}${sp}${sp}${key}:${sp}${values.map((v) => handleValueWithSpaces(v)).join(`,${sp}`)};${lf}}${lf}`;
}

Domain

Subdomains

Frequently Asked Questions

What does renderCssVariable() do?
renderCssVariable() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/infra/minifiable-css-renderer.ts.
Where is renderCssVariable() defined?
renderCssVariable() is defined in packages/astro/src/assets/fonts/infra/minifiable-css-renderer.ts at line 18.
What does renderCssVariable() call?
renderCssVariable() calls 1 function(s): handleValueWithSpaces.
What calls renderCssVariable()?
renderCssVariable() is called by 1 function(s): generateCssVariable.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free