-
Notifications
You must be signed in to change notification settings - Fork 275
chore(config): Switch to Tailwind v4 CSS config #1772
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
Open
bmulholland
wants to merge
5
commits into
main
Choose a base branch
from
01-24-chore_switch_to_tailwind_v4_css_config
base: main
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
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c998bf5
chore: Fix Tailwind v3 installation
bmulholland 77423ae
chore(deps): update tailwindcss to v4
bmulholland 2e16378
chore: Switch to Tailwind v4 CSS config
bmulholland f497a05
Merge branch 'main' into 01-24-chore_switch_to_tailwind_v4_css_config
setchy 8b24047
remove dupe
setchy 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@import "tailwindcss"; | ||
|
||
@custom-variant dark (&:is(.dark *)); | ||
|
||
@theme { | ||
--text-xxs: 0.625rem; | ||
|
||
--color-gitify-font: var(--fgColor-default); | ||
--color-gitify-background: var(--bgColor-muted); | ||
--color-gitify-sidebar: #24292e; | ||
--color-gitify-footer: var(--bgColor-neutral-muted); | ||
--color-gitify-caution: var(--color-orange-600); | ||
--color-gitify-error: var(--fgColor-danger); | ||
--color-gitify-link: var(--fgColor-link); | ||
|
||
--color-gitify-input-rest: var(--control-bgColor-rest); | ||
--color-gitify-input-focus: var(--control-bgColor-active); | ||
|
||
--color-gitify-icon-attention: var(--fgColor-attention); | ||
--color-gitify-icon-closed: var(--fgColor-closed); | ||
--color-gitify-icon-done: var(--fgColor-done); | ||
--color-gitify-icon-muted: var(--fgColor-muted); | ||
--color-gitify-icon-open: var(--fgColor-open); | ||
|
||
--color-gitify-accounts: var(--bgColor-neutral-muted); | ||
|
||
--color-gitify-account-rest: var(--control-bgColor-active); | ||
--color-gitify-account-error: var(--bgColor-danger-emphasis); | ||
|
||
--color-gitify-repository: var(--control-bgColor-disabled); | ||
|
||
--color-gitify-notification-border: var(--borderColor-disabled); | ||
--color-gitify-notification-hover: var(--control-bgColor-hover); | ||
|
||
--color-gitify-notification-pill-hover: var(--control-bgColor-active); | ||
|
||
--color-gitify-tooltip-icon: var(--fgColor-accent); | ||
--color-gitify-tooltip-popout: var(--bgColor-disabled); | ||
|
||
--gitify-scrollbar-track: var(--color-gray-100); | ||
--gitify-scrollbar-thumb: var(--color-gray-300); | ||
--gitify-scrollbar-thumb-hover: var(--color-gray-400); | ||
} | ||
|
||
@layer dark { | ||
@theme { | ||
--gitify-scrollbar-track: var(--color-gray-900); | ||
--gitify-scrollbar-thumb: var(--color-gray-700); | ||
--gitify-scrollbar-thumb-hover: var(--color-gray-600); | ||
} | ||
} | ||
|
||
/* | ||
The default border color has changed to `currentColor` in Tailwind CSS v4, | ||
so we've added these compatibility styles to make sure everything still | ||
looks the same as it did with Tailwind CSS v3. | ||
|
||
If we ever want to remove these styles, we need to add an explicit border | ||
color utility to any element that depends on these defaults. | ||
*/ | ||
@layer base { | ||
*, | ||
::after, | ||
::before, | ||
::backdrop, | ||
::file-selector-button { | ||
border-color: var(--color-gray-200, currentColor); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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.