aboutsummaryrefslogtreecommitdiff
path: root/styles/readme.md
blob: 89cb09c5558563d9eaa2ae931fbdd8d3fae22a6e (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Styles

This is the folder where all website css should be. Currently most of the css
is done using inline styles in the .tsx files, but they're being moved to
seperate .css files in here. A redesign has also been in the making and we now
have a style guide to follow while writing the website:

## Dark

![Dark mode style guide](./styleguidedark.png)

## Light

![Light mode style guide](./styleguidelight.png)

The new designs can be found on
[Figma](https://www.figma.com/file/rTciVQApAe6cwrH1Prl5Wn/4-op-een-rij?node-id=0%3A1).
The Figma designs are in dark mode, but the website will (for now) still have
light mode as it's default theme.

After the move to .css files is done I'll also start working on the new theming
settings, and allow custom themes to be created with css that can easily be
selected in the settings page instead of having to copy-paste color codes
manually.

## Show me the css

These will eventually be moved to global.css when the move to .css files is done.

```css
:root {
	--background: #E3E6EE;
	--foreground: var(--gray-900);

	--accent: #7E3AA6;

	--error: #A63A4D;
	--disk-b-alt: #582D35;

	--confirm: #3AA699;
	--disk-a-alt: #244743;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: var(--gray-900);
		--foreground: #FFFFF3;

		--accent: #AD34F3;

		--error: #FF4365;
		--disk-b-alt: #F49BA1;

		--confirm: #00D9C0;
		--disk-a-alt: #86F3F3;
	}
}

:root {
	/* shade */
	--gray-100: #CED2DC;
	--gray-200: #A9AFC0;
	--gray-300: #757D92;
	--gray-700: #293140;
	--gray-800: #1F242D;
	--gray-900: #141619;

	/* box-shadow */
	--drop-level-2: 0px 8px 32px 0px  rgba(0, 0, 0, 0.3);
	--drop-level-1: 0px 8px 12px -4px rgba(0, 0, 0, 0.15);

	/* border-radius */
	--tight-corner: 6px;
	--loose-corner: 8px;

	/* margin/padding */
	--spacing-small:  6px;
	--spacing-medium: 12px;
	--spacing-large:  24px;
}

html {
	font-family: "Inter", sans-serif;
	font-size: 14px;
}

/* headings */
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 25px; }
h2 { font-size: 20px; }

.subtile {
	color: var(--gray-300);
	font-style: italic;
}

/* no-select */
.nosel {
	user-select: none;
	font-weight: 600;
}

```