---
updatedAt: 2025-06-16T23:14:34.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# Custom CSS

CSS can be entered either as regular CSS or [SASS](http://sass-lang.com/). DirectScale automatically includes the following SASS variables you can use. The benefit of using these over using hard-coded color values is that if your site colors ever change, the CSS will automatically reflect those changes.

The  [**Branding**](https://help.directscale.com/hc/en-us/articles/360050927673-Setting-Up-Company-Branding-Colors-and-Logos) page is where you set your four color variables.

![Branding Colors](https://lxteam.blob.core.windows.net/images/web_office_admin/tutorials/Web_Office_Configuration/Branding/colors.png)

* `color: var(--color1);` – Main Color
* `color: var(--color2);` – Accent Color #1
* `color: var(--color3);` – Accent Color #3
* `color: var(--color4);` – Accent Color #2

```css
.bgm-color2 {
    background-color: var(--color2)!important;
}
```

You should limit the scope of your CSS not to break other parts of the site.

It's a good idea to wrap your widget or page HTML with a CSS class and then use that class for all your styles.

```html HTML
<div class="my-custom-widget">    
  <p class="welcome-text">Welcome!</p>
</div>
```
```css CSS
.mycustomwidget .welcome-text {color: red;}
```