generated from delucis/astro-netlify-cms-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
39 lines (36 loc) · 857 Bytes
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
fontFamily: {
'sans': ['"Neue Montreal"', 'ui-sans-serif', 'system-ui', 'sans-serif']
},
extend: {
colors: {
theme: {
'light': 'var(--c-light)',
'dark': 'var(--c-dark)'
}
},
},
},
plugins: [
function ({ addComponents, theme }) {
addComponents({
'a:not(.link-clear), .link': {
color: theme('colors.theme.dark'),
textDecoration: 'underline',
background: theme('colors.theme.light')
},
'a:not(.link-clear):hover, .link:hover': {
color: theme('colors.theme.light'),
background: theme('colors.theme.dark')
},
'.page-margins': {
paddingLeft: theme('spacing.4'),
paddingRight: theme('spacing.4')
}
});
},
],
}