-
Notifications
You must be signed in to change notification settings - Fork 2
Dev notes: colors and font
Ben Silverman edited this page Dec 6, 2022
·
1 revision
Here are some notes about changing author colors and the font used across the app.
- Colors are currently set in the Python script, using two Seaborn palettes ("bright" and "dark") in sequence.
- The block afterwards can be uncommented to set the colors manually, though note that there must be at least 12 colors (since that's the number of authors).
- These colors must be in the format
[r, g, b, a]
where each is a value from 0 to 255. - The colors here will be added to the JSON-LD Person records (
authors.json
) outputted from the Python script.
- Colors are currently accessed by pulling the
color
value from each JSON-LD Person record. - They are used for arcs in the Itineraries layer and names in the authors list.
- Both of those could be overridden, though it is recommended to then edit the Python script to remove the
color
field from the JSON-LD data, so that there is no mismatch between the data and the frontend.
- The font DM Sans is used across the site currently. It is inherited from Peripleo.
- To change, set the font in the following places: