fix tailwind config
This commit is contained in:
+11
-9
@@ -1,17 +1,19 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@theme {
|
||||
--color-brand-brown: #2C1E16;
|
||||
--color-brand-beige: #F5F4F0;
|
||||
|
||||
--font-sans: var(--font-inter);
|
||||
--font-serif: var(--font-playfair);
|
||||
}
|
||||
|
||||
:root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-inter);
|
||||
--font-serif: var(--font-playfair);
|
||||
body {
|
||||
background-color: var(--background);
|
||||
color: var(--foreground);
|
||||
}
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<main className="min-h-screen bg-beige text-black">
|
||||
<h1>Hello World</h1>
|
||||
<main className="min-h-screen bg-brand-beige text-brand-black flex items-center justify-center">
|
||||
<h1 className="font-serif text-6xl">Hello World</h1>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
// tailwind.config.ts
|
||||
import type { Config } from "tailwindcss";
|
||||
|
||||
const config: Config = {
|
||||
content: [
|
||||
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
sans: ["var(--font-inter)", "sans-serif"],
|
||||
serif: ["var(--font-playfair)", "serif"],
|
||||
},
|
||||
colors: {
|
||||
brand: {
|
||||
brown: "#2C1E16",
|
||||
beige: "#F5F4F0",
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
export default config;
|
||||
Reference in New Issue
Block a user