Skip to content

Commit

Permalink
[RSN-27] - feat: added tailwind and it's configuration (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzarek authored May 8, 2024
1 parent 9fb2f10 commit 4a4087b
Show file tree
Hide file tree
Showing 9 changed files with 276 additions and 16 deletions.
3 changes: 3 additions & 0 deletions Client/reasn-client/apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import '../styles/global.css';
import "@reasn/ui/src/styles.css";

export default function RootLayout({
children,
}: {
Expand Down
6 changes: 6 additions & 0 deletions Client/reasn-client/apps/web/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
11 changes: 3 additions & 8 deletions Client/reasn-client/apps/web/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
body {
font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
"Arial", sans-serif;
display: flex;
height: 100vh;
align-items: center;
justify-content: center;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
12 changes: 12 additions & 0 deletions Client/reasn-client/apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./app/**/*.{js,jsx,ts,tsx}',
'../../packages/ui/src/**/*.{js,jsx,ts,tsx}'
],
theme: {
extend: {},
},
plugins: [],
}

5 changes: 5 additions & 0 deletions Client/reasn-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
},
"resolutions": {
"uuid": "^3.4.0"
},
"dependencies": {
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3"
}
}
6 changes: 6 additions & 0 deletions Client/reasn-client/packages/ui/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
3 changes: 3 additions & 0 deletions Client/reasn-client/packages/ui/src/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
11 changes: 11 additions & 0 deletions Client/reasn-client/packages/ui/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/**/*.{js,jsx,ts,tsx}'
],
theme: {
extend: {},
},
plugins: [],
}

Loading

0 comments on commit 4a4087b

Please sign in to comment.