-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
46 lines (46 loc) · 1.36 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["templates/**/*html", "carting/**/*xslt", "static/to_compile/**/*{j,t}s"],
prefix: "sn-",
corePlugins: {
preflight: false,
},
theme: {
colors: {
// https://www.systeme-de-design.gouv.fr/elements-d-interface/fondamentaux-de-l-identite-de-l-etat/couleurs-palette
white: "white",
info: {
"975-active": "#c2cfff",
},
},
maxWidth: {
readable: "80ch",
"120w": "60rem",
},
spacing: {
// https://www.systeme-de-design.gouv.fr/elements-d-interface/fondamentaux-techniques/espacements
0: 0,
"1v": "0.25rem",
"1w": "0.5rem",
"3v": "0.75rem",
"2w": "1rem",
"3w": "1.5rem",
"4w": "2rem",
"5w": "2.5rem",
"6w": "3rem",
"7w": "3.5rem",
"8w": "4rem",
"9w": "4.5rem",
"12w": "6rem",
"15w": "7.5rem",
},
extend: {
aria: {
// Remove when https://github.com/tailwindlabs/tailwindcss/pull/10966 in a release
busy: "busy=true",
},
minWidth: ({ theme }) => ({ ...theme("spacing") }),
},
},
plugins: [],
}