diff --git a/core/models/config.py b/core/models/config.py index cf54b7a..84c08c8 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -246,3 +246,5 @@ class Config(models.Model): # wellness Options visible_reaction_counts: bool = True + + custom_css: str | None diff --git a/templates/base.html b/templates/base.html index 70abe6b..71262b9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -22,6 +22,9 @@ } {% endif %} + {% if config_identity.custom_css %} + + {% endif %} {% block extra_head %}{% endblock %} diff --git a/users/views/settings/interface.py b/users/views/settings/interface.py index 230fe6f..2f95e29 100644 --- a/users/views/settings/interface.py +++ b/users/views/settings/interface.py @@ -20,9 +20,15 @@ class InterfacePage(SettingsPage): "title": "Show Boost and Like Counts", "help_text": "Disable to hide the number of Likes and Boosts on a 'Post'", }, + "custom_css": { + "title": "Custom CSS", + "help_text": "Theme the website however you'd like, just for you. You should probably not use this unless you know what you're doing.", + "display": "textarea", + }, } layout = { "Posting": ["toot_mode", "default_post_visibility"], "Wellness": ["visible_reaction_counts"], + "Appearance": ["custom_css"], }