代码拉取完成,页面将自动刷新
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: {
container: { // 扩展container 布局容器配置
center: true,
padding: "2rem",
screens: {
xs: "420px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1400px" // 最大断点1400
}
},
extend: {
colors: {
primary: {
500: "#FF7000",
100: "#FFF1E6"
},
dark: {
100: "#000000",
200: "#0F1117",
300: "#151821",
400: "#212734",
500: "#3F4354",
},
light: {
900: "#FFFFFF",
850: "#FDFDFD",
800: "#F4F6F8",
700: "#DCE3F1",
500: "#7B8EC8",
400: "#858EAD"
},
"accent-blue": "#1DA1F2" // 共用样式
}
},
fontFamily: {// 预设字体
inter: ['var(--font-inter)'],
spaceGrotesk: ["var(--font-spaceGrotesk)"]
},
boxShadow: {
"light-100": "0px 12px 20px 0px rgba(184, 184, 184, 0.03), 0px 6px 12px 0px",
"light-200": "10px 10px 20px 0px rgba(218, 213, 213, 0.10)",
"light-300": "-10px 10px 20px 0px rgba(218, 213, 213, 0.10)",
"dark-100": "0px 2px 10px 0px rgba(46, 52, 56, 0.10)",
"dark-200": "2px 0px 20px 0px rgba(39, 36, 36, 0.04)",
},
backgroundImage: {
"auth-dark": "url('/assets/images/auth-dark.png')",
"auth-light": "url('/assets/images/auth-light.png')"
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
plugins: [require('tailwindcss-animate'), require('@tailwindcss/typography')],
};
export default config;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。