perf: refine tailwindcss config

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/588/head
Ryan Wang 2022-07-11 12:25:24 +08:00
parent d2c5998b5e
commit ce17c6eff9
6 changed files with 9 additions and 31 deletions

View File

@ -1,6 +1,3 @@
module.exports = { module.exports = {
plugins: { ...require("../../postcss.config"),
tailwindcss: {},
autoprefixer: {},
},
}; };

View File

@ -1,5 +1,3 @@
import "./styles/tailwind.css";
export * from "./types/plugin"; export * from "./types/plugin";
export * from "./types/menus"; export * from "./types/menus";
export * from "./core/plugins"; export * from "./core/plugins";

View File

@ -1 +0,0 @@
@tailwind utilities;

View File

@ -1,23 +1,3 @@
const { themeable } = require("tailwindcss-themeable");
module.exports = { module.exports = {
content: ["./src/**/*.{vue,js,ts,jsx,tsx}"], ...require("../../tailwind.config"),
theme: {
extend: {},
},
plugins: [
require("tailwindcss-safe-area"),
themeable({
defaultTheme: "default",
themes: [
{
name: "default",
palette: {
primary: "#4CCBA0",
secondary: "#0E1731",
},
},
],
}),
],
}; };

View File

@ -354,12 +354,12 @@ onMounted(handleFetchPlugins);
> >
<a <a
:href="plugin.spec.homepage" :href="plugin.spec.homepage"
class="text-sm text-gray-500 hover:text-gray-900" class="hidden text-sm text-gray-500 hover:text-gray-900 sm:block"
target="_blank" target="_blank"
> >
@{{ plugin.spec.author }} @{{ plugin.spec.author }}
</a> </a>
<span class="text-sm text-gray-500"> <span class="hidden text-sm text-gray-500 sm:block">
{{ plugin.spec.version }} {{ plugin.spec.version }}
</span> </span>
<time class="text-sm text-gray-500" datetime="2020-01-07"> <time class="text-sm text-gray-500" datetime="2020-01-07">

View File

@ -1,7 +1,11 @@
const { themeable } = require("tailwindcss-themeable"); const { themeable } = require("tailwindcss-themeable");
module.exports = { module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
"./packages/shared/src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: { theme: {
extend: {}, extend: {},
}, },