Skip to content

Commit

Permalink
chore: configure tailwindcss [ref Codeinwp/neve-pro-addon#2914]
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Jan 15, 2025
1 parent cf3c8f0 commit edbfe05
Show file tree
Hide file tree
Showing 6 changed files with 476 additions and 28 deletions.
2 changes: 1 addition & 1 deletion assets/apps/dashboard/src/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { registerStore } from '@wordpress/data';
import { render } from '@wordpress/element';

import './style.scss';
import './style.css';
import App from './Components/App';

import actions from './store/actions';
Expand Down
5 changes: 5 additions & 0 deletions assets/apps/dashboard/src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@config './tailwind.config.js';

@tailwind base;
@tailwind components;
@tailwind utilities;
9 changes: 9 additions & 0 deletions assets/apps/dashboard/src/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['assets/apps/dashboard/src/**/*.js'],
theme: {
extend: {
colors: {},
},
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"simple-git-hooks": "^2.2.0",
"size-limit": "4.6.0",
"style-loader": "^2.0.0",
"tailwindcss": "^3.4.16",
"ts-loader": "^8.0.18",
"typescript": "^4.1.5",
"url-slug": "^2.3.2",
Expand Down
3 changes: 3 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('tailwindcss')],
};
Loading

0 comments on commit edbfe05

Please sign in to comment.