This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
84 lines (83 loc) · 2.02 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
// tailwind.config.js
const plugin = require('tailwindcss/plugin')
const colors = require('tailwindcss/colors')
const defaultTheme = require('tailwindcss/defaultTheme')
const gray = colors.gray;
const primary = colors.blue;
const secondary = colors.pink;
/**
* @type {import('tailwindcss').Config}
*/
module.exports = {
// prefix: 'tw-',
// important: true,
darkMode: 'class',
content: {
relative: true,
files: [
'./layout/**/*.ejs',
'./src/**/*.{css,js}',
]
},
theme: {
fontFamily:{
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
mono: ['Fira Code VF', ...defaultTheme.fontFamily.mono],
},
extend: {
colors: {
gray: gray,
primary: primary,
secondary: secondary,
background: {
DEFAULT: '#f5f5fa',
light: '#f5f5fa',
dark: gray[900],
},
text: {
primary: {
DEFAULT: gray[900],
light: gray[900],
dark: gray[300],
},
secondary: {
DEFAULT: gray[600],
light: gray[600],
dark: gray[400],
},
disabled: {
DEFAULT: gray[400],
light: gray[400],
dark: gray[600],
}
},
plate: {
DEFAULT: colors.white,
light: colors.white,
dark: gray[800],
}
}
}
},
plugins: [
require('@tailwindcss/line-clamp'),
require('tailwind-scrollbar')({ nocompatible: true }),
require('@tailwindcss/typography')({
target: 'modern',
}),
// add a "ring-highlight" utility
// which sets a top border highlight using box-shadow
// thus conflicting with any other ring utilities
// shadow utilities are not affected
plugin(function ({ addUtilities }) {
addUtilities({
'.ring-highlight': {
'box-shadow': [
`inset 0 1px 0 0 var(--tw-ring-color)`,
`var(--tw-shadow, 0 0 #0000)`,
].join(', ')
}
})
})
],
}