Skip to content

Commit

Permalink
[Feature] Add Darkmode 🌚 (wg-easy#13)
Browse files Browse the repository at this point in the history
part_2 for version 12
  • Loading branch information
pheiduck authored Dec 1, 2023
2 parents 6e7f8d5 + 3257d22 commit de9eebd
Show file tree
Hide file tree
Showing 10 changed files with 2,564 additions and 204 deletions.
590 changes: 589 additions & 1 deletion src/package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"serve": "DEBUG=Server,WireGuard nodemon server.js",
"serve-with-password": "PASSWORD=wg npm run serve",
"lint": "eslint ."
"lint": "eslint .",
"buildcss": "npx tailwindcss -i ./www/src/css/app.css -o ./www/css/app.css --watch"
},
"author": "Emile Nijssen",
"license": "GPL",
Expand All @@ -21,7 +22,8 @@
},
"devDependencies": {
"eslint": "^8.53.0",
"eslint-config-athom": "^3.1.1"
"eslint-config-athom": "^3.1.1",
"tailwindcss": "^3.3.5"
},
"nodemonConfig": {
"ignore": [
Expand Down
8 changes: 8 additions & 0 deletions src/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */

'use strict';

module.exports = {
darkMode: 'class',
content: ['./www/**/*.{html,js}'],
};
Loading

0 comments on commit de9eebd

Please sign in to comment.