From 41db4a574cd0547473b3ad9bf43a29b9a3bc2b4e Mon Sep 17 00:00:00 2001 From: Norbert Melzer Date: Sat, 31 May 2025 16:39:34 +0200 Subject: [PATCH] fix: update Catppuccin class names to use ctp- prefix This commit standardizes all Catppuccin color class references to use the configured 'ctp-' prefix. Previously, some classes were using unprefixed color names (like 'text-text', 'border-surface2') which may cause issues with Tailwind CSS 4 compatibility. - Updated class names in layout components - Standardized border color references - Maintained CSS variable approach for dynamic color mixing --- src/components/NavBox.astro | 2 +- src/components/PaginateButton.astro | 6 +++--- src/layouts/NobbzDev.astro | 20 ++++++++++---------- src/scripts/filename-transformer.ts | 6 +++--- src/styles/base.css | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/NavBox.astro b/src/components/NavBox.astro index 63ffce8..bd72fda 100644 --- a/src/components/NavBox.astro +++ b/src/components/NavBox.astro @@ -17,7 +17,7 @@ const class_ = Astro.props.class ?? ""; id="side-nav" class:list={[ "border-4", - "border-surface2", + "border-ctp-surface2", "m-1", "p-1", "rounded-[12px]", diff --git a/src/components/PaginateButton.astro b/src/components/PaginateButton.astro index 2d29fdd..27bc097 100644 --- a/src/components/PaginateButton.astro +++ b/src/components/PaginateButton.astro @@ -16,13 +16,13 @@ const active = !!href;
diff --git a/src/layouts/NobbzDev.astro b/src/layouts/NobbzDev.astro index f9e8f9d..b8795e9 100644 --- a/src/layouts/NobbzDev.astro +++ b/src/layouts/NobbzDev.astro @@ -22,14 +22,14 @@ import "../styles/base.css"; class:list={[ "mocha", "bg-gradient-to-b", - "from-base", - "to-crust", + "from-ctp-base", + "to-ctp-crust", "min-h-screen", "bg-fixed", "overflow-y-scroll", "[&::-webkit-scrollbar]:w-2", - "[&::-webkit-scrollbar-track]:bg-surface2", - "[&::-webkit-scrollbar-thumb]:bg-surface0", + "[&::-webkit-scrollbar-track]:bg-ctp-surface2", + "[&::-webkit-scrollbar-thumb]:bg-ctp-surface0", ]} >
-

- NobbZ.dev +

+ NobbZ.dev