Initial Frost v0.1 framework

This commit is contained in:
2026-10-29 21:42:51 +01:00
commit f5cd37254c
9 changed files with 537 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
@layer frost.base {
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) {
min-width: 20rem;
background: var(--frost-color-bg);
color: var(--frost-color-text);
scroll-behavior: smooth;
}
:where(body) {
min-width: 20rem;
min-height: 100vh;
margin: 0;
background: var(--frost-color-bg);
color: var(--frost-color-text);
font-family: var(--frost-font-body);
font-size: var(--frost-font-size-base);
line-height: var(--frost-line-height-body);
text-rendering: optimizeLegibility;
}
:where(button, input, select, textarea) { font: inherit; }
:where(button, [role="button"], select) { cursor: pointer; }
:where(button:disabled, input:disabled, select:disabled, textarea:disabled) { cursor: not-allowed; }
:where(img, picture, video, canvas, svg) { display: block; max-width: 100%; }
:where(img, video) { height: auto; }
:where(a) { color: var(--frost-color-accent); }
:where(button) { color: inherit; }
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) { margin-block: 0; }
:where(h1, h2, h3, h4, h5, h6) {
color: var(--frost-color-text);
font-family: var(--frost-font-heading);
line-height: var(--frost-line-height-heading);
}
:where(h1) { font-size: clamp(2rem, 5vw, 3.5rem); }
:where(h2) { font-size: var(--frost-font-size-xl); }
:where(code, kbd, pre) { font-family: var(--frost-font-mono); }
:where(table) { border-collapse: collapse; border-spacing: 0; }
:where(th, td) { text-align: start; }
:where(::selection) { background: var(--frost-color-accent); color: var(--frost-color-on-accent); }
}