Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

styles.css

318 lines5.4 KB

1@import 'tailwindcss';
2​
3body {
4 @apply m-0 bg-gray-900 text-gray-100;
5 font-family:
6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
7 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
8 -webkit-font-smoothing: antialiased;
9 -moz-osx-font-smoothing: grayscale;
11​
12code {
13 font-family:
14 source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
16​
17/* Markdown prose styling */
18.markdown-content {
19 line-height: 1.7;
20 color: #e5e7eb;
22​
23.markdown-content h1,
24.markdown-content h2,
25.markdown-content h3,
26.markdown-content h4 {
27 color: #67e8f9;
28 font-weight: 600;
29 margin-top: 1.5em;
30 margin-bottom: 0.75em;
31 line-height: 1.3;
33​
34.markdown-content h1 {
35 font-size: 1.5rem;
37.markdown-content h2 {
38 font-size: 1.25rem;
40.markdown-content h3 {
41 font-size: 1.1rem;
43.markdown-content h4 {
44 font-size: 1rem;
46​
47.markdown-content p {
48 margin-top: 0.75em;
49 margin-bottom: 0.75em;
51​
52.markdown-content strong {
53 color: #a5f3fc;
54 font-weight: 600;
56​
57.markdown-content em {
58 color: #d1d5db;
60​
61.markdown-content ul,
62.markdown-content ol {
63 margin-top: 0.75em;
64 margin-bottom: 0.75em;
65 padding-left: 1.5em;
67​
68.markdown-content li {
69 margin-top: 0.375em;
70 margin-bottom: 0.375em;
72​
73.markdown-content ul {
74 list-style-type: disc;
76​
77.markdown-content ol {
78 list-style-type: decimal;
80​
81.markdown-content a {
82 color: #22d3ee;
83 text-decoration: underline;
85​
86.markdown-content a:hover {
87 color: #67e8f9;
89​
90.markdown-content hr {
91 border-color: #374151;
92 margin-top: 1.5em;
93 margin-bottom: 1.5em;
95​
96.markdown-content blockquote {
97 border-left: 3px solid #0891b2;
98 padding-left: 1em;
99 margin-left: 0;
100 color: #9ca3af;
101 font-style: italic;
103​
104.markdown-content code:not(pre code) {
105 background-color: #1f2937;
106 color: #67e8f9;
107 padding: 0.15em 0.4em;
108 border-radius: 4px;
109 font-size: 0.9em;
111​
112.markdown-content pre {
113 background-color: #111827;
114 border-radius: 8px;
115 padding: 1em;
116 overflow-x: auto;
117 margin-top: 1em;
118 margin-bottom: 1em;
120​
121.markdown-content table {
122 width: 100%;
123 border-collapse: collapse;
124 margin-top: 1em;
125 margin-bottom: 1em;
127​
128.markdown-content th,
129.markdown-content td {
130 border: 1px solid #374151;
131 padding: 0.5em 0.75em;
132 text-align: left;
134​
135.markdown-content th {
136 background-color: #1f2937;
137 color: #67e8f9;
138 font-weight: 600;
140​
141/* Highlight external_* function calls in code blocks */
142.external-fn {
143 color: #f472b6;
144 font-weight: 600;
145 background: linear-gradient(
146 135deg,
147 rgba(244, 114, 182, 0.15) 0%,
148 rgba(168, 85, 247, 0.15) 100%
149 );
150 padding: 0.1em 0.3em;
151 border-radius: 4px;
152 border-bottom: 2px solid #f472b6;
154​
155/* Blog post body styling - enhanced from markdown-content */
156.blog-body {
157 font-size: 1.1rem;
158 line-height: 1.8;
160​
161.blog-body h1,
162.blog-body h2,
163.blog-body h3,
164.blog-body h4 {
165 color: #f1f5f9;
166 font-family: Georgia, 'Times New Roman', serif;
167 margin-top: 2em;
168 margin-bottom: 1em;
170​
171.blog-body h1 {
172 font-size: 2rem;
174.blog-body h2 {
175 font-size: 1.5rem;
176 border-bottom: 1px solid #334155;
177 padding-bottom: 0.5em;
179.blog-body h3 {
180 font-size: 1.25rem;
182​
183.blog-body p {
184 margin-top: 1em;
185 margin-bottom: 1em;
186 color: #cbd5e1;
188​
189.blog-body strong {
190 color: #34d399;
192​
193.blog-body a {
194 color: #34d399;
196​
197.blog-body a:hover {
198 color: #6ee7b7;
200​
201.blog-body ul,
202.blog-body ol {
203 margin-top: 1em;
204 margin-bottom: 1em;
205 padding-left: 2em;
207​
208.blog-body li {
209 margin-top: 0.5em;
210 margin-bottom: 0.5em;
211 color: #cbd5e1;
213​
214.blog-body blockquote {
215 border-left: 4px solid #34d399;
216 background: rgba(52, 211, 153, 0.05);
217 padding: 1em 1.5em;
218 margin: 1.5em 0;
219 border-radius: 0 8px 8px 0;
221​
222.blog-body blockquote p {
223 margin: 0;
224 color: #94a3b8;
226​
227.blog-body code:not(pre code) {
228 background-color: #1e293b;
229 color: #22d3ee;
230 padding: 0.2em 0.5em;
231 border-radius: 4px;
232 font-size: 0.9em;
234​
235.blog-body pre {
236 background-color: #0f172a;
237 border: 1px solid #334155;
238 border-radius: 8px;
239 padding: 1.25em;
240 overflow-x: auto;
241 margin: 1.5em 0;
243​
244.blog-body table {
245 width: 100%;
246 border-collapse: collapse;
247 margin: 1.5em 0;
248 border-radius: 8px;
249 overflow: hidden;
251​
252.blog-body th {
253 background-color: #1e293b;
254 color: #34d399;
255 font-weight: 600;
256 padding: 0.75em 1em;
257 text-align: left;
258 border-bottom: 2px solid #334155;
260​
261.blog-body td {
262 padding: 0.75em 1em;
263 border-bottom: 1px solid #334155;
264 color: #cbd5e1;
266​
267.blog-body tr:hover td {
268 background-color: rgba(52, 211, 153, 0.05);
270​
271/* Report system CSS variables */
272:root {
273 --report-bg: rgb(17, 24, 39);
274 --report-card-bg: rgb(31, 41, 55);
275 --report-border: rgb(55, 65, 81);
276 --report-text: rgb(243, 244, 246);
277 --report-text-muted: rgb(156, 163, 175);
278 --report-accent: rgb(6, 182, 212);
279 --report-success: rgb(34, 197, 94);
280 --report-warning: rgb(245, 158, 11);
281 --report-error: rgb(239, 68, 68);
283​
284/* Report renderer base styling */
285.report-renderer {
286 color: var(--report-text);
288​
289/* Radix Collapsible animations */
290@keyframes slideDown {
291 from {
292 height: 0;
293 opacity: 0;
294 }
295 to {
296 height: var(--radix-collapsible-content-height);
297 opacity: 1;
298 }
300​
301@keyframes slideUp {
302 from {
303 height: var(--radix-collapsible-content-height);
304 opacity: 1;
305 }
306 to {
307 height: 0;
308 opacity: 0;
309 }
311​
312[data-state='open'] > .animate-slideDown {
313 animation: slideDown 200ms ease-out;
315​
316[data-state='closed'] > .animate-slideUp {
317 animation: slideUp 200ms ease-out;