diff --git a/package.json b/package.json index 4c83f2b9d..fa1e58ec8 100755 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@types/chrome": "^0.0.202", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.10", + "autoprefixer": "^10.4.17", "babel-eslint": "^10.1.0", "babel-loader": "^9.1.2", "babel-preset-react-app": "^10.0.1", @@ -42,6 +43,8 @@ "fs-extra": "^11.1.0", "html-loader": "^4.2.0", "html-webpack-plugin": "^5.5.0", + "postcss": "^8.4.35", + "postcss-loader": "^8.1.0", "prettier": "^2.8.3", "react-refresh": "^0.14.0", "react-refresh-typescript": "^2.0.7", @@ -49,6 +52,7 @@ "sass-loader": "^13.2.0", "source-map-loader": "^3.0.1", "style-loader": "^3.3.1", + "tailwindcss": "^3.4.1", "terser-webpack-plugin": "^5.3.6", "ts-loader": "^9.4.2", "type-fest": "^3.5.2", diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 000000000..11c1e4a62 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + } +} \ No newline at end of file diff --git a/src/pages/Options/Options.tsx b/src/pages/Options/Options.tsx index f42e02dbd..1103f2eb7 100644 --- a/src/pages/Options/Options.tsx +++ b/src/pages/Options/Options.tsx @@ -1,12 +1,35 @@ -import React from 'react'; -import './Options.css'; +import React from 'react' +import './Options.css' interface Props { - title: string; + title: string } const Options: React.FC = ({ title }: Props) => { - return
{title} Page
; -}; + return ( + <> +
+
+
+

+ Welcome to + the Settings page +

-export default Options; +

+ Edit src/pages/Options/Options.tsx and save to reload. +

+ +
+

+ This page was styled with Tailwindcss +

+
+
+
+
+ + ) +} + +export default Options diff --git a/src/pages/Options/index.css b/src/pages/Options/index.css index e69de29bb..04b35af2a 100644 --- a/src/pages/Options/index.css +++ b/src/pages/Options/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 000000000..0478fdd57 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,8 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: ["./src/**/**/*.{html,js,jsx,tsx}"], + theme: { + extend: {}, + }, + plugins: [], +} \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index c8a142da0..24f965519 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -73,7 +73,9 @@ var options = { options: { sourceMap: true, }, - }, + }, { + loader: 'postcss-loader' + } ], }, {