@removify/tailwind-preset 0.2.8 → 0.2.9

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.
@@ -225,15 +225,13 @@ var customFontFamily = {
225
225
  sans: ["DM Sans", ...fontFamilySans]
226
226
  };
227
227
 
228
- // src/util/font.ts
229
- import { kebabKeys } from "string-ts";
230
-
231
228
  // src/types/fontSize.ts
232
229
  function isDetailFont(value) {
233
230
  return Array.isArray(value) && typeof value[1] === "object";
234
231
  }
235
232
 
236
233
  // src/util/font.ts
234
+ import { kebabKeys } from "string-ts";
237
235
  var entries = Object.entries;
238
236
  function fontConfigKeysKebabCase(fontConfig) {
239
237
  const result = {};
@@ -426,6 +424,7 @@ export {
426
424
  keyframes,
427
425
  colors,
428
426
  customFontFamily,
427
+ isDetailFont,
429
428
  fontSize,
430
429
  screensNumber,
431
430
  screens,
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colors
3
- } from "../chunk-SB3R3MI5.js";
3
+ } from "../chunk-2EJHJW3A.js";
4
4
 
5
5
  // src/cli/index.ts
6
6
  import process from "node:process";
package/dist/index.cjs CHANGED
@@ -36,11 +36,14 @@ __export(index_exports, {
36
36
  buildTheme: () => buildTheme,
37
37
  colors: () => colors,
38
38
  colorsNames: () => colorsNames,
39
+ configuredThemes: () => configuredThemes,
39
40
  defaultTheme: () => defaultTheme,
40
41
  factory: () => factory,
41
42
  fontFamily: () => customFontFamily,
42
43
  fontSize: () => fontSize,
44
+ isDetailFont: () => isDetailFont,
43
45
  keyframes: () => keyframes,
46
+ screenSizes: () => screenSizes,
44
47
  screens: () => screens,
45
48
  screensNumber: () => screensNumber,
46
49
  unocssTheme: () => unocssTheme
@@ -490,6 +493,31 @@ var colorsNames = [
490
493
  "seafoam"
491
494
  ];
492
495
 
496
+ // src/types/factory.ts
497
+ var configuredThemes = [
498
+ "colors",
499
+ "boxShadow",
500
+ "fontSize",
501
+ "fontFamily",
502
+ "animation",
503
+ "keyframes",
504
+ "screens"
505
+ ];
506
+
507
+ // src/types/screen.ts
508
+ var screenSizes = [
509
+ "xs",
510
+ "sm",
511
+ "md",
512
+ "lg",
513
+ "xl",
514
+ "2xl",
515
+ "tablet",
516
+ "tablet-lg",
517
+ "laptop",
518
+ "desktop"
519
+ ];
520
+
493
521
  // src/index.ts
494
522
  function buildPreset(extend = true, buildOptions = {}) {
495
523
  if (extend === false) {
@@ -513,11 +541,14 @@ function buildPreset(extend = true, buildOptions = {}) {
513
541
  buildTheme,
514
542
  colors,
515
543
  colorsNames,
544
+ configuredThemes,
516
545
  defaultTheme,
517
546
  factory,
518
547
  fontFamily,
519
548
  fontSize,
549
+ isDetailFont,
520
550
  keyframes,
551
+ screenSizes,
521
552
  screens,
522
553
  screensNumber,
523
554
  unocssTheme
package/dist/index.d.cts CHANGED
@@ -95,60 +95,6 @@ type Shadows = {
95
95
  [K in ShadowSize as `elevation-${K}`]?: Shadow;
96
96
  };
97
97
 
98
- declare const fontSize: {
99
- '2xs': ["0.6875rem", "1rem"];
100
- xs: ["0.75rem", "1rem"];
101
- sm: ["0.875rem", "1.25rem"];
102
- base: ["1rem", "1.5rem"];
103
- md: ["1.125rem", "1.5rem"];
104
- lg: ["1.25rem", "1.625rem"];
105
- display1: ["3.75rem", {
106
- fontWeight: number;
107
- lineHeight: string;
108
- letterSpacing: string;
109
- }];
110
- display2: ["3.25rem", {
111
- fontWeight: number;
112
- lineHeight: string;
113
- letterSpacing: string;
114
- }];
115
- display3: ["2.75rem", {
116
- fontWeight: number;
117
- lineHeight: string;
118
- letterSpacing: string;
119
- }];
120
- h1: ["3rem", {
121
- fontWeight: number;
122
- lineHeight: string;
123
- letterSpacing: string;
124
- }];
125
- h2: ["2.5rem", {
126
- fontWeight: number;
127
- lineHeight: string;
128
- letterSpacing: string;
129
- }];
130
- h3: ["2.25rem", {
131
- fontWeight: number;
132
- lineHeight: string;
133
- letterSpacing: string;
134
- }];
135
- h4: ["2rem", {
136
- fontWeight: number;
137
- lineHeight: string;
138
- letterSpacing: string;
139
- }];
140
- h5: ["1.5rem", {
141
- fontWeight: number;
142
- lineHeight: string;
143
- letterSpacing: string;
144
- }];
145
- h6: ["1.25rem", {
146
- fontWeight: number;
147
- lineHeight: string;
148
- letterSpacing: string;
149
- }];
150
- };
151
-
152
98
  declare const animation: {
153
99
  'radix-accordion-down': string;
154
100
  'radix-accordion-up': string;
@@ -411,6 +357,60 @@ declare const customFontFamily: {
411
357
  sans: string[];
412
358
  };
413
359
 
360
+ declare const fontSize: {
361
+ '2xs': ["0.6875rem", "1rem"];
362
+ xs: ["0.75rem", "1rem"];
363
+ sm: ["0.875rem", "1.25rem"];
364
+ base: ["1rem", "1.5rem"];
365
+ md: ["1.125rem", "1.5rem"];
366
+ lg: ["1.25rem", "1.625rem"];
367
+ display1: ["3.75rem", {
368
+ fontWeight: number;
369
+ lineHeight: string;
370
+ letterSpacing: string;
371
+ }];
372
+ display2: ["3.25rem", {
373
+ fontWeight: number;
374
+ lineHeight: string;
375
+ letterSpacing: string;
376
+ }];
377
+ display3: ["2.75rem", {
378
+ fontWeight: number;
379
+ lineHeight: string;
380
+ letterSpacing: string;
381
+ }];
382
+ h1: ["3rem", {
383
+ fontWeight: number;
384
+ lineHeight: string;
385
+ letterSpacing: string;
386
+ }];
387
+ h2: ["2.5rem", {
388
+ fontWeight: number;
389
+ lineHeight: string;
390
+ letterSpacing: string;
391
+ }];
392
+ h3: ["2.25rem", {
393
+ fontWeight: number;
394
+ lineHeight: string;
395
+ letterSpacing: string;
396
+ }];
397
+ h4: ["2rem", {
398
+ fontWeight: number;
399
+ lineHeight: string;
400
+ letterSpacing: string;
401
+ }];
402
+ h5: ["1.5rem", {
403
+ fontWeight: number;
404
+ lineHeight: string;
405
+ letterSpacing: string;
406
+ }];
407
+ h6: ["1.25rem", {
408
+ fontWeight: number;
409
+ lineHeight: string;
410
+ letterSpacing: string;
411
+ }];
412
+ };
413
+
414
414
  declare const screensNumber: {
415
415
  xs: number;
416
416
  sm: number;
package/dist/index.d.ts CHANGED
@@ -95,60 +95,6 @@ type Shadows = {
95
95
  [K in ShadowSize as `elevation-${K}`]?: Shadow;
96
96
  };
97
97
 
98
- declare const fontSize: {
99
- '2xs': ["0.6875rem", "1rem"];
100
- xs: ["0.75rem", "1rem"];
101
- sm: ["0.875rem", "1.25rem"];
102
- base: ["1rem", "1.5rem"];
103
- md: ["1.125rem", "1.5rem"];
104
- lg: ["1.25rem", "1.625rem"];
105
- display1: ["3.75rem", {
106
- fontWeight: number;
107
- lineHeight: string;
108
- letterSpacing: string;
109
- }];
110
- display2: ["3.25rem", {
111
- fontWeight: number;
112
- lineHeight: string;
113
- letterSpacing: string;
114
- }];
115
- display3: ["2.75rem", {
116
- fontWeight: number;
117
- lineHeight: string;
118
- letterSpacing: string;
119
- }];
120
- h1: ["3rem", {
121
- fontWeight: number;
122
- lineHeight: string;
123
- letterSpacing: string;
124
- }];
125
- h2: ["2.5rem", {
126
- fontWeight: number;
127
- lineHeight: string;
128
- letterSpacing: string;
129
- }];
130
- h3: ["2.25rem", {
131
- fontWeight: number;
132
- lineHeight: string;
133
- letterSpacing: string;
134
- }];
135
- h4: ["2rem", {
136
- fontWeight: number;
137
- lineHeight: string;
138
- letterSpacing: string;
139
- }];
140
- h5: ["1.5rem", {
141
- fontWeight: number;
142
- lineHeight: string;
143
- letterSpacing: string;
144
- }];
145
- h6: ["1.25rem", {
146
- fontWeight: number;
147
- lineHeight: string;
148
- letterSpacing: string;
149
- }];
150
- };
151
-
152
98
  declare const animation: {
153
99
  'radix-accordion-down': string;
154
100
  'radix-accordion-up': string;
@@ -411,6 +357,60 @@ declare const customFontFamily: {
411
357
  sans: string[];
412
358
  };
413
359
 
360
+ declare const fontSize: {
361
+ '2xs': ["0.6875rem", "1rem"];
362
+ xs: ["0.75rem", "1rem"];
363
+ sm: ["0.875rem", "1.25rem"];
364
+ base: ["1rem", "1.5rem"];
365
+ md: ["1.125rem", "1.5rem"];
366
+ lg: ["1.25rem", "1.625rem"];
367
+ display1: ["3.75rem", {
368
+ fontWeight: number;
369
+ lineHeight: string;
370
+ letterSpacing: string;
371
+ }];
372
+ display2: ["3.25rem", {
373
+ fontWeight: number;
374
+ lineHeight: string;
375
+ letterSpacing: string;
376
+ }];
377
+ display3: ["2.75rem", {
378
+ fontWeight: number;
379
+ lineHeight: string;
380
+ letterSpacing: string;
381
+ }];
382
+ h1: ["3rem", {
383
+ fontWeight: number;
384
+ lineHeight: string;
385
+ letterSpacing: string;
386
+ }];
387
+ h2: ["2.5rem", {
388
+ fontWeight: number;
389
+ lineHeight: string;
390
+ letterSpacing: string;
391
+ }];
392
+ h3: ["2.25rem", {
393
+ fontWeight: number;
394
+ lineHeight: string;
395
+ letterSpacing: string;
396
+ }];
397
+ h4: ["2rem", {
398
+ fontWeight: number;
399
+ lineHeight: string;
400
+ letterSpacing: string;
401
+ }];
402
+ h5: ["1.5rem", {
403
+ fontWeight: number;
404
+ lineHeight: string;
405
+ letterSpacing: string;
406
+ }];
407
+ h6: ["1.25rem", {
408
+ fontWeight: number;
409
+ lineHeight: string;
410
+ letterSpacing: string;
411
+ }];
412
+ };
413
+
414
414
  declare const screensNumber: {
415
415
  xs: number;
416
416
  sm: number;
package/dist/index.js CHANGED
@@ -7,11 +7,12 @@ import {
7
7
  defaultTheme,
8
8
  factory,
9
9
  fontSize,
10
+ isDetailFont,
10
11
  keyframes,
11
12
  screens,
12
13
  screensNumber,
13
14
  unocssTheme
14
- } from "./chunk-SB3R3MI5.js";
15
+ } from "./chunk-2EJHJW3A.js";
15
16
 
16
17
  // src/plugins/index.ts
17
18
  import animation2 from "tailwindcss-animate";
@@ -33,6 +34,31 @@ var colorsNames = [
33
34
  "seafoam"
34
35
  ];
35
36
 
37
+ // src/types/factory.ts
38
+ var configuredThemes = [
39
+ "colors",
40
+ "boxShadow",
41
+ "fontSize",
42
+ "fontFamily",
43
+ "animation",
44
+ "keyframes",
45
+ "screens"
46
+ ];
47
+
48
+ // src/types/screen.ts
49
+ var screenSizes = [
50
+ "xs",
51
+ "sm",
52
+ "md",
53
+ "lg",
54
+ "xl",
55
+ "2xl",
56
+ "tablet",
57
+ "tablet-lg",
58
+ "laptop",
59
+ "desktop"
60
+ ];
61
+
36
62
  // src/index.ts
37
63
  function buildPreset(extend = true, buildOptions = {}) {
38
64
  if (extend === false) {
@@ -55,11 +81,14 @@ export {
55
81
  buildTheme,
56
82
  colors,
57
83
  colorsNames,
84
+ configuredThemes,
58
85
  defaultTheme,
59
86
  factory,
60
87
  customFontFamily as fontFamily,
61
88
  fontSize,
89
+ isDetailFont,
62
90
  keyframes,
91
+ screenSizes,
63
92
  screens,
64
93
  screensNumber,
65
94
  unocssTheme
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@removify/tailwind-preset",
3
3
  "type": "module",
4
- "version": "0.2.8",
4
+ "version": "0.2.9",
5
5
  "description": "Tailwind CSS preset for Removify",
6
6
  "keywords": [
7
7
  "tailwind"
@@ -48,7 +48,7 @@
48
48
  "tsx": "^4.19.2",
49
49
  "typescript": "^5.7.2",
50
50
  "vitest": "^2.1.8",
51
- "@removify/tailwind-preset": "0.2.8"
51
+ "@removify/tailwind-preset": "0.2.9"
52
52
  },
53
53
  "lint-staged": {
54
54
  "**/*.{js,ts,vue,html}": [