@removify/tailwind-preset 1.0.5 → 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 CHANGED
@@ -47,6 +47,7 @@ __export(index_exports, {
47
47
  screenSizes: () => screenSizes,
48
48
  screens: () => screens,
49
49
  screensNumber: () => screensNumber,
50
+ shadowVariations: () => shadowVariations,
50
51
  unocssTheme: () => unocssTheme
51
52
  });
52
53
  module.exports = __toCommonJS(index_exports);
@@ -289,6 +290,9 @@ var mainColors = {
289
290
  "high-star": "#86C1A3",
290
291
  "medium-star": "#FCD288",
291
292
  "low-star": "#F08C8A"
293
+ },
294
+ table: {
295
+ border: "#e8e9ed"
292
296
  }
293
297
  };
294
298
  var colors = {
@@ -558,6 +562,16 @@ var screenSizes = [
558
562
  "desktop"
559
563
  ];
560
564
 
565
+ // src/types/shadow.ts
566
+ var shadowVariations = [
567
+ "elevation-0",
568
+ "elevation-1",
569
+ "elevation-2",
570
+ "elevation-3",
571
+ "elevation-4",
572
+ "elevation-5"
573
+ ];
574
+
561
575
  // src/index.ts
562
576
  function buildPreset(extend = true, buildOptions = {}) {
563
577
  if (extend === false) {
@@ -592,5 +606,6 @@ function buildPreset(extend = true, buildOptions = {}) {
592
606
  screenSizes,
593
607
  screens,
594
608
  screensNumber,
609
+ shadowVariations,
595
610
  unocssTheme
596
611
  });
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];
@@ -93,9 +97,9 @@ type BorderSize = 0 | `${number}px`;
93
97
  type RgbValue = number;
94
98
  type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
95
99
  type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
96
- type Shadows = {
97
- [K in ShadowSize as `elevation-${K}`]?: Shadow;
98
- };
100
+ type ShadowKeys = `elevation-${ShadowSize}`;
101
+ declare const shadowVariations: ShadowKeys[];
102
+ type Shadows = Record<ShadowKeys, Shadow>;
99
103
 
100
104
  declare const animation: {
101
105
  'radix-accordion-down': string;
@@ -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 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, 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];
@@ -93,9 +97,9 @@ type BorderSize = 0 | `${number}px`;
93
97
  type RgbValue = number;
94
98
  type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
95
99
  type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
96
- type Shadows = {
97
- [K in ShadowSize as `elevation-${K}`]?: Shadow;
98
- };
100
+ type ShadowKeys = `elevation-${ShadowSize}`;
101
+ declare const shadowVariations: ShadowKeys[];
102
+ type Shadows = Record<ShadowKeys, Shadow>;
99
103
 
100
104
  declare const animation: {
101
105
  'radix-accordion-down': string;
@@ -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 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, 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
@@ -236,6 +236,9 @@ var mainColors = {
236
236
  "high-star": "#86C1A3",
237
237
  "medium-star": "#FCD288",
238
238
  "low-star": "#F08C8A"
239
+ },
240
+ table: {
241
+ border: "#e8e9ed"
239
242
  }
240
243
  };
241
244
  var colors = {
@@ -505,6 +508,16 @@ var screenSizes = [
505
508
  "desktop"
506
509
  ];
507
510
 
511
+ // src/types/shadow.ts
512
+ var shadowVariations = [
513
+ "elevation-0",
514
+ "elevation-1",
515
+ "elevation-2",
516
+ "elevation-3",
517
+ "elevation-4",
518
+ "elevation-5"
519
+ ];
520
+
508
521
  // src/index.ts
509
522
  function buildPreset(extend = true, buildOptions = {}) {
510
523
  if (extend === false) {
@@ -538,5 +551,6 @@ export {
538
551
  screenSizes,
539
552
  screens,
540
553
  screensNumber,
554
+ shadowVariations,
541
555
  unocssTheme
542
556
  };
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@removify/tailwind-preset",
3
3
  "type": "module",
4
- "version": "1.0.5",
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
- "@removify/tailwind-preset": "1.0.5"
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
+ }
@@ -133,6 +133,7 @@
133
133
  --color-rating-high-star: #86C1A3;
134
134
  --color-rating-medium-star: #FCD288;
135
135
  --color-rating-low-star: #F08C8A;
136
+ --color-table-border: #e8e9ed;
136
137
  --color-primary-50: #F2F5F7;
137
138
  --color-primary-100: #E7ECF0;
138
139
  --color-primary-200: #CCD7E1;