Skip to content

Commit 9585aaf

Browse files
committed
update header and default shadcnui color theme
1 parent efaeb42 commit 9585aaf

File tree

4 files changed

+80
-4
lines changed

4 files changed

+80
-4
lines changed

Diff for: app/(root)/resources/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const BlocksPage = () => {
22
return (
33
<section>
44
<div className='max-w-7xl mx-auto px-4 py-8 flex flex-col justify-center items-center'>
5-
<h2>Blocks page</h2>
5+
<h2>Resources page</h2>
66
</div>
77
</section>
88
)

Diff for: components/header/main-header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const MainHeader = () => {
2323
{NAV_LINKS.map((link) => (
2424
<li
2525
key={link.href}
26-
className={`px-2 py-1 ${pathname === link.href ? 'font-bold text-cyan-500' : 'hover:underline'} `}
26+
className={`px-2 py-1 ${pathname === link.href ? 'font-bold text-primary' : 'hover:underline'} `}
2727
>
2828
<Link href={link.href}>{link.label}</Link>
2929
</li>

Diff for: constant/nav-links.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const NAV_LINKS = [
22
{ href: '/', label: 'Home' },
33
{ href: '/components', label: 'Components' },
4-
{ href: '/blocks', label: 'Blocks' },
4+
{ href: '/resources', label: 'Resources' },
55
]

Diff for: styles/globals.css

+77-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,82 @@ body {
3030
}
3131

3232
@layer base {
33+
:root {
34+
--background: 220 15% 95%;
35+
--foreground: 210 10% 20%;
36+
--card: 220 15% 95%;
37+
--card-foreground: 210 10% 20%;
38+
--popover: 220 15% 95%;
39+
--popover-foreground: 210 10% 20%;
40+
--primary: 204 60% 50%;
41+
--primary-foreground: 204 80% 95%;
42+
--secondary: 215 15% 80%;
43+
--secondary-foreground: 210 25% 20%;
44+
--muted: 215 10% 90%;
45+
--muted-foreground: 210 15% 40%;
46+
--accent: 215 10% 90%;
47+
--accent-foreground: 210 10% 20%;
48+
--destructive: 0 80% 55%;
49+
--destructive-foreground: 0 0% 98%;
50+
--border: 215 15% 80%;
51+
--input: 215 15% 80%;
52+
--ring: 204 60% 50%;
53+
--radius: 0.5rem;
54+
--chart-1: 204 60% 50%;
55+
--chart-2: 210 40% 60%;
56+
--chart-3: 220 70% 50%;
57+
--chart-4: 192 50% 60%;
58+
--chart-5: 240 25% 50%;
59+
60+
--sidebar-background: 220 15% 92%;
61+
--sidebar-foreground: 210 10% 38%;
62+
--sidebar-primary: 204 60% 47%;
63+
--sidebar-primary-foreground: 204 80% 100%;
64+
--sidebar-accent: 215 10% 87%;
65+
--sidebar-accent-foreground: 210 10% 20%;
66+
--sidebar-border: 215 15% 77%;
67+
--sidebar-ring: 204 60% 47%;
68+
}
69+
70+
.dark {
71+
--background: 220 15% 10%;
72+
--foreground: 204 50% 90%;
73+
--card: 220 15% 10%;
74+
--card-foreground: 204 50% 90%;
75+
--popover: 220 15% 10%;
76+
--popover-foreground: 204 50% 90%;
77+
--primary: 204 60% 50%;
78+
--primary-foreground: 204 80% 95%;
79+
--secondary: 215 15% 30%;
80+
--secondary-foreground: 204 50% 80%;
81+
--muted: 215 10% 20%;
82+
--muted-foreground: 210 40% 70%;
83+
--accent: 215 10% 20%;
84+
--accent-foreground: 204 50% 90%;
85+
--destructive: 0 80% 50%;
86+
--destructive-foreground: 204 90% 95%;
87+
--border: 215 15% 30%;
88+
--input: 215 15% 30%;
89+
--ring: 204 60% 50%;
90+
--radius: 0.5rem;
91+
--chart-1: 210 50% 40%;
92+
--chart-2: 204 80% 50%;
93+
--chart-3: 220 60% 50%;
94+
--chart-4: 192 40% 50%;
95+
--chart-5: 240 25% 60%;
96+
97+
--sidebar-background: 220 15% 2%;
98+
--sidebar-foreground: 204 50% 50%;
99+
--sidebar-primary: 204 60% 42%;
100+
--sidebar-primary-foreground: 204 80% 100%;
101+
--sidebar-accent: 215 10% 12%;
102+
--sidebar-accent-foreground: 204 50% 90%;
103+
--sidebar-border: 215 15% 22%;
104+
--sidebar-ring: 204 60% 42%;
105+
}
106+
}
107+
108+
/* @layer base {
33109
:root {
34110
--background: 0 0% 100%;
35111
--foreground: 240 10% 3.9%;
@@ -83,7 +159,7 @@ body {
83159
--chart-4: 280 65% 60%;
84160
--chart-5: 340 75% 55%;
85161
}
86-
}
162+
} */
87163

88164
@layer base {
89165
* {

0 commit comments

Comments
 (0)