Files
easy-png-tools2/web/src/preview.css
T

173 lines
4.1 KiB
CSS

@import url("@fontsource/ibm-plex-sans/400.css");
@import url("@fontsource/ibm-plex-sans/500.css");
@import url("@fontsource/ibm-plex-sans/600.css");
@import url("@fontsource/ibm-plex-sans/700.css");
@import url("@fontsource/ibm-plex-mono/400.css");
@import url("@fontsource/ibm-plex-mono/500.css");
@layer app, design;
@layer design {
*,
*::before,
*::after,
::backdrop {
box-sizing: border-box;
border: 0 solid;
margin: 0;
padding: 0;
}
* {
border-color: var(--color-border);
}
html,
body {
margin: 0;
padding: 0;
}
html {
color-scheme: light dark;
font-family: var(--font-sans);
text-size-adjust: 100%;
line-height: 1.5;
}
body {
font-family: var(--font-sans);
color: var(--color-text);
background: var(--color-background);
-webkit-font-smoothing: antialiased;
text-rendering: optimizelegibility;
}
button,
input,
select,
optgroup,
textarea {
font: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
opacity: 1;
background-color: #0000;
border-radius: 0;
}
button,
input:where([type="button"], [type="reset"], [type="submit"]) {
appearance: auto;
}
a,
a:hover {
color: inherit;
text-decoration: none;
}
h1,
h2 {
font-size: revert;
line-height: revert;
letter-spacing: revert;
}
p,
label {
font-size: revert;
}
:focus-visible {
outline: revert;
}
svg {
vertical-align: middle;
}
:root {
--font-sans: "IBM Plex Sans", sans-serif;
--font-mono: "IBM Plex Mono", monospace;
--brand-main: #86efac;
--brand-alt: hct(from var(--brand-main) calc(h + 90) c t);
--color-background: hct(from var(--brand-main) h 8 95);
--color-background-muted: hct(from var(--brand-main) h 12 85);
--color-panel: hct(from var(--brand-main) h 6.5 98);
--color-checker-main: hct(from var(--brand-main) h 10.7 85.7);
--color-checker-alt: hct(from var(--brand-main) h 13.2 76);
--color-border: hct(from var(--brand-main) h 13.1 69.4);
--color-text: hct(from var(--brand-main) h 5.9 1.7);
--color-text-muted: hct(from var(--brand-main) h 13.4 19.2);
--color-text-accent: hct(from var(--brand-alt) h 5.9 1.7);
--color-text-accent-muted: hct(from var(--brand-alt) h 13.4 19.2);
--color-main: hct(from var(--brand-main) h 80 48);
--color-accent: hct(from var(--brand-alt) h 80 48);
--color-success: hct(160 80 48);
--color-warning: hct(80 80 48);
--color-danger: hct(30 80 48);
--color-info: hct(340 80 48);
--color-main-tint: hct(from var(--brand-main) h 65 55);
--color-accent-tint: hct(from var(--brand-alt) h 65 55);
--color-success-tint: hct(160 65 55);
--color-warning-tint: hct(80 65 55);
--color-danger-tint: hct(30 65 55);
--color-info-tint: hct(340 65 55);
--space-s: 4px;
--space-m: 8px;
--space-l: 12px;
--space-xl: 16px;
--size-border: 1px;
--size-border-thick: 2px;
--font-text: 10px;
--font-button: 14px;
--radius-s: 0px;
--radius-m: 4px;
}
[data-theme="dark"] {
--brand-main: #86efac;
--brand-alt: hct(from var(--brand-main) calc(h + 90) c t);
--color-background: hct(from var(--brand-main) h 15 6);
--color-background-muted: hct(from var(--brand-main) h 15 10);
--color-panel: hct(from var(--brand-main) h 12 8);
--color-checker-main: hct(from var(--brand-main) h 12 10);
--color-checker-alt: hct(from var(--brand-main) h 14 14);
--color-border: hct(from var(--brand-main) h 15 25);
--color-text: hct(from var(--brand-main) h 25 90);
--color-text-muted: hct(from var(--brand-main) h 22 70);
--color-text-accent: hct(from var(--brand-alt) h 25 90);
--color-text-accent-muted: hct(from var(--brand-alt) h 22 70);
--color-main: hct(from var(--brand-main) h 60 50);
--color-accent: hct(from var(--brand-alt) h 60 50);
--color-success: hct(160 65 55);
--color-warning: hct(80 65 55);
--color-danger: hct(30 70 55);
--color-info: hct(340 65 55);
--color-main-tint: hct(from var(--brand-main) h 45 57);
--color-accent-tint: hct(from var(--brand-alt) h 45 57);
--color-success-tint: hct(160 50 60);
--color-warning-tint: hct(80 50 60);
--color-danger-tint: hct(30 50 60);
--color-info-tint: hct(340 50 60);
}
}