-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add postCSS to Gazebo #23
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 @@ | ||
module.exports = [['use-postcss-config']] |
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,10 @@ | ||
const pfm = require('postcss-font-magician') | ||
|
||
module.exports = { | ||
map: true, | ||
plugins: [ | ||
require('tailwindcss'), | ||
require('autoprefixer'), | ||
pfm({ foundries: ['google'] }), | ||
], | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function About() { | ||
return <div className="p-4 bg-gray-200">Im the about page</div> | ||
} | ||
|
||
export default About |
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,11 @@ | ||
import LogoSpinner from '../LogoSpinner' | ||
function Home() { | ||
return ( | ||
<div className="p-4 bg-gray-200"> | ||
Im the home page | ||
<LogoSpinner /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Home |
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 @@ | ||
@tailwind base; | ||
|
||
@tailwind components; | ||
|
||
@tailwind utilities; |
This file was deleted.
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
const plugin = require('tailwindcss/plugin') | ||
|
||
module.exports = { | ||
future: { | ||
removeDeprecatedGapUtilities: true, | ||
purgeLayersByDefault: true, | ||
}, | ||
purge: { | ||
content: [ | ||
'./src/components/**/*.js', | ||
'./src/components/**.js', | ||
'./public/*.html', | ||
], | ||
}, | ||
theme: { | ||
fontFamily: { | ||
body: ['sans-serif', 'Lato'], | ||
display: ['sans-serif', 'Lato'], | ||
}, | ||
container: { | ||
center: true, | ||
}, | ||
extend: { | ||
colors: { | ||
codecov: { | ||
'text-light': '#465B6A', | ||
green: '#27B340', | ||
red: '#CE2019', | ||
purple: '#AC39CF', | ||
orange: '#FFC273', | ||
success: '#83E46C', // Dupe of new success | ||
warning: '#CA8E00', // Dupe of new warning | ||
danger: '#C60800', // Dupe of new danger | ||
negative: '#9F3A38', | ||
dashboard: '#F7F7FC', | ||
}, | ||
gray: { | ||
100: '#F7F8FB', | ||
200: '#EAEBEF', | ||
300: '#C7CBD1', | ||
400: '#999FA7', | ||
500: '#68737E', | ||
600: '#394754', | ||
800: '#222F3D', | ||
900: '#0E1B29', | ||
}, | ||
pink: { | ||
100: '#FF4A89', | ||
500: '#F01F7A', | ||
900: '#D10D62', | ||
}, | ||
blue: { | ||
100: '#52B7FF', | ||
200: '#0095FF', | ||
400: '#0088E9', | ||
600: '#0071C2', | ||
800: '#015896', | ||
900: '#002D4D', | ||
}, | ||
site: { | ||
header: '#0E1B29', | ||
footer: '#07111B', | ||
}, | ||
warning: { | ||
900: '#473610', | ||
500: '#CA8E00', | ||
100: '#FFEBD2', | ||
}, | ||
success: { | ||
100: '#DEFFE8', | ||
500: '#73FF9E', | ||
900: '#0E1B29', | ||
}, | ||
error: { | ||
100: '#FFEDF0', | ||
500: '#FF9B9B', | ||
900: '#590808', | ||
}, | ||
info: { | ||
100: '#DFF2FF', | ||
500: '#A3D9FF', | ||
900: '#013B65', | ||
}, | ||
}, | ||
gradients: { | ||
'green-red': [ | ||
'#73FF9E', | ||
'#83E46C', | ||
'#8DCB27', | ||
'#CA8E00', | ||
'#CA4800', | ||
'#C60800', | ||
'#840500', | ||
], | ||
}, | ||
boxShadow: { | ||
grid: '0 7px 20px 0 rgba(34,47,61,0.05)', | ||
card: '0 7px 20px 0 rgba(34,47,61,0.05)', | ||
table: '0 2px 15px 0 rgba(14,27,41,0.05)', | ||
alert: { | ||
negative: '0 0 0 1px #E0B4B4 inset, 0 0 0 0 transparent', | ||
}, | ||
}, | ||
}, | ||
}, | ||
variants: { | ||
text: ['default', 'hover', 'focus', 'disabled'], | ||
backgroundColor: ['default', 'responsive', 'hover', 'focus', 'disabled'], | ||
opacity: ['default', 'responsive', 'hover', 'focus', 'disabled'], | ||
textColor: [ | ||
'default', | ||
'responsive', | ||
'hover', | ||
'focus', | ||
'disabled', | ||
'visited', | ||
], | ||
borderColor: ['default', 'responsive', 'hover', 'focus', 'disabled'], | ||
cursor: ['default', 'responsive', 'disabled'], | ||
textOpacity: ['default', 'responsive', 'hover', 'focus', 'disabled'], | ||
}, | ||
plugins: [ | ||
plugin(function ({ addBase, config }) { | ||
addBase({ | ||
html: { | ||
fontFamily: config('theme.fontFamily.body'), | ||
fontSize: '16px', | ||
fontSize: '1rem', | ||
}, | ||
}) | ||
}), | ||
], | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we take the default configuration on it, and we update it as we need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was debating that, the only reason I left this was I wasn't sure what level of copy and pasting we'd be doing from UI. I'll clean this up.