-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
98 lines (97 loc) · 2.21 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
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
import defaultTheme from 'tailwindcss/defaultTheme'
/** @type {import('tailwindcss').Config} */
export default {
content: [],
theme: {
fontFamily: {
mono: ['"Noto Sans Mono"', ...defaultTheme.fontFamily.sans],
},
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '1.5rem',
},
},
screens: {
sm: '576px',
md: '768px',
lg: '992px',
xl: '1248px',
},
extend: {
aria: {
'current-page': 'current="page"',
},
fontFamily: {
spectral: 'Spectral',
gothic: 'URW Gothic',
},
fontSize: {
'4.5xl': '2.75rem',
},
colors: {
primary: '#3558a2',
mentionGrey: '#666', // Copy from --text-mention-grey
gray: {
title: '#161616',
medium: '#666666',
lower: '#eeeeee',
lowest: '#e8eaed',
default: '#e5e5e5',
plain: '#3a3a3a',
some: '#f6f6f6',
logo: '#373c42',
},
defaultWarning: '#b32000',
blue: {
light: '#e3e3fd',
tint: '#c1c1fd',
outline: '#0a76f6',
},
secondary: {
lightest: '#EEEEEE',
dark: '#66666',
},
datagouv: {
lightest: '#E6EEFE',
lighter: '#e3e3fd',
light: '#c1c1fd',
hover: '#5982e0',
defaultLight: '#46699D',
DEFAULT: '#465F9D',
dark: '#3558a2',
},
danger: {
lightest: '#FFE9E9',
dark: '#CE0500',
},
warning: {
lightest: '#FFE9E6',
dark: '#B34000',
},
warning2: {
lightest: '#FEECC2',
dark: '#716043',
},
success: {
lightest: '#ECF7F0',
lighter: '#C3FAD5',
dark: '#27A658',
darker: '#1f8d49', // from DSFR to avoid contrast issue
darkest: '#18753c', // from DSFR to avoid contrast issue
},
},
typography: theme => ({
neutral: {
css: {
'--tw-prose-bullets': theme('colors.neutral[800]'),
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
],
}