{% extends 'site_layout.html.j2' %} {% if new %} {% set title="New - User CSS" %} {% else %} {% set title="Editing " + css.name + " - User CSS" %} {% endif %} {% if not admin %} {% set admin=False %} {% endif %} {%- set live_preview -%}
{{ request.url_root }}embed/
{% endset %} {% block content %}

{% if new %}New{% else %}Editing {{ css.name|e }}{% endif %} - User Defined CSS

Note: This feature is only used for CSS. Any attempts to enter HTML or malicious CSS code will have CSS cosmetic privilages removed, if caught. Please don't, we check the databases often. Thanks!

{% if not new %}

Using your custom CSS

This user defined CSS has a unique ID of {{ css.id }}.

To use this CSS in the embed, you must apped a ?css={{ css.id }} to the embed URL.

Something like this will work:

{% endif %}

Give your CSS a name

{% if admin %}

Set CSS Ownership

{% endif %}

Propose Predefined CSS variables here

Modal Background Color (--modal):
Uncategorized Discord Users (--noroleusers):
Main Background Color (--main):
Text input placeholder (--placeholder):
Sidebar Dividers (--sidebardivider):
Left Sidebar/Guild Navigation Background (--leftsidebar):
Right Sidebar/Member List Background (--rightsidebar):
Header Background (--header):
Chat Message (--chatmessage):
Discriminator Text (--discrim):
Message Box Background (--chatbox):

TIP! You can use the variables in your CSS below! Something like color: var(--leftsidebar); would work!

{% if not admin and ((new and premium_css_count >= cosmetics.css_limit) or (not new and premium_css_count >= cosmetics.css_limit and css.css is none)) %}

All custom CSS slots are used. Donate to get more!

Free up some slots by emptying your other custom CSS field and submitting it (Titan will automatically mark empty custom css editor fields as unused slots in the database) or delete the user defined css slot altogether.


{{ live_preview }}
{% else %}

Edit your CSS code here

Remove any text and leave this box blank when submitting to not use up your custom css slots.

{% if new %}/* Enter your CSS code here! */{% else %}{% if css.css %}{{ css.css|e }}{% endif %}{% endif %}
{{ live_preview }}

{% endif %}
Submit {% if not new %}Delete{% endif %}
{% endblock %} {% block script %} {% endblock %} {% block additional_head_elements %} {% endblock %}