-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
54 lines (36 loc) · 1.21 KB
/
index.css
File metadata and controls
54 lines (36 loc) · 1.21 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
/*
For extra consistency across browsers, consider using [Normalize](https://necolas.github.io/normalize.css/)
*/
/* Declare variables here */
:root {
/*
Step 1: Define initial sizing scale, for example:
4px, 8px, 12px, 16px, 24px, 32px, 48px, 64px, 96px, 128px, 192px, 256px, 384px, 512px, 640px, 768px
For box-model elements use pixels or percentages, based of the needs of your application.
Step 2: Define initial font scale, for example:
12px, 14px, 16px, 18px, 20px, 24px, 30px, 36px, 48px, 60px, 72px
Strongly consider using declaring body text as rems, and vws for headings where high degrees of fluidity are needed.
Step 3: Define initial color scales, one for color, one for black and white.
Step 4: Select typefaces. Favor sans-serif for UI components, and try to select typefaces with a
minimum of 5 weights. That said, you generally really only need heavy (600, 700) and normal (400, 500) weights in your UI.
Step 5: Add variables for mobile breakpoints, such as:
--tabletMin: 550px;
--laptopMin: 1100px;
--desktopMin: 1500;
*/
}
*,
*:before,
*:after {
box-sizing: border-box;
}
html,
body {
font-size: 112.5%;
margin: 0;
padding: 0;
width: 100%;
}
body {
overflow-x: hidden;
}