Skip to content

Commit 1ba3ede

Browse files
Tailwindcss v4 updates.
1 parent 0f37c04 commit 1ba3ede

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

next.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ const nextConfig: NextConfig = {
99
resolveExtensions: ['.mdx', '.tsx', '.ts', '.jsx', '.js', '.mjs', '.json'],
1010
},
1111

12+
output: 'export',
13+
14+
// Note: If you are using next/image, you may need to add an
15+
// unoptimized: true flag here if you are not using a custom loader.
16+
images: {
17+
unoptimized: true,
18+
},
19+
1220
eslint: {
1321
ignoreDuringBuilds: true,
1422
},

src/assets/css/globals.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
42

53
:root {
64
--background: #ffffff;

tailwind.config.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import colors from 'tailwindcss/colors'
33

44
const config: Config = {
55
content: [
6-
'./src/app/**/*.{js,ts,jsx,tsx}', // Include files in src/app
7-
'./src/components/**/*.{js,ts,jsx,tsx}', // Optionally include other directories
6+
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
7+
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
8+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
89
],
910
theme: {
1011
extend: {
@@ -17,8 +18,10 @@ const config: Config = {
1718
5: '#26b7e1',
1819
6: '#09afdf',
1920
},
20-
background: 'var(--background)',
21-
foreground: 'var(--foreground)',
21+
// background: 'var(--background)',
22+
//foreground: 'var(--foreground)',
23+
background: 'hsl(var(--background))',
24+
foreground: 'hsl(var(--foreground))',
2225
transparent: 'transparent',
2326
current: 'currentColor',
2427
black: colors.black,

0 commit comments

Comments
 (0)