From c8ea4066b1ab4ec3c2f2f24151814c0d7c6757dc Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 25 Feb 2024 04:43:32 +0000 Subject: [PATCH] less confusing explanation hopefully --- docs/rice/README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/rice/README.md b/docs/rice/README.md index e5f318d2..385e3ee3 100644 --- a/docs/rice/README.md +++ b/docs/rice/README.md @@ -1,6 +1,14 @@ # custom fonts -to change the fonts in the web-UI, first create a css file with your customizations, for example `customfonts.css`, for example in your webroot +to change the fonts in the web-UI, first save the following text (the default font-config) to a new css file, for example named `customfonts.css` in your webroot: + +```css +:root { + --font-main: sans-serif; + --font-serif: serif; + --font-mono: 'scp'; +} +``` add this to your copyparty config so the css file gets loaded: `--html-head=''` @@ -11,15 +19,9 @@ alternatively, if you are using a config file instead of commandline args: html-head: ``` -make your changes in the css file; this is the default values to get you started: +restart copyparty for the config change to take effect -```css -:root { - --font-main: sans-serif; - --font-serif: serif; - --font-mono: 'scp'; -} -``` +edit the css file you made and press `ctrl`-`shift`-`R` in the browser to see the changes as you go (no need to restart copyparty for each change) if you are introducing a new ttf/woff font, don't forget to declare the font itself in the css file; here's one of the default fonts from `ui.css`: