-
Notifications
You must be signed in to change notification settings - Fork 2
chore: migrate from styled components to tailwind #89
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
Draft
kyrers
wants to merge
47
commits into
master
Choose a base branch
from
chore/migrate-from-styled-components-to-tailwind
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.
+3,384
−2,487
Draft
Changes from 10 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
8b8fadc
chore: remove styled-components and install tailwind
kyrers ad2c61b
refactor: migrate global styling and theme management to tailwind
kyrers 3152560
chore: remove styled-components module declaration and update reown …
kyrers d2d2579
refactor: layout migration to tailwind
kyrers f922943
chore: remove unused react-modal and related types/react-modal depend…
kyrers f638cb8
style: enhance focus styles and adjust Toastify container padding
kyrers 0bec1a7
fix: specify theme type in ThemeProvider
kyrers bb0901b
refactor: migrate DesktopHeader and related components to tailwind
kyrers 318211a
fix: proper className concatenation + minor tailwind utility name fixes
kyrers dba15bb
fix: update className syntax
kyrers 1846911
refactor: migrate MobileHeader and related components to tailwind
kyrers f3b7df3
refactor: replace Field component with TextField in FormContact
kyrers db24782
fix: scale NavBar properly using tailwind
kyrers 06a80c0
fix: proper custom breakpoint definition
kyrers fddfec9
style: remove unnecessary breakpoint global CSS - defined in the @kle…
kyrers beaca69
refactor: replace custom breakpoint with lg
kyrers a19329a
refactor: remove unnecessary classes
kyrers 7981c9c
fix: avoid duplicating tailwind classes
kyrers a1e7428
fix: address rabbitai comments
kyrers bf5b6d0
chore: add clsx and tailwind-merge for class management
kyrers 5a6d51a
chore: add @tailwindcss/vite as a dev dependency
kyrers 52538dc
chore: make tailwindcss a dev dependency
kyrers 7512ebc
refactor: replace style string concatenation with clsx/cn
kyrers df464f8
style: optimize hover transition for Help component
kyrers 41dd11c
fix: correct StatusBanner custom selectors
kyrers 2ec1c2f
style: update CSS imports and refine Header component styles
kyrers 6802e43
style: fix DappList component style
kyrers 8113b4d
style: refine desktop header styles
kyrers 90e561f
style: add custom variant for dark mode in global CSS
kyrers 971297a
style: fix header styles
kyrers 4474759
style: update label and input in FormContact
kyrers 4a42db8
refactor: migrate footer to tailwindcss
kyrers b5b02b9
refactor: replace Link components with anchor tags in Footer
kyrers c733fbc
style: enhance DappList width responsiveness
kyrers a4c27e4
refactor: rename useToggleTheme to useTheme for clarity
kyrers fce76d3
fix: update key prop in navbar menu component
kyrers e81d068
fix: use index as key prop in navbar menu component
kyrers a54c5b5
refactor: migrate Home page + related components to tailwind
kyrers f6d3177
refactor: minor fixes to home component styles
kyrers 7e81424
style: minor fixes + remove some unnecessary style classes
kyrers 077af58
fix: add overlay scrollbar styles import before global
kyrers 6e776cb
style: update OverlayScrollbarsComponent width class for better respo…
kyrers 4b9dc11
refactor: improve maintainability of dynamic calculations
kyrers 573a1a2
refactor: simplify Settings component
kyrers 4e96cdc
fix: custom calculation extraction to be full classes instead of stri…
kyrers fdf4c0a
refactor: migrate AllLists page + registries fetcher and related comp…
kyrers 62b2f36
refactor: replace hardcoded breakpoint values with constant
kyrers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,5 @@ | ||
| import styled from "styled-components"; | ||
| import React from "react"; | ||
|
|
||
| export const Overlay = styled.div` | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| background-color: ${({ theme }) => theme.blackLowOpacity}; | ||
| z-index: 30; | ||
| `; | ||
| export const Overlay: React.FC<{ children?: React.ReactNode }> = ({ children }) => ( | ||
| <div className="fixed top-0 left-0 w-screen h-screen bg-black-low-opacity z-30">{children}</div> | ||
| ); |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,11 @@ | ||
| import React from "react"; | ||
| import ReactDOM from "react-dom"; | ||
| import styled from "styled-components"; | ||
|
|
||
| const PortalContainer = styled.div` | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| z-index: 9999; | ||
| width: 100%; | ||
| height: 100%; | ||
| `; | ||
|
|
||
| const OverlayPortal: React.FC<{ children: React.ReactNode }> = ({ children }) => { | ||
| return ReactDOM.createPortal(<PortalContainer>{children}</PortalContainer>, document.body); | ||
| return ReactDOM.createPortal( | ||
| <div className="fixed top-0 left-0 z-9999 w-full h-full">{children}</div>, | ||
| document.body | ||
| ); | ||
kyrers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }; | ||
|
|
||
| export default OverlayPortal; | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.