mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 15:24:32 +00:00
Merge claude/investigate-google-fonts-ijYrT: default font provider to Bunny Fonts
https://claude.ai/code/session_01PTQoBgxUeXHkZkdgHbafAE
This commit is contained in:
commit
b69af5dfa2
3 changed files with 5 additions and 5 deletions
|
|
@ -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 || {};
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue