Repository navigation
Expand file tree
/
Copy pathtailwind.css
More file actions
190 lines (161 loc) · 4.18 KB
/
Copy pathtailwind.css
File metadata and controls
190 lines (161 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/* SPDX-License-Identifier: MPL-2.0 */
@import 'tailwindcss';
@plugin "@tailwindcss/typography";
/* Scan Rust files for Tailwind classes */
@source "./src/**/*.rs";
/* Button component styles */
@layer components {
.btn-primary {
@apply px-4 py-1.5 rounded-lg bg-yellow-500 hover:bg-yellow-600 text-black font-medium transition-colors text-sm;
}
.btn-secondary {
@apply px-4 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 text-white/70 hover:text-white/90 transition-colors text-sm flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed;
}
}
/* Auto-Claude inspired design tokens */
@theme {
/* Colors */
--color-background: oklch(0.15 0.01 264);
--color-card: oklch(0.18 0.01 264);
--color-border: oklch(0.25 0.01 264);
--color-primary: oklch(0.85 0.08 85);
--color-success: oklch(0.65 0.15 145);
--color-warning: oklch(0.70 0.15 85);
--color-error: oklch(0.60 0.20 25);
/* Border Radius */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-2xl: 20px;
/* Spacing */
--spacing-container: 1280px;
}
/* Dark theme (default) */
@media (prefers-color-scheme: dark) {
:root {
--background: var(--color-background);
--card: var(--color-card);
--border: var(--color-border);
}
}
/* Focus-visible styles for keyboard navigation accessibility */
@layer base {
/* Global focus-visible styles for all interactive elements */
*:focus-visible {
outline: 2px solid oklch(0.85 0.18 85); /* Yellow focus ring matching primary color */
outline-offset: 2px;
}
/* Remove default focus for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
outline: none;
}
/* Specific focus styles for buttons */
button:focus-visible,
[role="button"]:focus-visible {
outline: 2px solid oklch(0.85 0.18 85);
outline-offset: 2px;
box-shadow: 0 0 0 4px oklch(0.85 0.18 85 / 0.25);
}
/* Focus styles for inputs and textareas */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
outline: 2px solid oklch(0.85 0.18 85);
outline-offset: 0px;
border-color: oklch(0.85 0.18 85);
}
/* Focus styles for links */
a:focus-visible {
outline: 2px solid oklch(0.85 0.18 85);
outline-offset: 2px;
border-radius: 2px;
}
/* Focus styles for checkboxes and radio buttons */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
outline: 2px solid oklch(0.85 0.18 85);
outline-offset: 2px;
}
/* Focus styles for navigation items */
nav button:focus-visible,
nav a:focus-visible {
outline: 2px solid oklch(0.85 0.18 85);
outline-offset: -2px; /* Inset for nav items */
background-color: oklch(0.85 0.18 85 / 0.1);
}
/* Focus styles for cards and task items */
[data-testid="task-card"]:focus-visible,
[draggable="true"]:focus-visible {
outline: 2px solid oklch(0.85 0.18 85);
outline-offset: 2px;
}
}
/* Animations */
@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.animate-shimmer {
animation: shimmer 2s infinite;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.animate-fade-in {
animation: fade-in 150ms ease-out;
}
@keyframes modal-in {
from {
opacity: 0;
transform: scale(0.98);
}
to {
opacity: 1;
transform: scale(1);
}
}
.animate-modal-in {
animation: modal-in 200ms ease-out;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-toast-in {
animation: toast-in 200ms ease-out;
}
/* Terminal cursor blink animation */
@keyframes cursor-blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
.term-cursor {
animation: cursor-blink 1s step-end infinite;
}
.terminal-focused .term-cursor {
animation: cursor-blink 1s step-end infinite;
}
.terminal-unfocused .term-cursor {
animation: none;
opacity: 0.5;
}
/* Indeterminate progress bar used by the PR review modal during agent runs. */
@keyframes pr-busy {
0% { transform: translateX(-100%); }
100% { transform: translateX(400%); }
}
.animate-pr-busy {
animation: pr-busy 1.6s ease-in-out infinite;
}