config tailwind
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
: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);
|
||||
}
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { Playfair_Display, Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const playfairDisplay = Playfair_Display({
|
||||
variable: "--font-playfai-display",
|
||||
variable: "--font-playfair",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<main className="min-h-screen bg-[#F5F4F0] text-black">
|
||||
<main className="min-h-screen bg-beige text-black">
|
||||
<h1>Hello World</h1>
|
||||
</main>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
// 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