Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Replace indigo links with underlined gray

Blue Mouse7befd227a3ea
diff --git a/web/app/modals/NewFunnel.tsx b/web/app/modals/NewFunnel.tsx
index cfb0c5141..1af0f277b 100644
--- a/web/app/modals/NewFunnel.tsx
+++ b/web/app/modals/NewFunnel.tsx
@@ -184,7 +184,7 @@ const NewFunnel = ({
onClick={() => {
setSteps([...steps, createEmptyStep()])
}}
- className='mt-2 cursor-pointer text-indigo-600 hover:underline dark:text-indigo-400'
+ className='mt-2 cursor-pointer underline decoration-dashed hover:decoration-solid'
>
+ {t('modals.funnels.addStep')}
</button>
diff --git a/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx b/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
index 610d6c058..c4d313238 100644
--- a/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
+++ b/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
@@ -8,6 +8,7 @@ import Button from '~/ui/Button'
import Input from '~/ui/Input'
import routes from '~/utils/routes'
import { MIN_PASSWORD_CHARS } from '~/utils/validator'
+import { Text } from '~/ui/Text'
const CreateNewPassword = () => {
const { t } = useTranslation('common')
@@ -59,7 +60,7 @@ const CreateNewPassword = () => {
</Button>
</Form>
</div>
- <p className='mt-10 mb-4 text-center text-sm text-gray-500 dark:text-gray-200'>
+ <Text as='p' size='sm' className='mt-10 text-center'>
<Trans
t={t}
i18nKey='auth.signup.alreadyAMember'
@@ -67,13 +68,13 @@ const CreateNewPassword = () => {
url: (
<Link
to={routes.signin}
- className='leading-6 font-semibold text-indigo-600 hover:underline dark:text-indigo-400'
+ className='underline decoration-dashed hover:decoration-solid'
aria-label={t('footer.tos')}
/>
),
}}
/>
- </p>
+ </Text>
</div>
</div>
</div>
diff --git a/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx b/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
index ace5443ed..cb56d1ba8 100644
--- a/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
+++ b/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
@@ -13,6 +13,7 @@ import { isSelfhosted, TRIAL_DAYS } from '~/lib/constants'
import type { ForgotPasswordActionData } from '~/routes/recovery'
import Button from '~/ui/Button'
import Input from '~/ui/Input'
+import { Text } from '~/ui/Text'
import routes from '~/utils/routes'
const ForgotPassword = () => {
@@ -66,7 +67,7 @@ const ForgotPassword = () => {
</Form>
</div>
{isSelfhosted ? null : (
- <p className='mt-10 mb-4 text-center text-sm text-gray-500 dark:text-gray-200'>
+ <Text as='p' size='sm' className='mt-10 text-center'>
<Trans
t={t}
i18nKey='auth.signin.notAMember'
@@ -74,7 +75,7 @@ const ForgotPassword = () => {
url: (
<Link
to={routes.signup}
- className='leading-6 font-semibold text-indigo-600 hover:underline dark:text-indigo-400'
+ className='leading-6 font-medium underline decoration-dashed hover:decoration-solid'
aria-label={t('footer.tos')}
/>
),
@@ -83,7 +84,7 @@ const ForgotPassword = () => {
amount: TRIAL_DAYS,
}}
/>
- </p>
+ </Text>
)}
</div>
</div>
diff --git a/web/app/pages/Auth/Signin/Signin.tsx b/web/app/pages/Auth/Signin/Signin.tsx
index 86abb6061..1e2a35f2d 100644
--- a/web/app/pages/Auth/Signin/Signin.tsx
+++ b/web/app/pages/Auth/Signin/Signin.tsx
@@ -432,7 +432,7 @@ const Signin = () => {
<Text
as='div'
size='sm'
- colour='muted'
+ colour='secondary'
className='whitespace-pre-line'
>
{!isSelfhosted ? (
@@ -443,7 +443,7 @@ const Signin = () => {
ctl: (
<Link
to={routes.contact}
- className='text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-300'
+ className='font-medium underline decoration-dashed hover:decoration-solid'
/>
),
}}
diff --git a/web/app/pages/Blog/Post.tsx b/web/app/pages/Blog/Post.tsx
index bf1c1bac2..d708e5f73 100644
--- a/web/app/pages/Blog/Post.tsx
+++ b/web/app/pages/Blog/Post.tsx
@@ -93,7 +93,7 @@ export default function PostSlug() {
<div className='mt-1'>
<a
href={`https://x.com/${post.twitter_handle}`}
- className='text-indigo-600 hover:underline dark:text-indigo-400'
+ className='underline decoration-dashed hover:decoration-solid'
>
@{post.twitter_handle}
</a>
diff --git a/web/app/pages/Captcha/CaptchaDemo.tsx b/web/app/pages/Captcha/CaptchaDemo.tsx
index fae66f74b..1db708b5b 100644
--- a/web/app/pages/Captcha/CaptchaDemo.tsx
+++ b/web/app/pages/Captcha/CaptchaDemo.tsx
@@ -268,7 +268,7 @@ const CaptchaDemo = () => {
href={`${DOCS_URL}/captcha/introduction`}
target='_blank'
rel='noopener noreferrer'
- className='inline-flex items-center text-base font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-300'
+ className='inline-flex items-center text-base font-medium underline decoration-dashed hover:decoration-solid'
>
{t('captchaPage.demoPage.learnMore')}
<ArrowRightIcon className='ml-2 h-4 w-4' />
diff --git a/web/app/pages/OpenStartup/index.tsx b/web/app/pages/OpenStartup/index.tsx
index 5cef369ca..8a8451ffe 100644
--- a/web/app/pages/OpenStartup/index.tsx
+++ b/web/app/pages/OpenStartup/index.tsx
@@ -490,7 +490,7 @@ const OpenStartup = ({ stats }: OpenStartupProps) => {
livedemo: (
<Link
to={LIVE_DEMO_URL}
- className='font-medium text-indigo-600 hover:text-indigo-500 hover:underline dark:text-indigo-400 dark:hover:text-indigo-500'
+ className='font-medium underline decoration-dashed hover:decoration-solid'
/>
),
}}
diff --git a/web/app/pages/Project/tabs/FeatureFlags/FeatureFlagSettingsModal.tsx b/web/app/pages/Project/tabs/FeatureFlags/FeatureFlagSettingsModal.tsx
index df3cf1cc3..997b6740b 100644
--- a/web/app/pages/Project/tabs/FeatureFlags/FeatureFlagSettingsModal.tsx
+++ b/web/app/pages/Project/tabs/FeatureFlags/FeatureFlagSettingsModal.tsx
@@ -434,9 +434,9 @@ const flags = await swetrix.getFeatureFlags(undefined, true)`
<button
type='button'
onClick={addTargetingRule}
- className='flex items-center gap-1 text-sm text-indigo-600 hover:text-indigo-500 dark:text-indigo-400'
+ className='flex items-center gap-1 text-sm text-gray-700 underline decoration-dashed hover:decoration-solid dark:text-gray-200'
>
- <PlusIcon className='h-4 w-4' />
+ <PlusIcon className='size-3' />
{t('featureFlags.addRule')}
</button>
</div>
diff --git a/web/app/pages/Project/tabs/Goals/GoalSettingsModal.tsx b/web/app/pages/Project/tabs/Goals/GoalSettingsModal.tsx
index 958e75d1e..d2a4a4745 100644
--- a/web/app/pages/Project/tabs/Goals/GoalSettingsModal.tsx
+++ b/web/app/pages/Project/tabs/Goals/GoalSettingsModal.tsx
@@ -284,9 +284,9 @@ const GoalSettingsModal = ({
<button
type='button'
onClick={addMetadataFilter}
- className='flex items-center gap-1 text-sm text-indigo-600 hover:text-indigo-500 dark:text-indigo-400'
+ className='flex items-center gap-1 text-sm text-gray-700 underline decoration-dashed hover:decoration-solid dark:text-gray-200'
>
- <PlusIcon className='h-4 w-4' />
+ <PlusIcon className='size-3' />
{t('goals.addFilter')}
</button>
</div>
diff --git a/web/app/pages/UserSettings/UserSettings.tsx b/web/app/pages/UserSettings/UserSettings.tsx
index 51765b2d2..e2568fa79 100644
--- a/web/app/pages/UserSettings/UserSettings.tsx
+++ b/web/app/pages/UserSettings/UserSettings.tsx
@@ -1035,14 +1035,16 @@ const UserSettings = () => {
title={t('profileSettings.confirmEmail')}
description={t('profileSettings.confirmEmailDesc')}
>
- <button
- type='button'
- className='flex items-center text-sm font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-300'
- onClick={onEmailConfirm}
- >
- <EnvelopeIcon className='mr-2 h-5 w-5' />
- {t('profileSettings.noLink')}
- </button>
+ <Text as='p' size='sm' className='mb-3'>
+ <button
+ type='button'
+ className='inline-flex items-center underline decoration-dashed hover:decoration-solid'
+ onClick={onEmailConfirm}
+ >
+ <EnvelopeIcon className='mr-2 size-4' />
+ {t('profileSettings.noLink')}
+ </button>
+ </Text>
</SettingsSection>
) : null}
</>
diff --git a/web/app/routes/blog._index.tsx b/web/app/routes/blog._index.tsx
index 0c1010ebf..01be07fc5 100644
--- a/web/app/routes/blog._index.tsx
+++ b/web/app/routes/blog._index.tsx
@@ -9,6 +9,7 @@ import { redirect, Link, useLoaderData } from 'react-router'
import { getBlogPosts } from '~/api/api.server'
import { isDisableMarketingPages, isSelfhosted } from '~/lib/constants'
import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'
+import { Text } from '~/ui/Text'
export async function loader({ request }: LoaderFunctionArgs) {
if (isSelfhosted || isDisableMarketingPages) {
@@ -93,13 +94,15 @@ export default function Posts() {
</dd>
</dl>
</div>
- <Link
- className='underline-animate flex max-w-max items-center text-sm font-medium text-indigo-600 dark:text-gray-50'
- to={post.slug}
- >
- <span className='relative'>Read more</span>
- <CaretRightIcon className='relative mt-px ml-0.5 size-4 overflow-visible' />
- </Link>
+ <Text as='p' size='sm'>
+ <Link
+ className='flex max-w-max items-center text-sm font-medium underline decoration-dashed hover:decoration-solid'
+ to={post.slug}
+ >
+ <span className='relative'>Read more</span>
+ <CaretRightIcon className='relative mt-px ml-0.5 size-3 overflow-visible' />
+ </Link>
+ </Text>
</article>
)
})}
diff --git a/web/app/routes/tools._index.tsx b/web/app/routes/tools._index.tsx
index 6576cdd67..f650c3802 100644
--- a/web/app/routes/tools._index.tsx
+++ b/web/app/routes/tools._index.tsx
@@ -64,9 +64,9 @@ export default function Tools() {
</div>
</div>
- <div className='mt-4 flex items-center text-sm font-medium text-indigo-600 dark:text-indigo-400'>
+ <div className='mt-4 flex items-center text-sm font-medium underline decoration-dashed hover:decoration-solid'>
Use tool
- <ArrowRightIcon className='ml-1 h-4 w-4 transition-transform group-hover:translate-x-0.5' />
+ <ArrowRightIcon className='ml-1 size-3' />
</div>
</Link>
)