Use efficient selectors to reduce rendering overhead:
/* ❌ Bad - overly specific */html body div.theme-dark div[class*="app_"] div[class*="container_"] div[class*="message_"] { background: red;}/* ✅ Good - concise and efficient */[class*="message_"] { background: red;}
/* ❌ Bad - affects everything */* { border-radius: 10px;}/* ✅ Good - target specific elements */[class*="container_"],[class*="wrapper_"],[class*="card_"] { border-radius: 10px;}
/* Target the message list container for custom scrollbar styling This affects all message scrolling areas in channels */[class*="messagesWrapper_"] [class*="scroller_"] { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thin-thumb) var(--scrollbar-thin-track);}/* Fix for overlapping elements in compact mode Applies additional padding when compact message density is enabled */[class*="compact_"] [class*="message_"] { padding-top: 2px; padding-bottom: 2px;}
/* ❌ Bad - overusing !important */.element { color: red !important; background: blue !important; font-size: 14px !important;}/* ✅ Good - only when absolutely necessary */.element { color: red; background: blue; font-size: 14px;}/* Only use !important to override inline styles or ensure critical overrides */[class*="message_"][style] { background: transparent !important;}
/** * @name Complete Theme Name * @author Your Name * @version 1.0.0 * @description A detailed description of what your theme does and its unique features * @source https://github.com/yourusername/your-theme * @website https://yourwebsite.com/theme-documentation * @invite discordserver * @donate https://ko-fi.com/yourusername * @authorId 123456789012345678 * @authorLink https://yourwebsite.com */
/** * @name Licensed Theme * @author Your Name * @version 1.0.0 * @description Theme with proper licensing * @source https://github.com/yourusername/your-theme * @license MIT *//* * MIT License * * Copyright (c) 2026 Your Name * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction... */