diff --git a/docs/adding_fonts.md b/docs/adding_fonts.md new file mode 100644 index 0000000000000000000000000000000000000000..dbad8895e14fc683084d962c7759ef0d888db874 --- /dev/null +++ b/docs/adding_fonts.md @@ -0,0 +1,6 @@ +To add fonts to Spacedeck Open, follow these steps: + +1. Find the googleapis link for the font and add it to [./styles/type.scss](https://github.com/spacedeck/spacedeck-open/blob/docs/styles/type.scss#L4) after the `Inter` font that is already there. Here is a good reference to using [Google Font API](https://www.webfx.com/blog/web-design/google-font-api-guide/). +2. Add the name of the font to the file [./public/javascripts/spacedeck_sections.js](https://github.com/spacedeck/spacedeck-open/blob/docs/public/javascripts/spacedeck_sections.js#L150) in the `fonts` section found around line 150. The order of the list here is the order in which fonts will be displayed in the user interface. +3. From the root of your install, do `gulp styles` to recompile the SCSS. +4. Restart your server.