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

Add dark mode #385

Merged
merged 56 commits into from
Nov 6, 2023
Merged

Add dark mode #385

merged 56 commits into from
Nov 6, 2023

Conversation

nlopin
Copy link
Contributor

@nlopin nlopin commented Oct 3, 2023

What:

Adds dark mode to both themes: Classic and Redesigned


Why:

We want our users to enjoy the darkness

How:

  • I added a media query that redefines the theme CSS variables
  • Text, Header and other components now use color set to inherit to avoid manual overwriting
  • Page color now explicitly set in global styles

What's left

  • Review and verify the color mode component. Find a better name
  • Add new logo
  • make the dark schemes satisfy the Color type

Checklist:

  • Ready to be merged

@nlopin nlopin changed the base branch from main to next October 3, 2023 15:30
@nlopin nlopin marked this pull request as draft October 3, 2023 15:30
src/components/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@martimalek martimalek left a comment

Choose a reason for hiding this comment

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

Awesome!! We are getting really close to Wave 2.0! 🥳 🍾

Nikolai Lopin added 7 commits October 10, 2023 17:36
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
@nlopin nlopin marked this pull request as ready for review October 30, 2023 11:16
Co-authored-by: martimalek <46452321+martimalek@users.noreply.github.com>
Co-authored-by: martimalek <46452321+martimalek@users.noreply.github.com>
@nlopin nlopin linked an issue Nov 2, 2023 that may be closed by this pull request
Nikolai Lopin added 5 commits November 2, 2023 15:23
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
# Conflicts:
#	src/components/Datepicker/Datepicker.tsx
The current solution relied on `size` property used on all levels. It caused TS errors because `input` HTML element already have `size` prop. Those two definitions were merged by TS causing type mismatch.

I decided to create a separate `waveSize` property for HTML components to separate. I preserved the public API, while using the `waveSize` over the `size` internally

Signed-off-by: Nikolai Lopin <nikolai.lopin@mytaxi.com>
@nlopin nlopin merged commit 60ae4ed into next Nov 6, 2023
10 checks passed
@nlopin nlopin deleted the add-dark-mode branch November 6, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add dark theme
3 participants