Add new color palette (#2623)
* Add new color palette * Replace local require when scaffolding config * Remove unused import
This commit is contained in:
parent
b6598e9898
commit
fd8bacd7ae
8 changed files with 107878 additions and 202748 deletions
|
|
@ -42,8 +42,11 @@ export function run(cliParams, cliOptions) {
|
|||
utils.exists(file) && utils.die(colors.file(simplePath), 'already exists.')
|
||||
|
||||
const stubFile = full ? constants.defaultConfigStubFile : constants.simpleConfigStubFile
|
||||
const stubFileContents = utils
|
||||
.readFile(stubFile, 'utf-8')
|
||||
.replace('../colors', 'tailwindcss/colors')
|
||||
|
||||
utils.copyFile(stubFile, file)
|
||||
utils.writeFile(file, stubFileContents)
|
||||
|
||||
utils.log()
|
||||
utils.log(emoji.yes, 'Created Tailwind config file:', colors.file(simplePath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue