/// Layout /////////////////////////////////////////////////////////////////////
import type { Metadata } from 'next';
import localFont from 'next/font/local';
import { CommandPalette } from '@/components/CommandPalette';
import { Hooks } from '@/components/Hooks';
import './globals.scss';
export const metadata: Metadata = {
title: '# Stephen Matheis',
description: 'My website.',
icons: {
icon: '/favicons/light/frame-0.svg',
},
};
const DepartureMono = localFont({
src: './fonts/DepartureMono-Regular.woff2',
variable: '--font-departure-mono',
});
const CommitMono = localFont({
src: './fonts/CommitMono VariableFont.woff2',
variable: '--font-commit-mono',
});
export default function RootLayout({ children }: LayoutProps<'/'>) {
return (
<html lang="en">
<body className={`${DepartureMono.variable} ${CommitMono.variable}`}>
{children}
<CommandPalette />
<Hooks />
</body>
</html>
);
}
/// Global Styles //////////////////////////////////////////////////////////////
:root {
--bg: light-dark(#ffffff, #000000);
--gray: #aaaaaa;
--subtle: #cccccc;
--border-color: #ededed;
--selected-bg: #ededed;
--red: #ff0000;
--selection-bg: light-dark(#eeeeee, #333333);
color-scheme: light dark;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
::selection {
color: inherit;
background-color: var(--selection-bg);
}
html,
body {
min-height: 100%;
background-color: var(--bg);
// Departure Mono
// font-size: 11px;
// line-height: 16.5px;
// Commit Mono
font-size: 12px;
line-height: 18px;
}
html {
text-rendering: optimizelegibility;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body,
pre,
code {
// font-family: var(--font-departure-mono);
font-family: var(--font-commit-mono);
}
main {
min-height: 100dvh;
display: flex;
flex-direction: column;
}