PlanewardPlaneward Docs
PlanewardPlaneward Docs
Welcome
Community overviewMember access journeySales journeyMoney journeyChannel permissionsApps in your communityCustom CSSCommunity notifications

Developers

REST APIAuthenticationWebhooksMCPMCP journeyEmbedded projectsTask description contentDeveloper hub

API

Community

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:

  1. The theme sets colours, corners and font as CSS variables, light and dark.
  2. 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.

ClassElement
.cm-shellThe whole community page
.cm-sidebarThe left sidebar
.cm-sidebar-brandYour logo and name at the top of the sidebar
.cm-sidebar-userThe signed-in member at the bottom
.cm-channel-categoryA category heading in the channel list
.cm-channelOne channel in the list
.cm-channel--activeThe channel that is open
.cm-main-barThe bar above the page content
.cm-contentThe page content
.cm-members-panelThe members list beside a channel
.cm-bottom-navThe bottom navigation on phones
.cm-drawerThe slide-out menu on phones
.cm-chat-messageOne chat message
.cm-message-authorThe name on a message
.cm-message-bodyThe text of a message
.cm-composerThe 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 \72 are turned into the characters they stand for, and backslashes are dropped. So an escaped url or @import is still checked.
  • Everything from the first < is cut.
  • Comments are removed.
  • @import is kept only for a Google Fonts stylesheet from https://fonts.googleapis.com. Any other @import is removed.
  • url(...) is kept only for a workspace file (/media/{assetId}) or a Google font file on fonts.gstatic.com. Any other url(...) becomes none.
  • image-set(...), image(...) and src(...) are made invalid, because they load plain text as a URL. Use url(...) with a workspace file instead.
  • javascript:, expression(, behavior: and -moz-binding are 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.

On this page

ClassesVariablesWhat is removedForms in the communityExample