Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
61a0dd309This file is pinned to the selected release. Download the original to open it in your design tool.
/* The native checkbox supplies keyboard interaction and switch semantics. */
.theme-switch {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.65rem;
min-height: 2.55rem;
padding: 0 0.8rem;
border: 1px solid var(--border);
border-radius: 0.48rem;
background: var(--panel);
color: var(--muted);
cursor: pointer;
}
.theme-switch input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
opacity: 0;
cursor: pointer;
}
.theme-switch:focus-within {
outline: 3px solid var(--accent);
outline-offset: 3px;
}
.theme-switch__icon {
width: 1.15rem;
height: 1.15rem;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
pointer-events: none;
}
.theme-switch__moon {
fill: currentColor;
stroke: none;
}
.theme-switch__track {
width: 2.85rem;
height: 1.5rem;
padding: 2px;
border: 1px solid var(--muted);
border-radius: 999px;
background: var(--muted);
pointer-events: none;
}
.theme-switch__track::after {
content: '';
display: block;
width: 1.125rem;
height: 1.125rem;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 4px rgb(0 0 0 / 28%);
transition: transform 140ms ease;
}
.theme-switch input:checked + .theme-switch__track {
background: linear-gradient(180deg, #bf4d12, #873305);
border-color: #ff7b2e;
box-shadow: 0 0 0 1px rgb(255 113 30 / 15%);
}
.theme-switch input:checked + .theme-switch__track::after {
transform: translateX(1.3rem);
}
@media (prefers-reduced-motion: reduce) {
.theme-switch__track::after {
transition: none;
}
}
:root[data-theme='dark'] {
color-scheme: dark;
--bg:
radial-gradient(
ellipse at top left,
rgb(141 65 25 / 10%),
transparent 35%
),
radial-gradient(
ellipse at 80% 10%,
rgb(13 72 90 / 16%),
transparent 45%
),
linear-gradient(160deg, #0b1319, #080f13 70%, #111719);
--panel: #101b22;
--panel-strong: #17252e;
--text: #e4edf4;
--muted: #a8bac7;
--border: #2b414e;
--brand: #ff802f;
--brand-strong: #ff8c42;
--accent: #71e0e1;
--accent-strong: #a2f7f3;
--accent-soft: #12343a;
--canvas: #0c171e;
--shadow: 0 12px 32px rgb(0 0 0 / 24%);
--surface-raised: linear-gradient(145deg, #1b2a34, #131f27);
--surface-hover: #20323e;
--surface-selected: rgb(255 117 31 / 16%);
--border-soft: #21333e;
--border-accent: #21636a;
--border-brand: #86401d;
--focus-ring: #65dce0;
scrollbar-color: #415763 #111c23;
}
[data-theme='dark']
:is(
.brand-lockup h1,
.dropzone h2,
.hero-proof strong,
.inline-field,
.inline-field select
) {
color: var(--text);
}
[data-theme='dark'] :is(.topbar__description, .dropzone__copy, .footer-inline) {
color: var(--muted);
}
[data-theme='dark'] .panel:not(.is-sidebar-visible) {
background: linear-gradient(135deg, #13212a, #0e181f);
border-color: var(--border);
box-shadow:
var(--shadow),
inset 0 1px 0 rgb(183 215 236 / 5%);
}
[data-theme='dark'] :is(.file-pill, .inline-field, .theme-switch, .icon-link) {
background: var(--surface-raised);
border-color: var(--border);
box-shadow: inset 0 1px 0 rgb(190 220 240 / 5%);
}
[data-theme='dark'] :is(.toolbar .file-pill:first-of-type, .icon-link) {
border-color: var(--border-brand);
}
[data-theme='dark'] :is(.toolbar .file-pill--secondary, .file-pill--ghost) {
border-color: var(--border-accent);
}
[data-theme='dark'] :is(.file-pill:hover, .icon-link:hover) {
background: var(--surface-hover);
}
[data-theme='dark'] .file-pill--altium {
background: linear-gradient(180deg, #d75508, #a83802);
border-color: #f37929;
box-shadow:
inset 0 1px 5px rgb(255 179 80 / 28%),
0 4px 16px rgb(204 71 0 / 16%);
color: #fff;
}
[data-theme='dark'] .support-button {
color: #182026;
}
[data-theme='dark'] .file-pill--kicad {
background: linear-gradient(180deg, #007f85, #00525b);
border-color: #0ac4cd;
box-shadow:
inset 0 1px 5px rgb(69 239 225 / 20%),
0 4px 16px rgb(0 174 185 / 12%);
color: #edffff;
}
[data-theme='dark'] .footer-inline__separator {
background: var(--border);
}
[data-theme='dark'] .dropzone {
background: linear-gradient(115deg, #0b151c, #11222d 70%, #0b151c);
}
[data-theme='dark'] .hero-proof {
background: linear-gradient(150deg, #12212a, #0b151c);
border-color: var(--border);
box-shadow: 0 10px 24px rgb(0 0 0 / 24%);
}
[data-theme='dark'] :is(.github-open__input-wrap, .hero-proof__screen) {
background: var(--canvas);
border-color: var(--border);
}
[data-theme='dark'] .github-open__input-wrap .icon {
fill: var(--muted);
}
[data-theme='dark'] .github-open input::placeholder,
[data-theme='dark'] .viewer-sidebar__search input::placeholder {
color: var(--muted);
opacity: 1;
}
[data-theme='dark'] .github-open button {
background: linear-gradient(135deg, #14343d, #0b1c24);
border-color: #2bb2bb;
}
[data-theme='dark'] :is(.dropzone__tag, .hero-proof__views button) {
background: var(--surface-raised);
border-color: var(--border);
}
[data-theme='dark'] .dropzone__tag {
color: var(--text);
}
[data-theme='dark'] .hero-proof__views button[aria-pressed='true'] {
background: var(--surface-selected);
border-color: var(--border-brand);
}
[data-theme='dark'] .hero-proof__table {
background: var(--canvas);
}
[data-theme='dark'] .dropzone__status {
background: #123139;
color: var(--accent);
border-color: var(--border-accent);
}
[data-theme='dark'] .dropzone__status[data-status='error'] {
background: #3b211a;
color: #ffb886;
border-color: var(--border-brand);
}
[data-theme='dark'] .view-tab {
color: var(--text);
background: transparent;
border-right-color: var(--border-soft);
}
[data-theme='dark'] .view-tab[aria-selected='true'] {
color: var(--brand);
background: linear-gradient(180deg, rgb(249 120 50 / 10%), transparent);
border-bottom-color: #ff751e;
}
[data-theme='dark']
:is(.viewer-empty, .viewer-loading, .altium-renderer-empty) {
border-color: #36505e;
background:
repeating-linear-gradient(
0deg,
rgb(83 137 157 / 3%) 0 1px,
transparent 1px 12px
),
repeating-linear-gradient(
90deg,
rgb(83 137 157 / 3%) 0 1px,
transparent 1px 12px
),
linear-gradient(140deg, #111e26, #0a151c);
}
[data-theme='dark'] :is(.viewer-empty__screen, .viewer-empty__plus) {
background: var(--canvas);
border-color: #04bac7;
box-shadow: 0 0 18px rgb(0 184 199 / 10%);
}
[data-theme='dark']
:is(
.file-pill,
.inline-field,
.brand-lockup,
.github-open__input-wrap,
.github-open button,
.view-tab,
.icon-link,
.hero-proof__views button
):focus-visible,
[data-theme='dark'] :is(.inline-field, .github-open__input-wrap):focus-within {
outline-color: var(--focus-ring);
}
/* Static captures also follow manual overrides while live preview parsing waits. */
.hero-proof__screen > .hero-proof__fallback--dark {
display: none;
}
[data-theme='dark'] .hero-proof__screen > .hero-proof__fallback--light {
display: none;
}
[data-theme='dark'] .hero-proof__screen > .hero-proof__fallback--dark {
display: block;
}