From 2ce448943b5b14f152959849fe3f795dea6d3d8f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 24 Jun 2020 14:55:57 +0200 Subject: [PATCH 1/2] add documentation for fonts in custom theme --- docs/theming.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/theming.md b/docs/theming.md index 6bd66b58..5b002d6d 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -41,6 +41,16 @@ eg. in config.json: { "name": "Electric Blue", "is_dark": false, + "fonts": { + "faces": [ + { + "font-family": "Inter", + "src": [{"url": "/fonts/Inter.ttf", "format": "ttf"}] + } + ], + "general": "Inter, sans", + "monospace": "'Courrier New'" + }, "colors": { "accent-color": "#3596fc", "primary-color": "#368bd6", @@ -84,3 +94,5 @@ eg. in config.json: `username-colors` is expected to contain 8 colors. `avatar-background-colors` is expected to contain 3 colors. Both values are optional and have fallbacks from the built-in theme. These are exposed as `--username-colors_0`, ... and `--avatar-background-colors_0`, ... respectively in CSS. + +All properties in `fonts` are optional, and will default to the standard Riot fonts. From fe0ed2b4f352cbb3beb1031bfb09688bf8f42eb3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 24 Jun 2020 13:15:59 +0000 Subject: [PATCH 2/2] Update docs/theming.md Co-authored-by: J. Ryan Stinnett --- docs/theming.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/theming.md b/docs/theming.md index 5b002d6d..e9feb236 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -49,7 +49,7 @@ eg. in config.json: } ], "general": "Inter, sans", - "monospace": "'Courrier New'" + "monospace": "'Courier New'" }, "colors": { "accent-color": "#3596fc",