This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As described at https://tailwindcss.com/docs/guides/create-react-app; using existing Tailwind config from Rails app (with `purge` paths modified).
- Loading branch information
1 parent
1c21d58
commit 5c11b20
Showing
5 changed files
with
350 additions
and
31 deletions.
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,7 @@ | ||
module.exports = { | ||
style: { | ||
postcss: { | ||
plugins: [require("tailwindcss"), require("autoprefixer")], | ||
}, | ||
}, | ||
}; |
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,13 +1,29 @@ | ||
body { | ||
margin: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", | ||
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", | ||
monospace; | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.card { | ||
@apply flex flex-col w-full px-2 pb-2 overflow-hidden border-4 shadow-lg; | ||
} | ||
|
||
@screen md { | ||
.card { | ||
@apply w-1/3 border-2; | ||
} | ||
} | ||
|
||
@screen lg { | ||
.card { | ||
@apply w-1/4; | ||
} | ||
} | ||
|
||
@screen xl { | ||
.card { | ||
@apply w-1/5; | ||
} | ||
} | ||
|
||
.tag-pill { | ||
@apply inline-block px-2 my-1 mr-2 font-semibold rounded-full; | ||
} |
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,26 @@ | ||
const defaultTheme = require("tailwindcss/defaultTheme"); | ||
|
||
module.exports = { | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
sans: ["Inter", ...defaultTheme.fontFamily.sans], | ||
}, | ||
}, | ||
}, | ||
variants: { | ||
backgroundColor: ["responsive", "hover", "focus", "disabled"], | ||
cursor: ["responsive", "disabled"], | ||
opacity: ["responsive", "hover", "focus", "disabled"], | ||
}, | ||
plugins: [], | ||
purge: [ | ||
"./src/**/*.{js,jsx,ts,tsx,css}", | ||
"./public/index.html", | ||
"../**/*.rb", | ||
], | ||
future: { | ||
removeDeprecatedGapUtilities: true, | ||
purgeLayersByDefault: true, | ||
}, | ||
}; |
Oops, something went wrong.