@removify/tailwind-preset 0.0.6 → 0.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/{chunk-W4S5IMYJ.js → chunk-UJDFJG2Z.js} +2 -21
- package/dist/cli.cjs +1 -18
- package/dist/cli.js +1 -1
- package/dist/index.cjs +81 -8
- package/dist/index.d.cts +111 -1
- package/dist/index.d.ts +111 -1
- package/dist/index.js +88 -4
- package/package.json +4 -3
- package/readme.md +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/theme/colors.ts
|
|
2
2
|
var colors = {
|
|
3
3
|
inherit: "inherit",
|
|
4
4
|
current: "currentColor",
|
|
@@ -108,26 +108,7 @@ var colors = {
|
|
|
108
108
|
900: "#113C3E"
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
function config(extend = false) {
|
|
112
|
-
if (extend) {
|
|
113
|
-
return {
|
|
114
|
-
theme: {
|
|
115
|
-
extend: {
|
|
116
|
-
colors
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
return {
|
|
122
|
-
theme: {
|
|
123
|
-
colors
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
var src_default = config();
|
|
128
111
|
|
|
129
112
|
export {
|
|
130
|
-
colors
|
|
131
|
-
config,
|
|
132
|
-
src_default
|
|
113
|
+
colors
|
|
133
114
|
};
|
package/dist/cli.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var import_helpers = require("yargs/helpers");
|
|
|
27
27
|
var import_yargs = __toESM(require("yargs"), 1);
|
|
28
28
|
var import_node_process = __toESM(require("process"), 1);
|
|
29
29
|
|
|
30
|
-
// src/
|
|
30
|
+
// src/theme/colors.ts
|
|
31
31
|
var colors = {
|
|
32
32
|
inherit: "inherit",
|
|
33
33
|
current: "currentColor",
|
|
@@ -137,23 +137,6 @@ var colors = {
|
|
|
137
137
|
900: "#113C3E"
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
function config(extend = false) {
|
|
141
|
-
if (extend) {
|
|
142
|
-
return {
|
|
143
|
-
theme: {
|
|
144
|
-
extend: {
|
|
145
|
-
colors
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
return {
|
|
151
|
-
theme: {
|
|
152
|
-
colors
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
var src_default = config();
|
|
157
140
|
|
|
158
141
|
// src/cli.ts
|
|
159
142
|
var css = String.raw;
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -22,9 +22,13 @@ var src_exports = {};
|
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
colors: () => colors,
|
|
24
24
|
config: () => config,
|
|
25
|
-
default: () => src_default
|
|
25
|
+
default: () => src_default,
|
|
26
|
+
fontSizes: () => fontSizes,
|
|
27
|
+
shadows: () => shadows
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/theme/colors.ts
|
|
28
32
|
var colors = {
|
|
29
33
|
inherit: "inherit",
|
|
30
34
|
current: "currentColor",
|
|
@@ -134,25 +138,94 @@ var colors = {
|
|
|
134
138
|
900: "#113C3E"
|
|
135
139
|
}
|
|
136
140
|
};
|
|
141
|
+
|
|
142
|
+
// src/theme/shadows.ts
|
|
143
|
+
var shadows = {
|
|
144
|
+
"elevation-0": "0 0 0 0 rgba(0, 0, 0, 0.10)",
|
|
145
|
+
"elevation-1": "0 1px 2px 0 rgba(0, 0, 0, 0.10)",
|
|
146
|
+
"elevation-2": "0 4px 8px 0 rgba(0, 0, 0, 0.10)",
|
|
147
|
+
"elevation-3": "0 6px 12px 0 rgba(0, 0, 0, 0.10)",
|
|
148
|
+
"elevation-4": "0 8px 16px 0 rgba(0, 0, 0, 0.10)",
|
|
149
|
+
"elevation-5": "0 12px 24px 0 rgba(0, 0, 0, 0.10)"
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// src/theme/fontSize.ts
|
|
153
|
+
var fontSizes = {
|
|
154
|
+
"2xs": ["0.6875rem", "1rem"],
|
|
155
|
+
"xs": ["0.75rem", "1rem"],
|
|
156
|
+
"sm": ["0.875rem", "1.25rem"],
|
|
157
|
+
"base": ["1rem", "1.5rem"],
|
|
158
|
+
"lg": ["1.25rem", "1.625rem"],
|
|
159
|
+
"display1": ["3.75rem", {
|
|
160
|
+
fontWeight: 700,
|
|
161
|
+
lineHeight: "5rem",
|
|
162
|
+
letterSpacing: "-0.0625rem"
|
|
163
|
+
}],
|
|
164
|
+
"display2": ["3.25rem", {
|
|
165
|
+
fontWeight: 700,
|
|
166
|
+
lineHeight: "4.25rem",
|
|
167
|
+
letterSpacing: "-0.05rem"
|
|
168
|
+
}],
|
|
169
|
+
"display3": ["2.75rem", {
|
|
170
|
+
fontWeight: 700,
|
|
171
|
+
lineHeight: "3.625rem",
|
|
172
|
+
letterSpacing: "-0.0375rem"
|
|
173
|
+
}],
|
|
174
|
+
"h1": ["3rem", {
|
|
175
|
+
fontWeight: 700,
|
|
176
|
+
lineHeight: "3.75rem",
|
|
177
|
+
letterSpacing: "-0.0125rem"
|
|
178
|
+
}],
|
|
179
|
+
"h2": ["2.5rem", {
|
|
180
|
+
fontWeight: 700,
|
|
181
|
+
lineHeight: "3.25rem",
|
|
182
|
+
letterSpacing: "-0.0125rem"
|
|
183
|
+
}],
|
|
184
|
+
"h3": ["2.25rem", {
|
|
185
|
+
fontWeight: 700,
|
|
186
|
+
lineHeight: "3rem",
|
|
187
|
+
letterSpacing: "-0.0125rem"
|
|
188
|
+
}],
|
|
189
|
+
"h4": ["2rem", {
|
|
190
|
+
fontWeight: 700,
|
|
191
|
+
lineHeight: "2.625rem",
|
|
192
|
+
letterSpacing: "-0.0125rem"
|
|
193
|
+
}],
|
|
194
|
+
"h5": ["1.5rem", {
|
|
195
|
+
fontWeight: 700,
|
|
196
|
+
lineHeight: "2rem",
|
|
197
|
+
letterSpacing: "-0.0125rem"
|
|
198
|
+
}],
|
|
199
|
+
"h6": ["1.25rem", {
|
|
200
|
+
fontWeight: 700,
|
|
201
|
+
lineHeight: "1.625rem",
|
|
202
|
+
letterSpacing: "-0.0125rem"
|
|
203
|
+
}]
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// src/index.ts
|
|
207
|
+
var theme = {
|
|
208
|
+
colors,
|
|
209
|
+
boxShadow: shadows,
|
|
210
|
+
fontSize: fontSizes
|
|
211
|
+
};
|
|
137
212
|
function config(extend = false) {
|
|
138
213
|
if (extend) {
|
|
139
214
|
return {
|
|
140
215
|
theme: {
|
|
141
|
-
extend:
|
|
142
|
-
colors
|
|
143
|
-
}
|
|
216
|
+
extend: theme
|
|
144
217
|
}
|
|
145
218
|
};
|
|
146
219
|
}
|
|
147
220
|
return {
|
|
148
|
-
theme
|
|
149
|
-
colors
|
|
150
|
-
}
|
|
221
|
+
theme
|
|
151
222
|
};
|
|
152
223
|
}
|
|
153
224
|
var src_default = config();
|
|
154
225
|
// Annotate the CommonJS export names for ESM import in node:
|
|
155
226
|
0 && (module.exports = {
|
|
156
227
|
colors,
|
|
157
|
-
config
|
|
228
|
+
config,
|
|
229
|
+
fontSizes,
|
|
230
|
+
shadows
|
|
158
231
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -110,7 +110,117 @@ declare const colors: {
|
|
|
110
110
|
900: string;
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
+
|
|
114
|
+
declare const shadows: {
|
|
115
|
+
'elevation-0': "0 0 0 0 rgba(0, 0, 0, 0.10)";
|
|
116
|
+
'elevation-1': "0 1px 2px 0 rgba(0, 0, 0, 0.10)";
|
|
117
|
+
'elevation-2': "0 4px 8px 0 rgba(0, 0, 0, 0.10)";
|
|
118
|
+
'elevation-3': "0 6px 12px 0 rgba(0, 0, 0, 0.10)";
|
|
119
|
+
'elevation-4': "0 8px 16px 0 rgba(0, 0, 0, 0.10)";
|
|
120
|
+
'elevation-5': "0 12px 24px 0 rgba(0, 0, 0, 0.10)";
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
declare const fontSizes: {
|
|
124
|
+
'2xs': ["0.6875rem", "1rem"];
|
|
125
|
+
xs: ["0.75rem", "1rem"];
|
|
126
|
+
sm: ["0.875rem", "1.25rem"];
|
|
127
|
+
base: ["1rem", "1.5rem"];
|
|
128
|
+
lg: ["1.25rem", "1.625rem"];
|
|
129
|
+
display1: ["3.75rem", {
|
|
130
|
+
fontWeight: number;
|
|
131
|
+
lineHeight: "5rem";
|
|
132
|
+
letterSpacing: "-0.0625rem";
|
|
133
|
+
}];
|
|
134
|
+
display2: ["3.25rem", {
|
|
135
|
+
fontWeight: number;
|
|
136
|
+
lineHeight: "4.25rem";
|
|
137
|
+
letterSpacing: "-0.05rem";
|
|
138
|
+
}];
|
|
139
|
+
display3: ["2.75rem", {
|
|
140
|
+
fontWeight: number;
|
|
141
|
+
lineHeight: "3.625rem";
|
|
142
|
+
letterSpacing: "-0.0375rem";
|
|
143
|
+
}];
|
|
144
|
+
h1: ["3rem", {
|
|
145
|
+
fontWeight: number;
|
|
146
|
+
lineHeight: "3.75rem";
|
|
147
|
+
letterSpacing: "-0.0125rem";
|
|
148
|
+
}];
|
|
149
|
+
h2: ["2.5rem", {
|
|
150
|
+
fontWeight: number;
|
|
151
|
+
lineHeight: "3.25rem";
|
|
152
|
+
letterSpacing: "-0.0125rem";
|
|
153
|
+
}];
|
|
154
|
+
h3: ["2.25rem", {
|
|
155
|
+
fontWeight: number;
|
|
156
|
+
lineHeight: "3rem";
|
|
157
|
+
letterSpacing: "-0.0125rem";
|
|
158
|
+
}];
|
|
159
|
+
h4: ["2rem", {
|
|
160
|
+
fontWeight: number;
|
|
161
|
+
lineHeight: "2.625rem";
|
|
162
|
+
letterSpacing: "-0.0125rem";
|
|
163
|
+
}];
|
|
164
|
+
h5: ["1.5rem", {
|
|
165
|
+
fontWeight: number;
|
|
166
|
+
lineHeight: "2rem";
|
|
167
|
+
letterSpacing: "-0.0125rem";
|
|
168
|
+
}];
|
|
169
|
+
h6: ["1.25rem", {
|
|
170
|
+
fontWeight: number;
|
|
171
|
+
lineHeight: "1.625rem";
|
|
172
|
+
letterSpacing: "-0.0125rem";
|
|
173
|
+
}];
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
type ColorsNames = 'primary' | 'secondary' | 'green' | 'fuchsia' | 'indigo' | 'neutral' | 'orange' | 'seafoam';
|
|
177
|
+
type ColorsVariations = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
178
|
+
interface MainColors {
|
|
179
|
+
black: string;
|
|
180
|
+
white: string;
|
|
181
|
+
inherit: 'inherit';
|
|
182
|
+
current: 'currentColor';
|
|
183
|
+
transparent: 'transparent';
|
|
184
|
+
}
|
|
185
|
+
interface DefaultColors {
|
|
186
|
+
danger: string;
|
|
187
|
+
warning: string;
|
|
188
|
+
success: string;
|
|
189
|
+
info: string;
|
|
190
|
+
special: string;
|
|
191
|
+
overlay: string;
|
|
192
|
+
}
|
|
193
|
+
type Colors = DefaultColors & MainColors & Record<ColorsNames, {
|
|
194
|
+
[K in ColorsVariations]: string;
|
|
195
|
+
}>;
|
|
196
|
+
type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors;
|
|
197
|
+
|
|
198
|
+
type BorderSize = 0 | `${number}px`;
|
|
199
|
+
type RgbValue = number;
|
|
200
|
+
type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
|
|
201
|
+
type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
|
|
202
|
+
type Shadows = {
|
|
203
|
+
[K in ShadowSize as `elevation-${K}`]?: Shadow;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
type FontValue = `${number}px` | `${number}rem`;
|
|
207
|
+
type FontSize = [FontValue, FontValue] | FontValue | [
|
|
208
|
+
FontValue,
|
|
209
|
+
{
|
|
210
|
+
lineHeight?: FontValue;
|
|
211
|
+
letterSpacing?: FontValue;
|
|
212
|
+
fontWeight?: number;
|
|
213
|
+
}
|
|
214
|
+
];
|
|
215
|
+
type SizeKeys = `${number}xs` | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | `${number}xl`;
|
|
216
|
+
type HeadingKeys = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
217
|
+
type DisplayKeys = 'display1' | 'display2' | 'display3' | 'display4';
|
|
218
|
+
type FontSizeKeys = SizeKeys | HeadingKeys | DisplayKeys;
|
|
219
|
+
type FontSizes = {
|
|
220
|
+
[K in FontSizeKeys]?: FontSize;
|
|
221
|
+
};
|
|
222
|
+
|
|
113
223
|
declare function config(extend?: boolean): Partial<Config>;
|
|
114
224
|
declare const _default: Partial<tailwindcss_types_config.Config>;
|
|
115
225
|
|
|
116
|
-
export { colors, config, _default as default };
|
|
226
|
+
export { type ColorString, type Colors, type FontSizes, type Shadows, colors, config, _default as default, fontSizes, shadows };
|
package/dist/index.d.ts
CHANGED
|
@@ -110,7 +110,117 @@ declare const colors: {
|
|
|
110
110
|
900: string;
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
+
|
|
114
|
+
declare const shadows: {
|
|
115
|
+
'elevation-0': "0 0 0 0 rgba(0, 0, 0, 0.10)";
|
|
116
|
+
'elevation-1': "0 1px 2px 0 rgba(0, 0, 0, 0.10)";
|
|
117
|
+
'elevation-2': "0 4px 8px 0 rgba(0, 0, 0, 0.10)";
|
|
118
|
+
'elevation-3': "0 6px 12px 0 rgba(0, 0, 0, 0.10)";
|
|
119
|
+
'elevation-4': "0 8px 16px 0 rgba(0, 0, 0, 0.10)";
|
|
120
|
+
'elevation-5': "0 12px 24px 0 rgba(0, 0, 0, 0.10)";
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
declare const fontSizes: {
|
|
124
|
+
'2xs': ["0.6875rem", "1rem"];
|
|
125
|
+
xs: ["0.75rem", "1rem"];
|
|
126
|
+
sm: ["0.875rem", "1.25rem"];
|
|
127
|
+
base: ["1rem", "1.5rem"];
|
|
128
|
+
lg: ["1.25rem", "1.625rem"];
|
|
129
|
+
display1: ["3.75rem", {
|
|
130
|
+
fontWeight: number;
|
|
131
|
+
lineHeight: "5rem";
|
|
132
|
+
letterSpacing: "-0.0625rem";
|
|
133
|
+
}];
|
|
134
|
+
display2: ["3.25rem", {
|
|
135
|
+
fontWeight: number;
|
|
136
|
+
lineHeight: "4.25rem";
|
|
137
|
+
letterSpacing: "-0.05rem";
|
|
138
|
+
}];
|
|
139
|
+
display3: ["2.75rem", {
|
|
140
|
+
fontWeight: number;
|
|
141
|
+
lineHeight: "3.625rem";
|
|
142
|
+
letterSpacing: "-0.0375rem";
|
|
143
|
+
}];
|
|
144
|
+
h1: ["3rem", {
|
|
145
|
+
fontWeight: number;
|
|
146
|
+
lineHeight: "3.75rem";
|
|
147
|
+
letterSpacing: "-0.0125rem";
|
|
148
|
+
}];
|
|
149
|
+
h2: ["2.5rem", {
|
|
150
|
+
fontWeight: number;
|
|
151
|
+
lineHeight: "3.25rem";
|
|
152
|
+
letterSpacing: "-0.0125rem";
|
|
153
|
+
}];
|
|
154
|
+
h3: ["2.25rem", {
|
|
155
|
+
fontWeight: number;
|
|
156
|
+
lineHeight: "3rem";
|
|
157
|
+
letterSpacing: "-0.0125rem";
|
|
158
|
+
}];
|
|
159
|
+
h4: ["2rem", {
|
|
160
|
+
fontWeight: number;
|
|
161
|
+
lineHeight: "2.625rem";
|
|
162
|
+
letterSpacing: "-0.0125rem";
|
|
163
|
+
}];
|
|
164
|
+
h5: ["1.5rem", {
|
|
165
|
+
fontWeight: number;
|
|
166
|
+
lineHeight: "2rem";
|
|
167
|
+
letterSpacing: "-0.0125rem";
|
|
168
|
+
}];
|
|
169
|
+
h6: ["1.25rem", {
|
|
170
|
+
fontWeight: number;
|
|
171
|
+
lineHeight: "1.625rem";
|
|
172
|
+
letterSpacing: "-0.0125rem";
|
|
173
|
+
}];
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
type ColorsNames = 'primary' | 'secondary' | 'green' | 'fuchsia' | 'indigo' | 'neutral' | 'orange' | 'seafoam';
|
|
177
|
+
type ColorsVariations = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
178
|
+
interface MainColors {
|
|
179
|
+
black: string;
|
|
180
|
+
white: string;
|
|
181
|
+
inherit: 'inherit';
|
|
182
|
+
current: 'currentColor';
|
|
183
|
+
transparent: 'transparent';
|
|
184
|
+
}
|
|
185
|
+
interface DefaultColors {
|
|
186
|
+
danger: string;
|
|
187
|
+
warning: string;
|
|
188
|
+
success: string;
|
|
189
|
+
info: string;
|
|
190
|
+
special: string;
|
|
191
|
+
overlay: string;
|
|
192
|
+
}
|
|
193
|
+
type Colors = DefaultColors & MainColors & Record<ColorsNames, {
|
|
194
|
+
[K in ColorsVariations]: string;
|
|
195
|
+
}>;
|
|
196
|
+
type ColorString = `${ColorsNames}-${ColorsVariations}` | keyof DefaultColors | keyof MainColors;
|
|
197
|
+
|
|
198
|
+
type BorderSize = 0 | `${number}px`;
|
|
199
|
+
type RgbValue = number;
|
|
200
|
+
type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
|
|
201
|
+
type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
|
|
202
|
+
type Shadows = {
|
|
203
|
+
[K in ShadowSize as `elevation-${K}`]?: Shadow;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
type FontValue = `${number}px` | `${number}rem`;
|
|
207
|
+
type FontSize = [FontValue, FontValue] | FontValue | [
|
|
208
|
+
FontValue,
|
|
209
|
+
{
|
|
210
|
+
lineHeight?: FontValue;
|
|
211
|
+
letterSpacing?: FontValue;
|
|
212
|
+
fontWeight?: number;
|
|
213
|
+
}
|
|
214
|
+
];
|
|
215
|
+
type SizeKeys = `${number}xs` | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | `${number}xl`;
|
|
216
|
+
type HeadingKeys = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
217
|
+
type DisplayKeys = 'display1' | 'display2' | 'display3' | 'display4';
|
|
218
|
+
type FontSizeKeys = SizeKeys | HeadingKeys | DisplayKeys;
|
|
219
|
+
type FontSizes = {
|
|
220
|
+
[K in FontSizeKeys]?: FontSize;
|
|
221
|
+
};
|
|
222
|
+
|
|
113
223
|
declare function config(extend?: boolean): Partial<Config>;
|
|
114
224
|
declare const _default: Partial<tailwindcss_types_config.Config>;
|
|
115
225
|
|
|
116
|
-
export { colors, config, _default as default };
|
|
226
|
+
export { type ColorString, type Colors, type FontSizes, type Shadows, colors, config, _default as default, fontSizes, shadows };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,94 @@
|
|
|
1
1
|
import {
|
|
2
|
+
colors
|
|
3
|
+
} from "./chunk-UJDFJG2Z.js";
|
|
4
|
+
|
|
5
|
+
// src/theme/shadows.ts
|
|
6
|
+
var shadows = {
|
|
7
|
+
"elevation-0": "0 0 0 0 rgba(0, 0, 0, 0.10)",
|
|
8
|
+
"elevation-1": "0 1px 2px 0 rgba(0, 0, 0, 0.10)",
|
|
9
|
+
"elevation-2": "0 4px 8px 0 rgba(0, 0, 0, 0.10)",
|
|
10
|
+
"elevation-3": "0 6px 12px 0 rgba(0, 0, 0, 0.10)",
|
|
11
|
+
"elevation-4": "0 8px 16px 0 rgba(0, 0, 0, 0.10)",
|
|
12
|
+
"elevation-5": "0 12px 24px 0 rgba(0, 0, 0, 0.10)"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
// src/theme/fontSize.ts
|
|
16
|
+
var fontSizes = {
|
|
17
|
+
"2xs": ["0.6875rem", "1rem"],
|
|
18
|
+
"xs": ["0.75rem", "1rem"],
|
|
19
|
+
"sm": ["0.875rem", "1.25rem"],
|
|
20
|
+
"base": ["1rem", "1.5rem"],
|
|
21
|
+
"lg": ["1.25rem", "1.625rem"],
|
|
22
|
+
"display1": ["3.75rem", {
|
|
23
|
+
fontWeight: 700,
|
|
24
|
+
lineHeight: "5rem",
|
|
25
|
+
letterSpacing: "-0.0625rem"
|
|
26
|
+
}],
|
|
27
|
+
"display2": ["3.25rem", {
|
|
28
|
+
fontWeight: 700,
|
|
29
|
+
lineHeight: "4.25rem",
|
|
30
|
+
letterSpacing: "-0.05rem"
|
|
31
|
+
}],
|
|
32
|
+
"display3": ["2.75rem", {
|
|
33
|
+
fontWeight: 700,
|
|
34
|
+
lineHeight: "3.625rem",
|
|
35
|
+
letterSpacing: "-0.0375rem"
|
|
36
|
+
}],
|
|
37
|
+
"h1": ["3rem", {
|
|
38
|
+
fontWeight: 700,
|
|
39
|
+
lineHeight: "3.75rem",
|
|
40
|
+
letterSpacing: "-0.0125rem"
|
|
41
|
+
}],
|
|
42
|
+
"h2": ["2.5rem", {
|
|
43
|
+
fontWeight: 700,
|
|
44
|
+
lineHeight: "3.25rem",
|
|
45
|
+
letterSpacing: "-0.0125rem"
|
|
46
|
+
}],
|
|
47
|
+
"h3": ["2.25rem", {
|
|
48
|
+
fontWeight: 700,
|
|
49
|
+
lineHeight: "3rem",
|
|
50
|
+
letterSpacing: "-0.0125rem"
|
|
51
|
+
}],
|
|
52
|
+
"h4": ["2rem", {
|
|
53
|
+
fontWeight: 700,
|
|
54
|
+
lineHeight: "2.625rem",
|
|
55
|
+
letterSpacing: "-0.0125rem"
|
|
56
|
+
}],
|
|
57
|
+
"h5": ["1.5rem", {
|
|
58
|
+
fontWeight: 700,
|
|
59
|
+
lineHeight: "2rem",
|
|
60
|
+
letterSpacing: "-0.0125rem"
|
|
61
|
+
}],
|
|
62
|
+
"h6": ["1.25rem", {
|
|
63
|
+
fontWeight: 700,
|
|
64
|
+
lineHeight: "1.625rem",
|
|
65
|
+
letterSpacing: "-0.0125rem"
|
|
66
|
+
}]
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/index.ts
|
|
70
|
+
var theme = {
|
|
2
71
|
colors,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
72
|
+
boxShadow: shadows,
|
|
73
|
+
fontSize: fontSizes
|
|
74
|
+
};
|
|
75
|
+
function config(extend = false) {
|
|
76
|
+
if (extend) {
|
|
77
|
+
return {
|
|
78
|
+
theme: {
|
|
79
|
+
extend: theme
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
theme
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
var src_default = config();
|
|
6
88
|
export {
|
|
7
89
|
colors,
|
|
8
90
|
config,
|
|
9
|
-
src_default as default
|
|
91
|
+
src_default as default,
|
|
92
|
+
fontSizes,
|
|
93
|
+
shadows
|
|
10
94
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@removify/tailwind-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"description": "Tailwind CSS preset for Removify",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tailwind"
|
|
@@ -38,13 +38,14 @@
|
|
|
38
38
|
"eslint-config-removify": "^1.2.11",
|
|
39
39
|
"husky": "^8.0.3",
|
|
40
40
|
"lint-staged": "^15.2.0",
|
|
41
|
+
"rimraf": "^5.0.5",
|
|
41
42
|
"tailwind-config-viewer": "^1.7.3",
|
|
42
43
|
"tailwindcss": "^3.4.1",
|
|
43
44
|
"tsup": "^8.0.1",
|
|
44
45
|
"tsx": "^4.7.0",
|
|
45
46
|
"typescript": "^5.3.3",
|
|
46
47
|
"vitest": "^1.2.2",
|
|
47
|
-
"@removify/tailwind-preset": "0.0.
|
|
48
|
+
"@removify/tailwind-preset": "0.0.7"
|
|
48
49
|
},
|
|
49
50
|
"lint-staged": {
|
|
50
51
|
"**/*.{js,ts,vue,html}": [
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
56
|
"start": "tsx ./src/index.ts",
|
|
56
|
-
"build": "tsup src/index.ts src/cli.ts --format esm,cjs --clean --dts",
|
|
57
|
+
"build": "rimraf dist && tsup src/index.ts src/cli.ts --format esm,cjs --clean --dts",
|
|
57
58
|
"watch": "tsup --format esm,cjs --watch",
|
|
58
59
|
"dev": "tsx watch ./src/index.ts",
|
|
59
60
|
"test": "vitest",
|
package/readme.md
CHANGED
|
@@ -5,11 +5,11 @@ This is tailwind preset for removify.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -D removify
|
|
8
|
+
npm install -D @removify/tailwind-preset
|
|
9
9
|
|
|
10
|
-
yarn add -D removify
|
|
10
|
+
yarn add -D @removify/tailwind-preset
|
|
11
11
|
|
|
12
|
-
pnpm add -D removify
|
|
12
|
+
pnpm add -D @removify/tailwind-preset
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
### Use cli to generate tailwind v4 theme
|
|
@@ -22,7 +22,7 @@ npx @removify/tailwind-preset > src/style.css
|
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
24
|
// tailwind.config.{t,j}s
|
|
25
|
-
import removify from 'removify
|
|
25
|
+
import removify from '@removify/tailwind-preset';
|
|
26
26
|
import type { Config } from 'tailwindcss';
|
|
27
27
|
|
|
28
28
|
export default {
|