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!

more colour improvements

Blue Mousedf02d2686f46
diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx
index ad6a66d5c..b02cbcfa5 100644
--- a/src/components/Footer/index.tsx
+++ b/src/components/Footer/index.tsx
@@ -157,7 +157,7 @@ const Footer = ({ minimal, authenticated }: {
}
return (
- <footer className='bg-gray-800 dark:bg-[#181F29]' aria-labelledby='footer-heading'>
+ <footer className='bg-gray-800 dark:bg-gray-750' aria-labelledby='footer-heading'>
<h2 id='footer-heading' className='sr-only'>
Footer
</h2>
diff --git a/src/components/GithubAuth.tsx b/src/components/GithubAuth.tsx
index 0537c95c3..f9a3474ee 100644
--- a/src/components/GithubAuth.tsx
+++ b/src/components/GithubAuth.tsx
@@ -37,7 +37,7 @@ const GithubAuth: React.FC<IGoogleAuth> = ({
if (isMiniButton) {
return (
<Button
- className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
onClick={googleLogin}
secondary
regular
@@ -53,7 +53,7 @@ const GithubAuth: React.FC<IGoogleAuth> = ({
return (
<Button
- className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
onClick={googleLogin}
secondary
regular
diff --git a/src/components/GoogleAuth.tsx b/src/components/GoogleAuth.tsx
index d9db49175..7cc5c62fe 100644
--- a/src/components/GoogleAuth.tsx
+++ b/src/components/GoogleAuth.tsx
@@ -33,7 +33,7 @@ const GoogleAuth: React.FC<IGoogleAuth> = ({
if (isMiniButton) {
return (
<Button
- className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
onClick={googleLogin}
secondary
regular
@@ -45,7 +45,7 @@ const GoogleAuth: React.FC<IGoogleAuth> = ({
return (
<Button
- className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
onClick={googleLogin}
secondary
regular
diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx
index 7b6bad2d6..04f694515 100644
--- a/src/components/Header/index.tsx
+++ b/src/components/Header/index.tsx
@@ -82,7 +82,7 @@ const ThemeMenu = ({
{({ active }) => (
<div
className={cx('flex w-full font-semibold cursor-pointer px-4 py-2 text-sm text-indigo-600 dark:text-gray-50 hover:bg-gray-100 hover:dark:bg-slate-800', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
onClick={() => switchTheme('light')}
>
@@ -95,7 +95,7 @@ const ThemeMenu = ({
{({ active }) => (
<div
className={cx('flex w-full font-semibold cursor-pointer px-4 py-2 text-sm text-gray-700 dark:text-indigo-400 hover:bg-gray-100 hover:dark:bg-slate-800', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
onClick={() => switchTheme('dark')}
>
@@ -139,7 +139,7 @@ const ProfileMenu = ({
leaveTo='transform opacity-0 scale-95'
>
<Menu.Items className='absolute right-0 z-30 mt-2 w-60 min-w-max origin-top-right rounded-md bg-white dark:bg-slate-900 py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'>
- <div className='border-gray-200 dark:border-gray-700 border-b-[1px]'>
+ <div className='border-gray-200 dark:border-slate-700/50 border-b-[1px]'>
<Menu.Item>
<p className='truncate py-2 px-4' role='none'>
<span
@@ -158,7 +158,7 @@ const ProfileMenu = ({
</Menu.Item>
</div>
- <div className='border-gray-200 dark:border-gray-700 border-b-[1px]'>
+ <div className='border-gray-200 dark:border-slate-700/50 border-b-[1px]'>
{/* Language selector */}
<Menu as='div'>
{({ open }) => (
@@ -186,14 +186,14 @@ const ProfileMenu = ({
leaveTo='transform opacity-0 scale-95'
>
<Menu.Items
- className='z-50 origin-top-right absolute right-0 mt-1 w-full min-w-max rounded-md shadow-lg bg-white dark:bg-gray-700 ring-1 ring-black ring-opacity-5 focus:outline-none'
+ className='z-50 origin-top-right absolute right-0 mt-1 w-full min-w-max rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 focus:outline-none'
static
>
<div className='py-1'>
{_map(whitelist, lng => (
<Menu.Item key={lng}>
<span
- className='text-gray-700 dark:text-gray-50 dark:bg-gray-700 block px-4 py-2 text-sm cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600'
+ className='text-gray-700 dark:text-gray-50 dark:bg-slate-800 block px-4 py-2 text-sm cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600'
role='menuitem'
tabIndex={-1}
id='menu-item-0'
@@ -220,7 +220,7 @@ const ProfileMenu = ({
<Link
to={routes.changelog}
className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
>
{t('footer.changelog')}
@@ -232,7 +232,7 @@ const ProfileMenu = ({
<Link
to={routes.contact}
className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
>
{t('footer.support')}
@@ -244,7 +244,7 @@ const ProfileMenu = ({
<Link
to={routes.billing}
className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
>
{t('common.billing')}
@@ -259,7 +259,7 @@ const ProfileMenu = ({
<Link
to={routes.user_settings}
className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
>
{t('common.accountSettings')}
@@ -271,7 +271,7 @@ const ProfileMenu = ({
{({ active }) => (
<p
className={cx('cursor-pointer px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
- 'bg-gray-100 dark:bg-gray-700': active,
+ 'bg-gray-100 dark:bg-slate-800': active,
})}
onClick={logoutHandler}
>
@@ -422,7 +422,7 @@ const NotAuthedHeader = ({
</a>
{!isSelfhosted && (
<>
- <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
+ <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-slate-800' key='Features'>
<CircleStackIcon className='w-5 h-5 mr-1' />
{t('common.features')}
</NavLink>
@@ -471,11 +471,11 @@ const NotAuthedHeader = ({
)}
onSelect={onLanguageChange}
/>
- <Link to={routes.signin} className='inline-block select-none bg-indigo-500 dark:bg-gray-700 mt-1 sm:mt-0 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-white hover:bg-opacity-75 hover:dark:bg-gray-600'>
+ <Link to={routes.signin} className='inline-block select-none bg-indigo-500 dark:bg-slate-800 mt-1 sm:mt-0 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-white hover:bg-opacity-75 hover:dark:bg-gray-600'>
{t('auth.common.signin')}
</Link>
{!isSelfhosted && (
- <Link to={routes.signup} className='inline-block select-none bg-white dark:bg-gray-700 dark:text-gray-50 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50 hover:dark:bg-gray-600' aria-label={t('titles.signup')}>
+ <Link to={routes.signup} className='inline-block select-none bg-white dark:bg-slate-800 dark:text-gray-50 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50 hover:dark:bg-gray-600' aria-label={t('titles.signup')}>
{t('common.getStarted')}
</Link>
)}
@@ -508,7 +508,7 @@ const NotAuthedHeader = ({
<CreditCardIcon className='w-5 h-5 mr-1' />
{t('common.pricing')}
</HashLink>
- <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
+ <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-slate-800' key='Features'>
<CircleStackIcon className='w-5 h-5 mr-1' />
{t('common.features')}
</NavLink>
diff --git a/src/pages/Captcha/Settings/CaptchaSettings.tsx b/src/pages/Captcha/Settings/CaptchaSettings.tsx
index 983ce1639..62eaca31e 100644
--- a/src/pages/Captcha/Settings/CaptchaSettings.tsx
+++ b/src/pages/Captcha/Settings/CaptchaSettings.tsx
@@ -505,7 +505,7 @@ const CaptchaSettings = ({
/>
<div className='flex justify-between mt-8 h-20 sm:h-min'>
<div className='flex flex-wrap items-center'>
- <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
+ <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
{t('common.cancel')}
</Button>
<Button type='submit' loading={projectSaving} primary regular>
@@ -537,7 +537,7 @@ const CaptchaSettings = ({
{!isSettings && (
<div>
- <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
+ <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
{t('common.cancel')}
</Button>
<Button type='submit' loading={projectSaving} primary regular>
diff --git a/src/pages/Captcha/View/components/LiveVisitorsDropdown.tsx b/src/pages/Captcha/View/components/LiveVisitorsDropdown.tsx
index 3f359b761..b8ee58395 100644
--- a/src/pages/Captcha/View/components/LiveVisitorsDropdown.tsx
+++ b/src/pages/Captcha/View/components/LiveVisitorsDropdown.tsx
@@ -48,7 +48,7 @@ const LiveVisitorsDropdown = ({ live, projectId }: {
{show ? <ChevronUpIcon className='inline w-5 h-5' /> : <ChevronDownIcon className='inline w-5 h-5' />}
</p>
{show && (
- <div className='absolute z-10 mt-2 right-0 top-20 text-gray-900 bg-white border border-gray-200 rounded-md shadow-lg dark:bg-slate-900 dark:border-gray-700 min-w-[250px] max-h-[200px] overflow-auto'>
+ <div className='absolute z-10 mt-2 right-0 top-20 text-gray-900 bg-white border border-gray-200 rounded-md shadow-lg dark:bg-slate-900 dark:border-slate-700/50 min-w-[250px] max-h-[200px] overflow-auto'>
<div className='flex flex-col w-full p-2'>
<p className='text-sm font-semibold text-gray-900 dark:text-gray-50'>
{t('dashboard.liveVisitors')}
diff --git a/src/pages/Dashboard/Dashboard.tsx b/src/pages/Dashboard/Dashboard.tsx
index 8a3ab903f..f1c075ed2 100644
--- a/src/pages/Dashboard/Dashboard.tsx
+++ b/src/pages/Dashboard/Dashboard.tsx
@@ -172,7 +172,7 @@ const ProjectCard = ({
<Link to={_replace(type === 'analytics' ? routes.project : routes.captcha, ':id', id)}>
<li
onClick={onElementClick}
- className='overflow-hidden rounded-xl border border-gray-200 cursor-pointer bg-gray-50 hover:bg-gray-100 dark:bg-slate-800 dark:hover:bg-slate-700 dark:border-gray-700'
+ className='overflow-hidden rounded-xl border border-gray-200 cursor-pointer bg-gray-50 hover:bg-gray-100 dark:bg-slate-800 dark:hover:bg-slate-700 dark:border-slate-800/25'
>
<div className='py-4 px-4'>
<div className='flex justify-between items-center'>
@@ -189,7 +189,7 @@ const ProjectCard = ({
to={_replace(type === 'analytics' ? routes.project_settings : routes.captcha_settings, ':id', id)}
aria-label={`${t('project.settings.settings')} ${name}`}
>
- <AdjustmentsVerticalIcon className='w-6 h-6 text-gray-800 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-800' />
+ <AdjustmentsVerticalIcon className='w-6 h-6 text-gray-800 dark:text-slate-400 hover:text-gray-900 dark:hover:text-slate-500' />
</Link>
)}
<a
@@ -198,7 +198,7 @@ const ProjectCard = ({
target='_blank'
rel='noopener noreferrer'
>
- <ArrowTopRightOnSquareIcon className='w-6 h-6 text-gray-800 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-800' />
+ <ArrowTopRightOnSquareIcon className='w-6 h-6 text-gray-800 dark:text-slate-400 hover:text-gray-900 dark:hover:text-slate-500' />
</a>
</div>
</div>
diff --git a/src/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx b/src/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
index 9a8371584..48a2a9a87 100644
--- a/src/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
+++ b/src/pages/Project/Alerts/Settings/ProjectAlertsSettings.tsx
@@ -339,7 +339,7 @@ const ProjectAlertsSettings = ({
</>
</Button>
<div className='flex justify-between items-center'>
- <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
+ <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
{t('common.cancel')}
</Button>
<Button type='submit' primary regular>
@@ -349,7 +349,7 @@ const ProjectAlertsSettings = ({
</div>
) : (
<div className='mt-5 flex justify-between items-center'>
- <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
+ <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
{t('common.cancel')}
</Button>
<Button type='submit' primary regular>
diff --git a/src/pages/Project/Settings/ProjectSettings.tsx b/src/pages/Project/Settings/ProjectSettings.tsx
index 39695545f..8beec1480 100644
--- a/src/pages/Project/Settings/ProjectSettings.tsx
+++ b/src/pages/Project/Settings/ProjectSettings.tsx
@@ -442,7 +442,7 @@ const ProjectSettings = ({
/>
<div className='flex justify-between mt-8 h-20 sm:h-min'>
<div className='flex flex-wrap items-center'>
- <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
+ <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
{t('common.cancel')}
</Button>
<Button type='submit' loading={projectSaving} primary regular>
@@ -489,7 +489,7 @@ const ProjectSettings = ({
{!isSettings && (
<div>
- <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-gray-700 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
+ <Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>
{t('common.cancel')}
</Button>
<Button type='submit' loading={projectSaving} primary regular>
diff --git a/src/pages/Project/View/components/LiveVisitorsDropdown.tsx b/src/pages/Project/View/components/LiveVisitorsDropdown.tsx
index 344597184..384c3ffb9 100644
--- a/src/pages/Project/View/components/LiveVisitorsDropdown.tsx
+++ b/src/pages/Project/View/components/LiveVisitorsDropdown.tsx
@@ -48,7 +48,7 @@ const LiveVisitorsDropdown = ({ live, projectId }: {
{show ? <ChevronUpIcon className='inline w-5 h-5' /> : <ChevronDownIcon className='inline w-5 h-5' />}
</p>
{show && (
- <div className='absolute z-10 mt-2 right-0 top-20 text-gray-900 bg-white border border-gray-200 rounded-md shadow-lg dark:bg-slate-900 dark:border-gray-700 min-w-[250px] max-h-[200px] overflow-auto'>
+ <div className='absolute z-10 mt-2 right-0 top-20 text-gray-900 bg-white border border-gray-200 rounded-md shadow-lg dark:bg-slate-900 dark:border-slate-700/50 min-w-[250px] max-h-[200px] overflow-auto'>
<div className='flex flex-col w-full p-2'>
<p className='text-sm font-semibold text-gray-900 dark:text-gray-50'>
{t('dashboard.liveVisitors')}