Custom CSS
Restyle your community member pages with your own CSS, using stable classes and theme variables.
Open Settings → Features → Community → Theme. The Custom CSS card sits below the theme colours. Anyone who can edit the community theme can change it: the Manage community or Manage commerce permission.
Custom CSS applies only to the community member pages: the sidebar, channels, Home, Courses and chat. Checkout, account and sign-in pages are not affected. The Commerce theme page has no Custom CSS.
Two things paint the community, in this order:
- The theme sets colours, corners and font as CSS variables, light and dark.
- Custom CSS is added after that. A rule with the same specificity wins.
When Custom CSS is empty, the editor fills it with an empty rule for each class below. Empty rules do nothing, so saving that starter does not change the community. There is no live preview: save, then open your community to check.
Classes
These names are stable. Planeward only adds classes; it never renames or removes these, so your CSS keeps working.
| Class | Element |
|---|---|
.cm-shell | The whole community page |
.cm-sidebar | The left sidebar |
.cm-sidebar-brand | Your logo and name at the top of the sidebar |
.cm-sidebar-user | The signed-in member at the bottom |
.cm-channel-category | A category heading in the channel list |
.cm-channel | One channel in the list |
.cm-channel--active | The channel that is open |
.cm-main-bar | The bar above the page content |
.cm-content | The page content |
.cm-members-panel | The members list beside a channel |
.cm-bottom-nav | The bottom navigation on phones |
.cm-drawer | The slide-out menu on phones |
.cm-chat-message | One chat message |
.cm-message-author | The name on a message |
.cm-message-body | The text of a message |
.cm-composer | The box where members write a message |
.cm-chat-message used to be .cm-message. Some cookie-banner blockers hide that name, so it was renamed. Saved CSS that still says .cm-message keeps working.
For dark mode, put html.dark in front of the selector:
html.dark .cm-sidebar {
background: #0b1f1d;
}Variables
The theme writes these on :root for light and on html.dark for dark. Read them in your rules, or override them to retint the community without restyling every part.
--background,--foreground--primary,--primary-foreground--muted,--muted-foreground--border,--radius--sidebar,--sidebar-foreground,--sidebar-accent--cm-ink,--cm-muted,--cm-accent,--cm-radius,--cm-font
What is removed
Custom CSS is cleaned when you save and again when the page loads:
- It can be at most 20,000 characters.
- CSS escapes such as
\72are turned into the characters they stand for, and backslashes are dropped. So an escapedurlor@importis still checked. - Everything from the first
<is cut. - Comments are removed.
@importis kept only for a Google Fonts stylesheet fromhttps://fonts.googleapis.com. Any other@importis removed.url(...)is kept only for a workspace file (/media/{assetId}) or a Google font file onfonts.gstatic.com. Any otherurl(...)becomesnone.image-set(...),image(...)andsrc(...)are made invalid, because they load plain text as a URL. Useurl(...)with a workspace file instead.javascript:,expression(,behavior:and-moz-bindingare removed.
Forms in the community
Checkout, waitlist and onboarding forms have their own Custom CSS. It loads after the community CSS, so inside a form the form's CSS wins.
Example
A teal sidebar with a highlighted open channel, in light and dark:
.cm-sidebar {
background: #f0fdfa;
}
.cm-channel:hover {
background: #ccfbf1;
}
.cm-channel--active {
background: #0f766e;
color: #fff;
border-radius: var(--radius);
}
html.dark .cm-sidebar {
background: #0b1f1d;
}Apps in your community
Install tools from other developers in your workspace, add them to your community, choose what they can access, and remove them.
Community notifications
What members are told about, and how. The bell, push and email, mentions, channel levels and unread dots, the member's notification settings, the three email switches you control, and every account, billing and balance notification.
Planeward Docs