-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.henry.js
66 lines (64 loc) · 2.29 KB
/
tailwind.config.henry.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
/* allows us to reference tailwind's colors in our own palette
https://tailwindcss.com/docs/customizing-colors
*/
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
/* Content sources to tell Tailwind which files to scan for used class names for
generating the needed CSS. More info:
- https://tailwindcss.com/docs/content-configuration#configuring-source-paths
*/
content: [
"../../content/**/*.{html,md}",
"../../layouts/**/*.html",
"./layouts/**/*.html",
"./assets/js/fuse-search.js",
"../../assets/css/*.css",
],
theme: {
fontFamily: {
'sans': ['kg-sans'],
'serif': ['kg-serif'],
'mono': ['kg-mono'],
},
extend: {
fontFamily: {
'mono': [
'kg-mono',
{
fontFeatureSettings: '"cv02", "cv04", "cv06", "cv07", "cv08"',
},
],
},
colors: {
"henryb": { // henry background
DEFAULT: "#1c2b33",
dark: "#152027",
},
'henryc': { // henry contrast
lightest: colors.yellow[100],
lighter: colors.yellow[200],
DEFAULT: colors.yellow[300],
dark: colors.yellow[500],
},
'henryc2': { // henry contrast 2
light: colors.purple[200],
DEFAULT: colors.purple[500],
dark: colors.purple[700],
},
'henryt': { // henry text colors (light means more intense relative to background)
lightest: colors.slate[800], // muted underline/decoration
lighter: colors.slate[700], // muted links like author
light: colors.slate[500], // underline/decoration
DEFAULT: colors.slate[300], // base text
dark: colors.slate[200], // base text
},
},
},
},
plugins: [
function ({ addUtilities }) {
console.log('Tailwind CSS root directory:', process.cwd());
},
],
}