# The palettes

The skins of GratiaOS as colours to copy: for a browser, an editor, a page of your own. The page is the colour `.pad-surface` paints, the one the eye lands on, not the raw surface.

- Trifoi ☘︎ is what we call the skin that the tokens name `garden`.
- The colours follow the formula of the pad (the surface with a little of the ink mixed in); a browser that is handed the compiled stylesheet may show a page one or two levels of 255 away.
- Each skin lists the contrast of the pairs a reader meets; a pair below the usual line (4.5:1 for text, 3:1 for the accent) is marked, as the skin defines it.

- source: https://gratiaos.dev/palette.md · as JSON: https://gratiaos.dev/palette.json

## Trifoi ☘︎

light · in the tokens: `garden`

| colour | hex | what it is |
|---|---|---|
| Page | `#e2e9e4` | The page: what `.pad-surface` paints |
| Card | `#d9e0da` | A card or a raised panel (`.pad-card`) |
| Ink | `#1e2a23` | Text |
| Soft ink | `#606a64` | Quiet text |
| Line | `#dee5df` | A hairline |
| Accent | `#5d9669` | The accent: links, the focus, the one thing to look at |
| On accent | `#070d0b` | Text on the accent |
| Positive | `#5d9669` | Good, grown, saved |
| Attention | `#edb345` | Look here |
| Negative | `#d74840` | Wrong, lost |

Contrast:

- Ink on the page: 12.14:1
- Soft ink on the page: 4.53:1
- Accent on the page: 2.84:1 (below 3:1)
- Text on the accent: 5.61:1

```css
/* Trifoi ☘︎ */
:root {
  --gratia-page: #e2e9e4;
  --gratia-card: #d9e0da;
  --gratia-ink: #1e2a23;
  --gratia-ink-soft: #606a64;
  --gratia-line: #dee5df;
  --gratia-accent: #5d9669;
  --gratia-on-accent: #070d0b;
  --gratia-positive: #5d9669;
  --gratia-attention: #edb345;
  --gratia-negative: #d74840;
}
```

## Moon

dark · in the tokens: `moon`

| colour | hex | what it is |
|---|---|---|
| Page | `#161f17` | The page: what `.pad-surface` paints |
| Card | `#1e261d` | A card or a raised panel (`.pad-card`) |
| Ink | `#f2eee3` | Text |
| Soft ink | `#989a8e` | Quiet text |
| Line | `#1a221a` | A hairline |
| Accent | `#d5c9b1` | The accent: links, the focus, the one thing to look at |
| On accent | `#0b140d` | Text on the accent |
| Positive | `#84b28f` | Good, grown, saved |
| Attention | `#e1ac6e` | Look here |
| Negative | `#d17465` | Wrong, lost |

Contrast:

- Ink on the page: 14.67:1
- Soft ink on the page: 5.92:1
- Accent on the page: 10.38:1
- Text on the accent: 11.46:1

```css
/* Moon */
:root {
  --gratia-page: #161f17;
  --gratia-card: #1e261d;
  --gratia-ink: #f2eee3;
  --gratia-ink-soft: #989a8e;
  --gratia-line: #1a221a;
  --gratia-accent: #d5c9b1;
  --gratia-on-accent: #0b140d;
  --gratia-positive: #84b28f;
  --gratia-attention: #e1ac6e;
  --gratia-negative: #d17465;
}
```

## Stellar

dark · in the tokens: `stellar`

| colour | hex | what it is |
|---|---|---|
| Page | `#1c1b34` | The page: what `.pad-surface` paints |
| Card | `#21233c` | A card or a raised panel (`.pad-card`) |
| Ink | `#eef7f5` | Text |
| Soft ink | `#8ea1a8` | Quiet text |
| Line | `#1e1f38` | A hairline |
| Accent | `#ae84f2` | The accent: links, the focus, the one thing to look at |
| On accent | `#0d0c15` | Text on the accent |
| Positive | `#73c385` | Good, grown, saved |
| Attention | `#f3b94c` | Look here |
| Negative | `#ea6b60` | Wrong, lost |

Contrast:

- Ink on the page: 15.4:1
- Soft ink on the page: 6.24:1
- Accent on the page: 5.91:1
- Text on the accent: 6.86:1

```css
/* Stellar */
:root {
  --gratia-page: #1c1b34;
  --gratia-card: #21233c;
  --gratia-ink: #eef7f5;
  --gratia-ink-soft: #8ea1a8;
  --gratia-line: #1e1f38;
  --gratia-accent: #ae84f2;
  --gratia-on-accent: #0d0c15;
  --gratia-positive: #73c385;
  --gratia-attention: #f3b94c;
  --gratia-negative: #ea6b60;
}
```

## Sun

light · in the tokens: `sun`

| colour | hex | what it is |
|---|---|---|
| Page | `#fbfaf7` | The page: what `.pad-surface` paints |
| Card | `#fefefb` | A card or a raised panel (`.pad-card`) |
| Ink | `#1a2230` | Text |
| Soft ink | `#687877` | Quiet text |
| Line | `#d2dae2` | A hairline |
| Accent | `#486304` | The accent: links, the focus, the one thing to look at |
| On accent | `#fbfaf7` | Text on the accent |
| Positive | `#1d6835` | Good, grown, saved |
| Attention | `#875800` | Look here |
| Negative | `#b02b27` | Wrong, lost |

Contrast:

- Ink on the page: 15.39:1
- Soft ink on the page: 4.44:1 (below 4.5:1)
- Accent on the page: 6.62:1
- Text on the accent: 6.62:1

```css
/* Sun */
:root {
  --gratia-page: #fbfaf7;
  --gratia-card: #fefefb;
  --gratia-ink: #1a2230;
  --gratia-ink-soft: #687877;
  --gratia-line: #d2dae2;
  --gratia-accent: #486304;
  --gratia-on-accent: #fbfaf7;
  --gratia-positive: #1d6835;
  --gratia-attention: #875800;
  --gratia-negative: #b02b27;
}
```
