Skip to content

Commit

Permalink
Configure Tailwind CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlogand committed Oct 4, 2023
1 parent 0432a44 commit c14a6cc
Show file tree
Hide file tree
Showing 5 changed files with 245 additions and 6 deletions.
222 changes: 216 additions & 6 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"@types/chroma-js": "^2.4.0",
"@types/js-cookie": "^3.0.3",
"@types/react-virtualized": "^9.21.22",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"source-map-support": "^0.5.21",
"tailwindcss": "^3.3.3"
}
Expand Down
6 changes: 6 additions & 0 deletions frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
5 changes: 5 additions & 0 deletions frontend/styles/master.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Tailwind CSS directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
height: 100%;
Expand Down
16 changes: 16 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [],

// Disable Tailwind CSS's preflight style so Material UI's preflight styles can be used instead
corePlugins: {
preflight: false,
},
}

0 comments on commit c14a6cc

Please sign in to comment.