Skip to content

Commit b9b7e85

Browse files
committed
fix: add design token for navbar
1 parent 8a28871 commit b9b7e85

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/web/src/components/landing-sections/navbar.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Navbar = () => {
4646
return (
4747
<motion.nav
4848
initial={{ opacity: 0 }}
49-
animate={showNavbar ? { opacity: 1 } : { opacity: 0, display: 'none' }}
49+
animate={showNavbar ? { opacity: 1 } : { opacity: 0, display: "none" }}
5050
transition={{ duration: 0.3 }}
5151
className={cn(
5252
" z-40 flex items-center justify-between px-4 py-3 bg-neutral-900/5 backdrop-blur-xl border-white/10",
@@ -76,9 +76,7 @@ const Navbar = () => {
7676
<span>Opensox AI</span>
7777
</div>
7878
</div>
79-
<div
80-
className="hidden min-[1115px]:flex items-center gap-5 max-[1270px]:gap-4 max-[1173px]:gap-3 tracking-tight text-lg max-[1270px]:text-base max-[1173px]:text-sm font-light max-[1173px]:font-normal text-[#d1d1d1]"
81-
>
79+
<div className="hidden min-[1115px]:flex items-center gap-5 max-[1270px]:gap-4 max-[1173px]:gap-3 tracking-tight text-lg max-[1270px]:text-base max-[1173px]:text-sm font-light max-[1173px]:font-normal text-[#d1d1d1]">
8280
{links.map((link, index) => {
8381
const isActive = pathname === link.href;
8482
return (
@@ -100,7 +98,7 @@ const Navbar = () => {
10098
href="https://github.com/apsinghdev/opensox"
10199
target="_blank"
102100
rel="noopener noreferrer"
103-
className="hidden min-[1115px]:flex items-center gap-2 px-4 py-2.5 bg-[#0d1117] hover:bg-[#161b22] transition-colors rounded-lg border border-[#30363d] text-white"
101+
className="hidden min-[1115px]:flex items-center gap-2 px-4 py-2.5 bg-github-bg hover:bg-github-hover transition-colors rounded-lg border border-github-border text-white"
104102
>
105103
<Github className="w-5 h-5" />
106104
<span className="text-sm font-medium">Contribute</span>
@@ -134,7 +132,7 @@ const Navbar = () => {
134132
target="_blank"
135133
rel="noopener noreferrer"
136134
onClick={() => setIsOpen(false)}
137-
className="flex items-center gap-2 px-4 py-2 bg-[#0d1117] hover:bg-[#161b22] rounded-lg border border-[#30363d] text-white transition-colors"
135+
className="flex items-center gap-2 px-4 py-2 bg-github-bg hover:bg-github-hover rounded-lg border border-github-border text-white transition-colors"
138136
>
139137
<Github className="w-5 h-5" />
140138
<span className="text-sm font-medium">Contribute</span>

apps/web/tailwind.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ const config: Config = {
7272
warning: colors.status.warning,
7373
info: colors.status.info,
7474

75+
// External brand colors
76+
github: {
77+
bg: colors.external.github.bg,
78+
hover: colors.external.github.hover,
79+
border: colors.external.github.border,
80+
},
81+
7582
// Legacy ox-* colors (for gradual migration) - will be deprecated
7683
"ox-purple": colors.brand.purple.DEFAULT,
7784
"ox-purple-2": colors.brand.purple.dark,

0 commit comments

Comments
 (0)