Skip to content

Commit 7a7cab2

Browse files
committed
chore: use better theme colors
1 parent 4f5b8b4 commit 7a7cab2

9 files changed

Lines changed: 35 additions & 33 deletions

File tree

src/About.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function About() {
9898
<div className="brand-grid justify-center">
9999
<span className="eyebrow">{t('aboutUs.heroEyebrow')}</span>
100100
<h1 className="section-title text-slate-950">Web Dev Talks</h1>
101-
<blockquote className="border-l-4 border-amber-400 pl-5 text-lg leading-8 text-slate-700">
101+
<blockquote className="border-l-4 border-yellow-300 pl-5 text-lg leading-8 text-slate-700">
102102
{t('aboutUs.quote')}
103103
<span className="mt-3 block font-semibold text-slate-950">{t('aboutUs.adrianReyes')}</span>
104104
</blockquote>

src/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Footer = (): ReactElement => {
88
const { t } = useTranslation()
99

1010
return (
11-
<footer className="border-t border-black/8 bg-amber-50/80 backdrop-blur-xl">
11+
<footer className="border-t border-black/8 bg-white/80 backdrop-blur-xl">
1212
<div className="page-frame flex flex-col gap-5 py-6 md:flex-row md:items-center md:justify-between">
1313
<div className="flex items-center gap-4">
1414
<Link to="/" className="inline-flex items-center gap-3">

src/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Home = (): ReactElement => {
4949

5050
<div className="mx-auto w-full min-w-0 max-w-md md:hidden lg:block">
5151
<div className="relative mx-auto w-full min-w-0 min-h-96 overflow-hidden rounded-3xl border border-white/60 bg-white/75 p-4 shadow-2xl sm:p-6 lg:aspect-square lg:min-h-0">
52-
<div className="absolute inset-x-6 top-6 h-28 rounded-3xl bg-gradient-to-r from-amber-200/70 to-sky-200/70 blur-2xl" />
52+
<div className="absolute inset-x-6 top-6 h-28 rounded-3xl bg-gradient-to-r from-yellow-300/70 to-sky-200/55 blur-2xl" />
5353
<div className="relative flex h-full min-w-0 flex-col rounded-3xl border border-black/8 bg-white/90 px-4 pb-4 pt-5 text-center sm:px-6 sm:pb-5 sm:pt-6">
5454
<div className="flex min-h-56 flex-1 items-center justify-center overflow-hidden">
5555
<img

src/Icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const Icons: FC<IconsProps> = ({ color, className }): ReactElement => {
5454
target="_blank"
5555
rel="noreferrer"
5656
aria-label={label}
57-
className="inline-flex h-11 w-11 items-center justify-center rounded-full border border-black/10 bg-white/72 text-slate-700 shadow-sm transition hover:-translate-y-0.5 hover:border-black/20 hover:bg-white"
57+
className="inline-flex h-11 w-11 items-center justify-center rounded-full border border-black/10 bg-white/72 text-slate-700 shadow-sm transition hover:-translate-y-0.5 hover:border-black/20 hover:bg-zinc-200/70"
5858
style={color ? { color } : undefined}
5959
>
6060
<Icon className="h-5 w-5" />

src/NavBar.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const NavBar = (): ReactElement => {
2727
'inline-flex h-9 items-center justify-center rounded-full px-3.5 text-sm font-semibold transition-all duration-200',
2828
active
2929
? 'bg-slate-950 text-white shadow-xl'
30-
: 'text-slate-700 hover:bg-white/70',
30+
: 'text-slate-700 hover:bg-zinc-200/70',
3131
)
3232

3333
return (
34-
<header className="sticky top-0 z-30 border-b border-black/8 bg-amber-50/70 backdrop-blur-xl">
34+
<header className="sticky top-0 z-30 border-b border-black/8 bg-white/75 backdrop-blur-xl">
3535
<div className="page-frame flex items-center justify-between gap-4 py-3">
3636
<div className="flex items-center gap-3">
3737
<button
@@ -95,7 +95,9 @@ const NavBar = (): ReactElement => {
9595
onClick={() => setIsDrawerOpen(false)}
9696
className={cn(
9797
'inline-flex h-11 items-center rounded-2xl px-5 text-sm font-semibold transition-all',
98-
isActive(link.to) ? 'bg-slate-950 text-white' : 'border border-black/10 bg-white/80 text-slate-900',
98+
isActive(link.to)
99+
? 'bg-slate-950 text-white'
100+
: 'border border-black/10 bg-white/80 text-slate-900 hover:bg-zinc-200/70',
99101
)}
100102
>
101103
{link.label}

src/Sponsorship.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const Sponsorship = (): ReactElement => {
108108
const sponsorshipPlans = [
109109
{
110110
tier: 'Gold',
111-
accent: 'from-amber-300 via-yellow-200 to-white',
111+
accent: 'from-yellow-200 via-sky-100 to-white',
112112
benefits: [
113113
{ title: t('sponsorship.minutes', { minutes: 5 }), body: t('sponsorship.goldTime') },
114114
{ title: t('sponsorship.shares', { shares: 5 }), body: t('sponsorship.goldShares') },
@@ -156,8 +156,8 @@ const Sponsorship = (): ReactElement => {
156156
<div className="rounded-3xl border border-black/10 bg-white/72 p-5 shadow-sm">
157157
<img src={logo} alt="Logo WDT" className="mb-6 h-16 w-auto object-contain" />
158158
<div className="grid gap-3 sm:grid-cols-3">
159-
<div className="rounded-2xl border border-black/8 bg-amber-50 px-4 py-4">
160-
<div className="text-xs font-semibold uppercase tracking-widest text-amber-700">{t('sponsorship.attendeesTitle')}</div>
159+
<div className="rounded-2xl border border-black/8 bg-yellow-50 px-4 py-4">
160+
<div className="text-xs font-semibold uppercase tracking-widest text-yellow-700">{t('sponsorship.attendeesTitle')}</div>
161161
<div className="mt-2 text-3xl font-bold text-slate-950">97</div>
162162
</div>
163163
<div className="rounded-2xl border border-black/8 bg-sky-50 px-4 py-4">
@@ -288,7 +288,7 @@ const Sponsorship = (): ReactElement => {
288288
<p>{t('sponsorship.tax')}</p>
289289
<p>
290290
{t('sponsorship.contact1')}{' '}
291-
<a className="font-semibold text-slate-950 underline decoration-amber-400 underline-offset-4" href="mailto:webdevtalkscolima@gmail.com">
291+
<a className="font-semibold text-slate-950 underline decoration-sky-400 underline-offset-4" href="mailto:webdevtalkscolima@gmail.com">
292292
webdevtalkscolima@gmail.com
293293
</a>{' '}
294294
{t('sponsorship.contact2')}

src/components/ui/button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const buttonVariants = cva(
77
{
88
variants: {
99
variant: {
10-
default: 'bg-slate-950 text-white shadow-xl hover:-translate-y-0.5 hover:bg-slate-900',
11-
secondary: 'bg-white/80 text-slate-900 ring-1 ring-black/10 hover:bg-white',
12-
ghost: 'text-slate-700 hover:bg-white/70',
13-
outline: 'bg-transparent text-slate-900 ring-1 ring-black/12 hover:bg-white/70',
10+
default: 'bg-slate-950 text-white shadow-xl hover:-translate-y-0.5 hover:bg-zinc-300 hover:text-slate-950',
11+
secondary: 'bg-white/80 text-slate-900 ring-1 ring-black/10 hover:bg-zinc-200/70',
12+
ghost: 'text-slate-700 hover:bg-zinc-200/70',
13+
outline: 'bg-transparent text-slate-900 ring-1 ring-black/12 hover:bg-zinc-200/70',
1414
},
1515
size: {
1616
default: 'h-11 px-5',

src/components/ui/sheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function Sheet({
2121
<Dialog.Overlay className="sheet-overlay fixed inset-0 z-40 bg-slate-950/35 backdrop-blur-sm" />
2222
<Dialog.Content
2323
className={cn(
24-
'sheet-content fixed inset-y-0 left-0 z-50 flex w-5/6 max-w-sm flex-col border-r border-black/10 bg-amber-50 p-5 shadow-2xl outline-none',
24+
'sheet-content fixed inset-y-0 left-0 z-50 flex w-5/6 max-w-sm flex-col border-r border-black/10 bg-white p-5 shadow-2xl outline-none',
2525
)}
2626
>
2727
<Dialog.Title className="sr-only">{title}</Dialog.Title>

src/styles.css

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
@tailwind utilities;
44

55
:root {
6-
--background: #f5efe4;
7-
--foreground: #171717;
8-
--muted: #6b655d;
6+
--background: rgb(254, 254, 254);
7+
--foreground: rgb(25, 23, 23);
8+
--muted: rgba(25, 23, 23, 0.64);
99
--border: rgba(23, 23, 23, 0.12);
10-
--card: rgba(255, 250, 243, 0.82);
11-
--card-strong: #fffdf8;
12-
--brand: #0f172a;
13-
--brand-soft: #1d4ed8;
14-
--accent: #d97706;
15-
--accent-soft: #f59e0b;
10+
--card: rgba(254, 254, 254, 0.84);
11+
--card-strong: rgb(254, 254, 254);
12+
--brand: rgb(25, 23, 23);
13+
--brand-soft: rgb(82, 150, 199);
14+
--accent: rgb(82, 150, 199);
15+
--accent-soft: rgb(242, 211, 86);
1616
--danger: #b91c1c;
17-
--ring: rgba(29, 78, 216, 0.28);
17+
--ring: rgba(82, 150, 199, 0.28);
1818
--shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
1919
color: var(--foreground);
2020
background:
21-
radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
22-
radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 26%),
23-
linear-gradient(180deg, #fefcf7 0%, #f5efe4 100%);
21+
radial-gradient(circle at top left, rgba(242, 211, 86, 0.18), transparent 24%),
22+
radial-gradient(circle at top right, rgba(82, 150, 199, 0.1), transparent 24%),
23+
linear-gradient(180deg, rgb(254, 254, 254) 0%, rgba(192, 193, 194, 0.16) 100%);
2424
font-family: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
2525
line-height: 1.5;
2626
font-weight: 400;
@@ -97,15 +97,15 @@ textarea {
9797
left: -5rem;
9898
width: 14rem;
9999
height: 14rem;
100-
background: rgba(245, 158, 11, 0.32);
100+
background: rgba(242, 211, 86, 0.34);
101101
}
102102

103103
.hero-orb-right {
104104
top: 2rem;
105105
right: -4rem;
106106
width: 18rem;
107107
height: 18rem;
108-
background: rgba(59, 130, 246, 0.24);
108+
background: rgba(82, 150, 199, 0.18);
109109
}
110110

111111
.text-balance {
@@ -143,8 +143,8 @@ textarea {
143143
align-items: center;
144144
gap: 0.5rem;
145145
border-radius: 999px;
146-
border: 1px solid rgba(29, 78, 216, 0.16);
147-
background: rgba(255, 255, 255, 0.65);
146+
border: 1px solid rgba(242, 211, 86, 0.42);
147+
background: rgba(242, 211, 86, 0.12);
148148
color: var(--brand-soft);
149149
padding: 0.35rem 0.75rem;
150150
font-size: 0.82rem;

0 commit comments

Comments
 (0)