install tailwind

This commit is contained in:
Triston Armstrong 2023-12-24 00:12:05 -06:00
parent c245e92fde
commit c92c9e0657
4 changed files with 28 additions and 14 deletions

View File

@ -49,13 +49,16 @@
"vfile-reporter": "latest" "vfile-reporter": "latest"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.4.16",
"bimap": "latest", "bimap": "latest",
"cytoscape": "latest", "cytoscape": "latest",
"eslint": "latest", "eslint": "latest",
"eslint-config-next": "latest", "eslint-config-next": "latest",
"postcss": "^8.4.32",
"remark-frontmatter": "latest", "remark-frontmatter": "latest",
"remark-react": "latest", "remark-react": "latest",
"remark-stringify": "latest", "remark-stringify": "latest",
"tailwindcss": "^3.4.0",
"uuid": "latest" "uuid": "latest"
}, },
"resolutions": { "resolutions": {

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -1,14 +1,3 @@
html, @tailwind base;
body { @tailwind components;
padding: 0; @tailwind utilities;
margin: 0;
font-family: 'Inter', sans-serif;
}
* {
box-sizing: border-box;
}
#sidebar {
padding-left: 16px;
}

16
tailwind.config.js Normal file
View File

@ -0,0 +1,16 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [],
}