Skip to content

Commit

Permalink
js: almost in with TailwindCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
freesteph committed Feb 23, 2021
1 parent 45ea735 commit 4967538
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 18 deletions.
4 changes: 4 additions & 0 deletions app/javascript/packs/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
body {
background: red !important;
}

@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"@rails/webpacker": "5.2.1"
},
"devDependencies": {
"autoprefixer": "^10.2.4",
"postcss": "^8.2.6",
"tailwindcss": "^2.0.3",
"webpack-dev-server": "^3.11.2"
}
}
11 changes: 6 additions & 5 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
plugins: [
require('postcss-import'),
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
require("postcss-import"),
require("tailwindcss"),
require("postcss-flexbugs-fixes"),
require("postcss-preset-env")({
autoprefixer: {
flexbox: 'no-2009'
flexbox: "no-2009"
},
stage: 3
})
]
}
};
11 changes: 11 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
Loading

0 comments on commit 4967538

Please sign in to comment.