-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
21 lines (20 loc) · 1 KB
/
tailwind.config.js
File metadata and controls
21 lines (20 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const plugin = require("tailwindcss/plugin")
const { theme, paths, plugins: onejsPlugins, corePlugins } = require('onejs-core/scripts/postcss/onejs-tw-config.cjs')
module.exports = {
content: [...paths, "./@outputs/esbuild/**/*.js", "./comps/**/*.css"],
theme: theme,
important: ".root", // Used for the added selector specificity
plugins: [...onejsPlugins, plugin(function ({ addUtilities }) {
addUtilities({
// These are some default colors for the OneJS Headless Components
// such as Select, Toggle, Slider, etc
".default-bg-color": { "background-color": "white" },
".accented-bg-color": { "background-color": "#fde047" },
".hover-bg-color": { "background-color": "rgb(0 0 0 / 0.1)" },
".default-text-color": { "color": "#4b5563" },
".active-text-color": { "color": "#cd8c06" },
".highlighted-text-color": { "color": "#854d0e" },
})
})],
corePlugins: corePlugins,
}