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 = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
...require("../../postcss.config"),
};

View File

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

View File

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

View File

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

View File

@ -354,12 +354,12 @@ onMounted(handleFetchPlugins);
>
<a
: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"
>
@{{ plugin.spec.author }}
</a>
<span class="text-sm text-gray-500">
<span class="hidden text-sm text-gray-500 sm:block">
{{ plugin.spec.version }}
</span>
<time class="text-sm text-gray-500" datetime="2020-01-07">

View File

@ -1,7 +1,11 @@
const { themeable } = require("tailwindcss-themeable");
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: {
extend: {},
},