Skip to content

Commit b8a997d

Browse files
committed
Make resolveConfig available in user land
Adds a new `resolveConfig` file to the project root that can be imported as `tailwindcss/resolveConfig` and used to get a fully merged version of your custom config file. Useful when you want access to your design tokens in JS.
1 parent d0e44dc commit b8a997d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

resolveConfig.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const resolveConfigObjects = require('./lib/util/resolveConfig').default
2+
const defaultConfig = require('./stubs/defaultConfig.stub.js')
3+
4+
module.exports = function resolveConfig(config) {
5+
return resolveConfigObjects([config, defaultConfig])
6+
}

0 commit comments

Comments
 (0)