vueless 0.0.161 → 0.0.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/preset.tailwind/index.js +3 -10
- package/web-types.json +1 -1
package/package.json
CHANGED
package/preset.tailwind/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import forms from "@tailwindcss/forms";
|
|
2
2
|
import { BRAND_COLORS, GRAY_COLORS, GRAYSCALE_COLOR } from "./constants/index.js";
|
|
3
3
|
|
|
4
|
+
const safelist = getSafelist();
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Generates preset for TailwindCSS base on Vueless config.
|
|
6
8
|
* @returns {Object}
|
|
7
9
|
*/
|
|
8
10
|
export function vuelessPreset() {
|
|
9
|
-
const isProd = process.env.NODE_ENV === "production";
|
|
10
11
|
const brandColor = twColorWithOpacity("--color-brand");
|
|
11
12
|
const { brand, gray } = getVuelessConfigColors();
|
|
12
13
|
const colors = getTailwindConfigColors();
|
|
@@ -22,14 +23,6 @@ export function vuelessPreset() {
|
|
|
22
23
|
brandPalette = grayPalette;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
const prodSafelist = getSafelist();
|
|
26
|
-
const devSafelist = [
|
|
27
|
-
{
|
|
28
|
-
pattern: /^!?(border|bg|text|ring)-(.*)-((50|[1-9]00|950)?)$/,
|
|
29
|
-
variants: ["hover", "focus", "focus-within", "active", "disabled"],
|
|
30
|
-
},
|
|
31
|
-
];
|
|
32
|
-
|
|
33
26
|
return {
|
|
34
27
|
content: [
|
|
35
28
|
"./index.html",
|
|
@@ -37,7 +30,7 @@ export function vuelessPreset() {
|
|
|
37
30
|
"./vueless.config.{js,ts}",
|
|
38
31
|
"./node_modules/vueless/**/*.{js,ts,vue}",
|
|
39
32
|
],
|
|
40
|
-
safelist
|
|
33
|
+
safelist,
|
|
41
34
|
theme: {
|
|
42
35
|
extend: {
|
|
43
36
|
colors: {
|