Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534.markdown-session-link { display: inline; padding: 1px 5px; border: 0; border-radius: 4px; background: var(--v2-background-bg-layer-02); box-shadow: inset 0 0 0 1px var(--v2-border-border-base); color: var(--v2-text-text-accent); font: inherit; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone;}
.markdown-session-link:hover { color: var(--v2-text-text-accent-hover); text-decoration: underline; text-underline-offset: 2px;}
.markdown-session-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px;}
.markdown-session-id { font-family: var(--font-family-mono);}
[data-component="markdown"] { --markdown-inline-code-path-color: var(--v2-text-text-code-path); --markdown-inline-code-color: var(--v2-text-text-code-accent); --markdown-inline-code-bg-mix: 8%; --markdown-shell-code-background: var(--v2-background-bg-layer-02); --markdown-shell-code-border: var(--v2-border-border-muted); --markdown-shell-code-color: var(--v2-text-text-base); --markdown-shell-code-token-color: currentColor;
/* Reset & Base Typography */ min-width: 0; max-width: 100%; overflow-wrap: break-word; color: var(--v2-text-text-base); font-family: var(--font-family-sans); font-size: var(--font-size-base); /* 14px */ line-height: 160%; /* Shells such as the app's turn off selection for chrome; Markdown is content, so it stays selectable. */ -webkit-user-select: text; user-select: text;
[data-markdown-word] { display: inline; }
:is([data-markdown-word], code)[data-markdown-enter] { animation: markdown-word-enter 180ms ease-out both; }
/* Spacing for flow */ > *:first-child { margin-top: 0; } > *:last-child { margin-bottom: 0; } > [data-markdown-block]:first-child > *:first-child { margin-top: 0; } > [data-markdown-block]:last-child > *:last-child { margin-bottom: 0; }
/* Pretty wrapping would move settled words as each token arrives, so the growing block stays greedy until it completes. */ &[data-streaming] > [data-markdown-block]:last-child { text-wrap-style: auto; }
/* Headings: Sized by level, distinguished by color and spacing */ h1 { font-size: 17px; color: var(--v2-text-text-base); font-weight: 600; margin-top: 28px; margin-bottom: 12px; line-height: var(--line-height-large); }
h2 { font-size: 15px; color: var(--v2-text-text-base); font-weight: 600; margin-top: 24px; margin-bottom: 10px; line-height: var(--line-height-large); }
h3 { font-size: 14px; color: var(--v2-text-text-base); font-weight: var(--font-weight-bold); margin-top: 20px; margin-bottom: 8px; line-height: var(--line-height-large); }
h4, h5, h6 { font-size: 14px; color: var(--v2-text-text-muted); font-weight: var(--font-weight-medium); margin-top: 20px; margin-bottom: 8px; line-height: var(--line-height-large); }
/* A heading's own bottom margin sets the gap to its section, so a block's larger top margin can't push the heading away from it. */ :is(h1, h2, h3, h4, h5, h6) + :is(p, ul, ol, blockquote, [data-component]), :is(h1, h2, h3, h4, h5, h6) + [data-component="markdown-code"] > pre { margin-top: 0; }
/* Emphasis & Strong: Neutral strong color */ strong, b { color: var(--v2-text-text-base); font-weight: var(--font-weight-bold); }
/* Paragraphs */ p { margin-bottom: 12px; }
/* Links */ a { color: var(--v2-text-text-accent); text-decoration: none; font-weight: inherit; }
a:hover { color: var(--v2-text-text-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
/* An atomic inline such as inline-block leaves a line break opportunity before the label, so the icon stays an empty inline box with out-of-flow artwork, which keeps it on the line of the label's first word. */ .markdown-link-favicon { position: relative; padding-inline-start: 14px; margin-inline-end: 4px; }
.markdown-link-favicon::before { content: ""; position: absolute; inset: 0; height: 14px; margin: auto 0; background: currentColor; mask: url("./markdown-globe.svg") center / contain no-repeat; }
.markdown-link-favicon[data-github]::before { mask-image: url("./markdown-github.svg"); }
.markdown-link-favicon img { position: absolute; inset: 0; display: block; width: 14px; height: 14px; margin: auto 0; border-radius: 2px; cursor: inherit; opacity: 0; }
.markdown-link-favicon img[data-loaded] { opacity: 1; }
a[data-local-link] { cursor: pointer; }
&[data-local-links] :not(pre) > code[data-inline-code-kind="path"]:not(a > code) { cursor: pointer; }
&[data-local-links] :not(pre) > code[data-inline-code-kind="path"]:not(a > code):hover { text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--markdown-inline-code-path-color) 40%, transparent); text-underline-offset: 2px; }
/* Lists */ ul, ol { margin-top: 8px; margin-bottom: 12px; margin-inline-start: 0; padding-inline-start: 32px; list-style-position: outside; }
ul { list-style-type: disc; }
ol { list-style-type: decimal; }
li { margin-bottom: 8px; }
li > p:first-child { display: inline; margin: 0; }
li:has(> input[type="checkbox"]), li:has(> p > input[type="checkbox"]) { position: relative; list-style-type: none; }
li > input[type="checkbox"], li > p > input[type="checkbox"] { position: absolute; top: 4px; inset-inline-start: -20px; margin: 0; }
li > p + p { display: block; margin-top: 0.5rem; }
li::marker { color: var(--v2-text-text-muted); }
/* Nested lists spacing */ li > ul, li > ol { margin-top: 0.25rem; margin-bottom: 0.25rem; padding-inline-start: 1rem; /* Minimal indent for nesting only */ }
li > ol { padding-inline-start: 1.75rem; }
/* Blockquotes */ blockquote { border-inline-start: 0.5px solid var(--v2-border-border-base); margin: 1rem 0; padding-inline-start: 0.5rem; color: var(--v2-text-text-muted); font-style: normal; }
/* Horizontal Rule - Invisible spacing only */ hr { border: none; height: 0; margin: 32px 0; }
.highlights { background: var(--color-background-stronger); color: var(--v2-text-text-muted); font-size: 13px; line-height: 20px; padding: 12px; border-radius: 6px; border: 0.5px solid var(--v2-border-border-base); }
[data-component="markdown-code"] { position: relative; direction: ltr; unicode-bidi: isolate; }
[data-component="markdown-mermaid"] { --pele-bg: var(--v2-background-bg-layer-02); --pele-fg: var(--v2-text-text-base); --pele-muted: var(--v2-text-text-muted); --pele-line: var(--v2-icon-icon-muted); --pele-surface: var(--v2-background-bg-base); --pele-surface-alt: var(--v2-background-bg-layer-03); --pele-border: var(--v2-border-border-strong); --pele-accent: var(--v2-text-text-accent); --pele-critical: var(--v2-state-fg-danger); --pele-error: var(--v2-state-fg-danger); --pele-font: var(--font-family-sans); --pele-font-mono: var(--font-family-mono); --pele-radius: 6px; min-height: 96px; margin: 12px 0 24px; padding: 16px; overflow: auto; border: 0.5px solid var(--v2-border-border-base); border-radius: 6px; background: var(--v2-background-bg-layer-02); direction: ltr; unicode-bidi: isolate; }
[data-component="markdown-mermaid"] > svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
[data-component="markdown-code"][data-mermaid-pending="true"] > pre, [data-component="markdown-code"][data-mermaid-pending="true"] > [data-slot="markdown-copy-button"], [data-component="markdown-code"][data-mermaid-ready="true"] > pre, [data-component="markdown-code"][data-mermaid-ready="true"] > [data-slot="markdown-copy-button"] { display: none; }
[data-component="markdown-code"][data-code-kind="shell"] .highlights { background: var(--markdown-shell-code-background); border-color: var(--markdown-shell-code-border); color: var(--markdown-shell-code-color); }
[data-component="markdown-code"][data-code-kind="shell"] code { color: var(--markdown-shell-code-color); }
[data-component="markdown-code"][data-code-kind="shell"] code span { color: var(--markdown-shell-code-token-color) !important; }
[data-slot="markdown-copy-button"] { position: absolute; top: 4px; inset-inline-end: 4px; transition: opacity 0.15s ease; z-index: 1;
@media (hover: hover) { opacity: 0; } }
[data-component="markdown-code"]:hover [data-slot="markdown-copy-button"], [data-slot="markdown-copy-button"]:focus-within { opacity: 1; }
[data-slot="markdown-copy-button"] [data-check-icon] { display: none; }
[data-slot="markdown-copy-button"][data-copied="true"] [data-copy-icon] { display: none; }
[data-slot="markdown-copy-button"][data-copied="true"] [data-check-icon] { display: inline-flex; }
pre { margin-top: 12px; margin-bottom: 24px; overflow: auto;
scrollbar-width: none; &::-webkit-scrollbar { display: none; } }
:not(pre) > code { direction: ltr; unicode-bidi: isolate; font-family: var(--font-family-mono); font-feature-settings: var(--font-family-mono--font-feature-settings); color: var(--v2-text-text-base); font-weight: var(--font-weight-medium); padding: 0 4px; border-radius: 4px; background: color-mix(in oklch, var(--v2-text-text-base) var(--markdown-inline-code-bg-mix), transparent); }
:not(pre) > code[data-inline-code-kind="path"] { color: var(--markdown-inline-code-path-color); padding: 0 2px; background: none; }
a.external-link > code[data-inline-code-kind="url"] { color: var(--markdown-inline-code-color); background: none; text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--markdown-inline-code-color) 25%, transparent); text-underline-offset: 2px; }
/* Tables: the Console's data table, a raised body inside a muted frame that also holds the header */ [data-component="markdown-table"] { margin: 16px 0; overflow-x: auto; padding: 2px; border-radius: 6px; background: var(--v2-background-bg-layer-01); box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted); }
table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--v2-text-text-base); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 440; line-height: var(--line-height-compact); letter-spacing: -0.04px; }
tbody { border-radius: 4px; background: var(--v2-background-bg-base); box-shadow: var(--v2-elevation-raised); }
th, td { text-align: start; vertical-align: top; }
th { padding: 8px 12px; color: var(--v2-text-text-faint); font-weight: 500; }
td { padding: 10px 12px; }
tbody tr:not(:last-child) td { border-bottom: 0.5px solid var(--v2-border-border-muted); }
tbody tr:first-child td:first-child { border-start-start-radius: 4px; }
tbody tr:first-child td:last-child { border-start-end-radius: 4px; }
tbody tr:last-child td:first-child { border-end-start-radius: 4px; }
tbody tr:last-child td:last-child { border-end-end-radius: 4px; }
/* Images */ img { cursor: zoom-in; max-width: 100%; height: auto; border-radius: 4px; margin: 1.5rem 0; display: block; }}
@keyframes markdown-word-enter { from { opacity: 0; } to { opacity: 1; }}
:root[data-motion="reduce"] { [data-component="markdown"] :is([data-markdown-word], code)[data-markdown-enter] { animation: none; }}
[data-component="markdown"] > * { unicode-bidi: plaintext;}
:root body [data-component="markdown"] { [data-slot="markdown-copy-button"]::after { box-sizing: border-box; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 5px 6px; border: 0; border-radius: 4px; background: var(--v2-background-bg-layer-01); box-shadow: var(--v2-elevation-floating); color: var(--v2-text-text-base); user-select: none; font-size: 11px; font-weight: 530; line-height: 12px; letter-spacing: 0.05px; font-variant-numeric: tabular-nums; font-variation-settings: "slnt" 0; }}
[data-component="markdown"] a.external-link:hover > code { text-decoration: underline; text-underline-offset: 2px;}