Customization

BetterDiscord Custom CSS: A Beginner's Guide

Make precise tweaks without a full theme: the editor, finding the right selector, resilient snippets and when to stop.

3 min readFacts checked 9 November 2026By the BetterDiscord.org editorial team
BetterDiscord Custom CSS: A Beginner's Guide – cover image

Custom CSS is BetterDiscord's quiet superpower. Instead of installing a whole theme, you write a few lines that change exactly what bothers you. Because it is plain CSS, it cannot run code and is the lowest-risk way to customise Discord.

Opening the editor

Go to User Settings → BetterDiscord → Custom CSS. Type rules and the interface updates live. You can also choose to open the file in a detached window or your system editor from the Custom CSS settings. Your rules are saved to a custom.css file inside your BetterDiscord data folder, so they survive reinstalls.

Finding the right selector

Discord's interface is HTML, so you can inspect it. Open Discord's developer tools (Ctrl+Shift+I on Windows and Linux, Cmd+Option+I on macOS), click the element picker and select the part you want to change.

Discord's class names include random-looking suffixes, for example name_a1b2c3, that change when Discord rebuilds its app. Target the stable part with an attribute selector so your rule survives updates:

/* fragile */
.name_a1b2c3 { font-weight: 700; }

/* sturdier: match the start of the class name */
[class^="name_"] { font-weight: 700; }

Never paste code from strangers into the developer-tools console. Inspecting elements is safe; running unknown JavaScript there is how accounts get stolen.

Starter snippets

These patterns are illustrative; selectors must match Discord's current markup, which you can confirm with the element picker.

/* Larger chat text */
[class*="messageContent"] { font-size: 1.05rem; line-height: 1.55; }

/* Use a font you have installed */
body { font-family: "Poppins", system-ui, sans-serif; }

/* Hide an element you never use (replace the selector) */
[aria-label="Example button"] { display: none; }

Working with a theme's variables

Most modern themes expose CSS custom properties near the top of their file. Rather than editing the theme (which an update would overwrite), override the variable in Custom CSS:

:root {
  --accent-color: #3E82E5;   /* variable names differ per theme */
}

Check the theme's documentation for the exact variable names it supports.

When your rule doesn't apply

  1. Check for syntax errors — one missing brace can disable everything after it.
  2. Make the selector more specific (add a parent selector) before using !important.
  3. Confirm that Custom CSS is enabled in BetterDiscord's settings.
  4. Reload Discord (Ctrl+R / Cmd+R).

Keep it fast

  • Avoid large blur and backdrop-filter effects on scrolling areas.
  • Prefer small images or gradients over huge animated backgrounds.
  • Avoid universal selectors such as * { transition: all 1s }.

Accessibility wins

Custom CSS is a great way to raise text size, increase contrast, enlarge click targets or reduce motion — especially for long sessions. Check that text you recolour still contrasts well with its background.

From snippets to a theme

When your snippet collection grows, turn it into a .theme.css file with a metadata header (@name, @author, @description, @version) so you can toggle it like any theme. The official BetterDiscord documentation covers theme development in depth. Next: installing themes and plugins.

Get BetterDiscord from the official source

Our download section lists the current official installer files, sizes and requirements, all linking to betterdiscord.app or the project’s GitHub Releases.

See download options