-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
92 lines (90 loc) · 3.85 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
/** @type {import('tailwindcss').Config} */
let themeConfig = require('../theme.config.js')
const colors = require('tailwindcss/colors')
module.exports = {
content: ['./input/**/*.{cshtml,html,js}', './theme/**/*.{cshtml,html,js}'],
theme: {
fontFamily: {
heading: ['Montserrat', 'Georgia', 'sans-serif'],
copy: ['Raleway', 'Helvetica', 'sans-serif']
},
extend: {
margin: {
'logo-offset-x': themeConfig.logoOffset.x,
'logo-offset-y': themeConfig.logoOffset.y
},
colors: {
'primary-accent': themeConfig.primaryAccent,
'secondary-accent': themeConfig.secondaryAccent,
'retro-white': '#F4E8D2',
'retro-brown': {
lightest: '#897a7e',
light: '#3b3436',
DEFAULT: '#231F20',
dark: '#1D1B1C'
},
'retro-black': '#151419'
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
fontWeight: 600,
'&:hover': {
color: theme('colors.secondary-accent')
},
transitionProperty: theme('transitionProperty.colors'),
transitionDuration: theme('transitionDuration.150'),
textDecoration: 'none'
},
h2: {
marginTop: '1.5em',
marginBottom: '0.5em',
paddingBottom: '0.25rem',
borderBottomWidth: '2px',
borderBottomColor: theme('colors.secondary-accent')
},
code: {
'&::before,&::after': {
display: 'none'
},
padding: '0.4rem',
background: 'var(--tw-prose-pre-bg)',
borderRadius: '0.25rem'
},
'--tw-prose-body': theme('colors.retro-black'),
'--tw-prose-headings': theme('colors.retro-black'),
'--tw-prose-links': theme('colors.primary-accent'),
'--tw-prose-bullets': theme('colors.secondary-accent'),
'--tw-prose-code': theme('colors.secondary-accent'),
'--tw-prose-pre-bg': theme('colors.retro-brown.DEFAULT'),
'--tw-prose-pre-code': colors.white,
'--tw-prose-td-borders': theme('colors.retro-brown.lightest'),
'--tw-prose-invert-body': colors.white,
'--tw-prose-invert-headings': colors.white,
'--tw-prose-invert-links': theme('colors.primary-accent'),
'--tw-prose-invert-bullets': theme('colors.secondary-accent'),
'--tw-prose-invert-code': theme('colors.secondary-accent'),
'--tw-prose-invert-td-borders': theme('colors.retro-brown.light')
}
},
invert: {
css: {
a: {
'&:hover': {
color: theme('colors.secondary-accent')
}
}
}
}
}),
gridTemplateColumns: {
'main': '360px minmax(0, 1fr)',
'aside': 'minmax(0, 1fr) 200px'
}
}
},
plugins: [
require('@tailwindcss/typography')
]
}