Subscribe to Linkwarden!
@@ -56,7 +57,7 @@ export default function Subscribe() {
signOut()}
- className="w-fit mx-auto cursor-pointer text-gray-500 font-semibold "
+ className="w-fit mx-auto cursor-pointer text-gray-500 dark:text-gray-400 font-semibold "
>
Sign Out
diff --git a/pages/tags/[id].tsx b/pages/tags/[id].tsx
index afbd1a5..bb80267 100644
--- a/pages/tags/[id].tsx
+++ b/pages/tags/[id].tsx
@@ -36,9 +36,9 @@ export default function Index() {
@@ -48,12 +48,12 @@ export default function Index() {
setSortDropdown(!sortDropdown)}
id="sort-dropdown"
- className="inline-flex rounded-md cursor-pointer hover:bg-slate-200 duration-100 p-1"
+ className="inline-flex rounded-md cursor-pointer hover:bg-slate-200 hover:dark:bg-neutral-700 duration-100 p-1"
>
diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png
index 713a8b7..126d464 100644
Binary files a/public/android-chrome-192x192.png and b/public/android-chrome-192x192.png differ
diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png
index 95ccf39..c517e7a 100644
Binary files a/public/android-chrome-512x512.png and b/public/android-chrome-512x512.png differ
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
index bbef715..9237458 100644
Binary files a/public/apple-touch-icon.png and b/public/apple-touch-icon.png differ
diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png
index 96fc790..d66a6c3 100644
Binary files a/public/favicon-16x16.png and b/public/favicon-16x16.png differ
diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png
index 993c56a..4ab1df5 100644
Binary files a/public/favicon-32x32.png and b/public/favicon-32x32.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
index 3e2b079..3c54efd 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/linkwarden.png b/public/linkwarden.png
index 6ae5903..235fa72 100644
Binary files a/public/linkwarden.png and b/public/linkwarden.png differ
diff --git a/public/linkwarden_darkmode.png b/public/linkwarden_darkmode.png
new file mode 100644
index 0000000..081f065
Binary files /dev/null and b/public/linkwarden_darkmode.png differ
diff --git a/styles/globals.css b/styles/globals.css
index dfbbd41..bbc732d 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -136,11 +136,6 @@
bottom: 0;
left: 0;
pointer-events: none;
- background-image: linear-gradient(
- to bottom,
- rgba(255, 255, 255, 0),
- rgba(255, 255, 255, 1) 90%
- );
width: 100%;
height: 4rem;
}
@@ -151,11 +146,69 @@
top: 0;
left: 0;
pointer-events: none;
+ width: 100%;
+ height: 4rem;
+}
+
+/* For light mode */
+.link-banner::after {
+ background-image: linear-gradient(
+ to bottom,
+ rgba(255, 255, 255, 0),
+ rgba(255, 255, 255, 1) 90%
+ );
+}
+.link-banner::before {
background-image: linear-gradient(
to top,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 1) 90%
);
- width: 100%;
- height: 4rem;
+}
+
+/* For dark mode */
+.banner-dark-mode .link-banner::after {
+ background-image: linear-gradient(
+ to bottom,
+ rgba(255, 255, 255, 0),
+ #171717 90%
+ );
+}
+.banner-dark-mode .link-banner::before {
+ background-image: linear-gradient(
+ to top,
+ rgba(255, 255, 255, 0),
+ #171717 90%
+ );
+}
+
+/* Theme */
+@layer base {
+ body {
+ @apply dark:bg-neutral-900 bg-white dark:text-white;
+ }
+}
+
+/* react-select */
+@layer components {
+ .react-select-container .react-select__control {
+ @apply dark:bg-neutral-950 dark:border-neutral-700 dark:hover:border-neutral-500;
+ }
+
+ .react-select-container {
+ @apply dark:border-neutral-700;
+ }
+
+ .react-select-container .react-select__menu {
+ @apply dark:bg-neutral-900 dark:border-neutral-700 border;
+ }
+
+ .react-select-container .react-select__option {
+ @apply dark:hover:bg-neutral-800;
+ }
+
+ .react-select-container .react-select__input-container,
+ .react-select-container .react-select__single-value {
+ @apply dark:text-white;
+ }
}
diff --git a/tailwind.config.js b/tailwind.config.js
index eb74f32..6ad2b8c 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,6 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
+ darkMode: "class",
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
@@ -9,8 +10,5 @@ module.exports = {
// For the "layouts" directory
"./layouts/**/*.{js,ts,jsx,tsx}",
],
- theme: {
- extend: {},
- },
plugins: [],
};
diff --git a/yarn.lock b/yarn.lock
index dc4c9b4..10b9a3d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3558,6 +3558,11 @@ next-auth@^4.22.1:
preact-render-to-string "^5.1.19"
uuid "^8.3.2"
+next-themes@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.2.1.tgz#0c9f128e847979daf6c67f70b38e6b6567856e45"
+ integrity sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==
+
next@13.4.12:
version "13.4.12"
resolved "https://registry.yarnpkg.com/next/-/next-13.4.12.tgz#809b21ea0aabbe88ced53252c88c4a5bd5af95df"