CSS: Extract fonts to CSS variables #3850

Closed
opened 2026-02-05 07:39:53 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ssddanbrown on GitHub (Jun 13, 2023).

For easier customization and codebase reuse. Current SASS vars.

Docs Updates

Example Usage

<style>
	body {
	  --font-body: 'Noto Serif', serif;
	  --font-heading: 'Roboto', sans-serif;
	  --font-code: 'Source Code Pro', monospace;
	}
</style>
Originally created by @ssddanbrown on GitHub (Jun 13, 2023). For easier customization and codebase reuse. Current SASS vars. ### Docs Updates - [x] Update [customising visuals page](https://www.bookstackapp.com/docs/admin/visual-customisation/#changing-fonts). - [x] Update advisory to warn of change in how fonts are customized. ### Example Usage ```html <style> body { --font-body: 'Noto Serif', serif; --font-heading: 'Roboto', sans-serif; --font-code: 'Source Code Pro', monospace; } </style> ```
OVERLORD added the 🔧 Maintenance📖 Docs Update💻 Front-End labels 2026-02-05 07:39:53 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 14, 2023):

Added in 610ad0d613

@ssddanbrown commented on GitHub (Jun 14, 2023): Added in 610ad0d613513d8f83eb05a0ba099700846af7c6
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3850