Skip to content

Commit 1352d5a

Browse files
committed
Improve white color palette, fix code tab on light mode.
1 parent efc656d commit 1352d5a

File tree

3 files changed

+28
-31
lines changed

3 files changed

+28
-31
lines changed

components/hero/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Image from "next/image";
55
import Link from "next/link";
66
import { useCallback, useEffect, useRef, useState } from "react";
77

8+
import AnnouncementBanner from "@/components/hero/AnnouncementBanner";
89
import { Button } from "@/components/ui/button";
910
import logo from "@/public/logo.svg";
1011

@@ -14,7 +15,6 @@ import NewWindow from "../icons/new-window";
1415

1516
import ThemeSwitchButton from "./ThemeSwitchButton";
1617
import { ToolsDropdown } from "./ToolsDropdown";
17-
import AnnouncementBanner from "@/components/hero/AnnouncementBanner";
1818

1919
interface NavLink {
2020
href: string;

components/mdx/CodeTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const CodeTabs = ({
141141
key={idx}
142142
className={cn(
143143
"px-4 pb-6 pt-4 transition-all duration-300",
144-
"mt-2 rounded-lg bg-gray-50 dark:bg-gray-850"
144+
"mt-2 rounded-lg bg-gray-100 dark:bg-gray-850"
145145
)}
146146
>
147147
<motion.div

tailwind.config.ts

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import containerQueries from "@tailwindcss/container-queries";
2+
import typography from "@tailwindcss/typography";
13
import type { Config } from "tailwindcss";
24

35
const config: Config = {
@@ -17,34 +19,33 @@ const config: Config = {
1719
"gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
1820
},
1921
colors: {
20-
// Custom gray palette based on EternalCode.pl design
2122
gray: {
22-
50: "#f7f8fa", // Lightest (for text on dark backgrounds)
23-
100: "#eef1f5", // Very light
24-
200: "#dde2ea", // Light
25-
300: "#c4cdd8", // Medium light
26-
400: "#8d99a9", // Medium
27-
500: "#5d6b7c", // Base gray
28-
600: "#3e4a59", // Medium dark
29-
700: "#2a3441", // Dark
30-
800: "#141a23", // Your base color (main background)
31-
850: "#131720", // Custom shade (darker sections)
32-
900: "#0c1218", // Darkest (header/navigation background)
33-
950: "#080c11", // Ultra dark
23+
50: "#f7f8fa",
24+
100: "#eef1f5",
25+
200: "#dde2ea",
26+
300: "#c4cdd8",
27+
400: "#8d99a9",
28+
500: "#5d6b7c",
29+
600: "#3e4a59",
30+
700: "#2a3441",
31+
800: "#141a23",
32+
850: "#131720",
33+
900: "#0c1218",
34+
950: "#080c11",
3435
},
3536
lightGray: {
3637
50: "#ffffff",
37-
100: "#f7f8fa",
38-
200: "#eef1f5",
39-
300: "#dde2ea",
40-
400: "#c4cdd8",
41-
500: "#8d99a9",
42-
600: "#5d6b7c",
43-
700: "#3e4a59",
44-
800: "#2a3441",
45-
850: "#141a23",
46-
900: "#10161e",
47-
950: "#0c1218",
38+
100: "#fafbfc",
39+
200: "#f4f6f8",
40+
300: "#e8ecf1",
41+
400: "#d3d9e0",
42+
500: "#b4bcc8",
43+
600: "#8f99a8",
44+
700: "#6e7a8c",
45+
800: "#4e5b6e",
46+
850: "#3a4655",
47+
900: "#2a3441",
48+
950: "#1a1f27",
4849
},
4950
},
5051
borderRadius: {
@@ -59,10 +60,6 @@ const config: Config = {
5960
},
6061
},
6162
},
62-
plugins: [
63-
require("@tailwindcss/container-queries"),
64-
require("@tailwindcss/typography"),
65-
require("@tailwindcss/line-clamp")
66-
],
63+
plugins: [containerQueries, typography],
6764
};
6865
export default config;

0 commit comments

Comments
 (0)