winzik/skeleton-chrome/lib/base.css

68 lines
1.6 KiB
CSS

/* Shared by the popup and the options page: colours as variables, light and dark. */
:root {
--bg: #ffffff;
--text: #1d1b2e;
--muted: #6b6880;
--accent: #5b4bdb;
--accent-text: #ffffff;
--border: #dddbe8;
--field: #f6f5fb;
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1b1a24;
--text: #ecebf5;
--muted: #a19fb5;
--accent: #8d80ff;
--accent-text: #14131c;
--border: #34324a;
--field: #24223a;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h1 img { width: 20px; height: 20px; }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 12px; }
input[type="text"], input[type="color"] {
width: 100%;
padding: 7px 9px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--field);
color: var(--text);
font: inherit;
}
input[type="color"] { padding: 2px; height: 34px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }
button {
margin-top: 12px;
padding: 8px 12px;
border: 0;
border-radius: 6px;
background: var(--accent);
color: var(--accent-text);
font: 600 14px system-ui, sans-serif;
cursor: pointer;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 12px; }