Files
pagerite/pagerite/themes/corporate/theme.css
T

138 lines
3.3 KiB
CSS

/* Corporate theme: bright and bold professional. Saturated royal-blue
gradients on white, geometric Montserrat display type over Inter body,
and a genuinely large brand with a soft blue overlap shadow. Automatic
dark mode keeps the same saturated blue identity on deep navy. The
companion banner design (banner.css, artwork inlined by the backend)
recolors its SVG from the active palette via the cb-* classes. */
:root {
color-scheme: light dark;
--bg: #ffffff;
--surface: #eef3fd;
--text: #12203f;
--muted: #4d5f83;
--accent: #0a5cff;
--accent2: #0933a0;
--line: #12203f14;
--font-body: var(--font-inter);
--font-heading: var(--font-montserrat);
--code-x-height: 0.546; /* Inter's x-height ratio */
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0b1428;
--surface: #142446;
--text: #e9eefe;
--muted: #93a7d0;
--accent: #4d8dff;
--accent2: #8ab6ff;
--line: #ffffff17;
/* Code wells stay navy in dark mode (light mode uses --surface). */
--code-bg: #0d1b3e;
}
}
/* Genuinely large solid brand with a soft blue shadow overlapping the
artwork — conservative, but unmissable. */
#brand {
font-size: clamp(4rem, 11vw, 8.5rem);
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1.1;
white-space: nowrap;
color: var(--accent2);
filter: drop-shadow(0 0.4rem 1.4rem rgb(10 92 255 / 0.3));
}
@media (prefers-color-scheme: dark) {
#brand {
color: #eaf1ff;
filter: drop-shadow(0 0.4rem 1.4rem rgb(0 0 0 / 0.6));
}
}
#nav {
font-size: 1.05em;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: none;
}
#nav .current {
color: #fff;
background: linear-gradient(120deg, var(--accent), var(--accent2));
border-radius: 999px;
padding: 0.15rem 0.85rem;
margin: -0.15rem -0.85rem;
}
@media (prefers-color-scheme: dark) {
#nav {
text-shadow: 0 0 0.15em #000;
}
}
/* Heading hierarchy: h1 navy with a short gradient bar, h2 in accent
blue, h3 as an uppercase kicker. */
article h1 {
font-weight: 800;
letter-spacing: -0.025em;
color: var(--accent2);
}
@media (prefers-color-scheme: dark) {
article h1 {
color: var(--text);
}
}
article h1::after {
content: "";
display: block;
width: 3.6rem;
height: 0.32rem;
margin-top: 0.5rem;
border-radius: 2px;
background: linear-gradient(90deg, var(--accent), #00b3ff);
}
article h2 {
font-weight: 700;
letter-spacing: -0.015em;
color: var(--accent);
}
article h3 {
font-weight: 700;
letter-spacing: 0.08em;
color: var(--muted);
}
blockquote {
border-inline-start-color: var(--accent);
background: color-mix(var(--accent) 6%, transparent);
padding: 0.4rem 0.9rem;
/* Keep the quoted text on the paragraph edge: the tinted box extends
past it by its own border/padding, like code blocks. */
margin: 0 0 1rem;
margin-inline: calc(-0.25rem - 0.9rem) -0.9rem;
border-radius: 6px;
}
/* Code follows the color scheme: the light set on a faint-blue surface in
light mode, a navy well in dark mode (--code-bg above). The accent side
bar stays in both. */
pre {
border: 1px solid transparent;
border-inline-start: 0.25rem solid var(--accent);
/* Text on the paragraph edge: the box extends by padding + border. */
margin-inline-start: calc(-0.8rem - 0.25rem);
border-radius: 6px;
}
img {
border-radius: 4px;
}