Skip to content

Commit

Permalink
feat: added tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Aug 25, 2024
1 parent b52cb54 commit fc24c0b
Show file tree
Hide file tree
Showing 8 changed files with 538 additions and 29 deletions.
2 changes: 2 additions & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"@radix-ui/themes": "^3.1.3",
"autoprefixer": "^10.4.20",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^6.26.1",
Expand All @@ -26,6 +27,7 @@
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1"
Expand Down
6 changes: 6 additions & 0 deletions apps/web/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 apps/web/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/Viewer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const Viewer = () => {
return <div>Hello Viewer</div>;
return <div className="text-red-500">Hello Viewer</div>;
};
11 changes: 11 additions & 0 deletions apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}

527 changes: 499 additions & 28 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
9 changes: 9 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
theme: {
extend: {},
},
plugins: [],
}

0 comments on commit fc24c0b

Please sign in to comment.