-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f530657
commit b984b34
Showing
11 changed files
with
439 additions
and
8 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const isProd = process.env.NODE_ENV === 'production' | ||
|
||
module.exports = { | ||
plugins: [ | ||
require('postcss-import'), | ||
require('tailwindcss'), | ||
isProd ? require('autoprefixer') : null, | ||
].filter(Boolean), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import '~tailwindcss/dist/tailwind.css'; | ||
|
||
#root { | ||
color: #434449; | ||
margin: 0 auto; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import codegen from 'codegen.macro' | ||
|
||
codegen`module.exports = require('./tailwind-codegen')` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const {spawnSync} = require('child_process') | ||
|
||
function generateTailwindCode() { | ||
const result = spawnSync( | ||
'./node_modules/.bin/postcss --output node_modules/.cache/app-postcss/styles.css src/styles/tailwind/tailwind.css', | ||
{stdio: 'ignore', shell: true}, | ||
) | ||
if (result.status !== 0) { | ||
console.error(result.stdout) | ||
console.error(result.stderr) | ||
throw new Error(`postcss failure. Exit status: ${result.status}`) | ||
} | ||
return `require('.cache/app-postcss/styles.css')` | ||
} | ||
|
||
module.exports = generateTailwindCode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import 'tailwindcss/base'; | ||
|
||
@import 'tailwindcss/components'; | ||
|
||
@import 'tailwindcss/utilities'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
module.exports = {} | ||
module.exports = { | ||
theme: { | ||
extend: { | ||
colors: { | ||
primary: '#3f51b5', | ||
'primary-100': '#b7c1f8', | ||
'primary-800': '#364495', | ||
secondary: '#6f7077', | ||
warning: '#ffc107', | ||
success: '#4caf50', | ||
danger: '#ef5350', | ||
gray: { | ||
'100': '#f1f2f7', | ||
'200': '#f1f1f4', | ||
'300': '#e4e5e9', | ||
'400': '#6f7077', | ||
'800': '#434449', | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |