refactor: replace hardcoded hex values with Tailwind semantic tokens
3,200+ hardcoded color values replaced with CSS variable-backed Tailwind classes (bg-card, text-foreground, border-border, etc.). Enables light mode via CSS variable swap. Only syntax highlighting colors and intentional one-offs remain hardcoded (~15 values). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -44,8 +44,8 @@ function TreeNode({
|
||||
className={cn(
|
||||
'flex items-center gap-2 px-3 py-1.5 text-sm',
|
||||
isInPath
|
||||
? 'rounded-md border-l-2 border-muted-foreground bg-accent font-medium text-[#e2e5eb]'
|
||||
: 'text-[#848b9b]'
|
||||
? 'rounded-md border-l-2 border-muted-foreground bg-accent font-medium text-foreground'
|
||||
: 'text-muted-foreground'
|
||||
)}
|
||||
style={{ paddingLeft: `${depth * 16 + 12}px` }}
|
||||
>
|
||||
@@ -75,9 +75,9 @@ export function SharedSessionTreePreview({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="bg-[#14161d] border border-[#1e2130] rounded-lg">
|
||||
<div className="sticky top-0 z-10 rounded-t-2xl border-b border-[#1e2130] bg-black/80 px-6 py-4 ">
|
||||
<h3 className="text-sm font-semibold text-[#e2e5eb]">Tree Structure</h3>
|
||||
<div className="bg-card border border-border rounded-lg">
|
||||
<div className="sticky top-0 z-10 rounded-t-2xl border-b border-border bg-black/80 px-6 py-4 ">
|
||||
<h3 className="text-sm font-semibold text-foreground">Tree Structure</h3>
|
||||
</div>
|
||||
<div className="max-h-[600px] overflow-y-auto py-2">
|
||||
<TreeNode node={treeStructure as unknown as Record<string, unknown>} depth={0} pathTaken={pathTaken} />
|
||||
|
||||
Reference in New Issue
Block a user