Skip to content
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

At70 dark mode #211

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

At70 dark mode #211

wants to merge 8 commits into from

Conversation

StephanKop
Copy link
Contributor

@StephanKop StephanKop commented Jun 8, 2022

Incorporated dark mode.

  • Checks for initial browser color scheme.
  • Switcher uses combination of localstorage and context api.
  • Added themify mixin

source used:
https://javascript.plainenglish.io/the-best-way-to-add-dark-mode-to-your-react-sass-project-ce3ae3bd8616

src/assets/css/base/_main.scss Outdated Show resolved Hide resolved
src/assets/css/components/_course-card.scss Outdated Show resolved Hide resolved
src/assets/css/components/_course-card.scss Outdated Show resolved Hide resolved
src/assets/css/layout/_main-nav.scss Outdated Show resolved Hide resolved
src/assets/css/pages/_worlds.scss Outdated Show resolved Hide resolved
elevation2: #ffff,
elevation3: #ffff,
elevation4: #ffff,
elevation5: #ffff,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between elevation 1 till 5?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need 5 different elevations? Or how much do we actually use. Same goes for dark theme a few lines below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All elevations are currently in use in the dark mode. Most of the elevations in light mode are white cause we don't use any visual elevation in the design. However they need to exist as a counterpart for the dark mode.

src/components/Util/SvgSprite.tsx Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants