---
url: https://docs.artemsemkin.com/velum/html/look/colours-and-schemes.md
description: Change the colours and the colour scheme of a section.
---

# Colours and schemes

The colours are named once, in `css/variables.css`, and every page reads them from there. A section does not pick its colours one by one: it takes a scheme, a set of colours for its background, headings, text and lines, named in its `data-bs-theme`.

## How to access

**HTML/css/variables.css → Palette** for the colours, and **any page → `data-bs-theme`** for the schemes.

![The Landing Page: a section in the black scheme below one in the page's stone scheme](https://docs.artemsemkin.com/velum/html/images/look/colours-and-schemes-1.png)

## Changing a colour

Change the value in `css/variables.css` and reload. Every scheme and part that uses the colour follows. Here the accent, the pale colour of the headings on the dark soft pages, is changed:

```css
--velum-color-dark: #222222;
--velum-color-stone: #e2e3de;
--velum-color-accent: #e9d8b4;
```

Four greys are for text that must stay readable on its background, as the comments beside them say: `--velum-color-gray` for small text on white and smoke, `--velum-color-gray-on-stone` on stone, `--velum-color-gray-light` for small text on dark, and `--velum-color-gray-on-dark` for large overlay text on dark. Check them again when you change a background.

## Choosing a section's scheme

The page's scheme is the `data-bs-theme` on its `<main>`. A section without its own takes the page's; give it one to differ:

```html
<section class="studio__chapter studio__founder" data-bs-theme="stone">
```

| Scheme | Background | Headings and text |
| --- | --- | --- |
| `light` | white | dark |
| `smoke` | smoke | dark |
| `stone` | stone | dark |
| `gray` | gray | stone headings, white text |
| `dark` | dark | white |
| `dark-soft` | dark soft | accent headings, white text |
| `dark-softer` | dark softer | accent headings, white text |
| `black` | black | white |

Each name in the left column is the value to write; the colours are the Palette's.

## Changing a scheme or adding your own

**HTML/css/custom.css**

A scheme sets six colours. Write a scheme with a name of your own, then use that name in `data-bs-theme`:

```css
[data-bs-theme=sand] {
  --velum-color-background: #e8dcc8;
  --velum-color-heading: var(--velum-color-dark);
  --velum-color-text: var(--velum-color-dark-soft);
  --velum-color-muted: #5f5648;
  --velum-color-border: var(--velum-color-border-on-light);
  --velum-color-hover: var(--velum-color-dark);
}
```

```html
<section data-bs-theme="sand" class="py-14">
```

`muted` is the grey of small text, `border` the thin lines, `hover` a link's colour under the pointer. To change one of the template's schemes, write the same rule with its name, `[data-bs-theme=dark]`, and only the colours you change: `css/custom.css` loads last, so its values win.

Next: [Fonts and type](./fonts-and-type).
