-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
56 lines (49 loc) · 1.43 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
/** @type {import('tailwindcss').Config} config */
import typography from '@tailwindcss/typography';
import defaultTheme from 'tailwindcss/defaultTheme.js';
import colors from 'tailwindcss/colors.js'
const config = {
content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
theme: {
extend: {
fontFamily: {
'sans': ['"Open Sans"', ...defaultTheme.fontFamily.sans],
},
colors: {
'alt-link': colors.sky['600']
},
// TODO where can i view what is in this magical theme object?
typography: (theme) => ({
DEFAULT: {
css: {
'--tw-prose-body': '#3a4149',
a: {
// TODO how can i set this to be used as a variable
color: theme('colors.blue.500'),
textDecoration: 'none',
"&:hover": {
textDecoration: 'underline',
}
},
code: {
color: theme('colors.red.500'),
backgroundColor: theme('colors.red.50'),
borderRadius: "4px",
// "&::before": {
// content: '"" !important',
// },
// "&::after": {
// content: '"" !important',
// },
},
h1: {
fontWeight: 'bold',
}
},
},
}),
},
},
plugins: [typography],
};
export default config;