Skip to the content.

Step 2: Writing Custom CSS and Themes

If you know some CSS, this is the place to start.

2.1: Developer settings

Before beginning, DevTools is a requirement to find class names and view Discord’s default styles for those classes. Open DevTools with Ctrl + Shift + I (windows/linux) / Cmd + Opt + I (mac).

icon BetterDiscord

  1. Open Settings > BetterDiscord > Settings > Developer Settings.
  2. Enable the following:
    • DevTools (mandatory)
    • Debugger Hotkey (convenient for quickly checking hover-only styles)
    • Inspect Element Hotkey (convenient shortcut)
    • Stop DevTools Warning (makes Console tab in devtools actually readable)

icon Replugged and icon Vencord

No extra steps needed, DevTools is enabled by default.

2.2: Writing Custom / Quick CSS

  1. With the inspect element tool Inspect Element tool (top left corner of DevTools), click on an area that you want to style.
    • Clicking may not always give the exact right element, you may need to go up or down some levels in the document viewer panel.
      document viewer panel.
  2. Copy the class name and write your styles for it in Custom / Quick CSS. Remember to save (and/or turn on Live Update) to see your changes.

Example

/* Turns the user panel green */
.container_ca50b9 {
    background: green;
}

The user panel with a green background

Notes

2.3: Writing a theme

Custom / Quick CSS can quickly get cluttered and hard to navigate, so it’s better to write a theme in a separate file:

icon BetterDiscord and icon Vencord

This is covered by the BetterDiscord themes guide. Here’s a summary:

  1. Go to the themes folder: Settings > Themes > Open Theme Folder.
  2. Make a file with name ending in .theme.css, eg. MyTheme.theme.css.
  3. Start the contents with the theme meta:
    /**
     * @name My Theme
     * @author My Name
     * @description This is my theme. There are many like it, but this one is mine.
     * @version 1.0
     */
    
  4. Add your CSS rules after the meta.
Notes

icon Replugged

  1. Go to the themes folder: Settings > Themes > Open Themes Folder.
  2. Make a folder with the name of your theme, eg. MyTheme.
  3. In that folder, make:
    1. A file named manifest.json with the theme manifest:
       {
       "id": "com.example.mytheme",
       "name": "My Theme",
       "author": {
           "name": "My Name"
       },
       "description": "This is my theme. There are many like it, but this one is mine.",
       "version": "1.0.0",
       "license": "MIT",
       "type": "replugged-theme"
       }
      
    2. A file named main.css with your CSS rules.
Notes