The Open Standard for Generative UI
.variant {
display: flex;
flex-direction: column;
gap: var(--space-xl);
padding: var(--space-l) 0;
}
.header {
display: flex;
flex-direction: column;
gap: var(--space-s);
}
.title {
margin: 0;
font: var(--text-heading-sm);
color: var(--text-neutral-primary);
}
.description {
margin: 0;
font: var(--text-body-default);
color: var(--text-neutral-secondary);
}
.preview {
min-height: 240px;
border-radius: var(--radius-3xl);
border: 4px solid var(--border-default);
padding: var(--space-3xl);
display: flex;
align-items: center;
justify-content: center;
}
.previewContainer {
border-radius: var(--radius-3xl);
background: var(--highlight-subtle);
padding: var(--space-2xs);
display: flex;
flex-direction: column;
gap: var(--space-2xs);
}
.previewToolbar {
padding: var(--space-s) var(--space-m);
display: flex;
align-items: center;
justify-content: flex-start;
}
.previewSurface {
min-height: 240px;
border-radius: var(--radius-3xl);
border: 1px solid var(--border-default);
background: var(--foreground);
padding: var(--space-2xl);
display: flex;
align-items: center;
justify-content: center;
}
.previewWithRightControls {
width: 100%;
max-width: 1080px;
border-radius: var(--radius-3xl);
border: 1px solid var(--border-default);
background: var(--highlight-subtle);
padding: var(--space-2xs);
display: grid;
grid-template-columns: minmax(0, 1fr) 260px;
gap: var(--space-2xs);
box-sizing: border-box;
}
.previewWithRightControlsSurface {
min-height: 320px;
border-radius: var(--radius-2xl);
background: var(--foreground);
padding: var(--space-xl);
display: flex;
align-items: flex-start;
justify-content: flex-start;
overflow: hidden;
}
.previewRightControls {
min-height: 320px;
border-radius: var(--radius-2xl);
background: var(--foreground);
padding: var(--space-l);
display: flex;
flex-direction: column;
gap: var(--space-m);
overflow-y: auto;
}
.prompt {
border-radius: var(--radius-3xl);
background: var(--highlight-subtle);
padding: var(--space-2xs);
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
}
.promptHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-s);
padding-right: var(--space-2xs);
}
.promptLabel {
margin: 0;
font: var(--text-label-sm);
color: var(--text-neutral-secondary);
padding: var(--space-s) var(--space-m);
}
.promptField {
min-height: 80px;
border-radius: var(--radius-xl);
border: 1px solid var(--border-default);
background: var(--foreground);
padding: var(--space-m) var(--space-m);
display: flex;
align-items: flex-start;
}
.placeholder {
font: var(--text-label-default);
color: var(--text-neutral-tertiary);
}
.promptText {
width: 100%;
margin: 0;
white-space: pre-wrap;
word-break: break-word;
font: var(--text-body-default);
color: var(--text-neutral-primary);
}
@media (max-width: 1120px) {
.previewWithRightControls {
max-width: 100%;
grid-template-columns: 1fr;
}
.previewWithRightControlsSurface,
.previewRightControls {
min-height: auto;
}
}