From 6749c10cfcd162a2cd1f0bf742ebb2220b906782 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sat, 31 Dec 2022 22:04:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B4=E5=90=88tailwindcss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 9f7aa8245149c0e45790277d4780dc93dbe1c495 --- postcss.config.js | 6 ++++++ src/styles/tailwind.scss | 4 ++++ tailwind.config.js | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 postcss.config.js create mode 100644 src/styles/tailwind.scss create mode 100644 tailwind.config.js diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 00000000..33ad091d --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/src/styles/tailwind.scss b/src/styles/tailwind.scss new file mode 100644 index 00000000..9bb37ee6 --- /dev/null +++ b/src/styles/tailwind.scss @@ -0,0 +1,4 @@ + +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 00000000..5b86b532 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,15 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], + darkMode: 'class', + theme: { + + backgroundColor: theme => ({ + ...theme('colors'), + "sidebar-logo":'#2b2f3a' + }) + }, + plugins: [], + + +}