aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar hedy <[email protected]>2024-02-13 14:26:23 +0800
committerGravatar hedy <[email protected]>2024-02-13 14:26:23 +0800
commit212161c1b3f890d56cbfda0e1422e2cec06f3fcd (patch)
tree420c5fab38230f61cc9452056c6958fe0049c621 /pydis_site/settings.py
parentMerge pull request #1228 from python-discord/resources_config_ready (diff)
Add docs on Bulma, colors, dark mode, and CSS for development
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py7
1 files changed, 7 insertions, 0 deletions
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",