Skip to content

Commit 2baf326

Browse files
made dark mode default, new to tailwind lol
1 parent 3685d18 commit 2baf326

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { title, description = "Kyle Undefined.dev, just a dude who enjoys writing
1313
---
1414

1515
<!doctype html>
16-
<html lang="en" class="scroll-smooth">
16+
<html lang="en" class="scroll-smooth dark">
1717
<head>
1818
<meta charset="utf-8" />
1919
<meta name="description" content={description} />

src/styles/global.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@import "tailwindcss";
33
@plugin "@tailwindcss/typography";
44

5+
@variant dark (&:where(.dark, .dark *));
6+
57
@theme {
68
--font-sans: "Monda", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
79

tailwind.confg.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
darkMode: 'class',
3+
}

0 commit comments

Comments
 (0)