-
Notifications
You must be signed in to change notification settings - Fork 17
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
Added Dark Theme #92
Added Dark Theme #92
Conversation
Preview the changes: https://turinglang.org/pr-previews/92 |
I think preview workflow is not working, let me see it first! |
fixed it! |
I think text color in navbar will look much better if it's white! |
Everything looks good to me, maybe @yebai would like to see colours once — |
Thanks @jitendravjh and @shravanngoswamii! Maybe @penelopeysm can have a final say here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jitendravjh, this is great work :) I like the colours a lot (despite being an always-light-mode girl)
There are some small inconsistencies in the CSS variables between the cosmo
and solar
themes. You can see these here:
- Cosmo: https://github.com/thomaspark/bootswatch/blob/v5/dist/cosmo/_variables.scss
- Solar: https://github.com/thomaspark/bootswatch/blob/v5/dist/solar/_variables.scss
For example, solar
sets
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
This leads to some moving around when the colour scheme is changed (warning: flashing colours)
css.mov
There are a couple of ways to get around this. One is to specifically override SCSS variables like the breadcrumb-padding
ones.
The other is to use cosmo
as a base theme and override every single colour variable. Basically, copy all the colour variables over from the base solar
SCSS file into theming/theme-dark.scss
(and replace any of them that you want to tweak, such as $body-color
).
I would lean towards the latter, because using cosmo
as a base will guarantee that we have all the non-colour CSS variables exactly the same. Furthermore, this will continue to hold true even if the Bootstrap themes are updated, meaning that it reduces the future maintenance burden.
@jitendravjh Any updates? |
This looks much better approach to me, using this there will no to minimal chances in theme and color inconsistencies in future! |
Apologies for the delay. The requested changes have been implemented. Please review and let me know if any further adjustments are needed. Main Site: https://turinglang.org/pr-previews/92 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thank you, @jitendravjh! |
Thanks, @jitendravjh and @shravanngoswamii, for the nice improvements! |
Closes #91