Merge claude/investigate-google-fonts-ijYrT: default font provider to Bunny Fonts

https://claude.ai/code/session_01PTQoBgxUeXHkZkdgHbafAE
This commit is contained in:
Claude 2026-05-19 03:41:52 +00:00
commit b69af5dfa2
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -1367,8 +1367,8 @@ body {
if (!spec) return null; if (!spec) return null;
const parts = spec.split(':'); const parts = spec.split(':');
if (parts.length >= 3) return { provider: parts[0].trim(), name: parts.slice(1, -1).join(':').trim(), weight: parts[parts.length - 1].trim() }; if (parts.length >= 3) return { provider: parts[0].trim(), name: parts.slice(1, -1).join(':').trim(), weight: parts[parts.length - 1].trim() };
if (parts.length === 2) return { provider: 'google', name: parts[0].trim(), weight: parts[1].trim() }; if (parts.length === 2) return { provider: 'bunny', name: parts[0].trim(), weight: parts[1].trim() };
return { provider: 'google', name: parts[0].trim(), weight: '400' }; return { provider: 'bunny', name: parts[0].trim(), weight: '400' };
} }
const src = tc || {}; const src = tc || {};

View file

@ -83,7 +83,7 @@ font-title: "bunny:Noto Sans:700" # Heading font.
font-code: "bunny:Fira Code:400" # Code font. font-code: "bunny:Fira Code:400" # Code font.
``` ```
Provider options: `bunny` (GDPR-safe) or `google`. Omitting the provider defaults to Google Fonts. Provider options: `bunny` (GDPR-safe) or `google`. Omitting the provider defaults to Bunny Fonts.
--- ---

View file

@ -156,10 +156,10 @@ System fonts (no external request):
font-body: "system-ui:400" font-body: "system-ui:400"
``` ```
Shorthand without provider defaults to Google Fonts: Shorthand without provider defaults to Bunny Fonts:
```yaml ```yaml
font-body: "Noto Sans:400" # equivalent to google:Noto Sans:400 font-body: "Noto Sans:400" # equivalent to bunny:Noto Sans:400
``` ```
Size and spacing: Size and spacing: