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 components;
|
||||||
@tailwind utilities;
|
@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 {
|
@layer base {
|
||||||
:root {
|
:root {
|
||||||
|
--font-bitcount-grid: "Bitcount Grid Single", monospace;
|
||||||
--background: rgb(251, 241, 199);
|
--background: rgb(251, 241, 199);
|
||||||
--foreground: rgb(60, 56, 54);
|
--foreground: rgb(60, 56, 54);
|
||||||
--card: rgb(235, 219, 178);
|
--card: rgb(235, 219, 178);
|
||||||
@@ -79,10 +80,13 @@
|
|||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
body {
|
body {
|
||||||
font-family: var(--font-roboto), sans-serif;
|
font-family: var(--font-bitcount-grid);
|
||||||
|
}
|
||||||
|
.editor-font {
|
||||||
|
font-family: "JetBrains Mono", monospace;
|
||||||
}
|
}
|
||||||
textarea {
|
textarea {
|
||||||
font-family: var(--font-jetbrains-mono), monospace;
|
font-family: "JetBrains Mono", monospace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,7 +192,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ui-font {
|
.ui-font {
|
||||||
font-family: var(--font-bitcount-grid, "Bitcount Grid Single", monospace);
|
font-family: var(--font-bitcount-grid);
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,7 +200,7 @@
|
|||||||
background-color: var(--card);
|
background-color: var(--card);
|
||||||
color: var(--card-foreground);
|
color: var(--card-foreground);
|
||||||
border-color: var(--border);
|
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-size: 1.2rem;
|
||||||
font-weight: 500;
|
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";
|
import "./globals.css";
|
||||||
|
import type { Metadata } from "next";
|
||||||
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",
|
|
||||||
});
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Osborne",
|
title: "Osborne",
|
||||||
@@ -48,10 +29,15 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body
|
<head>
|
||||||
className={`${geistSans.variable} ${geistMono.variable} ${bitcountGridSingle.variable} antialiased`}
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
suppressHydrationWarning
|
<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}
|
{children}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -79,8 +79,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
"jetbrains-mono": ["JetBrains Mono", "monospace"],
|
"jetbrains-mono": ["JetBrains Mono", "monospace"],
|
||||||
roboto: ["Roboto", "sans-serif"],
|
"bitcount-grid": ["Bitcount Grid Single", "monospace"],
|
||||||
"bitcount-grid": ["var(--font-bitcount-grid)", "monospace"],
|
|
||||||
},
|
},
|
||||||
borderRadius: {
|
borderRadius: {
|
||||||
lg: "var(--radius)",
|
lg: "var(--radius)",
|
||||||
|
|||||||
Reference in New Issue
Block a user