Skip to content

Commit 2e16378

Browse files
committed
chore: Switch to Tailwind v4 CSS config
1 parent 77423ae commit 2e16378

File tree

2 files changed

+49
-83
lines changed

2 files changed

+49
-83
lines changed

assets/css/main.css

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,54 @@
11
@import "tailwindcss";
22

3-
@config '../../tailwind.config.ts';
3+
@custom-variant dark (&:is(.dark *));
4+
5+
@theme {
6+
--text-xxs: 0.625rem;
7+
8+
--color-gitify-font: var(--fgColor-default);
9+
--color-gitify-background: var(--bgColor-muted);
10+
--color-gitify-sidebar: #24292e;
11+
--color-gitify-footer: var(--bgColor-neutral-muted);
12+
--color-gitify-caution: var(--color-orange-600);
13+
--color-gitify-error: var(--fgColor-danger);
14+
--color-gitify-link: var(--fgColor-link);
15+
16+
--color-gitify-input-rest: var(--control-bgColor-rest);
17+
--color-gitify-input-focus: var(--control-bgColor-active);
18+
19+
--color-gitify-icon-attention: var(--fgColor-attention);
20+
--color-gitify-icon-closed: var(--fgColor-closed);
21+
--color-gitify-icon-done: var(--fgColor-done);
22+
--color-gitify-icon-muted: var(--fgColor-muted);
23+
--color-gitify-icon-open: var(--fgColor-open);
24+
25+
--color-gitify-accounts: var(--bgColor-neutral-muted);
26+
27+
--color-gitify-account-rest: var(--control-bgColor-active);
28+
--color-gitify-account-error: var(--bgColor-danger-emphasis);
29+
30+
--color-gitify-repository: var(--control-bgColor-disabled);
31+
32+
--color-gitify-notification-border: var(--borderColor-disabled);
33+
--color-gitify-notification-hover: var(--control-bgColor-hover);
34+
35+
--color-gitify-notification-pill-hover: var(--control-bgColor-active);
36+
37+
--color-gitify-tooltip-icon: var(--fgColor-accent);
38+
--color-gitify-tooltip-popout: var(--bgColor-disabled);
39+
40+
--gitify-scrollbar-track: var(--color-gray-100);
41+
--gitify-scrollbar-thumb: var(--color-gray-300);
42+
--gitify-scrollbar-thumb-hover: var(--color-gray-400);
43+
}
44+
45+
@layer dark {
46+
@theme {
47+
--gitify-scrollbar-track: var(--color-gray-900);
48+
--gitify-scrollbar-thumb: var(--color-gray-700);
49+
--gitify-scrollbar-thumb-hover: var(--color-gray-600);
50+
}
51+
}
452

553
/*
654
The default border color has changed to `currentColor` in Tailwind CSS v4,

tailwind.config.ts

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)