Skip to content

Commit 971c1e4

Browse files
committed
White Theme
1 parent 8a94dd5 commit 971c1e4

File tree

3 files changed

+57
-20
lines changed

3 files changed

+57
-20
lines changed

TextHub/Layout/UINavBar.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</button>
1818
@if (_isToolsDropdownOpen)
1919
{
20-
<div class="absolute top-full mt-2 w-48 bg-background border rounded-md shadow-lg py-1">
21-
<a href="/uppercase" class="block px-4 py-2 text-sm hover:bg-muted">Uppercase</a>
22-
<a href="/lowercase" class="block px-4 py-2 text-sm hover:bg-muted">Lowercase</a>
23-
<a href="/word-counter" class="block px-4 py-2 text-sm hover:bg-muted">Word Counter</a>
20+
<div class="absolute top-full mt-2 w-48 dropdown-menu rounded-md py-1">
21+
<a href="/uppercase" class="block px-4 py-2 text-sm dropdown-item">Uppercase</a>
22+
<a href="/lowercase" class="block px-4 py-2 text-sm dropdown-item">Lowercase</a>
23+
<a href="/word-counter" class="block px-4 py-2 text-sm dropdown-item">Word Counter</a>
2424
</div>
2525
}
2626
</div>
@@ -68,7 +68,7 @@
6868
{
6969
private bool _isMobileMenuOpen;
7070
private bool _isToolsDropdownOpen;
71-
private bool _isDarkMode = true; // Start with dark mode
71+
private bool _isDarkMode = false; // Start with light mode
7272
7373
private void ToggleMobileMenu()
7474
{

TextHub/wwwroot/app.css

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
:root {
22
/* Light theme (default) */
33
--background: 0 0% 100%;
4-
--background-gradient: linear-gradient(135deg, hsl(0 0% 100%), hsl(0 0% 96%));
5-
--foreground: 222.2 5% 10%;
4+
--background-gradient: linear-gradient(135deg, hsl(0 0% 100%), hsl(0 0% 98%));
5+
--foreground: 222.2 5% 8%;
66
--primary: 122 39% 49%;
77
--primary-hover: 122 39% 42%;
88
--primary-foreground: 0 0% 100%;
9-
--primary-glow: 122 39% 49% / .3;
9+
--primary-glow: 122 39% 49% / .2;
1010
--secondary: 207 90% 54%;
1111
--secondary-hover: 207 90% 46%;
1212
--secondary-foreground: 0 0% 100%;
1313
--card: 0 0% 100%;
14-
--card-foreground: 222.2 5% 10%;
15-
--card-shadow: 0 4px 6px -1px hsl(0 0% 0% / .1);
16-
--card-hover-shadow: 0 10px 15px -3px hsl(0 0% 0% / .1);
14+
--card-foreground: 222.2 5% 8%;
15+
--card-shadow: 0 2px 4px -1px hsl(0 0% 0% / .08), 0 4px 6px -1px hsl(0 0% 0% / .06);
16+
--card-hover-shadow: 0 4px 6px -1px hsl(0 0% 0% / .1), 0 10px 15px -3px hsl(0 0% 0% / .08);
1717
--popover: 0 0% 100%;
18-
--popover-foreground: 222.2 5% 10%;
19-
--muted: 210 20% 96%;
20-
--muted-foreground: 215 16% 47%;
21-
--accent: 210 20% 96%;
22-
--accent-foreground: 222.2 5% 10%;
18+
--popover-foreground: 222.2 5% 8%;
19+
--muted: 210 20% 94%;
20+
--muted-foreground: 215 16% 45%;
21+
--accent: 210 20% 94%;
22+
--accent-foreground: 222.2 5% 8%;
2323
--destructive: 0 84% 60%;
2424
--destructive-foreground: 0 0% 100%;
25-
--border: 214 20% 91%;
26-
--input: 214 20% 91%;
25+
--border: 214 20% 88%;
26+
--input: 214 20% 88%;
2727
--ring: 122 39% 49%;
2828
--radius: .75rem;
2929
--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
3030
--transition-base: .3s cubic-bezier(.4, 0, .2, 1);
3131
--transition-slow: .5s cubic-bezier(.4, 0, .2, 1);
32-
--tool-gradient: linear-gradient(135deg, hsl(122 39% 95%), hsl(207 90% 95%));
32+
--tool-gradient: linear-gradient(135deg, hsl(122 39% 97%), hsl(207 90% 97%));
3333
--text-gradient: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
3434
}
3535

@@ -389,6 +389,7 @@ body {
389389
/* Navigation specific styles */
390390
.nav-link {
391391
font-weight: 500;
392+
color: hsl(var(--foreground));
392393
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
393394
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
394395
transition-duration: 150ms;
@@ -546,6 +547,14 @@ html {
546547
.btn-primary {
547548
position: relative;
548549
overflow: hidden;
550+
background-color: hsl(var(--primary));
551+
color: hsl(var(--primary-foreground));
552+
border: 1px solid hsl(var(--primary));
553+
}
554+
555+
.btn-primary:hover {
556+
background-color: hsl(var(--primary-hover));
557+
border-color: hsl(var(--primary-hover));
549558
}
550559

551560
.btn-primary::before {
@@ -563,6 +572,17 @@ html {
563572
left: 100%;
564573
}
565574

575+
.btn-secondary {
576+
background-color: transparent;
577+
color: hsl(var(--foreground));
578+
border: 1px solid hsl(var(--border));
579+
}
580+
581+
.btn-secondary:hover {
582+
background-color: hsl(var(--muted));
583+
border-color: hsl(var(--primary));
584+
}
585+
566586
/* Card hover effects */
567587
.tool-card {
568588
position: relative;
@@ -745,6 +765,7 @@ html {
745765
border-radius: var(--radius);
746766
border-width: 1px;
747767
border-color: hsl(var(--border));
768+
background-color: hsl(var(--card));
748769
background-image: var(--tool-gradient);
749770
padding: 1.5rem;
750771
--tw-shadow: var(--card-shadow);
@@ -773,6 +794,22 @@ html {
773794
@apply flex-shrink-0 p-3 bg-primary/10 rounded-xl border border-primary/20 group-hover:bg-primary/20 group-hover:border-primary/40 transition-all duration-300;
774795
}
775796

797+
/* Dropdown menu styling */
798+
.dropdown-menu {
799+
background-color: hsl(var(--popover));
800+
border: 1px solid hsl(var(--border));
801+
box-shadow: var(--card-hover-shadow);
802+
}
803+
804+
.dropdown-item {
805+
color: hsl(var(--popover-foreground));
806+
transition: background-color 0.15s ease;
807+
}
808+
809+
.dropdown-item:hover {
810+
background-color: hsl(var(--muted));
811+
}
812+
776813
/* Better text hierarchy */
777814
.section-title {
778815
@apply text-3xl md:text-4xl font-bold text-foreground;

TextHub/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en" class="dark">
2+
<html lang="en">
33

44
<head>
55
<meta charset="utf-8" />

0 commit comments

Comments
 (0)