Skip to content

Commit

Permalink
add tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanBonsignori committed Jun 1, 2024
1 parent 9467b33 commit ce486a8
Show file tree
Hide file tree
Showing 7 changed files with 1,158 additions and 179 deletions.
1,309 changes: 1,133 additions & 176 deletions client/package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"@tanstack/react-query-devtools": "^5.18.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.0"
"react-router-dom": "^6.22.0",
"typed.js": "^2.1.0"
},
"devDependencies": {
"@types/node": "^20.11.16",
Expand All @@ -31,10 +32,13 @@
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
"eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"openapi-typescript-codegen": "^0.27.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.2.2",
"vite": "^5.0.8"
}
Expand Down
6 changes: 6 additions & 0 deletions client/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
4 changes: 4 additions & 0 deletions client/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
margin: 0;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion client/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createTheme } from "@mui/material/styles";
export default createTheme({
palette: {
background: {
default: "#C8EFF9",
default: "#FAF8F0",
},
primary: {
main: "#F27D42",
Expand Down
8 changes: 8 additions & 0 deletions client/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
2 changes: 1 addition & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"include": ["src", "tailwind.config.js"],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit ce486a8

Please sign in to comment.