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.
This pull request introduces several changes to enhance the color theming and add a theme toggle button to the application. The most important changes include the creation of a new
ThemeContext
, integration of theThemeToggleButton
, and updates to various components and styles to support the new theming system.Theming Enhancements:
New ThemeContext:
ThemeContext
with a provider to manage light and dark modes. (context/ThemeContext.tsx
)Theme Toggle Button:
ThemeToggleButton
component to allow users to switch between light and dark modes. (components/Header/ThemeToggleButton.tsx
)ThemeToggleButton
into theHeader
component. (components/Header/Header.tsx
) [1] [2] [3]Color Styles:
ColorStyles
for thereact-select
component to match the new theming system. (components/ColorStyles.tsx
)ColorStyles
toLanguageFilter
andSDGFilter
components. (components/LanguageFilter.tsx
) [1] [2] (components/SDGFilter.tsx
) [3] [4]Component and Style Updates:
Header Component:
Header
component to remove thedata-color-mode
attribute and use the newThemeContext
. (components/Header/Header.tsx
)Header.module.scss
to improve styling and align items in the header. (components/Header/Header.module.scss
) [1] [2]Global Styles:
styles/globals.scss
) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]App Component:
App
component to wrap the application with the newThemeProvider
and apply the theme context. (pages/_app.tsx
) [1] [2]Dependency Updates:
@primer/octicons-react
dependency for theme icons. (package.json
)- ThemeContext Implemented ThemeContext to provide a light/dark theme.Fixing UI with flex and div
Should Address issue #157