From 9fd9a0ac506b9f9b84d8b06a2c65efc8cf41bfa3 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 16 四月 2025 14:07:46 +0800 Subject: [PATCH] Merge branch 'test' into huishui_iframe --- tailwind.config.js | 79 +++++++++++++++++++++++++++------------ 1 files changed, 54 insertions(+), 25 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index e36b6f6..1177eae 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -12,12 +12,12 @@ function withOpacityValue(variable) { // 杩斿洖涓�涓嚱鏁帮紝閫忔槑搴︿负鍙�夊弬鏁帮紝杩欐牱鍦� HTML 鍏冪礌涓娇鐢ㄩ鑹插熀纭�绫绘椂锛屾棦鍙互閲囩敤 text-blue-500 鏂瑰紡锛屼篃鏀寔 text-blue-500/20 蹇嵎鍚屾椂璁剧疆閫忔槑搴︾殑褰㈠紡 return ({ opacityValue }) => { - if (opacityValue === undefined) { - return `rgb(var(${variable}))`; - } - return `rgba(var(${variable}), ${opacityValue})`; + if (opacityValue === undefined) { + return `rgb(var(${variable}))`; + } + return `rgba(var(${variable}), ${opacityValue})`; }; - } +} export default { content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], @@ -44,24 +44,53 @@ // }, theme: { extend: { - backgroundColor: { // 姝ゅ鐢ㄦ潵瀹氫箟涓婚鐨勮儗鏅壊鍩虹鏍峰紡 - skin: { - bg: withOpacityValue('--color-bg-base'), - bgExr: withOpacityValue('--color-bg-base-exr'), - bgSide: withOpacityValue('--color-bg-side'), - bgBorder: withOpacityValue('--color-bg-border'), - fo: withOpacityValue('--color-text-font'), - card: withOpacityValue('--color-bg-card'), - btn: withOpacityValue('--color-bg-btn'), - avatar: withOpacityValue('--color-bg-avatar'), - 'btn-hover': withOpacityValue('--color-bg-btn-hover'), - } - }, - textColor: { // 鏂囨湰鐨勫熀纭�鏍峰紡 - 'primary': 'var(--color-text-base)', - 'btn-base': 'var(--color-btn-base)', - } - } - }, - plugins: [require("@tailwindcss/typography")], + colors: { + primary: { + DEFAULT: '#1989fa', + light: '#40a9ff', + dark: '#096dd9', + }, + info: { + DEFAULT: '#909399', + light: '#a6a9ad', + dark: '#82848a', + }, + success: { + DEFAULT: '#67c23a', + light: '#85ce61', + dark: '#529b2e', + }, + warning: { + DEFAULT: '#e6a23c', + light: '#ebb563', + dark: '#b88230', + }, + danger: { + DEFAULT: '#f56c6c', + light: '#f78989', + dark: '#c45656', + }, + }, + backgroundColor: { + // 姝ゅ鐢ㄦ潵瀹氫箟涓婚鐨勮儗鏅壊鍩虹鏍峰紡 + skin: { + bg: withOpacityValue('--color-bg-base'), + bgExr: withOpacityValue('--color-bg-base-exr'), + bgSide: withOpacityValue('--color-bg-side'), + bgBorder: withOpacityValue('--color-bg-border'), + fo: withOpacityValue('--color-text-font'), + card: withOpacityValue('--color-bg-card'), + btn: withOpacityValue('--color-bg-btn'), + avatar: withOpacityValue('--color-bg-avatar'), + 'btn-hover': withOpacityValue('--color-bg-btn-hover'), + }, + }, + textColor: { + // 鏂囨湰鐨勫熀纭�鏍峰紡 + primary: 'var(--color-text-base)', + 'btn-base': 'var(--color-btn-base)', + }, + }, + }, + plugins: [require('@tailwindcss/typography')], }; -- Gitblit v1.9.3