-
Notifications
You must be signed in to change notification settings - Fork 152
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
feat: add dark mode support #4548
Open
devin-ai-integration
wants to merge
3
commits into
master
Choose a base branch
from
devin/1734021785-dark-mode-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
- Add colorScheme prop to OrbitProvider component - Add dark mode tokens and palette - Update documentation with new colorScheme prop - Maintain backward compatibility with existing theme system Co-Authored-By: Jozef Képesi <[email protected]>
- Add useColorScheme hook for dark mode detection - Add tests for light, dark, and system color schemes - Export hook in index.ts - Support window.matchMedia for system preference detection Co-Authored-By: Jozef Képesi <[email protected]>
…hook - Add colorScheme prop to OrbitProvider - Create useColorScheme hook for theme-aware components - Add dark mode tokens and styles - Update Modal and InputField with dark mode support - Add DarkModeWrapper test utility Co-Authored-By: Jozef Képesi <[email protected]>
Deploying orbit with Cloudflare Pages
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
Storybook staging is available at https://kiwicom-orbit-devin-1734021785-dark-mode-support.surge.sh |
Size Change: +666 B (+0.14%) Total Size: 461 kB
ℹ️ View Unchanged
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dark Mode Support
This PR adds dark mode support to Orbit components through the OrbitProvider's new colorScheme prop.
Changes
Theme API Changes
The colorScheme prop accepts:
Visual Changes
Before/After screenshots will be added once the visual regression tests complete.
Link to Devin run: https://app.devin.ai/sessions/7f5e6966a6ab4b08a495ed623bc32d1b
✨
Description by Callstackai
This PR adds dark mode support to Orbit components through the new
colorScheme
prop inOrbitProvider
, along with a custom hookuseColorScheme
for theme-aware components.Diagrams of code changes
Files Changed
colorScheme
prop inOrbitProvider
.OrbitProvider
to accept and handle thecolorScheme
prop.colorScheme
prop.colorScheme
property.useColorScheme
hook to verify dark mode functionality.useColorScheme
hook to determine the current color scheme.useColorScheme
hook.DarkModeWrapper
for testing components in dark mode.This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.md
,.json
. See list of supported languages.