Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously an unversioned directory inside ~/src/blockninja-themes/brutalist. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
372 lines
9.3 KiB
Go
372 lines
9.3 KiB
Go
package main
|
|
|
|
// brutalistAppendCSS is appended to the host Tailwind input via CSSManifest.
|
|
// It declares font fallback stacks for the three font-* CSS variables, kills
|
|
// border radii on the standard interactive elements, defines hairline rule
|
|
// utilities, and ships a togglable 12-column debug grid overlay.
|
|
//
|
|
// All color references use the shadcn token pattern: hsl(var(--token)).
|
|
// No hex / rgb / named colors. Fonts go through var(--font-*) with fallbacks
|
|
// derived from the spec's typography list (Space Grotesk display, Inter body,
|
|
// JetBrains Mono mono). Per FONTS.md, no @font-face is emitted here.
|
|
const brutalistAppendCSS = `
|
|
/* === Brutalist theme utilities === */
|
|
|
|
:where(.brutalist-page, .brutalist-page *) {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.brutalist-page {
|
|
font-family: var(--font-body, "Inter", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);
|
|
color: hsl(var(--foreground));
|
|
background-color: hsl(var(--background));
|
|
letter-spacing: 0.005em;
|
|
}
|
|
|
|
.brutalist-display {
|
|
font-family: var(--font-heading, "Space Grotesk", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif);
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
line-height: 0.9;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.brutalist-mono {
|
|
font-family: var(--font-mono, "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* --- Hairline rules and solid slabs --- */
|
|
|
|
.brutalist-rule-ink {
|
|
border-color: hsl(var(--border));
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
}
|
|
|
|
.brutalist-rule-thick {
|
|
border-color: hsl(var(--border));
|
|
border-style: solid;
|
|
border-width: 4px;
|
|
}
|
|
|
|
.brutalist-divider {
|
|
border-top: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
/* --- 12-column grid scaffolding --- */
|
|
|
|
.brutalist-grid-12 {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
column-gap: 0;
|
|
row-gap: 0;
|
|
}
|
|
|
|
.brutalist-col-span-8 {
|
|
grid-column: span 8 / span 8;
|
|
}
|
|
|
|
/* Project ledger row: 12-col grid with mono leading number. */
|
|
|
|
.brutalist-ledger-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
align-items: baseline;
|
|
padding: 1.25rem 0;
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.brutalist-ledger-row > * {
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.875rem;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.brutalist-ledger-row .ledger-no { grid-column: span 1; }
|
|
.brutalist-ledger-row .ledger-year { grid-column: span 2; }
|
|
.brutalist-ledger-row .ledger-client { grid-column: span 5; font-family: var(--font-heading, "Space Grotesk", sans-serif); font-size: 1.125rem; text-transform: none; letter-spacing: -0.005em; }
|
|
.brutalist-ledger-row .ledger-role { grid-column: span 3; }
|
|
.brutalist-ledger-row .ledger-arrow { grid-column: span 1; text-align: right; }
|
|
|
|
@media (max-width: 768px) {
|
|
.brutalist-ledger-row {
|
|
grid-template-columns: 1fr;
|
|
row-gap: 0.25rem;
|
|
padding: 1rem 0;
|
|
}
|
|
.brutalist-ledger-row .ledger-no,
|
|
.brutalist-ledger-row .ledger-year,
|
|
.brutalist-ledger-row .ledger-client,
|
|
.brutalist-ledger-row .ledger-role,
|
|
.brutalist-ledger-row .ledger-arrow { grid-column: 1 / -1; text-align: left; }
|
|
}
|
|
|
|
/* --- Caption block --- */
|
|
|
|
.brutalist-figure figcaption {
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--muted-foreground));
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
/* --- Pull quote --- */
|
|
|
|
.brutalist-pullquote {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
padding: 3rem 0;
|
|
border-top: 1px solid hsl(var(--border));
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.brutalist-pullquote blockquote {
|
|
grid-column: 3 / span 8;
|
|
font-family: var(--font-heading, "Space Grotesk", sans-serif);
|
|
font-weight: 700;
|
|
font-size: clamp(1.75rem, 5vw, 3.5rem);
|
|
line-height: 1;
|
|
letter-spacing: -0.02em;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.brutalist-pullquote cite {
|
|
grid-column: 3 / span 8;
|
|
margin-top: 1.5rem;
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
font-style: normal;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.brutalist-pullquote blockquote,
|
|
.brutalist-pullquote cite { grid-column: 1 / -1; }
|
|
}
|
|
|
|
/* --- Meta strip --- */
|
|
|
|
.brutalist-meta-strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2rem;
|
|
padding: 1rem 0;
|
|
border-top: 1px solid hsl(var(--border));
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.brutalist-meta-strip dt {
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 11px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.brutalist-meta-strip dd {
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--foreground));
|
|
margin: 0;
|
|
}
|
|
|
|
/* --- Buttons: square, 1px ink border, hover inverts to accent --- */
|
|
|
|
.brutalist-page button,
|
|
.brutalist-page .brutalist-btn,
|
|
.brutalist-page [data-brutalist-btn] {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.75rem 1.5rem;
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
background-color: transparent;
|
|
color: hsl(var(--foreground));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: 0;
|
|
cursor: pointer;
|
|
transition: background-color 80ms linear, color 80ms linear;
|
|
}
|
|
|
|
.brutalist-page button:hover,
|
|
.brutalist-page .brutalist-btn:hover,
|
|
.brutalist-page [data-brutalist-btn]:hover {
|
|
background-color: hsl(var(--accent));
|
|
color: hsl(var(--accent-foreground));
|
|
}
|
|
|
|
.brutalist-page button:focus-visible,
|
|
.brutalist-page .brutalist-btn:focus-visible,
|
|
.brutalist-page [data-brutalist-btn]:focus-visible {
|
|
outline: 2px solid hsl(var(--ring));
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* --- Inputs: square --- */
|
|
|
|
.brutalist-page input,
|
|
.brutalist-page select,
|
|
.brutalist-page textarea {
|
|
border-radius: 0;
|
|
border: 1px solid hsl(var(--input));
|
|
background-color: transparent;
|
|
color: hsl(var(--foreground));
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
|
|
.brutalist-page input:focus,
|
|
.brutalist-page select:focus,
|
|
.brutalist-page textarea:focus {
|
|
outline: 2px solid hsl(var(--ring));
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* --- Masthead --- */
|
|
|
|
.brutalist-masthead {
|
|
position: relative;
|
|
padding: 4rem 0 2rem;
|
|
}
|
|
|
|
.brutalist-masthead .studio-name {
|
|
font-family: var(--font-heading, "Space Grotesk", sans-serif);
|
|
font-weight: 700;
|
|
font-size: clamp(3rem, 14vw, 16rem);
|
|
line-height: 0.85;
|
|
letter-spacing: -0.03em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--foreground));
|
|
margin: 0;
|
|
}
|
|
|
|
.brutalist-masthead .tagline {
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--muted-foreground));
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.brutalist-masthead .index-counter {
|
|
position: absolute;
|
|
top: 1.5rem;
|
|
right: 0;
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 11px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
/* --- Concrete hero --- */
|
|
|
|
.brutalist-hero {
|
|
position: relative;
|
|
padding: 6rem 0 4rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.brutalist-hero .eyebrow {
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--muted-foreground));
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.brutalist-hero .headline {
|
|
font-family: var(--font-heading, "Space Grotesk", sans-serif);
|
|
font-weight: 700;
|
|
font-size: clamp(3rem, 22vw, 18rem);
|
|
line-height: 0.85;
|
|
letter-spacing: -0.04em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--foreground));
|
|
margin: 0;
|
|
}
|
|
|
|
.brutalist-hero[data-has-media="true"] .headline {
|
|
color: hsl(var(--background));
|
|
mix-blend-mode: difference;
|
|
}
|
|
|
|
.brutalist-hero .media-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.brutalist-hero .media-bg::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background-color: hsl(var(--background) / 0.4);
|
|
}
|
|
|
|
.brutalist-hero .inner {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* --- Colophon --- */
|
|
|
|
.brutalist-colophon {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 2rem;
|
|
padding: 3rem 0 1.5rem;
|
|
border-top: 4px solid hsl(var(--border));
|
|
font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.brutalist-colophon .stamp {
|
|
text-align: right;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.brutalist-colophon {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.brutalist-colophon .stamp { text-align: left; }
|
|
}
|
|
|
|
/* --- Grid overlay debug --- */
|
|
|
|
body.brutalist-grid-debug::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
background-image: repeating-linear-gradient(
|
|
to right,
|
|
hsl(var(--ring) / 0.18) 0,
|
|
hsl(var(--ring) / 0.18) 1px,
|
|
transparent 1px,
|
|
transparent calc(100% / 12)
|
|
);
|
|
}
|
|
`
|