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!

Dark mode style fixes

Blue Mousea8fbd69e48fa
diff --git a/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx b/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
index dd03039b2..be36cdbe2 100644
--- a/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
+++ b/web/app/pages/Auth/CreateNewPassword/CreateNewPassword.tsx
@@ -107,7 +107,7 @@ const CreateNewPassword = () => {
</h2>
</div>
<div className='mt-10 font-mono sm:mx-auto sm:w-full sm:max-w-[480px]'>
- <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-800/20 dark:ring-slate-800'>
+ <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-900 dark:ring-slate-800'>
<form className='space-y-6' onSubmit={handleSubmit}>
<Input
name='password'
diff --git a/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx b/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
index c2698c17b..fb5aa75cf 100644
--- a/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
+++ b/web/app/pages/Auth/ForgotPassword/ForgotPassword.tsx
@@ -92,7 +92,7 @@ const ForgotPassword = () => {
</h2>
</div>
<div className='mt-10 font-mono sm:mx-auto sm:w-full sm:max-w-[480px]'>
- <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-800/20 dark:ring-slate-800'>
+ <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-900 dark:ring-slate-800'>
<form className='space-y-6' onSubmit={handleSubmit}>
<Input
name='email'
diff --git a/web/app/pages/Auth/Signin/Signin.tsx b/web/app/pages/Auth/Signin/Signin.tsx
index 1fe76f39d..bb759c292 100644
--- a/web/app/pages/Auth/Signin/Signin.tsx
+++ b/web/app/pages/Auth/Signin/Signin.tsx
@@ -284,7 +284,7 @@ const Signin = () => {
</h2>
</div>
<div className='mt-10 font-mono sm:mx-auto sm:w-full sm:max-w-[480px]'>
- <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-800/20 dark:ring-slate-800'>
+ <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-900 dark:ring-slate-800'>
<form className='space-y-6' onSubmit={handleSubmit}>
<Input
name='email'
@@ -340,7 +340,7 @@ const Signin = () => {
<div className='w-full border-t border-gray-200 dark:border-gray-600' />
</div>
<div className='relative flex justify-center text-sm leading-6 font-medium'>
- <span className='bg-white px-6 text-gray-900 dark:bg-slate-800/20 dark:text-gray-50'>
+ <span className='bg-white px-6 text-gray-900 dark:bg-slate-900 dark:text-gray-50'>
{t('auth.common.orContinueWith')}
</span>
</div>
diff --git a/web/app/pages/Auth/Signup/Signup.tsx b/web/app/pages/Auth/Signup/Signup.tsx
index 647b58444..2b0458dbd 100644
--- a/web/app/pages/Auth/Signup/Signup.tsx
+++ b/web/app/pages/Auth/Signup/Signup.tsx
@@ -237,7 +237,7 @@ const Signup = () => {
<p className='text-center font-mono text-base text-gray-900 dark:text-gray-50'>{t('auth.signup.noCC')}</p>
</div>
<div className='mt-10 font-mono sm:mx-auto sm:w-full sm:max-w-[480px]'>
- <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-800/20 dark:ring-slate-800'>
+ <div className='bg-white px-6 py-12 shadow-xs ring-1 ring-gray-200 sm:rounded-lg sm:px-12 dark:bg-slate-900 dark:ring-slate-800'>
<form className='space-y-6' onSubmit={handleSubmit}>
<Input
name='email'
@@ -349,7 +349,7 @@ const Signup = () => {
<div className='w-full border-t border-gray-200 dark:border-gray-600' />
</div>
<div className='relative flex justify-center text-sm leading-6 font-medium'>
- <span className='bg-white px-6 text-gray-900 dark:bg-slate-800/20 dark:text-gray-50'>
+ <span className='bg-white px-6 text-gray-900 dark:bg-slate-900 dark:text-gray-50'>
{t('auth.common.orContinueWith')}
</span>
</div>
diff --git a/web/app/pages/Blog/Post.tsx b/web/app/pages/Blog/Post.tsx
index 75630e8cc..4dc9f9849 100644
--- a/web/app/pages/Blog/Post.tsx
+++ b/web/app/pages/Blog/Post.tsx
@@ -99,7 +99,7 @@ export default function PostSlug() {
</li>
</ul>
</div>
- <div className='prose prose-slate mt-6'>
+ <div className='prose prose-slate dark:prose-invert mt-6'>
<div dangerouslySetInnerHTML={{ __html: post.html }} />
</div>
</article>
diff --git a/web/app/styles/ProjectViewStyle.css b/web/app/styles/ProjectViewStyle.css
index e78c210a7..459389378 100644
--- a/web/app/styles/ProjectViewStyle.css
+++ b/web/app/styles/ProjectViewStyle.css
@@ -7,44 +7,44 @@
*/
/* dark theme config */
-html.dark .bb-legend-item text {
+body.dark .bb-legend-item text {
fill: var(--color-gray-300);
}
-html.dark .bb-axis {
+body.dark .bb-axis {
fill: var(--color-gray-300);
}
-html.dark .bb-axis .domain {
+body.dark .bb-axis .domain {
stroke: var(--color-slate-700);
}
-html.dark .bb-axis .tick line {
+body.dark .bb-axis .tick line {
stroke: var(--color-slate-700);
}
-html.dark .bb-xgrid-focus {
+body.dark .bb-xgrid-focus {
stroke: var(--color-slate-600);
}
/* light theme config */
-html.light .bb-legend-item text {
+body.light .bb-legend-item text {
fill: var(--color-gray-800);
}
-html.light .bb-axis {
+body.light .bb-axis {
fill: var(--color-gray-700);
}
-html.light .bb-axis .domain {
+body.light .bb-axis .domain {
stroke: var(--color-gray-300);
}
-html.light .bb-axis .tick line {
+body.light .bb-axis .tick line {
stroke: var(--color-gray-300);
}
-html.light .bb-xgrid-focus {
+body.light .bb-xgrid-focus {
stroke: var(--color-gray-300);
}