forked from bullet-train-co/bullet_train
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
25 lines (18 loc) · 899 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
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'))
module.exports = themeConfig