mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update Tailwind config to use only specific breakpoint and color palette
This commit is contained in:
+12
-2
@@ -12,7 +12,16 @@ function withOpacity(variableName) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
|
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
// Remove the following screen breakpoint or add other breakpoints
|
||||||
|
// if one breakpoint is not enough for you
|
||||||
|
screens: {
|
||||||
|
sm: "640px",
|
||||||
|
},
|
||||||
|
|
||||||
|
// Uncomment the following extend
|
||||||
|
// if existing Tailwind color palette will be used
|
||||||
|
|
||||||
|
// extend: {
|
||||||
textColor: {
|
textColor: {
|
||||||
skin: {
|
skin: {
|
||||||
base: withOpacity("--color-text-base"),
|
base: withOpacity("--color-text-base"),
|
||||||
@@ -46,11 +55,12 @@ module.exports = {
|
|||||||
base: withOpacity("--color-text-base"),
|
base: withOpacity("--color-text-base"),
|
||||||
accent: withOpacity("--color-accent"),
|
accent: withOpacity("--color-accent"),
|
||||||
},
|
},
|
||||||
|
transparent: "transparent",
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
mono: ["IBM Plex Mono", "monospace"],
|
mono: ["IBM Plex Mono", "monospace"],
|
||||||
},
|
},
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
plugins: [require("@tailwindcss/typography")],
|
plugins: [require("@tailwindcss/typography")],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user