Skip to content

Commit e7c8ade

Browse files
committed
Replaced 8 hardcoded color values (#0065a1 and #004d7a) with CSS variables (var(--bs-primary) and color-mix functions) to make the login page's primary color automatically follow the global theme configuration.
1 parent 5568cb0 commit e7c8ade

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/routes/(authentication)/login/+page.svelte

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
}
301301
302302
.auth-header {
303-
background: linear-gradient(135deg, #0065a1 0%, #004d7a 100%);
303+
background: linear-gradient(135deg, var(--bs-primary) 0%, color-mix(in srgb, var(--bs-primary) 75%, #000) 100%);
304304
padding: 2.5rem 2rem;
305305
color: white;
306306
position: relative;
@@ -462,8 +462,8 @@
462462
}
463463
464464
.modern-input:focus {
465-
border-color: #0065a1 !important;
466-
box-shadow: 0 0 0 0.2rem rgba(0, 101, 161, 0.15) !important;
465+
border-color: var(--bs-primary) !important;
466+
box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15) !important;
467467
background: var(--bs-white) !important;
468468
outline: none;
469469
}
@@ -538,12 +538,12 @@
538538
}
539539
540540
.form-check-input:checked {
541-
background-color: #0065a1;
542-
border-color: #0065a1;
541+
background-color: var(--bs-primary);
542+
border-color: var(--bs-primary);
543543
}
544544
545545
.form-check-input:focus {
546-
box-shadow: 0 0 0 0.2rem rgba(0, 101, 161, 0.15);
546+
box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
547547
}
548548
549549
.form-check-label {
@@ -553,15 +553,15 @@
553553
}
554554
555555
.forgot-password {
556-
color: #0065a1;
556+
color: var(--bs-primary);
557557
text-decoration: none;
558558
font-size: 0.9rem;
559559
font-weight: 500;
560560
transition: all 0.3s ease;
561561
}
562562
563563
.forgot-password:hover {
564-
color: #004d7a;
564+
color: color-mix(in srgb, var(--bs-primary) 75%, #000);
565565
text-decoration: underline;
566566
}
567567
@@ -576,7 +576,7 @@
576576
min-width: 200px;
577577
height: 3.5rem;
578578
border-radius: 12px !important;
579-
background: linear-gradient(135deg, #0065a1 0%, #004d7a 100%) !important;
579+
background: linear-gradient(135deg, var(--bs-primary) 0%, color-mix(in srgb, var(--bs-primary) 75%, #000) 100%) !important;
580580
border: none !important;
581581
font-weight: 600;
582582
font-size: 1.1rem;
@@ -603,7 +603,7 @@
603603
604604
.login-btn:hover {
605605
transform: translateY(-2px);
606-
box-shadow: 0 10px 25px rgba(0, 101, 161, 0.3);
606+
box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.3);
607607
}
608608
609609
.login-btn:active {
@@ -721,14 +721,14 @@
721721
}
722722
723723
.signup-link {
724-
color: #0065a1;
724+
color: var(--bs-primary);
725725
text-decoration: none;
726726
font-weight: 600;
727727
margin-left: 0.25rem;
728728
}
729729
730730
.signup-link:hover {
731-
color: #004d7a;
731+
color: color-mix(in srgb, var(--bs-primary) 75%, #000);
732732
text-decoration: underline;
733733
}
734734
@@ -761,7 +761,7 @@
761761
762762
.modern-input:focus {
763763
background: var(--bs-gray-800);
764-
border-color: #0065a1 !important;
764+
border-color: var(--bs-primary) !important;
765765
}
766766
767767
.modern-input::placeholder {

0 commit comments

Comments
 (0)