Skip to content

Commit

Permalink
go full dark mode cuz why not
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <me@joulev.dev>
  • Loading branch information
joulev committed May 6, 2024
1 parent 2618475 commit 2722c73
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 124 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -81,6 +81,7 @@
"tailwind-merge": "2.3.0",
"tailwindcss": "3.4.3",
"tailwindcss-animate": "1.0.7",
"tailwindcss-bg-patterns": "0.3.0",
"typescript": "5.4.5",
"valibot": "0.30.0",
"wrangler": "3.53.1",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 0 additions & 121 deletions src/app/background.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/app/layout.tsx
Expand Up @@ -7,7 +7,6 @@ import localFont from "next/font/local";

import { cn } from "~/lib/cn";

import { Background } from "./background";
import "./globals.css";
import { VersionFooter } from "./version-footer";

Expand All @@ -31,7 +30,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<body
className={cn(sans.variable, mono.variable, "bg-[#334155] font-sans text-text-primary")}
>
<Background />
<div className="fixed inset-0 pattern-cross pattern-text-tertiary pattern-bg-black pattern-size-6 pattern-opacity-20" />
{children}
<VersionFooter />
<Analytics />
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.ts
@@ -1,6 +1,8 @@
import typography from "@tailwindcss/typography";
import type { Config } from "tailwindcss";
import animate from "tailwindcss-animate";
// @ts-expect-error
import bgPatterns from "tailwindcss-bg-patterns";
import defaultTheme from "tailwindcss/defaultTheme";

const config: Config = {
Expand Down Expand Up @@ -84,7 +86,7 @@ const config: Config = {
},
},
},
plugins: [animate, typography],
plugins: [animate, typography, bgPatterns],
};

export default config;

0 comments on commit 2722c73

Please sign in to comment.