Initial commit 🚀

This commit is contained in:
Felix Klement committed 2026-10-09 14:00:40 +02:00
commit fd58a8d32f
235 files changed
+19775

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>
);
}