refactor(Font): consolidate API layer and update type structure

This commit is contained in:
Ilia Mashkov committed 2026-03-02 22:18:21 +03:00
1 parent ba186d00a1
commit af4137f47f
17 files changed
+325 -558

No files matched your search

@@ -16,19 +16,20 @@ import {
interface Props {
/**
* Applied font
* Font to apply
*/
font: UnifiedFont;
/**
* Font weight
* @default 400
*/
weight?: number;
/**
* Additional classes
* CSS classes
*/
className?: string;
/**
* Children
* Content snippet
*/
children?: Snippet;
}
@@ -44,7 +45,7 @@ const status = $derived(
appliedFontsManager.getFontStatus(
font.id,
weight,
font.features.isVariable,
font.features?.isVariable,
),
);