styles: refactor codebase base style

This commit is contained in:
2026-06-17 14:46:12 +05:30
parent 182d4ac293
commit 15f54372f4
43 changed files with 161 additions and 268 deletions

56
src/app/typography.css Normal file
View File

@@ -0,0 +1,56 @@
@layer base {
h1,
h2,
h3,
h4,
h5,
h6 {
/* margin: 0.1rem 0 0.1rem; */
font-family: inherit;
font-weight: 600;
line-height: 1.2;
color: var(--foreground);
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
margin-top: 0;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.875rem;
}
h3 {
font-size: 1.75rem;
}
h4 {
font-size: 1.5rem;
}
h5 {
font-size: 1.25rem;
}
h6 {
font-size: 1rem;
}
p {
margin: 0.2rem 0 0.1rem;
/* line-height: 1.5; */
}
p:last-child {
margin-bottom: 0;
}
}