xonecas.io
53129
Pa

PAT / commit 874406f

feat: color changes

xonecas2025-12-16 874406f9aa068beb61203b154c32ec91da4e851c parent 3d7a451

4 files changed

AGENTS.md+6−6
@@ -154,12 +154,12 @@ Agents MUST use only these existing dependencies. Do NOT add new dependencies wi
154154 ### UI Style
155155
156156 - Always ensure support for both light and dark modes
157-- Use stone color palette for backgrounds and text (not gray or slate)
158-- Default text colors: `text-stone-800 dark:text-stone-200` (set on topmost container to cascade)
159-- Container backgrounds: `bg-stone-100` for light mode, `bg-stone-950` for dark mode
160-- Child component backgrounds: `bg-stone-200` for light mode, `bg-stone-900` for dark mode
161-- User message backgrounds: `bg-stone-300` for light mode, `bg-stone-800` for dark mode
162-- Assistant message backgrounds: `bg-stone-200` for light mode, `bg-stone-900` for dark mode
157+- Use neutral color palette for backgrounds and text (not gray or slate)
158+- Default text colors: `text-neutral-800 dark:text-neutral-200` (set on topmost container to cascade)
159+- Container backgrounds: `bg-neutral-100` for light mode, `bg-neutral-950` for dark mode
160+- Child component backgrounds: `bg-neutral-200` for light mode, `bg-neutral-900` for dark mode
161+- User message backgrounds: `bg-neutral-300` for light mode, `bg-neutral-800` for dark mode
162+- Assistant message backgrounds: `bg-neutral-200` for light mode, `bg-neutral-900` for dark mode
163163 - Don't use round corners
164164 - The UI should always fit to the available space
165165 - Primary colors: green-500 for dark mode, green-900 for light mode
app/globals.css+5−5
@@ -3,7 +3,7 @@
33 @tailwind utilities;
44
55 .markdown-content {
6- @apply flex flex-col gap-6 text-stone-800 dark:text-stone-200;
6+ @apply flex flex-col gap-6 text-neutral-800 dark:text-neutral-200;
77 }
88
99 .markdown-content h1,
@@ -45,7 +45,7 @@
4545 }
4646
4747 .markdown-content blockquote {
48- @apply pl-2 border-l-4 border-stone-500 italic dark:border-stone-400;
48+ @apply pl-2 border-l-4 border-neutral-500 italic dark:border-neutral-400;
4949 }
5050
5151 .markdown-content a {
@@ -53,16 +53,16 @@
5353 }
5454
5555 .markdown-content table {
56- @apply border-collapse border border-stone-500 dark:border-stone-400;
56+ @apply border-collapse border border-neutral-500 dark:border-neutral-400;
5757 }
5858
5959 .markdown-content th,
6060 .markdown-content td {
61- @apply border border-stone-500 dark:border-stone-400;
61+ @apply border border-neutral-500 dark:border-neutral-400;
6262 }
6363
6464 .markdown-content th {
65- @apply bg-stone-400 font-bold dark:bg-stone-800;
65+ @apply bg-neutral-400 font-bold dark:bg-neutral-800;
6666 }
6767
6868 /* Code block styling */
app/highlight-theme.css+9−9
@@ -1,4 +1,4 @@
1-/* Custom highlight.js theme using Tailwind colors (stone, green, orange, indigo) */
1+/* Custom highlight.js theme using Tailwind colors (neutral, green, orange, indigo) */
22
33 /* Reset code block inheritance */
44 .markdown-content pre,
@@ -14,7 +14,7 @@
1414
1515 /* Light mode - code blocks only */
1616 .markdown-content pre {
17- background: #f5f5f4; /* stone-100 */
17+ background: #f5f5f4; /* neutral-100 */
1818 padding: 0.5rem;
1919 }
2020
@@ -25,14 +25,14 @@ pre code.hljs,
2525 pre .hljs,
2626 .hljs {
2727 background: transparent;
28- color: #292524; /* stone-800 */
28+ color: #292524; /* neutral-800 */
2929 }
3030
3131 .markdown-content .hljs-comment,
3232 .markdown-content .hljs-quote,
3333 .hljs-comment,
3434 .hljs-quote {
35- color: #78716c; /* stone-500 */
35+ color: #78716c; /* neutral-500 */
3636 font-style: italic;
3737 }
3838
@@ -116,7 +116,7 @@ pre .hljs,
116116
117117 .markdown-content .hljs-meta,
118118 .hljs-meta {
119- color: #78716c; /* stone-500 */
119+ color: #78716c; /* neutral-500 */
120120 }
121121
122122 .hljs-deletion {
@@ -148,7 +148,7 @@ pre .hljs,
148148 }
149149
150150 .dark .markdown-content pre {
151- background: #0c0a09; /* stone-950 */
151+ background: #0c0a09; /* neutral-950 */
152152 padding: 0.5rem;
153153 }
154154
@@ -159,14 +159,14 @@ pre .hljs,
159159 .dark pre .hljs,
160160 .dark .hljs {
161161 background: transparent;
162- color: #e7e5e4; /* stone-200 */
162+ color: #e7e5e4; /* neutral-200 */
163163 }
164164
165165 .dark .markdown-content .hljs-comment,
166166 .dark .markdown-content .hljs-quote,
167167 .dark .hljs-comment,
168168 .dark .hljs-quote {
169- color: #a8a29e; /* stone-400 */
169+ color: #a8a29e; /* neutral-400 */
170170 font-style: italic;
171171 }
172172
@@ -250,7 +250,7 @@ pre .hljs,
250250
251251 .dark .markdown-content .hljs-meta,
252252 .dark .hljs-meta {
253- color: #a8a29e; /* stone-400 */
253+ color: #a8a29e; /* neutral-400 */
254254 }
255255
256256 .dark .hljs-deletion {
app/page.tsx+13−13
@@ -253,16 +253,16 @@ export default function Home() {
253253 };
254254
255255 return (
256- <div className="flex h-screen bg-stone-100 text-stone-800 dark:bg-stone-950 dark:text-stone-200">
256+ <div className="flex h-screen bg-neutral-100 text-neutral-800 dark:bg-neutral-950 dark:text-neutral-200">
257257 <div className="flex min-w-0 flex-1 flex-col">
258258 <div
259259 ref={messagesContainerRef}
260- className="text-sm p-4 flex-1 overflow-y-auto overflow-x-hidden bg-stone-100 dark:bg-stone-950"
260+ className="text-sm p-4 flex-1 overflow-y-auto overflow-x-hidden bg-neutral-100 dark:bg-neutral-950"
261261 >
262262 <div className="flex min-h-full flex-col justify-end gap-8">
263263 {threads.length === 0 && messages.length === 0 && currentThreadId === null ? (
264264 <div className="min-w-0">
265- <div className="markdown-content p-1 bg-stone-200 text-stone-800 dark:bg-stone-900 dark:text-stone-200">
265+ <div className="markdown-content p-1 bg-neutral-200 text-neutral-800 dark:bg-neutral-900 dark:text-neutral-200">
266266 <ReactMarkdown remarkPlugins={[remarkGfm]} rehypePlugins={[rehypeHighlight]}>
267267 {`# Welcome! 👋
268268
@@ -286,10 +286,10 @@ Once you've created a thread, you can start chatting with me by typing a message
286286 className="min-w-0"
287287 >
288288 <div
289- className={`markdown-content p-2 text-stone-800 dark:text-stone-200 ${
289+ className={`markdown-content p-2 text-neutral-800 dark:text-neutral-200 ${
290290 msg.role === "assistant"
291- ? "bg-stone-200 dark:bg-stone-900"
292- : "bg-stone-300 dark:bg-stone-800 text-right"
291+ ? "bg-neutral-200 dark:bg-neutral-900"
292+ : "bg-neutral-300 dark:bg-neutral-800 text-right"
293293 }`}
294294 >
295295 {msg.role === "assistant" ? (
@@ -299,7 +299,7 @@ Once you've created a thread, you can start chatting with me by typing a message
299299 ) : (
300300 <div>{msg.content}</div>
301301 )}
302- <div className="text-xs text-stone-600 dark:text-stone-400 mt-1">
302+ <div className="text-xs text-neutral-600 dark:text-neutral-400 mt-1">
303303 sent on: {formatTimestamp(msg.createdAt)}
304304 {msg.role === "assistant" && msg.generationTimeMs && (
305305 <span className="ml-2">• generated in {formatGenerationTime(msg.generationTimeMs)}</span>
@@ -319,22 +319,22 @@ Once you've created a thread, you can start chatting with me by typing a message
319319 onKeyDown={handleKeyDown}
320320 placeholder={isLoading ? "Loading answer..." : "Type a message..."}
321321 disabled={isLoading}
322- className="flex-1 bg-stone-200 px-2 py-2 placeholder:italic placeholder:text-stone-600 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed dark:bg-stone-900 dark:placeholder:text-stone-400"
322+ className="flex-1 bg-neutral-200 px-2 py-2 placeholder:italic placeholder:text-neutral-600 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed dark:bg-neutral-900 dark:placeholder:text-neutral-400"
323323 />
324324 <button
325325 type="submit"
326326 disabled={isLoading}
327- className="bg-green-900 px-3 py-1 text-stone-100 hover:bg-green-800 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-green-500 dark:text-stone-900 dark:hover:bg-green-600"
327+ className="bg-green-900 px-3 py-1 text-neutral-100 hover:bg-green-800 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-green-500 dark:text-neutral-900 dark:hover:bg-green-600"
328328 >
329329 <PaperPlaneIcon className={`h-5 w-5 ${isLoading ? "animate-spin" : ""}`} />
330330 </button>
331331 </form>
332332 </div>
333- <div className="w-64 bg-stone-200 p-1 dark:bg-stone-900">
333+ <div className="w-64 bg-neutral-200 p-1 dark:bg-neutral-900">
334334 <div className="flex flex-col gap-2 p-4">
335335 <button
336336 onClick={() => createNewThread()}
337- className="bg-green-900 px-1 py-1 text-stone-100 hover:bg-green-800 dark:bg-green-500 dark:text-stone-900 dark:hover:bg-green-600"
337+ className="bg-green-900 px-1 py-1 text-neutral-100 hover:bg-green-800 dark:bg-green-500 dark:text-neutral-900 dark:hover:bg-green-600"
338338 >
339339 New Thread
340340 </button>
@@ -348,7 +348,7 @@ Once you've created a thread, you can start chatting with me by typing a message
348348 handleThreadSelect(threadId);
349349 }
350350 }}
351- className="bg-stone-100 px-3 py-1 text-stone-800 focus:outline-none dark:bg-stone-950 dark:text-stone-200"
351+ className="bg-neutral-100 px-3 py-1 text-neutral-800 focus:outline-none dark:bg-neutral-950 dark:text-neutral-200"
352352 >
353353 <option value="">Select a thread...</option>
354354 {threads.map((thread) => (
@@ -363,7 +363,7 @@ Once you've created a thread, you can start chatting with me by typing a message
363363 <select
364364 value={themeMode}
365365 onChange={(e) => handleThemeChange(e.target.value as "device" | "dark" | "light")}
366- className="bg-stone-100 px-3 py-1 text-stone-800 focus:outline-none dark:bg-stone-950 dark:text-stone-200"
366+ className="bg-neutral-100 px-3 py-1 text-neutral-800 focus:outline-none dark:bg-neutral-950 dark:text-neutral-200"
367367 >
368368 <option value="device">Device</option>
369369 <option value="dark">Dark</option>