-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add light/dark theme to articles #432
Comments
Can I work on this please 😊 just need to know which page to code on as there is various pages linked to article (sorry to be thick dont want to step on anyones toes, and first time doing open source so want to put code in the right file) |
Not a problem! We will help out if you get stuck. It’s here: https://github.com/codu-code/codu/blob/develop/pages/articles/%5Bslug%5D.tsx |
hey @NiallJoeMaher , would love to work on this issue if there weren't any updates |
hi @NiallJoeMaher ive had a play around with dev tools to find out how to change the light/dark for the articles page ive attached the screenshots when i uncheck the box it has the right styles for light but not dark when its checked it has the right styles for dark but not light i have searched everywhere where can i change this code for light and dark mode it seems to be inherited from the components in the global css line 18 attached screenshot file, sorry but im not sure how to proceed as dont know where to change this inherited code 🤔 |
Let me take a look into it for you. Great job so far so don't panic. 🦾 |
I can take this up @NiallJoeMaher. |
Thanks, I haven't gotten around to it yet. 🦾 |
@abhijeetgurle, how is it going? Anything I can help with? |
@NiallJoeMaher I couldn't work on this issue yesterday. Will work on it today. Will let you know if help is needed. |
Can you check the PR @NiallJoeMaher ? |
Context
So we can give a better user experience we are working on a light/dark mode.
Expected Behavior
We use Tailwind so we should enable this by having a default light mode and dark mode with the
dark:
prefix.You can see how this is done here: https://tailwindcss.com/docs/dark-mode
Current Behavior
By default, we only use a dark theme.
You can see an example post here: https://www.codu.co/articles/hactoberfest-2023-with-cod-jh-6jzte
Additional info
The background for light mode should be:
bg-neutral-100
The text should be:
text-neutral-900
The text was updated successfully, but these errors were encountered: