-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
47 lines (45 loc) · 1.09 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
/** @type {import('tailwindcss').Config} */
const ACCENT_PURPLE = '#C077CC';
const dynamicRouteColors = {
'all-color': ACCENT_PURPLE,
'news-color': '#0A97D0',
'opinion-color': '#6DA81E',
'arts-color': '#E98C1B',
'sports-color': '#3744B5',
'misc-color': '#1B8E50',
'troubleshooting-color': '#D249BC',
'new-color': ACCENT_PURPLE,
};
const otherDynamicColors = {
'accent-purple': ACCENT_PURPLE,
};
const dynamicColors = {
...dynamicRouteColors,
...otherDynamicColors,
};
const customColors = {
white: '#FCFCFC',
};
const colors = { ...dynamicColors, ...customColors };
module.exports = {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
],
safelist: Object.keys(dynamicColors).flatMap((color) => [
`bg-${color}`,
`group-hover:text-${color}`,
`text-${color}`,
`border-${color}`,
]),
theme: {
extend: {
colors: colors,
fontFamily: {
display: ['Rockwell', 'Courier New', 'Times New Roman'],
},
},
},
plugins: [require('@tailwindcss/typography')],
};