tunewind 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,123 @@
1
+ import { z } from "zod";
2
+ import "postcss";
3
+ /** tunewind config */
4
+ declare const configSchema: z.ZodObject<{
5
+ theme: z.ZodOptional<z.ZodObject<{
6
+ palette: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
7
+ amber: "amber";
8
+ blue: "blue";
9
+ cyan: "cyan";
10
+ emerald: "emerald";
11
+ fuchsia: "fuchsia";
12
+ gray: "gray";
13
+ green: "green";
14
+ indigo: "indigo";
15
+ lime: "lime";
16
+ mauve: "mauve";
17
+ mist: "mist";
18
+ neutral: "neutral";
19
+ olive: "olive";
20
+ orange: "orange";
21
+ pink: "pink";
22
+ purple: "purple";
23
+ red: "red";
24
+ rose: "rose";
25
+ sky: "sky";
26
+ slate: "slate";
27
+ stone: "stone";
28
+ taupe: "taupe";
29
+ teal: "teal";
30
+ violet: "violet";
31
+ yellow: "yellow";
32
+ zinc: "zinc";
33
+ }>, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
34
+ shade: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950>>>;
35
+ opacity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
36
+ schemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
37
+ prefix: z.ZodOptional<z.ZodString>;
38
+ palette: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
39
+ amber: "amber";
40
+ blue: "blue";
41
+ cyan: "cyan";
42
+ emerald: "emerald";
43
+ fuchsia: "fuchsia";
44
+ gray: "gray";
45
+ green: "green";
46
+ indigo: "indigo";
47
+ lime: "lime";
48
+ mauve: "mauve";
49
+ mist: "mist";
50
+ neutral: "neutral";
51
+ olive: "olive";
52
+ orange: "orange";
53
+ pink: "pink";
54
+ purple: "purple";
55
+ red: "red";
56
+ rose: "rose";
57
+ sky: "sky";
58
+ slate: "slate";
59
+ stone: "stone";
60
+ taupe: "taupe";
61
+ teal: "teal";
62
+ violet: "violet";
63
+ yellow: "yellow";
64
+ zinc: "zinc";
65
+ }>, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
66
+ shade: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950>>>;
67
+ opacity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
68
+ }, z.core.$strict>>>;
69
+ }, z.core.$strict>>;
70
+ size: z.ZodOptional<z.ZodObject<{
71
+ min: z.ZodOptional<z.ZodNumber>;
72
+ step: z.ZodOptional<z.ZodNumber>;
73
+ max: z.ZodOptional<z.ZodNumber>;
74
+ units: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
75
+ value: z.ZodString;
76
+ min: z.ZodOptional<z.ZodNumber>;
77
+ step: z.ZodOptional<z.ZodNumber>;
78
+ max: z.ZodOptional<z.ZodNumber>;
79
+ }, z.core.$strict>]>>;
80
+ breakpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
81
+ prefix: z.ZodOptional<z.ZodString>;
82
+ value: z.ZodOptional<z.ZodString>;
83
+ units: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
84
+ value: z.ZodString;
85
+ min: z.ZodOptional<z.ZodNumber>;
86
+ step: z.ZodOptional<z.ZodNumber>;
87
+ max: z.ZodOptional<z.ZodNumber>;
88
+ }, z.core.$strict>]>>>;
89
+ }, z.core.$strict>]>>>;
90
+ }, z.core.$strict>>;
91
+ strict: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
92
+ bypass: "bypass";
93
+ }>, z.ZodObject<{
94
+ arbitrary: z.ZodOptional<z.ZodBoolean>;
95
+ family: z.ZodOptional<z.ZodBoolean>;
96
+ bypass: z.ZodOptional<z.ZodBoolean>;
97
+ }, z.core.$strict>]>>;
98
+ diagnostics: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
99
+ error: "error";
100
+ off: "off";
101
+ warn: "warn";
102
+ }>, z.ZodObject<{
103
+ mode: z.ZodEnum<{
104
+ error: "error";
105
+ off: "off";
106
+ warn: "warn";
107
+ }>;
108
+ limit: z.ZodOptional<z.ZodNumber>;
109
+ }, z.core.$strict>]>>;
110
+ }, z.core.$strict>;
111
+ type TuneConfig = z.output<typeof configSchema>;
112
+ export declare function defineConfig(input: z.input<typeof configSchema>): z.output<typeof configSchema>;
113
+ interface PreprocessOptions {
114
+ cwd?: string;
115
+ }
116
+ interface PostprocessOptions {
117
+ cwd?: string;
118
+ }
119
+ export declare const tunewind: {
120
+ preprocess: import("postcss").PluginCreator<PreprocessOptions>;
121
+ postprocess: import("postcss").PluginCreator<PostprocessOptions>;
122
+ };
123
+ export type { TuneConfig };
@@ -0,0 +1,123 @@
1
+ import { z } from "zod";
2
+ import "postcss";
3
+ /** tunewind config */
4
+ declare const configSchema: z.ZodObject<{
5
+ theme: z.ZodOptional<z.ZodObject<{
6
+ palette: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
7
+ amber: "amber";
8
+ blue: "blue";
9
+ cyan: "cyan";
10
+ emerald: "emerald";
11
+ fuchsia: "fuchsia";
12
+ gray: "gray";
13
+ green: "green";
14
+ indigo: "indigo";
15
+ lime: "lime";
16
+ mauve: "mauve";
17
+ mist: "mist";
18
+ neutral: "neutral";
19
+ olive: "olive";
20
+ orange: "orange";
21
+ pink: "pink";
22
+ purple: "purple";
23
+ red: "red";
24
+ rose: "rose";
25
+ sky: "sky";
26
+ slate: "slate";
27
+ stone: "stone";
28
+ taupe: "taupe";
29
+ teal: "teal";
30
+ violet: "violet";
31
+ yellow: "yellow";
32
+ zinc: "zinc";
33
+ }>, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
34
+ shade: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950>>>;
35
+ opacity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
36
+ schemes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
37
+ prefix: z.ZodOptional<z.ZodString>;
38
+ palette: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
39
+ amber: "amber";
40
+ blue: "blue";
41
+ cyan: "cyan";
42
+ emerald: "emerald";
43
+ fuchsia: "fuchsia";
44
+ gray: "gray";
45
+ green: "green";
46
+ indigo: "indigo";
47
+ lime: "lime";
48
+ mauve: "mauve";
49
+ mist: "mist";
50
+ neutral: "neutral";
51
+ olive: "olive";
52
+ orange: "orange";
53
+ pink: "pink";
54
+ purple: "purple";
55
+ red: "red";
56
+ rose: "rose";
57
+ sky: "sky";
58
+ slate: "slate";
59
+ stone: "stone";
60
+ taupe: "taupe";
61
+ teal: "teal";
62
+ violet: "violet";
63
+ yellow: "yellow";
64
+ zinc: "zinc";
65
+ }>, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
66
+ shade: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950>>>;
67
+ opacity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
68
+ }, z.core.$strict>>>;
69
+ }, z.core.$strict>>;
70
+ size: z.ZodOptional<z.ZodObject<{
71
+ min: z.ZodOptional<z.ZodNumber>;
72
+ step: z.ZodOptional<z.ZodNumber>;
73
+ max: z.ZodOptional<z.ZodNumber>;
74
+ units: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
75
+ value: z.ZodString;
76
+ min: z.ZodOptional<z.ZodNumber>;
77
+ step: z.ZodOptional<z.ZodNumber>;
78
+ max: z.ZodOptional<z.ZodNumber>;
79
+ }, z.core.$strict>]>>;
80
+ breakpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
81
+ prefix: z.ZodOptional<z.ZodString>;
82
+ value: z.ZodOptional<z.ZodString>;
83
+ units: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
84
+ value: z.ZodString;
85
+ min: z.ZodOptional<z.ZodNumber>;
86
+ step: z.ZodOptional<z.ZodNumber>;
87
+ max: z.ZodOptional<z.ZodNumber>;
88
+ }, z.core.$strict>]>>>;
89
+ }, z.core.$strict>]>>>;
90
+ }, z.core.$strict>>;
91
+ strict: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
92
+ bypass: "bypass";
93
+ }>, z.ZodObject<{
94
+ arbitrary: z.ZodOptional<z.ZodBoolean>;
95
+ family: z.ZodOptional<z.ZodBoolean>;
96
+ bypass: z.ZodOptional<z.ZodBoolean>;
97
+ }, z.core.$strict>]>>;
98
+ diagnostics: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
99
+ error: "error";
100
+ off: "off";
101
+ warn: "warn";
102
+ }>, z.ZodObject<{
103
+ mode: z.ZodEnum<{
104
+ error: "error";
105
+ off: "off";
106
+ warn: "warn";
107
+ }>;
108
+ limit: z.ZodOptional<z.ZodNumber>;
109
+ }, z.core.$strict>]>>;
110
+ }, z.core.$strict>;
111
+ type TuneConfig = z.output<typeof configSchema>;
112
+ export declare function defineConfig(input: z.input<typeof configSchema>): z.output<typeof configSchema>;
113
+ interface PreprocessOptions {
114
+ cwd?: string;
115
+ }
116
+ interface PostprocessOptions {
117
+ cwd?: string;
118
+ }
119
+ export declare const tunewind: {
120
+ preprocess: import("postcss").PluginCreator<PreprocessOptions>;
121
+ postprocess: import("postcss").PluginCreator<PostprocessOptions>;
122
+ };
123
+ export type { TuneConfig };