Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/* Create Project follows the shell's tonal surfaces and divider-free rhythm. */
.project-create-dialog-overlay {
padding: 24px;
}
.project-create-dialog {
display: flex;
width: min(100%, 480px);
max-height: min(640px, calc(100vh - 48px));
flex-direction: column;
overflow: hidden;
border: 0;
border-radius: var(--radius-lg-plus);
background: var(--ds-bg-elevated-opaque);
box-shadow: var(--ds-shadow-dialog);
padding: 0;
}
.project-create-dialog-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 18px 18px 14px;
}
.project-create-dialog-heading {
min-width: 0;
flex: 1;
}
.project-edit-dialog-description {
margin: 4px 0 0;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
}
.project-create-dialog-title {
margin: 0;
color: var(--ds-text-primary);
font-size: var(--text-lg);
font-weight: var(--font-weight-strong);
letter-spacing: var(--tracking-tight);
line-height: var(--leading-heading);
}
.project-create-dialog-close {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
margin: -2px -2px 0 0;
border-radius: var(--radius-sm);
color: var(--ds-text-muted);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-dialog-close:hover:not(:disabled) {
background: var(--ds-tile-hover);
color: var(--ds-text-primary);
}
.project-create-dialog-form {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
overflow: hidden;
}
.project-create-dialog-content {
display: flex;
min-height: 0;
flex-direction: column;
gap: 16px;
overflow-y: auto;
padding: 0 18px 4px;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.project-create-dialog-section {
min-width: 0;
flex-shrink: 0;
}
.project-create-dialog-section-head {
display: flex;
align-items: center;
justify-content: space-between;
min-width: 0;
gap: 8px;
margin-bottom: 6px;
}
.project-create-dialog-section-title {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 6px;
margin: 0;
color: var(--ds-text-primary);
font-size: var(--text-sm-plus);
font-weight: var(--font-weight-medium);
line-height: var(--leading-compact-plus);
}
.project-create-dialog-name-count {
margin-left: auto;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.project-create-dialog-name-field {
min-width: 0;
min-height: 32px;
padding: 6px 12px;
font-size: var(--text-base);
font-weight: var(--font-weight-normal);
line-height: var(--leading-normal);
}
.project-create-dialog-name-field::placeholder {
color: var(--ds-text-muted);
}
.project-create-dialog-source {
display: inline-flex;
align-items: center;
gap: 4px;
flex: 0 0 auto;
border-radius: var(--radius-full);
background: var(--ds-tile);
padding: 4px 8px;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
white-space: nowrap;
}
.project-create-dialog-source-options {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.project-create-dialog-source-option {
display: inline-flex;
min-height: 34px;
align-items: center;
justify-content: center;
gap: 6px;
appearance: none;
border: 0;
border-radius: var(--radius-md);
background: var(--ds-tile);
color: var(--ds-text-secondary);
font-size: var(--text-sm-plus);
font-weight: var(--font-weight-medium);
line-height: var(--leading-compact-plus);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-dialog-source-option:hover:not(:disabled) {
background: var(--ds-tile-hover);
color: var(--ds-text-primary);
}
.project-create-dialog-source-option.is-active {
background: var(--ds-tile-deep);
color: var(--ds-text-primary);
}
.project-create-dialog-source-option:focus-visible,
.project-create-dialog-location:focus-visible {
outline: none;
box-shadow: 0 0 0 2px color-mix(in oklab, var(--ds-accent) 22%, transparent);
}
.project-create-dialog-url-field {
min-width: 0;
min-height: 32px;
padding: 6px 12px;
font-size: var(--text-base);
font-weight: var(--font-weight-normal);
line-height: var(--leading-normal);
}
.project-create-dialog-url-field::placeholder {
color: var(--ds-text-muted);
}
.project-create-dialog-location {
display: flex;
width: 100%;
align-items: center;
gap: 10px;
margin-top: 8px;
appearance: none;
border: 0;
border-radius: var(--radius-md);
background: var(--ds-tile);
padding: 10px 12px;
color: var(--ds-text-primary);
text-align: left;
transition: background var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-dialog-location:hover:not(:disabled) {
background: var(--ds-tile-hover);
}
.project-create-dialog-location-icon {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
background: var(--ds-tile-deep);
color: var(--ds-text-secondary);
}
.project-create-dialog-location.is-chosen .project-create-dialog-location-icon {
color: var(--ds-accent);
}
.project-create-dialog-location-copy {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 2px;
}
.project-create-dialog-location-title {
overflow: hidden;
color: var(--ds-text-primary);
font-size: var(--text-md);
font-weight: var(--font-weight-medium);
line-height: var(--leading-compact-plus);
text-overflow: ellipsis;
white-space: nowrap;
}
.project-create-dialog-location-path {
overflow: hidden;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
text-overflow: ellipsis;
white-space: nowrap;
}
.project-create-dialog-clone-hint {
margin: 8px 0 0;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
}
.project-create-dialog-count {
display: inline-flex;
min-width: 18px;
height: 18px;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
background: var(--ds-tile-deep);
padding: 0 5px;
color: var(--ds-text-secondary);
font-size: var(--text-xs);
font-variant-numeric: tabular-nums;
line-height: var(--leading-none);
}
.project-create-dialog-folder-list {
display: flex;
max-height: min(220px, 30vh);
flex-direction: column;
gap: 4px;
overflow-y: auto;
border-radius: var(--radius-md);
background: var(--ds-tile);
padding: 4px;
scrollbar-gutter: stable;
}
.project-create-folder-row,
.project-create-add-folder {
display: flex;
min-width: 0;
align-items: center;
border-radius: var(--radius-sm);
}
.project-create-folder-row {
min-height: 48px;
gap: 8px;
padding: 6px 8px;
transition: background var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-folder-row:hover {
background: var(--ds-tile-hover);
}
.project-create-folder-row.is-primary {
background: var(--ds-tile-hover);
}
.project-create-folder-icon {
display: inline-flex;
width: 24px;
height: 24px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
color: var(--ds-text-muted);
}
.project-create-folder-row.is-primary .project-create-folder-icon {
color: var(--ds-accent);
}
.project-create-folder-copy {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 2px;
}
.project-create-folder-name,
.project-create-folder-path {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.project-create-folder-name {
color: var(--ds-text-primary);
font-size: var(--text-md);
font-weight: var(--font-weight-medium);
line-height: var(--leading-compact);
}
.project-create-folder-path {
color: var(--ds-text-muted);
font-family: var(--font-mono);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
}
.project-create-primary-tag {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 4px;
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
white-space: nowrap;
}
.project-create-primary-tag svg {
color: var(--ds-text-secondary);
}
.project-create-folder-remove {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
color: var(--ds-text-muted);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-folder-remove:hover:not(:disabled) {
background: color-mix(in oklab, var(--ds-error) 13%, transparent);
color: var(--ds-error);
}
/* Promotes one member folder to the group's primary root. */
.project-create-folder-primary {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
color: var(--ds-text-muted);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-folder-primary:hover:not(:disabled) {
background: color-mix(in oklab, var(--ds-accent) 13%, transparent);
color: var(--ds-accent);
}
.project-create-add-folder {
width: 100%;
min-height: 48px;
justify-content: flex-start;
gap: 10px;
margin-top: 8px;
border: 0;
background: var(--ds-tile);
padding: 8px 10px;
color: var(--ds-text-secondary);
text-align: left;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.project-create-add-folder:hover:not(:disabled) {
background: var(--ds-tile-hover);
color: var(--ds-text-primary);
}
.project-create-add-folder.is-empty {
min-height: 48px;
margin-top: 0;
background: var(--ds-tile-hover);
}
.project-create-add-folder.is-empty:hover:not(:disabled) {
background: var(--ds-tile-deep);
}
.project-create-add-folder-icon {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
color: var(--ds-accent);
}
.project-create-add-folder-copy {
display: flex;
min-width: 0;
flex-direction: column;
gap: 2px;
}
.project-create-add-folder-title {
color: inherit;
font-size: var(--text-md);
font-weight: var(--font-weight-medium);
line-height: var(--leading-compact-plus);
}
.project-create-dialog-actions {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: flex-end;
gap: 8px;
padding: 14px 18px 18px;
}
@media (max-width: 520px) {
.project-create-dialog-overlay {
align-items: flex-end;
padding: 10px;
}
.project-create-dialog {
width: 100%;
max-height: calc(100vh - 20px);
border-radius: var(--radius-lg-plus);
}
.project-create-dialog-head {
padding: 16px 16px 12px;
}
.project-create-dialog-content {
gap: 16px;
padding: 0 16px 4px;
}
.project-create-dialog-actions {
padding: 12px 16px 16px;
}
.project-create-dialog-actions .btn {
flex: 1 1 0;
}
}
.remote-project-picker { display: grid; gap: 12px; }
/* Remote folder selection has its own navigation space and fixed actions. */
.remote-folder-dialog-overlay { padding: 24px; }
.remote-folder-dialog {
width: min(100%, 600px); height: min(560px, calc(100vh - 48px));
display: flex; flex-direction: column; min-width: 0; overflow: hidden;
padding: 0; border: 0; border-radius: var(--radius-lg-plus);
background: var(--ds-bg-elevated-opaque); box-shadow: var(--ds-shadow-dialog);
}
.remote-folder-dialog-navigation { padding: 0 18px 12px; display: grid; gap: 8px; }
.remote-folder-dialog-path-entry { display: flex; gap: 8px; min-width: 0; }
.remote-folder-dialog-path-entry input { min-width: 0; flex: 1; }
.remote-folder-dialog-path-entry .btn { flex-shrink: 0; }
.remote-folder-dialog-directory { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 12px; overscroll-behavior: contain; }
.remote-project-browser-path { overflow-wrap: anywhere; color: var(--ds-text-secondary); font-size: var(--text-sm); }
.remote-folder-dialog-entries { display: grid; gap: 4px; }
.remote-folder-dialog-entry { width: 100%; min-height: 44px; justify-content: flex-start; gap: 10px; }
.remote-folder-dialog-entry span { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.remote-folder-dialog-entry svg { flex-shrink: 0; }
@media (max-width: 480px) {
.remote-folder-dialog-overlay { padding: 12px; }
.remote-folder-dialog { height: min(560px, calc(100vh - 24px)); }
.remote-project-picker .remote-folder-dialog-path-entry { flex-wrap: wrap; }
.remote-project-picker .remote-folder-dialog-path-entry input { flex-basis: 100%; }
}
.remote-project-error { color: var(--ds-error); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) {
.project-create-dialog-close,
.project-create-dialog-name-field,
.project-create-dialog-source-option,
.project-create-dialog-location,
.project-create-folder-row,
.project-create-folder-remove,
.project-create-folder-primary,
.project-create-add-folder {
transition: none;
}
}