From 88522b3f0855afb1cffb05e9be417bc05cbf764b Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Wed, 30 Aug 2023 01:44:21 +0000 Subject: [PATCH 01/38] dm --- tailwind.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tailwind.config.ts b/tailwind.config.ts index 88b47747..25d5126d 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,6 +1,7 @@ import type { Config } from "tailwindcss" const config: Config = { + darkMode: "class", content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", From b7da71c7d2d1377ec9616332a4929a16e6abd99d Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Mon, 15 Jan 2024 04:21:02 +0000 Subject: [PATCH 02/38] add dep --- package.json | 1 + yarn.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 0d537da2..abec2461 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "next": "^14.0.0", "next-contentlayer": "^0.3.4", "next-secure-headers": "^2.2.0", + "next-themes": "^0.2.1", "react": "^18.2.0", "react-dom": "^18.2.0", "reading-time": "^1.5.0", diff --git a/yarn.lock b/yarn.lock index 8b60c4be..ab37137c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4505,6 +4505,11 @@ next-sitemap@^4.2.2: fast-glob "^3.2.12" minimist "^1.2.8" +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@^14.0.0: version "14.0.4" resolved "https://registry.yarnpkg.com/next/-/next-14.0.4.tgz#bf00b6f835b20d10a5057838fa2dfced1d0d84dc" From b5c110781b433b308be878fdb33fc827be285f3d Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Mon, 15 Jan 2024 04:22:51 +0000 Subject: [PATCH 03/38] themes from example --- src/components/ThemeProvider.tsx | 13 +++++++++++++ src/components/ThemeToggle.tsx | 20 ++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/components/ThemeProvider.tsx create mode 100644 src/components/ThemeToggle.tsx diff --git a/src/components/ThemeProvider.tsx b/src/components/ThemeProvider.tsx new file mode 100644 index 00000000..193e37ec --- /dev/null +++ b/src/components/ThemeProvider.tsx @@ -0,0 +1,13 @@ +'use client' + +import * as React from 'react' +import { ThemeProvider as NextThemesProvider } from 'next-themes' +type ThemeProviderProps = Parameters[0] + +/** + * Your app's theme provider component. + * 'use client' is essential for next-themes to work with app-dir. + */ +export function ThemeProvider({ children, ...props }: ThemeProviderProps) { + return {children} +} diff --git a/src/components/ThemeToggle.tsx b/src/components/ThemeToggle.tsx new file mode 100644 index 00000000..a177d491 --- /dev/null +++ b/src/components/ThemeToggle.tsx @@ -0,0 +1,20 @@ +'use client' + +import { useTheme } from 'next-themes' + +function ThemeToggle() { + const { theme, setTheme } = useTheme() + + return ( + + ) +} + +export default ThemeToggle From b4e8f959da4c7395c39b4dd67d5fa46b0b4e5fa8 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Mon, 15 Jan 2024 04:25:05 +0000 Subject: [PATCH 04/38] chore(deps): yarn upgrade --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index ab37137c..92f6301d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -914,9 +914,9 @@ integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== "@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.8.3": - version "20.11.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.0.tgz#8e0b99e70c0c1ade1a86c4a282f7b7ef87c9552f" - integrity sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ== + version "20.11.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.1.tgz#6a93f94abeda166f688d3d2aca18012afbe5f850" + integrity sha512-DsXojJUES2M+FE8CpptJTKpg+r54moV9ZEncPstni1WHFmTcCzeFLnMFfyhCVS8XNOy/OQG+8lVxRLRrVHmV5A== dependencies: undici-types "~5.26.4" From 271bf4bcd46d8cd5c906ccdfdd6b2cb19b97bc54 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Mon, 15 Jan 2024 04:27:18 +0000 Subject: [PATCH 05/38] theme --- src/components/ThemeProvider.tsx | 7 ++++--- src/components/ThemeToggle.tsx | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/ThemeProvider.tsx b/src/components/ThemeProvider.tsx index 193e37ec..cea7008e 100644 --- a/src/components/ThemeProvider.tsx +++ b/src/components/ThemeProvider.tsx @@ -1,7 +1,8 @@ -'use client' +"use client" + +import { ThemeProvider as NextThemesProvider } from "next-themes" +import * as React from "react" -import * as React from 'react' -import { ThemeProvider as NextThemesProvider } from 'next-themes' type ThemeProviderProps = Parameters[0] /** diff --git a/src/components/ThemeToggle.tsx b/src/components/ThemeToggle.tsx index a177d491..33c7af21 100644 --- a/src/components/ThemeToggle.tsx +++ b/src/components/ThemeToggle.tsx @@ -1,6 +1,6 @@ -'use client' +"use client" -import { useTheme } from 'next-themes' +import { useTheme } from "next-themes" function ThemeToggle() { const { theme, setTheme } = useTheme() @@ -9,7 +9,7 @@ function ThemeToggle() { ) } From ef682ca3b38a00a383dd97f09df6a651e9a518fb Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 14:02:45 +0000 Subject: [PATCH 15/38] cons --- src/app/post/[slug]/page.tsx | 2 +- src/components/Footer.tsx | 19 +++++++++++++------ src/components/ThemeToggle.tsx | 4 ++-- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/app/post/[slug]/page.tsx b/src/app/post/[slug]/page.tsx index fbac2a8a..eb835e2d 100644 --- a/src/app/post/[slug]/page.tsx +++ b/src/app/post/[slug]/page.tsx @@ -2,7 +2,7 @@ import { ChevronLeftIcon, ChevronRightIcon, PencilIcon, -} from "@heroicons/react/24/solid" +} from "@heroicons/react/24/outline" import { format, parseISO } from "date-fns" import type { Viewport } from "next" import { draftMode } from "next/headers" diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 0d3dc021..c2757b1e 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,5 +1,6 @@ import "./rc.css" +import { CodeBracketIcon, DocumentCheckIcon } from "@heroicons/react/24/outline" import { format } from "date-fns" import Link from "next/link" @@ -24,14 +25,20 @@ const Footer = () => {

© 2011 - {format(new Date(), "yyyy")} Nat Welch. All rights reserved.{" "} - - Source code + + - .{" "} - - Privacy + + - .

diff --git a/src/components/ThemeToggle.tsx b/src/components/ThemeToggle.tsx index 856160db..955ad476 100644 --- a/src/components/ThemeToggle.tsx +++ b/src/components/ThemeToggle.tsx @@ -1,6 +1,6 @@ "use client" -import { MoonIcon } from "@heroicons/react/24/solid" +import { MoonIcon } from "@heroicons/react/24/outline" import { useTheme } from "next-themes" function ThemeToggle() { @@ -12,7 +12,7 @@ function ThemeToggle() { setTheme(theme === "light" ? "dark" : "light") }} > - + ) } From 0f39659eddc0c6d87b8ee77b5397fe8d17680c87 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 14:20:04 +0000 Subject: [PATCH 16/38] year --- src/components/Footer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index c2757b1e..c07a4596 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -26,14 +26,14 @@ const Footer = () => { © 2011 - {format(new Date(), "yyyy")} Nat Welch. All rights reserved.{" "} From 3366afa9d80ed20742548086543387be538032db Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 14:41:48 +0000 Subject: [PATCH 17/38] whee --- package.json | 1 + tailwind.config.ts | 5 ++++- yarn.lock | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bfd53bbe..e5340be0 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "reading-time": "^1.5.0", "rehype-slug": "^6.0.0", "remark-gfm": "^3.0.0", + "tailwind-nord": "^1.3.0", "vivus": "^0.4.6" }, "devDependencies": { diff --git a/tailwind.config.ts b/tailwind.config.ts index 33713637..71cda790 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -11,7 +11,10 @@ const config: Config = { "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], - plugins: [require("@tailwindcss/typography")], + plugins: [ + require("@tailwindcss/typography"), + require('tailwind-nord'), + ], theme: { colors: { // nord0: "#2e3440", diff --git a/yarn.lock b/yarn.lock index 6eda164b..dad5c1ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5600,6 +5600,11 @@ synckit@^0.8.6: "@pkgr/core" "^0.1.0" tslib "^2.6.2" +tailwind-nord@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/tailwind-nord/-/tailwind-nord-1.3.0.tgz#f9520c5704b36bb97b0f91941f4e7c0798310f58" + integrity sha512-F5tdTG3n9zzctAuRqjX2sdpmwSjbYC/HQdXSg/TQIxaynO1DNvnqBaE+IhmPbQIttMvvY54KiYMDXJqMdQLi1Q== + tailwindcss@^3.3.3: version "3.4.1" resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.1.tgz#f512ca5d1dd4c9503c7d3d28a968f1ad8f5c839d" From 0ca93f9e46055e0787a56b1e974b222c43b58c59 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 14:43:53 +0000 Subject: [PATCH 18/38] lint --- tailwind.config.ts | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/tailwind.config.ts b/tailwind.config.ts index 71cda790..f8ea80b8 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -3,7 +3,7 @@ import type { Config } from "tailwindcss" const config: Config = { future: { removeDeprecatedGapUtilities: true, - purgeLayersByDefault: true + purgeLayersByDefault: true, }, darkMode: "class", content: [ @@ -11,36 +11,7 @@ const config: Config = { "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], - plugins: [ - require("@tailwindcss/typography"), - require('tailwind-nord'), - ], - theme: { - colors: { - // nord0: "#2e3440", - // nord1: "#3b4252", - // nord2: "#434c5e", - // nord3: "#4c566a", - // nord4: "#d8dee9", - // nord5: "#e5e9f0", - // nord6: "#eceff4", - // nord7: "#8fbcbb", - // nord8: "#88c0d0", - // nord9: "#81a1c1", - // nord10: "#5e81ac", - // nord11: "#bf616a", - // nord12: "#d08770", - // nord13: "#ebcb8b", - // nord14: "#a3be8c", - // nord15: "#b48ead", - // background: "#eceff4", - // text: "#2e3440", - // border: "#454e61", - // primary: "#88C0D0", - // accent: "#d8dee9", - // muted: "#394050", - // link: "#5E81AC", - }, - }, + plugins: [require("@tailwindcss/typography"), require("tailwind-nord")], + theme: {}, } export default config From 41a615017bcc2b96ac744881c356a96491c57a0b Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 14:52:00 +0000 Subject: [PATCH 19/38] change --- src/components/rc.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/rc.css b/src/components/rc.css index 2a8c2dfd..e728dd20 100644 --- a/src/components/rc.css +++ b/src/components/rc.css @@ -26,11 +26,9 @@ .rc-scout__link:link, .rc-scout__link:visited { - color: #265c83; text-decoration: none; } .rc-scout__link:hover, .rc-scout__link:active { - color: #7fdbff; -} \ No newline at end of file +} From f38d036a1f9ba5c8788bc840633414fef4a91ba7 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 15:04:52 +0000 Subject: [PATCH 20/38] sure --- tailwind.config.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/tailwind.config.ts b/tailwind.config.ts index f8ea80b8..deedf1ff 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -12,6 +12,33 @@ const config: Config = { "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], plugins: [require("@tailwindcss/typography"), require("tailwind-nord")], - theme: {}, + theme: { + colors: ({ colors }) => ({ + inherit: colors.inherit, + current: colors.current, + transparent: colors.transparent, + black: colors.black, + white: colors.white, + slate: colors.slate, + gray: colors.gray, + zinc: colors.zinc, + neutral: colors.neutral, + stone: colors.stone, + red: colors.nord11, + orange: colors.nord12, + amber: colors.amber, + yellow: colors.nord13, + lime: colors.lime, + green: colors.nord14, + emerald: colors.emerald, + teal: colors.teal, + cyan: colors.cyan, + sky: colors.sky, + blue: colors.blue, + indigo: colors.indigo, + violet: colors.violet, + purple: colors.nord15, + }), + }, } export default config From 5395cfa710f79634367ae14282a8093a578d1ef9 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 15:12:37 +0000 Subject: [PATCH 21/38] change --- package.json | 2 +- tailwind.config.ts | 32 ++++---------------------------- yarn.lock | 37 ++++++++++++++++++++++++++++++------- 3 files changed, 35 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index e5340be0..a2b71d8a 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@mdx-js/loader": "^3.0.0", "@mdx-js/react": "^3.0.0", "contentlayer": "^0.3.4", + "daisyui": "^4.7.3", "date-fns": "^3.2.0", "feed": "^4.2.2", "mdast-util-find-and-replace": "^3.0.0", @@ -30,7 +31,6 @@ "reading-time": "^1.5.0", "rehype-slug": "^6.0.0", "remark-gfm": "^3.0.0", - "tailwind-nord": "^1.3.0", "vivus": "^0.4.6" }, "devDependencies": { diff --git a/tailwind.config.ts b/tailwind.config.ts index deedf1ff..a72d5c7f 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -11,34 +11,10 @@ const config: Config = { "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], - plugins: [require("@tailwindcss/typography"), require("tailwind-nord")], - theme: { - colors: ({ colors }) => ({ - inherit: colors.inherit, - current: colors.current, - transparent: colors.transparent, - black: colors.black, - white: colors.white, - slate: colors.slate, - gray: colors.gray, - zinc: colors.zinc, - neutral: colors.neutral, - stone: colors.stone, - red: colors.nord11, - orange: colors.nord12, - amber: colors.amber, - yellow: colors.nord13, - lime: colors.lime, - green: colors.nord14, - emerald: colors.emerald, - teal: colors.teal, - cyan: colors.cyan, - sky: colors.sky, - blue: colors.blue, - indigo: colors.indigo, - violet: colors.violet, - purple: colors.nord15, - }), + plugins: [require("@tailwindcss/typography"), require("daisyui")], + daisyui: { + themes: ["nord", "dracula"], + darkTheme: "dracula", }, } export default config diff --git a/yarn.lock b/yarn.lock index dad5c1ee..e75fa465 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1754,6 +1754,14 @@ crypt@0.0.2: resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" integrity sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow== +css-selector-tokenizer@^0.8: + version "0.8.0" + resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz#88267ef6238e64f2215ea2764b3e2cf498b845dd" + integrity sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg== + dependencies: + cssesc "^3.0.0" + fastparse "^1.1.2" + cssesc@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" @@ -1764,6 +1772,21 @@ csstype@^3.0.2: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== +culori@^3: + version "3.3.0" + resolved "https://registry.yarnpkg.com/culori/-/culori-3.3.0.tgz#e33530adbd124d53bd6550394397e695eaaed739" + integrity sha512-pHJg+jbuFsCjz9iclQBqyL3B2HLCBF71BwVNujUYEvCeQMvV97R59MNK3R2+jgJ3a1fcZgI9B3vYgz8lzr/BFQ== + +daisyui@^4.7.3: + version "4.7.3" + resolved "https://registry.yarnpkg.com/daisyui/-/daisyui-4.7.3.tgz#2d75b71d1c52f643914dea9b12930acc51ed9f49" + integrity sha512-R8jUpBMAUm4rSyxzGa9QqFdJTkzREtb1QahXdDoOfElGiF4VbSuu5bfqQoOro1kkSagPy+aTKu5WtSSXmH3u3g== + dependencies: + css-selector-tokenizer "^0.8" + culori "^3" + picocolors "^1" + postcss-js "^4" + damerau-levenshtein@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" @@ -2445,6 +2468,11 @@ fast-levenshtein@^2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== +fastparse@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.2.tgz#91728c5a5942eced8531283c79441ee4122c35a9" + integrity sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ== + fastq@^1.6.0: version "1.17.1" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" @@ -4859,7 +4887,7 @@ periscopic@^3.0.0: estree-walker "^3.0.0" is-reference "^3.0.0" -picocolors@^1.0.0: +picocolors@^1, picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== @@ -4893,7 +4921,7 @@ postcss-import@^15.1.0: read-cache "^1.0.0" resolve "^1.1.7" -postcss-js@^4.0.1: +postcss-js@^4, postcss-js@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/postcss-js/-/postcss-js-4.0.1.tgz#61598186f3703bab052f1c4f7d805f3991bee9d2" integrity sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw== @@ -5600,11 +5628,6 @@ synckit@^0.8.6: "@pkgr/core" "^0.1.0" tslib "^2.6.2" -tailwind-nord@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/tailwind-nord/-/tailwind-nord-1.3.0.tgz#f9520c5704b36bb97b0f91941f4e7c0798310f58" - integrity sha512-F5tdTG3n9zzctAuRqjX2sdpmwSjbYC/HQdXSg/TQIxaynO1DNvnqBaE+IhmPbQIttMvvY54KiYMDXJqMdQLi1Q== - tailwindcss@^3.3.3: version "3.4.1" resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.1.tgz#f512ca5d1dd4c9503c7d3d28a968f1ad8f5c839d" From 797660917de651ceb0a8cb609ced2d9b7a41e8de Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 17:22:39 +0000 Subject: [PATCH 22/38] sure --- tailwind.config.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tailwind.config.ts b/tailwind.config.ts index a72d5c7f..696ced6d 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,10 +1,7 @@ import type { Config } from "tailwindcss" const config: Config = { - future: { - removeDeprecatedGapUtilities: true, - purgeLayersByDefault: true, - }, + future: {}, darkMode: "class", content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", @@ -14,7 +11,6 @@ const config: Config = { plugins: [require("@tailwindcss/typography"), require("daisyui")], daisyui: { themes: ["nord", "dracula"], - darkTheme: "dracula", }, } export default config From e2674a3175af7b9cd3a02d1a1ee0237f859a82d5 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 14 Mar 2024 17:47:12 +0000 Subject: [PATCH 23/38] sure --- package.json | 2 +- src/app/layout.tsx | 9 +++----- src/components/ThemeProvider.tsx | 14 ------------- src/components/ThemeToggle.tsx | 35 +++++++++++++++++++++++--------- yarn.lock | 10 ++++----- 5 files changed, 34 insertions(+), 36 deletions(-) delete mode 100644 src/components/ThemeProvider.tsx diff --git a/package.json b/package.json index a2b71d8a..9ac770a6 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,12 @@ "next": "^14.0.0", "next-contentlayer": "^0.3.4", "next-secure-headers": "^2.2.0", - "next-themes": "^0.3.0", "react": "^18.2.0", "react-dom": "^18.2.0", "reading-time": "^1.5.0", "rehype-slug": "^6.0.0", "remark-gfm": "^3.0.0", + "theme-change": "^2.5.0", "vivus": "^0.4.6" }, "devDependencies": { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0a75c07a..4918f803 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,7 +5,6 @@ import { Roboto, Roboto_Mono, Roboto_Slab } from "next/font/google" import Footer from "@/components/Footer" import Header from "@/components/Header" -import { ThemeProvider } from "@/components/ThemeProvider" const roboto = Roboto({ weight: "400", @@ -41,11 +40,9 @@ export default function RootLayout({ suppressHydrationWarning > - -
-
{children}
-