Skip to content

Commit

Permalink
Document where colours are used
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Nov 13, 2024
1 parent bfb0961 commit a56943e
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions storybook/src/foundation/design-tokens/colour.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { ColorPalette } from "../../docs/components/ColorPalette";

# Colour

Our 9 colours have 3 shades each.
Neutrals come in 4 shades, plus black and white.
Our colour palette is vibrant and crisp.
The main colours are red, blue, black, and white.
They are complemented by a range of accent colors and shades of gray.

<ColorPalette>
<ColorPalette.Swatch color={tokens.ams.brand.color.red} name="red" />
Expand All @@ -23,3 +24,40 @@ Neutrals come in 4 shades, plus black and white.
<ColorPalette.Swatch color={tokens.ams.brand.color.purple} name="purple" />
<ColorPalette.Swatch color={tokens.ams.brand.color.neutral} name="neutral" />
</ColorPalette>

## Application

### Red

Red is obviously prominent in our logo.
The only other usage for it is to indicate errors.

### Blue

Blue indicates interactivity.
Literally all buttons and links are blue; and dark blue on hover.
Only if they are on a coloured background do they become black or white.
Radio, Checkbox and Switch are blue as well.
Our Page Footer has a blue background.

### Black

Almost all text is black, as are borders of inputs.

### White

Our pages have a white background, as do inputs.
Text and links on a dark background are white instead of black and blue.

### Neutral

We use shades of gray for borders, backgrounds and labels of disabled controls.
Secondary text is dark gray.

### Azure, Lime, Green, Yellow, Orange, Magenta, Purple

These colours are supplemental.
Spotlight and Breakout use them to create prominent sections.
Avatar and Badge can use them for a background.
An Alert is blue, orange, red, or green.
Highlighted text is yellow.

0 comments on commit a56943e

Please sign in to comment.