You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
themes: support packaged fonts via validated font slots #48
Themes can change fonts, but only to fonts already installed on the user's machine. A .theme package cannot ship a font: the sanitizer removes url() and @font-face, and quoted font names are stripped. This makes themes non-portable across systems.
Current behavior
pkg/theme/protected.go:70, :242-246 removes any url().
pkg/theme/protected.go:122-147 drops quoted strings, so font-family: "Inter" breaks; unquoted font-family: Inter works only if the font is installed.
pkg/theme/protected.go:322-339 only preserves @media and @supports at-rules, so @font-face does not survive.
url() remains banned in theme.css; only launcher-generated CSS contains URLs
Why this is safe
The theme never supplies a URL. The launcher generates a 127.0.0.1 URL for a validated, size-capped file inside the package. This keeps the #36 fix intact while making themes portable.
Activity