Skip to content

Commit dc4ee75

Browse files
committed
fix(landing): avoid light-mode gradient flicker
1 parent 06dc5a6 commit dc4ee75

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

apps/web/src/components/landing/CTASection.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ function trackPricingClick() {
147147
-webkit-text-fill-color: transparent !important;
148148
}
149149
150+
:global(html[data-light-safe="1"] body.body--light) .cta-content h2 {
151+
background: none !important;
152+
-webkit-background-clip: initial !important;
153+
background-clip: initial !important;
154+
-webkit-text-fill-color: var(--text-primary) !important;
155+
color: var(--text-primary) !important;
156+
}
157+
150158
:global(.body--light) .cta-content p {
151159
color: var(--text-secondary) !important;
152160
}
@@ -156,4 +164,3 @@ function trackPricingClick() {
156164
}
157165
</style>
158166

159-

apps/web/src/components/landing/HeroSection.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,15 @@ onMounted(async () => {
619619
color: var(--text-primary) !important;
620620
}
621621
622+
:global(html[data-light-safe="1"] body.body--light) .hero-title .title-line-1 .word .gradient-word {
623+
background: none !important;
624+
-webkit-background-clip: initial !important;
625+
background-clip: initial !important;
626+
-webkit-text-fill-color: var(--text-primary) !important;
627+
color: var(--text-primary) !important;
628+
animation: none !important;
629+
}
630+
622631
:global(.body--light) .hero-title .title-line-2 strong {
623632
color: var(--text-secondary) !important;
624633
-webkit-text-fill-color: var(--text-secondary) !important;
@@ -631,6 +640,14 @@ onMounted(async () => {
631640
-webkit-text-fill-color: transparent !important;
632641
}
633642
643+
:global(html[data-light-safe="1"] body.body--light) .hero-title .title-line-2.colorized strong {
644+
background: none !important;
645+
-webkit-background-clip: initial !important;
646+
background-clip: initial !important;
647+
-webkit-text-fill-color: var(--text-secondary) !important;
648+
color: var(--text-secondary) !important;
649+
}
650+
634651
:global(.body--light) .demo-btn {
635652
color: var(--text-primary) !important;
636653
}

0 commit comments

Comments
 (0)