From ce73ad4dfc37a3353eb11c009ec2d24a41559cce Mon Sep 17 00:00:00 2001 From: Sphericalkat Date: Mon, 29 May 2023 00:21:34 +0530 Subject: [PATCH] feat: add dark mode Signed-off-by: Sphericalkat --- frontend/index.html | 13 +++++++++++-- frontend/show.html | 14 +++++++++++--- frontend/tailwind.config.cjs | 1 + 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 9a5dcd9..8672ceb 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -11,10 +11,19 @@ RIP Medium + + - -
+ +

Medium.rip

An alternative frontend to Medium

diff --git a/frontend/show.html b/frontend/show.html index 77df924..0e1f8eb 100644 --- a/frontend/show.html +++ b/frontend/show.html @@ -50,11 +50,19 @@ - + - -
+ +

{{.Title}}

{{.Author}} on {{.PublishDate}}

{{.Paragraphs}} diff --git a/frontend/tailwind.config.cjs b/frontend/tailwind.config.cjs index 6598ac0..0b41aca 100644 --- a/frontend/tailwind.config.cjs +++ b/frontend/tailwind.config.cjs @@ -1,6 +1,7 @@ /** @type {import('tailwindcss').Config} */ module.exports = { content: ["./src/**/*.ts", "./**/*.html"], + darkMode: 'class', theme: { fontFamily: { 'sans': ['Inter'],