generated from nhcarrigan/template
chore: migrate tailwindcss from v3 to v4
This commit is contained in:
+2
-1
@@ -31,7 +31,8 @@
|
|||||||
"eslint": "9.39.3",
|
"eslint": "9.39.3",
|
||||||
"eslint-config-next": "16.1.6",
|
"eslint-config-next": "16.1.6",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
"tailwindcss": "3.4.19",
|
"@tailwindcss/postcss": "4.2.0",
|
||||||
|
"tailwindcss": "4.2.0",
|
||||||
"typescript": "5.9.3"
|
"typescript": "5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+449
-569
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/** @type {import('postcss-load-config').Config} */
|
/** @type {import('postcss-load-config').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
plugins: {
|
plugins: {
|
||||||
tailwindcss: {},
|
"@tailwindcss/postcss": {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+40
-35
@@ -1,64 +1,57 @@
|
|||||||
@tailwind base;
|
@import "tailwindcss";
|
||||||
@tailwind components;
|
|
||||||
@tailwind utilities;
|
|
||||||
|
|
||||||
h1 {
|
@theme {
|
||||||
|
--color-background: var(--background);
|
||||||
|
--color-foreground: var(--foreground);
|
||||||
|
}
|
||||||
|
|
||||||
|
@layer base {
|
||||||
|
h1 {
|
||||||
@apply text-4xl;
|
@apply text-4xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@apply text-2xl;
|
@apply text-2xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@apply underline;
|
@apply underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
@apply list-disc;
|
@apply list-disc;
|
||||||
@apply list-inside;
|
@apply list-inside;
|
||||||
@apply text-left;
|
@apply text-left;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
@apply text-justify;
|
@apply text-justify;
|
||||||
@apply mb-2;
|
@apply mb-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@apply mx-auto;
|
@apply mx-auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote,
|
blockquote,
|
||||||
blockquote p {
|
blockquote p {
|
||||||
@apply text-center;
|
@apply text-center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-dark blockquote,
|
blockquote {
|
||||||
.is-dark blockquote p {
|
|
||||||
color: var(--foreground);
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
border-left: 5px solid var(--accent);
|
border-left: 5px solid var(--accent);
|
||||||
box-shadow: inset 4px 0 10px -4px var(--accent);
|
box-shadow: inset 4px 0 10px -4px var(--accent);
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
margin: 1rem;
|
margin: 1rem;
|
||||||
}
|
|
||||||
|
|
||||||
@layer utilities {
|
|
||||||
.text-balance {
|
|
||||||
text-wrap: balance;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
@apply text-sm;
|
@apply text-sm;
|
||||||
@apply text-center;
|
@apply text-center;
|
||||||
@apply italic;
|
@apply italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
@apply text-left;
|
@apply text-left;
|
||||||
@apply bg-gray-100;
|
@apply bg-gray-100;
|
||||||
@apply p-2;
|
@apply p-2;
|
||||||
@@ -70,9 +63,9 @@ pre {
|
|||||||
@apply break-words;
|
@apply break-words;
|
||||||
@apply text-sm;
|
@apply text-sm;
|
||||||
@apply font-mono;
|
@apply font-mono;
|
||||||
}
|
}
|
||||||
|
|
||||||
code:not(pre code) {
|
code:not(pre code) {
|
||||||
@apply text-sm;
|
@apply text-sm;
|
||||||
@apply font-mono;
|
@apply font-mono;
|
||||||
@apply bg-gray-100;
|
@apply bg-gray-100;
|
||||||
@@ -83,4 +76,16 @@ code:not(pre code) {
|
|||||||
@apply overflow-x-auto;
|
@apply overflow-x-auto;
|
||||||
@apply whitespace-pre-wrap;
|
@apply whitespace-pre-wrap;
|
||||||
@apply break-words;
|
@apply break-words;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-dark blockquote,
|
||||||
|
.is-dark blockquote p {
|
||||||
|
color: var(--foreground);
|
||||||
|
}
|
||||||
|
|
||||||
|
@layer utilities {
|
||||||
|
.text-balance {
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import type { Config } from "tailwindcss";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
content: [
|
|
||||||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
||||||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
||||||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
||||||
],
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
colors: {
|
|
||||||
background: "var(--background)",
|
|
||||||
foreground: "var(--foreground)",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [],
|
|
||||||
} satisfies Config;
|
|
||||||
Reference in New Issue
Block a user