@@ -12,7 +12,7 @@ export function Root() {
to="/"
className="hover:underline"
activeProps={{
- className: 'font-bold underline',
+ className: "font-bold underline",
}}
>
Home
@@ -21,7 +21,7 @@ export function Root() {
to="/packets"
className="hover:underline"
activeProps={{
- className: 'font-bold underline',
+ className: "font-bold underline",
}}
>
Packets
diff --git a/web/src/styles/index.css b/web/src/styles/index.css
index 169921e..8d39306 100644
--- a/web/src/styles/index.css
+++ b/web/src/styles/index.css
@@ -1,5 +1,13 @@
+@import "tailwindcss";
+
@tailwind base;
@tailwind components;
@tailwind utilities;
-/* Additional custom styles can be added here */
+/* Set default background and text colors */
+@layer base {
+ html, body {
+ @apply bg-neutral-800;
+ @apply text-neutral-200;
+ }
+}
diff --git a/web/tailwind.config.js b/web/tailwind.config.js
index ad97612..95b132e 100644
--- a/web/tailwind.config.js
+++ b/web/tailwind.config.js
@@ -1,11 +1,11 @@
+const colors = require("tailwindcss/colors");
+
/** @type {import('tailwindcss').Config} */
export default {
- content: [
- "./index.html",
- "./src/**/*.{js,ts,jsx,tsx}",
- ],
+ content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
- extend: {},
+ extend: { colors: { ...colors } },
},
+ darkMode: "class",
plugins: [],
};