From 212161c1b3f890d56cbfda0e1422e2cec06f3fcd Mon Sep 17 00:00:00 2001 From: hedy Date: Tue, 13 Feb 2024 14:26:23 +0800 Subject: Add docs on Bulma, colors, dark mode, and CSS for development --- pydis_site/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pydis_site/settings.py') diff --git a/pydis_site/settings.py b/pydis_site/settings.py index a916ddb0..57ff1a15 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -299,6 +299,10 @@ LOGGING = { # Custom settings for django-simple-bulma BULMA_SETTINGS = { + # NOTE: Due to limitations with Bulma + CSS, it is not possible to + # reference these color variables in our custom CSS files. When changing + # colors here, please do a project-wise grep and make sure other places + # that uses the old color is updated as appropriate. "variables": { "primary": "#7289DA", # PyDis blurple "green": "#32ac66", # Colour picked after Discord discussion @@ -330,6 +334,9 @@ BULMA_SETTINGS = { "body-background-color": "#252629", + # These black and white colors are flipped so that when using + # has-background-white class for example, a white background is used in + # light mode whereas a dark background is applied in dark mode. "white": "#2C2F33", "white-bis": "#23272A ", "white-ter": "#36393F", -- cgit v1.2.3