Skip to content

Commit d67b86f

Browse files
committed
refactor tailwind classes
Signed-off-by: Adam Setch <[email protected]>
1 parent 3fdd0e2 commit d67b86f

20 files changed

+190
-174
lines changed

src/renderer/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const App = () => {
3939
<BaseStyles>
4040
<AppProvider>
4141
<Router>
42-
<div className="flex h-full overflow-y-auto flex-col pl-12">
42+
<div className="flex h-full overflow-y-auto flex-col pl-12 bg-gitify-background">
4343
<Loading />
4444
<Sidebar />
4545
<Routes>

src/renderer/components/buttons/PillButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const PillButton: FC<IPillButton> = (props: IPillButton) => {
1818
<button
1919
title={props.title}
2020
type="button"
21-
className="flex gap-1 items-center text-xxs px-1 m-0.5 rounded-full bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700"
21+
className="flex gap-1 items-center text-xxs px-1 m-0.5 rounded-full bg-gitify-pill-rest hover:bg-gitify-pill-hover"
2222
>
2323
<Stack direction="horizontal" align="center" gap="condensed">
2424
<Octicon icon={props.icon} size={Size.XSMALL} className={props.color} />

src/renderer/components/buttons/__snapshots__/PillButton.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/fields/FieldInput.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ export const FieldInput: FC<IFieldInput> = ({
4444
/>
4545

4646
{helpText && (
47-
<div className="mt-3 text-xs text-gray-700 dark:text-gray-200">
48-
{helpText}
49-
</div>
47+
<div className="mt-3 text-xs text-gitify-font">{helpText}</div>
5048
)}
5149

5250
{touched && error && (
53-
<div className="mt-2 text-xs italic text-red-500">{error}</div>
51+
<div className="mt-2 text-xs italic text-gitify-error">{error}</div>
5452
)}
5553
</div>
5654
)}

src/renderer/components/fields/__snapshots__/FieldInput.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/notifications/AccountNotifications.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export const AccountNotifications: FC<IAccountNotifications> = (
7171
<div
7272
className={cn(
7373
'group flex items-center justify-between pr-1 py-0.5 text-sm font-semibold dark:text-white',
74-
props.error ? 'bg-gitify-error' : 'bg-gitify-accounts',
74+
props.error
75+
? 'bg-gitify-accounts-error'
76+
: 'bg-gitify-accounts-rest',
7577
)}
7678
onClick={toggleAccountNotifications}
7779
>

src/renderer/components/notifications/NotificationRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const NotificationRow: FC<INotificationRow> = ({
8888
<div
8989
id={notification.id}
9090
className={cn(
91-
'group flex border-b border-gray-100 bg-white pl-3 pr-1 py-1.5 hover:bg-gray-100 dark:border-gray-darker dark:bg-gray-dark dark:text-white dark:hover:bg-gray-darker',
91+
'group flex border-b pl-3 pr-1 py-1.5 text-gitify-font border-gitify-notifications-border bg-gitify-notifications-rest hover:bg-gitify-notifications-hover',
9292
(isAnimated || animateExit) &&
9393
'translate-x-full opacity-0 transition duration-[350ms] ease-in-out',
9494
(isRead || showAsRead) && Opacity.READ,

src/renderer/components/notifications/RepositoryNotifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
4343
return (
4444
<>
4545
<div
46-
className="group flex justify-between pr-1 py-0.5 bg-gitify-notifications dark:text-white"
46+
className="group flex justify-between pr-1 py-0.5 bg-gitify-repositories dark:text-white"
4747
onClick={toggleRepositoryNotifications}
4848
>
4949
<div

src/renderer/components/notifications/__snapshots__/AccountNotifications.test.tsx.snap

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)