-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
36 lines (35 loc) · 943 Bytes
/
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
/* eslint-disable @typescript-eslint/no-var-requires */
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
const _ = require('lodash')
module.exports = {
purge: ['./src/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
sans: ['Open Sans', ...defaultTheme.fontFamily.sans],
headind: ['Poppins', ...defaultTheme.fontFamily.sans],
},
fontSize: {
'4xl': '2rem',
},
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
plugin(function ({addUtilities, theme, e}) {
const placeholderFontWeight = _.map(theme('fontWeight'), (value, key) => {
return {
[`.${e(`placeholder-${key}`)}::placeholder`]: {
'font-weight': value,
},
}
})
addUtilities(placeholderFontWeight)
}),
],
}