This commit is contained in:
Felix Klement committed 2026-09-20 12:45:33 +02:00
1 parent b244287f6a
commit 5a2d49c17f
77 files changed
+2289 -31

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import type { ReactNode } from 'react';
export interface SurfaceProps {
/** Warm paper, the base surface for the whole site, or the rare night surface. */
tone?: 'paper' | 'night';
children?: ReactNode;
}
/** The root of every screen: sets the paper or night ground and the base type. */
export function Surface({ tone = 'paper', children }: SurfaceProps) {
return (
<div
className={tone === 'night' ? 'night' : undefined}
style={{
fontFamily: 'var(--font-sans)',
fontSize: 'var(--step-body)',
lineHeight: 'var(--leading-body)',
fontWeight: 'var(--weight-regular)',
background: tone === 'night' ? undefined : 'var(--paper)',
color: tone === 'night' ? undefined : 'var(--ink)',
}}
>
{children}
</div>
);
}