-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
47 lines (38 loc) · 1.24 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
const path = require('path');
const { execSync } = require("child_process");
const glob = require('glob').sync
if (!process.env.THEME) {
throw "tailwind.config.js: missing process.env.THEME"
process.exit(1)
}
const themeConfigFile = execSync(`bundle exec bin/theme tailwind-config ${process.env.THEME}`).toString().trim()
let themeConfig = require(themeConfigFile)
// *** Uncomment these if required for your overrides ***
// const defaultTheme = require('tailwindcss/defaultTheme')
// const colors = require('tailwindcss/colors')
// *** Add your own overrides here ***
// themeConfig.theme.extend.fontFamily.sans = ['Custom Font Name', ...themeConfig.theme.extend.fontFamily.sans]
// themeConfig.theme.extend.fontSize['2xs'] = '.75rem'
// themeConfig.content.push('./app/additional/path')
// themeConfig.plugins.push(require('additional-tailwind-plugin'))
themeConfig.safelist = [
'bg-blue-100',
'bg-blue-200',
'bg-blue-300',
'bg-blue-400',
'bg-blue-500',
'bg-blue-600',
'bg-blue-700',
'bg-blue-800',
'bg-blue-900',
'border-blue-100',
'border-blue-200',
'border-blue-300',
'border-blue-400',
'border-blue-500',
'border-blue-600',
'border-blue-700',
'border-blue-800',
'border-blue-900',
];
module.exports = themeConfig