-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy paththeme.ts
More file actions
65 lines (63 loc) · 1.83 KB
/
Copy paththeme.ts
File metadata and controls
65 lines (63 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
'use client';
import { createTheme } from '@mantine/core';
/*
* The site is light only (app/layout.tsx), and its colours are the logo's:
* the disc's sky (#5bb6dc), the shadow's steel (#4f93b0) and the bone's
* white, sampled from components/wpbones-logo.png. Everything else is cut on
* the sky's hue in OKLCH, so nothing on the page reads as another product.
*/
export const theme = createTheme({
fontFamily: 'var(--font-poppins), Poppins, sans-serif',
fontFamilyMonospace: "var(--font-fira-code), 'Fira Code', Monaco, monospace",
primaryColor: 'bones',
/*
* Shade 6 in both schemes, although only light is ever shown: it is the
* first step of the ladder white measures 4.5:1 or more on (4.62:1), so a
* filled button keeps white text.
*/
primaryShade: { light: 6, dark: 6 },
/* Dark ink where white would not reach 4.5:1: the coffee button's yellow. */
autoContrast: true,
black: '#0e293a',
colors: {
/*
* Shade 4 IS the logo's sky; 0-3 lighten it and 5-9 darken it on the same
* hue (OKLCH 227.9 degrees). White on each, from 5 up: 3.28, 4.62, 6.10,
* 8.28, 11.56 to 1.
*/
bones: [
'#ebf7fd',
'#d1edfb',
'#a8daf0',
'#7ec6e6',
'#5bb6dc',
'#3798be',
'#1c7ea1',
'#126a88',
'#0a556e',
'#073e51',
],
/*
* Greys are the logo's navy diluted rather than Mantine's neutral grey,
* which beside the sky reads as a different product. `c="dimmed"` is
* gray-6: 5.50:1 on white (Mantine's own is 4.6:1).
*/
gray: [
'#f8fafc',
'#ecf1f4',
'#dbe2e7',
'#c9d2d9',
'#9ba7af',
'#75828c',
'#5c6b76',
'#495862',
'#313f49',
'#1b2831',
],
},
headings: {
fontFamily: 'var(--font-poppins), Poppins, sans-serif',
fontWeight: '600',
},
defaultRadius: 'md',
});