mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 08:03:46 +00:00
Extract hardcoded colors from 15+ component files into a centralized token system (tokens.ts + shared-styles.ts) so all UI colors flow through FoundryTokens. This eliminates 160+ scattered color values and makes light mode a single-file change in the future. - Add FoundryTokens interface with dark/light variants - Add shared style helpers (buttons, cards, inputs, badges) - Bridge CSS custom properties for styles.css theme support - Add useFoundryTokens() hook and ColorMode context - Migrate all mock-layout/* and mock-onboarding components Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
204 lines
3.8 KiB
CSS
204 lines
3.8 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
|
|
background: var(--f-surface-primary, #000000);
|
|
color: var(--f-text-primary, #ffffff);
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--f-surface-primary, #000000);
|
|
color: var(--f-text-primary, #ffffff);
|
|
overflow: hidden;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Opt-in text selection for content areas */
|
|
input,
|
|
textarea,
|
|
pre,
|
|
code,
|
|
[data-selectable] {
|
|
user-select: text;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
@keyframes hf-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
code,
|
|
pre {
|
|
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
|
|
}
|
|
|
|
.mock-diff-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 14px;
|
|
border-bottom: 1px solid var(--f-border-default, rgba(255, 255, 255, 0.12));
|
|
background: var(--f-surface-secondary, #111111);
|
|
}
|
|
|
|
.mock-diff-path {
|
|
color: var(--f-text-primary, #fafafa);
|
|
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mock-diff-stats {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-left: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mock-diff-added {
|
|
color: var(--f-status-success, #7ee787);
|
|
}
|
|
|
|
.mock-diff-removed {
|
|
color: var(--f-status-error, #ffa198);
|
|
}
|
|
|
|
.mock-diff-body {
|
|
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.mock-diff-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.mock-diff-row[data-kind="add"] {
|
|
background: rgba(46, 160, 67, 0.12);
|
|
}
|
|
|
|
.mock-diff-row[data-kind="remove"] {
|
|
background: rgba(248, 81, 73, 0.1);
|
|
}
|
|
|
|
.mock-diff-row[data-kind="hunk"] {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-bottom: 1px solid var(--f-border-default, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
.mock-diff-row[data-kind="hunk"]:not(:first-child) {
|
|
border-top: 1px solid var(--f-border-default, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
.mock-diff-gutter {
|
|
position: relative;
|
|
width: 36px;
|
|
flex-shrink: 0;
|
|
padding: 0 8px 0 0;
|
|
font-size: 11px;
|
|
line-height: 20px;
|
|
text-align: right;
|
|
user-select: none;
|
|
}
|
|
|
|
.mock-diff-line-number {
|
|
display: block;
|
|
color: var(--f-text-tertiary, #71717a);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.mock-diff-line-text {
|
|
flex: 1;
|
|
padding: 0 10px;
|
|
overflow: hidden;
|
|
color: var(--f-text-secondary, #a1a1aa);
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
text-overflow: ellipsis;
|
|
white-space: pre;
|
|
}
|
|
|
|
.mock-diff-row[data-kind="add"] .mock-diff-line-text {
|
|
color: var(--f-status-success, #7ee787);
|
|
}
|
|
|
|
.mock-diff-row[data-kind="remove"] .mock-diff-line-text {
|
|
color: var(--f-status-error, #ffa198);
|
|
}
|
|
|
|
.mock-diff-row[data-kind="hunk"] .mock-diff-line-text {
|
|
color: var(--f-text-tertiary, #71717a);
|
|
}
|
|
|
|
.mock-diff-row[data-kind="hunk"] .mock-diff-line-text {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mock-diff-attach-button {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--f-accent, #ff4f00);
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.mock-diff-row:not([data-kind="hunk"]):hover {
|
|
background: rgba(255, 79, 0, 0.06);
|
|
}
|
|
|
|
.mock-diff-row:not([data-kind="hunk"]):hover .mock-diff-attach-button {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
background: var(--f-accent-subtle, rgba(255, 79, 0, 0.1));
|
|
}
|
|
|
|
.mock-diff-row:not([data-kind="hunk"]):hover .mock-diff-line-number {
|
|
opacity: 0;
|
|
}
|
|
|
|
.mock-diff-empty {
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.mock-diff-empty-copy {
|
|
color: var(--f-text-tertiary, #71717a);
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
}
|