mirror of
https://github.com/arkorty/Osborne.git
synced 2026-03-17 16:51:44 +00:00
fix font
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -2,10 +2,11 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&family=Bitcount_Grid_Single&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap");
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--font-bitcount-grid: "Bitcount Grid Single", monospace;
|
||||
--background: rgb(251, 241, 199);
|
||||
--foreground: rgb(60, 56, 54);
|
||||
--card: rgb(235, 219, 178);
|
||||
@@ -79,10 +80,13 @@
|
||||
|
||||
@layer base {
|
||||
body {
|
||||
font-family: var(--font-roboto), sans-serif;
|
||||
font-family: var(--font-bitcount-grid);
|
||||
}
|
||||
.editor-font {
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
}
|
||||
textarea {
|
||||
font-family: var(--font-jetbrains-mono), monospace;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +192,7 @@
|
||||
}
|
||||
|
||||
.ui-font {
|
||||
font-family: var(--font-bitcount-grid, "Bitcount Grid Single", monospace);
|
||||
font-family: var(--font-bitcount-grid);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
@@ -196,7 +200,7 @@
|
||||
background-color: var(--card);
|
||||
color: var(--card-foreground);
|
||||
border-color: var(--border);
|
||||
font-family: var(--font-bitcount-grid, "Bitcount Grid Single", monospace);
|
||||
font-family: var(--font-bitcount-grid);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -1,24 +1,5 @@
|
||||
import type { Metadata } from "next";
|
||||
import localFont from "next/font/local";
|
||||
import { Bitcount_Grid_Single } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const bitcountGridSingle = Bitcount_Grid_Single({
|
||||
weight: "400",
|
||||
variable: "--font-bitcount-grid",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistSans = localFont({
|
||||
src: "./fonts/GeistVF.woff",
|
||||
variable: "--font-geist-sans",
|
||||
weight: "100 900",
|
||||
});
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMonoVF.woff",
|
||||
variable: "--font-geist-mono",
|
||||
weight: "100 900",
|
||||
});
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Osborne",
|
||||
@@ -48,10 +29,15 @@ export default function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} ${bitcountGridSingle.variable} antialiased`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Bitcount+Grid+Single:wght@400&display=swap"
|
||||
/>
|
||||
</head>
|
||||
<body className="antialiased" suppressHydrationWarning>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -79,8 +79,7 @@ const config = {
|
||||
},
|
||||
fontFamily: {
|
||||
"jetbrains-mono": ["JetBrains Mono", "monospace"],
|
||||
roboto: ["Roboto", "sans-serif"],
|
||||
"bitcount-grid": ["var(--font-bitcount-grid)", "monospace"],
|
||||
"bitcount-grid": ["Bitcount Grid Single", "monospace"],
|
||||
},
|
||||
borderRadius: {
|
||||
lg: "var(--radius)",
|
||||
|
||||
Reference in New Issue
Block a user