Shadow Generator
Design CSS box-shadows.
Build modular type scales and CSS.
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
The quick brown fox jumps
:root {
--text-4xl: 48.828px;
--text-4xl-lh: 1.5;
--text-3xl: 39.063px;
--text-3xl-lh: 1.5;
--text-2xl: 31.25px;
--text-2xl-lh: 1.5;
--text-xl: 25px;
--text-xl-lh: 1.5;
--text-lg: 20px;
--text-lg-lh: 1.5;
--text-base: 16px;
--text-base-lh: 1.5;
--text-sm: 12.8px;
--text-sm-lh: 1.5;
--text-xs: 10.24px;
--text-xs-lh: 1.5;
}
.text-4xl {
font-size: var(--text-4xl);
line-height: var(--text-4xl-lh, 1.5);
}
.text-3xl {
font-size: var(--text-3xl);
line-height: var(--text-3xl-lh, 1.5);
}
.text-2xl {
font-size: var(--text-2xl);
line-height: var(--text-2xl-lh, 1.5);
}
.text-xl {
font-size: var(--text-xl);
line-height: var(--text-xl-lh, 1.5);
}
.text-lg {
font-size: var(--text-lg);
line-height: var(--text-lg-lh, 1.5);
}
.text-base {
font-size: var(--text-base);
line-height: var(--text-base-lh, 1.5);
}
.text-sm {
font-size: var(--text-sm);
line-height: var(--text-sm-lh, 1.5);
}
.text-xs {
font-size: var(--text-xs);
line-height: var(--text-xs-lh, 1.5);
}A harmonious ladder of sizes made by repeatedly multiplying a base by a fixed ratio—each step is base × ratio^n.
For body-heavy UI, 1.125–1.25 (major second / third) is common; for dramatic headings try 1.333–1.618 (fourth through golden).
px is absolute; rem is relative to the root font size. rem is usually better for accessibility and scaling. Switching units converts the base for you.
No. All processing runs in your browser.