tscircuit/ti
ti tscircuit library
- Version
- 1.0.194
- License
- unset
- Stars
- 0
system-block-ui/src/styles.css
:root {
color: #17202a;
background: #eef1f5;
font-family:
Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
--brand: #c72127;
--brand-dark: #9f171c;
--ink: #17202a;
--muted: #687381;
--line: #d9dee6;
--panel: #ffffff;
--soft: #f6f7f9;
--power: #d97706;
--data: #377bd4;
--control: #8a5bc7;
--analog: #d78a2d;
--rf: #1a9a82;
--motor: #626d7a;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
button,
input,
select {
font: inherit;
}
button {
color: inherit;
}
.app-shell {
display: grid;
grid-template-rows: 58px minmax(0, 1fr);
height: 100%;
background: #eef1f5;
}
.topbar {
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
min-width: 0;
padding: 0 18px;
color: white;
background: #171b21;
border-bottom: 1px solid #090b0e;
box-shadow: 0 1px 5px rgb(13 18 25 / 28%);
}
.brand,
.topbar-actions,
.brand-mark,
.status-chip,
.toolbar-group,
.panel-heading,
.output-toolbar,
.output-toolbar-title,
.button-content {
display: flex;
align-items: center;
}
.brand {
min-width: 0;
gap: 12px;
}
.brand-mark {
justify-content: center;
width: 34px;
height: 34px;
color: white;
background: var(--brand);
border-radius: 7px;
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
}
.brand-copy {
min-width: 0;
}
.brand-title {
overflow: hidden;
margin: 0;
font-size: 15px;
font-weight: 680;
line-height: 1.2;
letter-spacing: 0.01em;
text-overflow: ellipsis;
white-space: nowrap;
}
.topbar-actions {
gap: 8px;
}
.status-chip {
gap: 7px;
margin-right: 6px;
padding: 6px 9px;
color: #bbc3cd;
font-size: 11px;
font-weight: 600;
background: #222832;
border: 1px solid #343b46;
border-radius: 999px;
}
.status-dot {
width: 7px;
height: 7px;
background: #51c58a;
border-radius: 50%;
box-shadow: 0 0 0 3px rgb(81 197 138 / 12%);
}
.app-grid {
display: grid;
grid-template-columns: 270px minmax(420px, 1fr) 390px;
min-height: 0;
}
.palette-panel,
.output-panel {
position: relative;
z-index: 5;
display: flex;
min-width: 0;
min-height: 0;
flex-direction: column;
background: var(--panel);
}
.palette-panel {
border-right: 1px solid var(--line);
}
.output-panel {
border-left: 1px solid var(--line);
}
.panel-heading {
justify-content: space-between;
min-height: 53px;
padding: 0 16px;
border-bottom: 1px solid var(--line);
}
.panel-title {
margin: 0;
color: #202832;
font-size: 12px;
font-weight: 750;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.count-badge {
min-width: 24px;
padding: 3px 7px;
color: #66717e;
font-size: 10px;
font-weight: 700;
text-align: center;
background: #eef1f4;
border-radius: 999px;
}
.palette-search {
position: relative;
padding: 12px 14px 9px;
}
.palette-search svg {
position: absolute;
top: 21px;
left: 24px;
color: #8b95a2;
}
.palette-search input {
width: 100%;
height: 36px;
padding: 0 12px 0 34px;
color: var(--ink);
font-size: 12px;
background: #f4f6f8;
border: 1px solid #dce1e7;
border-radius: 6px;
outline: none;
}
.palette-search input:focus {
background: white;
border-color: #b7c0cb;
box-shadow: 0 0 0 3px rgb(55 123 212 / 9%);
}
.palette-help {
margin: 0 14px 9px;
padding: 9px 10px;
color: #64707e;
font-size: 10.5px;
line-height: 1.45;
background: #f8f4ef;
border: 1px solid #ebe0d2;
border-radius: 6px;
}
.palette-list {
min-height: 0;
padding: 1px 9px 18px;
overflow: auto;
}
.category-label {
position: sticky;
top: 0;
z-index: 2;
margin: 0;
padding: 12px 7px 7px;
color: #8a94a0;
font-size: 9.5px;
font-weight: 750;
letter-spacing: 0.09em;
text-transform: uppercase;
background: linear-gradient(#fff 78%, rgb(255 255 255 / 0%));
}
.palette-card {
display: grid;
grid-template-columns: minmax(0, 1fr);
align-items: center;
width: 100%;
margin-bottom: 5px;
padding: 10px 11px;
text-align: left;
background: white;
border: 1px solid #e1e5ea;
border-radius: 7px;
cursor: grab;
transition:
border-color 120ms ease,
box-shadow 120ms ease,
transform 120ms ease;
}
.palette-card:hover {
border-color: #b8c1cc;
box-shadow: 0 3px 10px rgb(30 42 57 / 8%);
transform: translateY(-1px);
}
.palette-card:active {
cursor: grabbing;
}
.palette-card[aria-disabled="true"] {
opacity: 0.5;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.block-copy {
display: block;
min-width: 0;
}
.block-title {
display: block;
color: #2a323c;
font-size: 11px;
font-weight: 680;
line-height: 1.35;
overflow-wrap: anywhere;
white-space: normal;
}
.canvas-panel {
position: relative;
min-width: 0;
min-height: 0;
overflow: hidden;
background: #f1f3f6;
}
.flow-canvas {
position: absolute;
inset: 0;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.example-loader {
display: block;
flex: none;
padding: 12px 14px;
background: #f7f8fa;
border-bottom: 1px solid var(--line);
}
.example-select {
width: 100%;
min-width: 0;
height: 37px;
padding: 0 30px 0 11px;
color: #46525f;
font-size: 10.5px;
font-weight: 680;
background: white;
border: 1px solid #d6dce4;
border-radius: 8px;
box-shadow: 0 1px 2px rgb(35 47 61 / 5%);
cursor: pointer;
}
.example-select:hover:not(:disabled) {
color: #202832;
border-color: #bfc7d0;
}
.example-select:focus-visible {
outline: 2px solid var(--data);
outline-offset: 2px;
}
.example-select:disabled {
color: #89939f;
cursor: wait;
opacity: 0.72;
}
.canvas-toolbar {
position: absolute;
top: 12px;
left: 50%;
z-index: 10;
display: flex;
align-items: center;
gap: 5px;
padding: 5px;
background: rgb(255 255 255 / 94%);
border: 1px solid #d6dce4;
border-radius: 8px;
box-shadow: 0 5px 18px rgb(35 47 61 / 10%);
transform: translateX(-50%);
backdrop-filter: blur(8px);
}
.toolbar-label {
padding: 0 8px;
color: #6e7885;
font-size: 10px;
font-weight: 650;
white-space: nowrap;
}
.toolbar-separator {
width: 1px;
height: 21px;
margin: 0 2px;
background: #e1e5ea;
}
.icon-button,
.secondary-button,
.primary-button {
border: 0;
cursor: pointer;
}
.icon-button {
display: flex;
align-items: center;
justify-content: center;
width: 31px;
height: 31px;
color: #53606e;
background: transparent;
border-radius: 5px;
}
.icon-button:hover {
color: #202832;
background: #edf0f3;
}
.secondary-button,
.primary-button {
height: 33px;
padding: 0 11px;
font-size: 11px;
font-weight: 680;
border-radius: 6px;
}
.secondary-button {
color: #e2e6eb;
background: #272d36;
border: 1px solid #3b434e;
}
.secondary-button:hover {
background: #313844;
}
.primary-button {
color: white;
background: var(--brand);
border: 1px solid #d83b40;
box-shadow: 0 1px 1px rgb(0 0 0 / 20%);
}
.primary-button:hover {
background: #d0282e;
}
.primary-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
opacity: 0.48;
cursor: not-allowed;
}
.button-content {
justify-content: center;
gap: 7px;
}
.drop-hint {
position: absolute;
right: 16px;
bottom: 15px;
z-index: 8;
display: flex;
align-items: center;
gap: 7px;
padding: 7px 10px;
color: #7b8591;
font-size: 10px;
font-weight: 600;
background: rgb(255 255 255 / 85%);
border: 1px solid #dce1e7;
border-radius: 6px;
pointer-events: none;
}
.output-toolbar {
position: relative;
z-index: 20;
min-height: 53px;
justify-content: space-between;
gap: 12px;
padding: 0 12px 0 15px;
background: white;
border-bottom: 1px solid var(--line);
}
.output-toolbar-title {
min-width: 0;
gap: 7px;
margin: 0;
color: #29333e;
font-size: 11px;
font-weight: 720;
}
.output-toolbar-title svg {
width: 17px;
height: 17px;
flex: none;
color: #6c7784;
}
.output-toolbar .download-menu {
position: relative;
flex: none;
}
.generated-code-pane {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
background: #20252c;
}
.generated-code-file {
display: flex;
min-height: 39px;
flex: none;
align-items: center;
justify-content: space-between;
padding: 0 13px 0 15px;
color: #788390;
font-size: 10px;
background: #f6f7f9;
border-bottom: 1px solid #e0e4e9;
}
.generated-code-file span:last-child {
color: #98a1ac;
font-size: 8px;
font-weight: 720;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.code-view {
min-height: 0;
flex: 1;
margin: 0;
padding: 16px;
overflow: auto;
color: #d8e0e9;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-size: 10.5px;
line-height: 1.6;
tab-size: 2;
overflow-wrap: anywhere;
white-space: pre-wrap;
background: #20252c;
}
.code-view:focus-visible {
outline: 2px solid #6cbde1;
outline-offset: -2px;
}
.code-view pre {
margin: 0;
font: inherit;
white-space: inherit;
}
.code-view code {
font: inherit;
}
.syntax-comment {
color: #94a0ad;
font-style: italic;
}
.syntax-keyword,
.syntax-operator {
color: #ff8293;
}
.syntax-string {
color: #acd48f;
}
.syntax-number {
color: #e9bc7b;
}
.syntax-tag {
color: #6fc9e8;
}
.syntax-attribute {
color: #d0b1ff;
}
.syntax-type {
color: #f4d17e;
}
.syntax-punctuation {
color: #aeb9c5;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.download-menu-trigger {
width: 100%;
}
.output-toolbar .download-menu-trigger {
min-width: 112px;
}
.download-menu-trigger[aria-disabled="true"] {
cursor: wait;
}
.download-menu-chevron {
width: 14px;
height: 14px;
margin-left: auto;
}
.download-spinner {
width: 13px;
height: 13px;
border: 2px solid rgb(255 255 255 / 38%);
border-top-color: white;
border-radius: 50%;
animation: spin 0.75s linear infinite;
}
.download-menu-popover {
position: absolute;
top: calc(100% + 7px);
right: 0;
bottom: auto;
z-index: 40;
width: min(310px, calc(100vw - 28px));
max-height: min(330px, calc(100vh - 130px));
padding: 5px;
overflow-y: auto;
background: white;
border: 1px solid #d5dbe2;
border-radius: 8px;
box-shadow: 0 12px 30px rgb(30 42 57 / 18%);
}
.download-menu-item {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) auto;
gap: 9px;
align-items: center;
width: 100%;
padding: 8px;
color: #28323d;
text-align: left;
background: transparent;
border: 0;
border-radius: 6px;
cursor: pointer;
}
.download-menu-item:hover,
.download-menu-item:focus-visible {
background: #f2f5f7;
outline: none;
}
.download-menu-item:focus-visible {
box-shadow: inset 0 0 0 2px rgb(55 123 212 / 22%);
}
.download-menu-item[aria-disabled="true"] {
opacity: 0.5;
cursor: not-allowed;
}
.download-menu-item[aria-disabled="true"]:hover {
background: transparent;
}
.download-menu-item-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
color: #596674;
background: #eef1f4;
border-radius: 6px;
}
.download-menu-item-icon svg {
width: 16px;
height: 16px;
}
.download-menu-item-copy {
display: flex;
min-width: 0;
flex-direction: column;
gap: 2px;
}
.download-menu-item-copy strong {
overflow: hidden;
font-size: 10.5px;
font-weight: 720;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.download-menu-item-copy small {
overflow: hidden;
color: #7a8591;
font-size: 8.5px;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.download-menu-extension {
padding: 3px 5px;
color: #6e7986;
font-size: 7.5px;
font-weight: 780;
letter-spacing: 0.05em;
background: #f3f5f7;
border: 1px solid #e1e5ea;
border-radius: 4px;
}
.notice {
position: absolute;
bottom: 17px;
left: 50%;
z-index: 30;
max-width: min(520px, 80%);
padding: 10px 13px;
color: white;
font-size: 11px;
font-weight: 600;
line-height: 1.4;
background: #252b33;
border: 1px solid rgb(255 255 255 / 10%);
border-radius: 7px;
box-shadow: 0 8px 24px rgb(25 33 43 / 24%);
transform: translateX(-50%);
}
.notice[data-tone="error"] {
background: #8f292d;
}
.notice[data-tone="success"] {
background: #256b4a;
}
.subcircuit-picker-backdrop {
position: fixed;
inset: 0;
z-index: 100;
display: grid;
place-items: center;
padding: 28px;
background: rgb(22 29 38 / 54%);
backdrop-filter: blur(5px);
}
.subcircuit-picker-modal {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
width: min(620px, calc(100vw - 56px));
height: min(680px, calc(100vh - 56px));
overflow: hidden;
background: white;
border: 1px solid rgb(255 255 255 / 48%);
border-radius: 14px;
box-shadow:
0 30px 80px rgb(10 17 26 / 32%),
0 8px 24px rgb(10 17 26 / 18%);
}
.subcircuit-picker-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 20px 22px;
background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
border-bottom: 1px solid #dfe4ea;
}
.subcircuit-picker-header h2 {
margin: 0;
color: #1d2630;
font-size: 22px;
font-weight: 760;
line-height: 1.2;
}
.subcircuit-picker-close {
display: grid;
width: 34px;
height: 34px;
flex: none;
place-items: center;
padding: 0 0 2px;
color: #687482;
font-size: 24px;
line-height: 1;
background: #f1f3f6;
border: 1px solid #dce1e7;
border-radius: 7px;
cursor: pointer;
}
.subcircuit-picker-close:hover,
.subcircuit-picker-close:focus-visible {
color: #922329;
background: #fff;
border-color: #c7cfd8;
outline: none;
}
.subcircuit-picker-catalog {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
min-height: 0;
}
.subcircuit-picker-results-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 18px 22px 10px;
color: #5f6b78;
font-size: 11px;
font-weight: 770;
letter-spacing: 0.07em;
text-transform: uppercase;
}
.subcircuit-picker-results-heading small {
display: grid;
min-width: 25px;
height: 25px;
place-items: center;
color: #697582;
font-size: 10px;
letter-spacing: 0;
background: #eef1f4;
border-radius: 999px;
}
.subcircuit-picker-results-summary,
.ti-recommendation-fetching {
display: flex;
align-items: center;
}
.subcircuit-picker-results-summary {
gap: 10px;
}
.ti-recommendation-fetching {
gap: 6px;
color: #22734b;
font-size: 10px;
font-weight: 650;
letter-spacing: 0;
text-transform: none;
}
.ti-recommendation-fetching i {
width: 11px;
height: 11px;
border: 2px solid #c8ead8;
border-top-color: #22734b;
border-radius: 50%;
animation: spin 0.75s linear infinite;
}
.subcircuit-picker-results {
min-height: 0;
margin: 0 18px 20px;
overflow-y: auto;
border: 1px solid #dfe4e9;
border-radius: 9px;
}
.ti-portfolio-recommendations {
background: #f6fbf8;
border-bottom: 1px solid #dce7e1;
}
.ti-portfolio-recommendations-heading,
.ti-portfolio-part div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.ti-portfolio-recommendations-heading {
padding: 9px 15px;
color: #22734b;
border-bottom: 1px solid #dce7e1;
}
.ti-portfolio-recommendations-heading strong {
font-size: 10px;
font-weight: 750;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.ti-portfolio-recommendations-heading small,
.ti-portfolio-part small {
flex: none;
padding: 3px 7px;
color: #22734b;
font-size: 9px;
font-weight: 720;
line-height: 1.2;
background: #edf8f2;
border: 1px solid #c8ead8;
border-radius: 999px;
}
.ti-portfolio-part {
display: flex;
width: 100%;
min-height: 50px;
flex-direction: column;
justify-content: center;
gap: 4px;
padding: 12px 15px;
color: #29343f;
text-align: left;
background: #fbfdfc;
border: 0;
cursor: pointer;
}
.ti-portfolio-part + .ti-portfolio-part {
border-top: 1px solid #dfe9e3;
}
.ti-portfolio-part:hover,
.ti-portfolio-part:focus-visible {
background: #edf8f2;
outline: none;
}
.ti-portfolio-part strong {
font-size: 13px;
font-weight: 720;
}
.ti-portfolio-part span {
color: #697582;
font-size: 12px;
line-height: 1.4;
}
.subcircuit-candidate {
display: flex;
width: 100%;
min-height: 50px;
flex-direction: column;
justify-content: center;
gap: 4px;
padding: 13px 15px;
color: #29343f;
line-height: 1.35;
text-align: left;
background: white;
border: 0;
cursor: pointer;
}
.subcircuit-candidate strong {
font-size: 13px;
font-weight: 720;
}
.subcircuit-candidate-heading {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.subcircuit-candidate-badges {
display: flex;
flex: none;
align-items: center;
gap: 5px;
}
.subcircuit-candidate-badges small {
flex: none;
padding: 3px 7px;
color: #22734b;
font-size: 9px;
font-weight: 720;
line-height: 1.2;
background: #edf8f2;
border: 1px solid #c8ead8;
border-radius: 999px;
}
.subcircuit-candidate-badges small[data-tone="current"] {
color: #697582;
background: #f1f3f5;
border-color: #dce1e7;
}
.subcircuit-candidate span {
display: -webkit-box;
overflow: hidden;
color: #697582;
font-size: 12px;
font-weight: 450;
line-height: 1.4;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.subcircuit-candidate + .subcircuit-candidate {
border-top: 1px solid #e7eaee;
}
.subcircuit-candidate:hover,
.subcircuit-candidate:focus-visible {
color: #9f2026;
background: #faf4f4;
outline: none;
}
.subcircuit-candidate:disabled {
color: #29343f;
background: #f8f9fa;
cursor: default;
}
.subcircuit-candidate:focus-visible {
box-shadow: inset 0 0 0 2px rgb(199 33 39 / 18%);
}
.subcircuit-picker-empty {
display: grid;
min-height: 160px;
place-items: center;
padding: 24px;
color: #7b8692;
font-size: 12px;
text-align: center;
}
@media (max-width: 1180px) {
.app-grid {
grid-template-columns: 238px minmax(390px, 1fr) 330px;
}
.status-chip {
display: none;
}
}
@media (max-width: 900px) {
.app-grid {
grid-template-columns: 210px minmax(390px, 1fr);
}
.output-panel {
display: none;
}
.subcircuit-picker-backdrop {
padding: 18px;
}
.subcircuit-picker-modal {
width: calc(100vw - 36px);
height: calc(100vh - 36px);
}
}