Home / Function/ withFamily() — astro Function Reference

withFamily() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  be8c2179_c654_bb13_a969_c3d72a5977a7["withFamily()"]
  4df2df7e_7b50_0a76_f17c_a22a7c396706["minifiable-css-renderer.ts"]
  be8c2179_c654_bb13_a969_c3d72a5977a7 -->|defined in| 4df2df7e_7b50_0a76_f17c_a22a7c396706
  2992d8bc_170f_b58b_d651_6fc0de9839ab["generateFontFace()"]
  2992d8bc_170f_b58b_d651_6fc0de9839ab -->|calls| be8c2179_c654_bb13_a969_c3d72a5977a7
  07f80b71_5226_aac3_479e_2afb963f3697["handleValueWithSpaces()"]
  be8c2179_c654_bb13_a969_c3d72a5977a7 -->|calls| 07f80b71_5226_aac3_479e_2afb963f3697
  style be8c2179_c654_bb13_a969_c3d72a5977a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/infra/minifiable-css-renderer.ts lines 27–32

export function withFamily(family: string, properties: CssProperties): CssProperties {
	return {
		'font-family': handleValueWithSpaces(family),
		...properties,
	};
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free