@removify/tailwind-preset 1.0.6 → 1.0.7
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/dist/index.cjs +3 -0
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +3 -0
- package/package.json +28 -21
- package/tailwind-dist/index.css +1 -0
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -5,6 +5,8 @@ declare const colorsNames: readonly ["primary", "bateau", "secondary", "pompelmo
|
|
|
5
5
|
type ColorsNames = typeof colorsNames[number];
|
|
6
6
|
type RatingVariations = `${'low' | 'high' | 'medium'}${'' | '-star'}`;
|
|
7
7
|
declare const ratingColorVariations: RatingVariations[];
|
|
8
|
+
type CustomColors = 'rating' | 'table';
|
|
9
|
+
type TableVariations = 'border';
|
|
8
10
|
type ColorsVariations = 'DEFAULT' | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
9
11
|
interface MainColors {
|
|
10
12
|
black: string;
|
|
@@ -21,9 +23,11 @@ interface DefaultColors {
|
|
|
21
23
|
special: string;
|
|
22
24
|
}
|
|
23
25
|
type Colors = DefaultColors & MainColors & Record<ColorsNames, Record<ColorsVariations, string>> & {
|
|
24
|
-
rating: Record<RatingVariations, string>;
|
|
26
|
+
[K in Extract<CustomColors, 'rating'>]: Record<RatingVariations, string>;
|
|
27
|
+
} & {
|
|
28
|
+
[K in Extract<CustomColors, 'table'>]: Record<TableVariations, string>;
|
|
25
29
|
};
|
|
26
|
-
type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors;
|
|
30
|
+
type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors | CustomColors;
|
|
27
31
|
|
|
28
32
|
declare const configuredThemes: readonly ["colors", "boxShadow", "fontSize", "fontFamily", "animation", "keyframes", "screens"];
|
|
29
33
|
type ConfiguredThemes = typeof configuredThemes[number];
|
|
@@ -397,6 +401,9 @@ declare const colors: {
|
|
|
397
401
|
'medium-star': string;
|
|
398
402
|
'low-star': string;
|
|
399
403
|
};
|
|
404
|
+
table: {
|
|
405
|
+
border: string;
|
|
406
|
+
};
|
|
400
407
|
};
|
|
401
408
|
|
|
402
409
|
declare const customFontFamily: {
|
|
@@ -684,6 +691,9 @@ declare const unocssTheme: {
|
|
|
684
691
|
'medium-star': string;
|
|
685
692
|
'low-star': string;
|
|
686
693
|
};
|
|
694
|
+
table: {
|
|
695
|
+
border: string;
|
|
696
|
+
};
|
|
687
697
|
};
|
|
688
698
|
boxShadow: {
|
|
689
699
|
'elevation-0': "0 0 0 0 rgba(0, 0, 0, 0.10)";
|
|
@@ -698,4 +708,4 @@ declare const unocssTheme: {
|
|
|
698
708
|
|
|
699
709
|
declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
|
|
700
710
|
|
|
701
|
-
export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowKeys, type ShadowSize, type Shadows, type SizeKeys, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations, unocssTheme };
|
|
711
|
+
export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type CustomColors, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowKeys, type ShadowSize, type Shadows, type SizeKeys, type TableVariations, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations, unocssTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ declare const colorsNames: readonly ["primary", "bateau", "secondary", "pompelmo
|
|
|
5
5
|
type ColorsNames = typeof colorsNames[number];
|
|
6
6
|
type RatingVariations = `${'low' | 'high' | 'medium'}${'' | '-star'}`;
|
|
7
7
|
declare const ratingColorVariations: RatingVariations[];
|
|
8
|
+
type CustomColors = 'rating' | 'table';
|
|
9
|
+
type TableVariations = 'border';
|
|
8
10
|
type ColorsVariations = 'DEFAULT' | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
9
11
|
interface MainColors {
|
|
10
12
|
black: string;
|
|
@@ -21,9 +23,11 @@ interface DefaultColors {
|
|
|
21
23
|
special: string;
|
|
22
24
|
}
|
|
23
25
|
type Colors = DefaultColors & MainColors & Record<ColorsNames, Record<ColorsVariations, string>> & {
|
|
24
|
-
rating: Record<RatingVariations, string>;
|
|
26
|
+
[K in Extract<CustomColors, 'rating'>]: Record<RatingVariations, string>;
|
|
27
|
+
} & {
|
|
28
|
+
[K in Extract<CustomColors, 'table'>]: Record<TableVariations, string>;
|
|
25
29
|
};
|
|
26
|
-
type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors;
|
|
30
|
+
type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors | CustomColors;
|
|
27
31
|
|
|
28
32
|
declare const configuredThemes: readonly ["colors", "boxShadow", "fontSize", "fontFamily", "animation", "keyframes", "screens"];
|
|
29
33
|
type ConfiguredThemes = typeof configuredThemes[number];
|
|
@@ -397,6 +401,9 @@ declare const colors: {
|
|
|
397
401
|
'medium-star': string;
|
|
398
402
|
'low-star': string;
|
|
399
403
|
};
|
|
404
|
+
table: {
|
|
405
|
+
border: string;
|
|
406
|
+
};
|
|
400
407
|
};
|
|
401
408
|
|
|
402
409
|
declare const customFontFamily: {
|
|
@@ -684,6 +691,9 @@ declare const unocssTheme: {
|
|
|
684
691
|
'medium-star': string;
|
|
685
692
|
'low-star': string;
|
|
686
693
|
};
|
|
694
|
+
table: {
|
|
695
|
+
border: string;
|
|
696
|
+
};
|
|
687
697
|
};
|
|
688
698
|
boxShadow: {
|
|
689
699
|
'elevation-0': "0 0 0 0 rgba(0, 0, 0, 0.10)";
|
|
@@ -698,4 +708,4 @@ declare const unocssTheme: {
|
|
|
698
708
|
|
|
699
709
|
declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
|
|
700
710
|
|
|
701
|
-
export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowKeys, type ShadowSize, type Shadows, type SizeKeys, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations, unocssTheme };
|
|
711
|
+
export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type CustomColors, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowKeys, type ShadowSize, type Shadows, type SizeKeys, type TableVariations, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations, unocssTheme };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@removify/tailwind-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
|
+
"packageManager": "pnpm@10.13.1",
|
|
5
6
|
"description": "Tailwind CSS preset for Removify",
|
|
6
7
|
"keywords": [
|
|
7
8
|
"tailwind"
|
|
@@ -31,6 +32,24 @@
|
|
|
31
32
|
"engines": {
|
|
32
33
|
"node": ">=22"
|
|
33
34
|
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"start": "pnpm exec tsx ./src/index.ts",
|
|
37
|
+
"build": "rimraf dist && tsup src/index.ts --format esm,cjs --clean --dts && pnpm generate:tailwind-v4",
|
|
38
|
+
"generate:tailwind-v4": "tsx ./scripts/generate-tailwind-v4.ts",
|
|
39
|
+
"update-animation:v4": "curl https://raw.githubusercontent.com/Wombosvideo/tw-animate-css/refs/heads/main/src/tw-animate.css > ./tailwind-dist/tailwindcss-animate.css",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"prepack": "pnpm build",
|
|
42
|
+
"watch": "tsup --format esm,cjs --watch",
|
|
43
|
+
"dev": "tsx watch ./src/index.ts",
|
|
44
|
+
"dev:playground": "pnpm --filter playground dev",
|
|
45
|
+
"test": "vitest",
|
|
46
|
+
"lint": "eslint .",
|
|
47
|
+
"lint:fix": "eslint --fix .",
|
|
48
|
+
"husky:install": "husky",
|
|
49
|
+
"release": "bumpp && pnpm publish --access=public",
|
|
50
|
+
"tailwind-config-viewer": "tailwind-config-viewer -o -c tailwind.config.js",
|
|
51
|
+
"tailwind-config-viewer:build": "pnpm build && tailwind-config-viewer export tailwind-dist -c tailwind.config.js"
|
|
52
|
+
},
|
|
34
53
|
"peerDependencies": {
|
|
35
54
|
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
36
55
|
},
|
|
@@ -42,6 +61,7 @@
|
|
|
42
61
|
"@commitlint/cli": "^19.8.1",
|
|
43
62
|
"@commitlint/config-conventional": "^19.8.1",
|
|
44
63
|
"@removify/eslint-config": "^3.1.2",
|
|
64
|
+
"@removify/tailwind-preset": "workspace:*",
|
|
45
65
|
"@types/node": "^22.16.5",
|
|
46
66
|
"bumpp": "^10.2.0",
|
|
47
67
|
"eslint": "^9.31.0",
|
|
@@ -53,29 +73,16 @@
|
|
|
53
73
|
"tsup": "^8.5.0",
|
|
54
74
|
"tsx": "^4.20.3",
|
|
55
75
|
"typescript": "^5.8.3",
|
|
56
|
-
"vitest": "^3.2.4"
|
|
57
|
-
|
|
76
|
+
"vitest": "^3.2.4"
|
|
77
|
+
},
|
|
78
|
+
"pnpm": {
|
|
79
|
+
"overrides": {
|
|
80
|
+
"koa": ">=3.0.1"
|
|
81
|
+
}
|
|
58
82
|
},
|
|
59
83
|
"lint-staged": {
|
|
60
84
|
"**/*.{js,ts,vue,html}": [
|
|
61
85
|
"pnpm lint:fix"
|
|
62
86
|
]
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"start": "pnpm exec tsx ./src/index.ts",
|
|
66
|
-
"build": "rimraf dist && tsup src/index.ts --format esm,cjs --clean --dts && pnpm generate:tailwind-v4",
|
|
67
|
-
"generate:tailwind-v4": "tsx ./scripts/generate-tailwind-v4.ts",
|
|
68
|
-
"update-animation:v4": "curl https://raw.githubusercontent.com/Wombosvideo/tw-animate-css/refs/heads/main/src/tw-animate.css > ./tailwind-dist/tailwindcss-animate.css",
|
|
69
|
-
"typecheck": "tsc --noEmit",
|
|
70
|
-
"watch": "tsup --format esm,cjs --watch",
|
|
71
|
-
"dev": "tsx watch ./src/index.ts",
|
|
72
|
-
"dev:playground": "pnpm --filter playground dev",
|
|
73
|
-
"test": "vitest",
|
|
74
|
-
"lint": "eslint .",
|
|
75
|
-
"lint:fix": "eslint --fix .",
|
|
76
|
-
"husky:install": "husky",
|
|
77
|
-
"release": "bumpp && pnpm publish --access=public",
|
|
78
|
-
"tailwind-config-viewer": "tailwind-config-viewer -o -c tailwind.config.js",
|
|
79
|
-
"tailwind-config-viewer:build": "pnpm build && tailwind-config-viewer export tailwind-dist -c tailwind.config.js"
|
|
80
87
|
}
|
|
81
|
-
}
|
|
88
|
+
}
|
package/tailwind-dist/index.css
CHANGED