@@ -347,17 +347,17 @@ function tooSmallView() {
347347 },
348348 },
349349 [
350- Text("┌─────────────────────────┐", { fgColor: "yellow" }),
351- Text("│ Terminal too small :( │", { fgColor: "yellow" }),
352- Text("│ │", { fgColor: "yellow" }),
353- Text("│ Please resize to at │", { fgColor: "yellow" }),
350+ Text("┌─────────────────────────┐", { fgColor: "color03" }),
351+ Text("│ Terminal too small :( │", { fgColor: "color03" }),
352+ Text("│ │", { fgColor: "color03" }),
353+ Text("│ Please resize to at │", { fgColor: "color03" }),
354354 Text(
355355 `│ least ${String(MIN_COLS).padStart(3)}×${String(MIN_ROWS).padStart(2)} chars. │`,
356- { fgColor: "yellow" },
356+ { fgColor: "color03" },
357357 ),
358- Text("│ │", { fgColor: "yellow" }),
359- Text("│ Ctrl+Q to quit │", { fgColor: "yellow" }),
360- Text("└─────────────────────────┘", { fgColor: "yellow" }),
358+ Text("│ │", { fgColor: "color03" }),
359+ Text("│ Ctrl+Q to quit │", { fgColor: "color03" }),
360+ Text("└─────────────────────────┘", { fgColor: "color03" }),
361361 ],
362362 );
363363 }
@@ -390,10 +390,10 @@ function currentArt(): string[] {
390390 return lines;
391391 }
392392
393-function artColor(): "cyan" | "yellow" | "magenta" {
394- if (anim === "excited") return "magenta";
395- if (hunger > 60 || happiness < 30) return "yellow";
396- return "cyan";
393+function artColor(): "color06" | "color03" | "color05" {
394+ if (anim === "excited") return "color05";
395+ if (hunger > 60 || happiness < 30) return "color03";
396+ return "color06";
397397 }
398398
399399 // ─── Reusable Widgets ───────────────────────────────────────────
@@ -401,25 +401,28 @@ function artColor(): "cyan" | "yellow" | "magenta" {
401401 function StatBar(
402402 label: string,
403403 value: number,
404- color: "green" | "yellow" | "red" | "cyan",
404+ color: "color02" | "color03" | "color01" | "color06",
405405 ) {
406406 const w = 12;
407407 const filled = Math.round((value / 100) * w);
408408 return VStack({}, [
409- Text(label, { bold: true, fgColor: "white" }),
409+ Text(label, { bold: true }),
410410 HStack({}, [
411411 Text("█", { repeat: Math.max(filled, 0), fgColor: color }),
412- Text("░", { repeat: Math.max(w - filled, 0), fgColor: "brightBlack" }),
413- Text(` ${value}`, { fgColor: "brightBlack" }),
412+ Text("░", { repeat: Math.max(w - filled, 0), fgColor: "color08" }),
413+ Text(` ${value}`, { fgColor: "color08" }),
414414 ]),
415415 ]);
416416 }
417417
418-function barColor(val: number, invert = false): "green" | "yellow" | "red" {
418+function barColor(
419+ val: number,
420+ invert = false,
421+): "color02" | "color03" | "color01" {
419422 const v = invert ? 100 - val : val;
420- if (v > 60) return "green";
421- if (v > 30) return "yellow";
422- return "red";
423+ if (v > 60) return "color02";
424+ if (v > 30) return "color03";
425+ return "color01";
423426 }
424427
425428 // ─── Create Screen ──────────────────────────────────────────────
@@ -455,12 +458,12 @@ function createView() {
455458 VStack({ width: 40, padding: { x: 2 }, gap: 0 }, [
456459 // Title
457460 HStack({ justifyContent: "center" }, [
458- Text("~ New Pet ~", { bold: true, fgColor: "cyan" }),
461+ Text("~ New Pet ~", { bold: true, fgColor: "color06" }),
459462 ]),
460- Divider({ fgColor: "brightBlack" }),
463+ Divider({ fgColor: "color08" }),
461464
462465 // Name
463- Text("Name:", { bold: true, fgColor: "white" }),
466+ Text("Name:", { bold: true }),
464467 TextInput({
465468 value: petName,
466469 onChange: (v) => {
@@ -468,11 +471,8 @@ function createView() {
468471 cel.render();
469472 },
470473 height: 1,
471- fgColor: "brightWhite",
472- bgColor: "black",
473474 placeholder: Text("enter a name...", {
474- fgColor: "brightBlack",
475- bgColor: "black",
475+ fgColor: "color08",
476476 }),
477477 // Controlled focus: needed to gate arrow key routing above
478478 focused: nameInputFocused,
@@ -493,7 +493,7 @@ function createView() {
493493
494494 // Species picker — wrapping chips
495495 Text(""),
496- Text("Species:", { bold: true, fgColor: "white" }),
496+ Text("Species:", { bold: true }),
497497 HStack(
498498 { flexWrap: "wrap", gap: 1 },
499499 PETS.map((p, i) => {
@@ -508,8 +508,8 @@ function createView() {
508508 },
509509 [
510510 Text(sel ? ` ● ${p.kind} ` : ` ${p.kind} `, {
511- fgColor: sel ? "black" : "white",
512- bgColor: sel ? "cyan" : undefined,
511+ fgColor: sel ? "color00" : undefined,
512+ bgColor: sel ? "color06" : undefined,
513513 bold: sel,
514514 }),
515515 ],
@@ -517,42 +517,42 @@ function createView() {
517517 }),
518518 ),
519519 Text(" ↑/↓ to change", {
520- fgColor: "brightBlack",
520+ fgColor: "color08",
521521 italic: true,
522522 }),
523523
524524 // Preview (hidden when terminal is short)
525525 ...(showPreview
526526 ? [
527- Divider({ fgColor: "brightBlack" }),
527+ Divider({ fgColor: "color08" }),
528528 VStack(
529529 { alignItems: "center" },
530- previewArt.map((ln) => Text(ln, { fgColor: "yellow" })),
530+ previewArt.map((ln) => Text(ln, { fgColor: "color03" })),
531531 ),
532532 ]
533533 : []),
534534
535- Divider({ fgColor: "brightBlack" }),
535+ Divider({ fgColor: "color08" }),
536536
537537 // Create button — uncontrolled focus + focusStyle
538538 HStack({ justifyContent: "center" }, [
539539 Button(" Create Pet! ", {
540540 onClick: startGame,
541- fgColor: "green",
541+ fgColor: "color02",
542542 bold: true,
543- focusStyle: { bgColor: "green", fgColor: "black" },
543+ focusStyle: { bgColor: "color02", fgColor: "color00" },
544544 }),
545545 ]),
546546
547547 // Hints — wrapping for narrow terminals
548548 HStack({ justifyContent: "center", flexWrap: "wrap", gap: 1 }, [
549549 HStack({}, [
550- Text("Tab", { fgColor: "brightBlack", bold: true }),
551- Text(" navigate", { fgColor: "brightBlack" }),
550+ Text("Tab", { fgColor: "color08", bold: true }),
551+ Text(" navigate", { fgColor: "color08" }),
552552 ]),
553553 HStack({}, [
554- Text("Ctrl+Q", { fgColor: "brightBlack", bold: true }),
555- Text(" quit", { fgColor: "brightBlack" }),
554+ Text("Ctrl+Q", { fgColor: "color08", bold: true }),
555+ Text(" quit", { fgColor: "color08" }),
556556 ]),
557557 ]),
558558 ]),
@@ -582,15 +582,15 @@ function mainView() {
582582 ]),
583583 ]
584584 : [
585- Text(" Stats", { bold: true, fgColor: "brightBlack" }),
586- Divider({ char: "─", fgColor: "brightBlack" }),
585+ Text(" Stats", { bold: true, fgColor: "color08" }),
586+ Divider({ char: "─", fgColor: "color08" }),
587587 StatBar("Health", health, barColor(health)),
588588 StatBar("Food", 100 - hunger, barColor(hunger, true)),
589589 StatBar("Happy", happiness, barColor(happiness)),
590590 Spacer(),
591- Divider({ char: "─", fgColor: "brightBlack" }),
592- Text(" [F] Feed", { fgColor: "yellow", bold: true }),
593- Text(" [P] Pet", { fgColor: "magenta", bold: true }),
591+ Divider({ char: "─", fgColor: "color08" }),
592+ Text(" [F] Feed", { fgColor: "color03", bold: true }),
593+ Text(" [P] Pet", { fgColor: "color05", bold: true }),
594594 ]),
595595 ],
596596 );
@@ -606,15 +606,15 @@ function mainView() {
606606 HStack({ gap: 3 }, [
607607 Button(" Feed ", {
608608 onClick: feed,
609- fgColor: "yellow",
609+ fgColor: "color03",
610610 bold: true,
611- focusStyle: { bgColor: "yellow", fgColor: "black" },
611+ focusStyle: { bgColor: "color03", fgColor: "color00" },
612612 }),
613613 Button(" Pet ", {
614614 onClick: petIt,
615- fgColor: "magenta",
615+ fgColor: "color05",
616616 bold: true,
617- focusStyle: { bgColor: "magenta", fgColor: "black" },
617+ focusStyle: { bgColor: "color05", fgColor: "color00" },
618618 }),
619619 ]),
620620 ],
@@ -639,29 +639,33 @@ function mainView() {
639639 [
640640 // ── Header ──
641641 HStack({ padding: { x: 1 } }, [
642- Text(` ${petName} `, { bold: true, fgColor: "black", bgColor: "cyan" }),
643- Text(` the ${pet!.kind} `, { fgColor: "brightBlack" }),
642+ Text(` ${petName} `, {
643+ bold: true,
644+ fgColor: "color00",
645+ bgColor: "color06",
646+ }),
647+ Text(` the ${pet!.kind} `, { fgColor: "color08" }),
644648 Spacer(),
645- Text("[L]", { fgColor: "brightBlack", bold: true }),
646- Text("og ", { fgColor: "brightBlack" }),
647- Text("[Q]", { fgColor: "brightBlack", bold: true }),
648- Text("uit ", { fgColor: "brightBlack" }),
649+ Text("[L]", { fgColor: "color08", bold: true }),
650+ Text("og ", { fgColor: "color08" }),
651+ Text("[Q]", { fgColor: "color08", bold: true }),
652+ Text("uit ", { fgColor: "color08" }),
649653 ]),
650- Divider({ char: "═", fgColor: "brightBlack" }),
654+ Divider({ char: "═", fgColor: "color08" }),
651655
652656 // ── Body ──
653657 ...(narrow
654658 ? [
655659 // Narrow: stats bar on top, pet below
656660 statsPanel,
657- Divider({ char: "─", fgColor: "brightBlack" }),
661+ Divider({ char: "─", fgColor: "color08" }),
658662 petPane,
659663 ]
660664 : [
661665 // Wide: sidebar | pet side-by-side
662666 HStack({ flex: 1 }, [
663667 statsPanel,
664- VDivider({ fgColor: "brightBlack" }),
668+ VDivider({ fgColor: "color08" }),
665669 petPane,
666670 ]),
667671 ]),
@@ -694,24 +698,30 @@ function logView() {
694698 },
695699 [
696700 // Top border
697- HStack({ bgColor: "black" }, [
698- Text("╔", { fgColor: "brightBlack" }),
699- Text("═", { repeat: borderW, fgColor: "brightBlack" }),
700- Text("╗", { fgColor: "brightBlack" }),
701+ HStack({ bgColor: "color08", fgColor: "color07" }, [
702+ Text("╔"),
703+ Text("═", { repeat: borderW }),
704+ Text("╗"),
701705 ]),
702706
703707 VStack(
704- { width: modalW, height: modalH, padding: { x: 1 }, bgColor: "black" },
708+ {
709+ width: modalW,
710+ height: modalH,
711+ padding: { x: 1 },
712+ bgColor: "color08",
713+ fgColor: "color07",
714+ },
705715 [
706716 // Header row
707717 HStack({}, [
708- Text(" Activity Log ", { bold: true, fgColor: "cyan" }),
718+ Text(" Activity Log ", { bold: true, fgColor: "color06" }),
709719 VStack({ flex: 1 }, [Text(" ", { repeat: "fill" })]),
710720 HStack({ onClick: closeLog, focusable: false }, [
711- Text(" [x] ", { fgColor: "red", bold: true }),
721+ Text(" [x] ", { fgColor: "color01", bold: true }),
712722 ]),
713723 ]),
714- Text("─", { repeat: "fill", fgColor: "brightBlack" }),
724+ Text("─", { repeat: "fill", fgColor: "color00" }),
715725
716726 // Scrollable entries
717727 VStack(
@@ -729,46 +739,46 @@ function logView() {
729739 if (log.length === 0) {
730740 return [
731741 Text(" No activity yet.", {
732- fgColor: "brightBlack",
742+ fgColor: "color08",
733743 italic: true,
734744 }),
735745 ];
736746 }
737747 return log.map((entry) => {
738748 let fg:
739- | "yellow"
740- | "magenta"
741- | "red"
742- | "green"
743- | "white"
744- | "brightRed" = "white";
745- if (entry.includes("born")) fg = "green";
749+ | "color03"
750+ | "color05"
751+ | "color01"
752+ | "color02"
753+ | "color09"
754+ | undefined = undefined;
755+ if (entry.includes("born")) fg = "color02";
746756 else if (entry.includes("fed") || entry.includes("Feed"))
747- fg = "yellow";
757+ fg = "color03";
748758 else if (entry.includes("pet ") || entry.includes("Happy"))
749- fg = "magenta";
759+ fg = "color05";
750760 else if (entry.includes("hungry") || entry.includes("lonely"))
751- fg = "brightRed";
761+ fg = "color09";
752762 else if (entry.includes("passed") || entry.includes("well"))
753- fg = "red";
763+ fg = "color01";
754764 return Text(entry, { fgColor: fg });
755765 });
756766 })(),
757767 ),
758768
759- Text("─", { repeat: "fill", fgColor: "brightBlack" }),
769+ Text("─", { repeat: "fill", fgColor: "color00" }),
760770 Text(" Scroll: mouse wheel Close: [L] or Esc", {
761- fgColor: "brightBlack",
771+ fgColor: "color00",
762772 italic: true,
763773 }),
764774 ],
765775 ),
766776
767777 // Bottom border
768- HStack({ bgColor: "black" }, [
769- Text("╚", { fgColor: "brightBlack" }),
770- Text("═", { repeat: borderW, fgColor: "brightBlack" }),
771- Text("╝", { fgColor: "brightBlack" }),
778+ HStack({ bgColor: "color08", fgColor: "color07" }, [
779+ Text("╚"),
780+ Text("═", { repeat: borderW }),
781+ Text("╝"),
772782 ]),
773783 ],
774784 );
@@ -793,39 +803,39 @@ function deadView() {
793803 },
794804 [
795805 Spacer(),
796- Text("╔═══════════════════════╗", { fgColor: "brightBlack" }),
797- Text("║ ║", { fgColor: "brightBlack" }),
798- Text("║ R . I . P . ║", { fgColor: "red", bold: true }),
799- Text("║ ║", { fgColor: "brightBlack" }),
800- Text("╚═══════════════════════╝", { fgColor: "brightBlack" }),
806+ Text("╔═══════════════════════╗", { fgColor: "color08" }),
807+ Text("║ ║", { fgColor: "color08" }),
808+ Text("║ R . I . P . ║", { fgColor: "color01", bold: true }),
809+ Text("║ ║", { fgColor: "color08" }),
810+ Text("╚═══════════════════════╝", { fgColor: "color08" }),
801811 Text(""),
802- ...art.map((ln) => Text(ln, { fgColor: "brightBlack" })),
812+ ...art.map((ln) => Text(ln, { fgColor: "color08" })),
803813 Text(""),
804814 Text(`${petName} has crossed the rainbow bridge.`, {
805- fgColor: "brightBlack",
815+ fgColor: "color08",
806816 italic: true,
807817 }),
808818 Text(""),
809819 HStack({ gap: 3 }, [
810820 Button(" New Pet ", {
811821 onClick: restart,
812- fgColor: "green",
822+ fgColor: "color02",
813823 bold: true,
814- focusStyle: { bgColor: "green", fgColor: "black" },
824+ focusStyle: { bgColor: "color02", fgColor: "color00" },
815825 }),
816826 Button(" View Log ", {
817827 onClick: () => {
818828 showLog = !showLog;
819829 cel.render();
820830 },
821- fgColor: "cyan",
831+ fgColor: "color06",
822832 bold: true,
823- focusStyle: { bgColor: "cyan", fgColor: "black" },
833+ focusStyle: { bgColor: "color06", fgColor: "color00" },
824834 }),
825835 ]),
826836 HStack({}, [
827- Text("Ctrl+Q", { fgColor: "brightBlack", bold: true }),
828- Text(" quit", { fgColor: "brightBlack" }),
837+ Text("Ctrl+Q", { fgColor: "color08", bold: true }),
838+ Text(" quit", { fgColor: "color08" }),
829839 ]),
830840 Spacer(),
831841 ],