piloti 1.0.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,303 @@
1
+ {
2
+ "settings": {
3
+ "basePixel": 16,
4
+ "breakpoints": {
5
+ "sm": "640px",
6
+ "md": "768px",
7
+ "lg": "1024px",
8
+ "xl": "1280px"
9
+ }
10
+ },
11
+ "tokens": {
12
+ "color": {
13
+ "primary": "#2d3748",
14
+ "secondary": "#99a4b3",
15
+ "accent": "#ff9948",
16
+ "dark": "#1f2937",
17
+ "light": "#f3f4f6"
18
+ },
19
+ "spacing": {
20
+ "0": "0px",
21
+ "1": "4px",
22
+ "2": "8px",
23
+ "3": "12px",
24
+ "4": "16px",
25
+ "6": "24px",
26
+ "8": "32px",
27
+ "12": "48px",
28
+ "16": "64px"
29
+ },
30
+ "radius": {
31
+ "sm": "2px",
32
+ "md": "4px",
33
+ "lg": "8px",
34
+ "full": "9999px"
35
+ },
36
+ "fontSize": {
37
+ "sm": "14px",
38
+ "base": "16px",
39
+ "xl": "22px",
40
+ "2xl": "32px",
41
+ "3xl": "40px",
42
+ "4xl": "48px"
43
+ },
44
+ "lineHeight": {
45
+ "none": "1",
46
+ "tight": "1.25",
47
+ "normal": "1.5",
48
+ "relaxed": "1.75",
49
+ "loose": "2"
50
+ },
51
+ "shadow": {
52
+ "sm": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
53
+ "md": "0 4px 6px -1px rgb(0 0 0 / 0.1)",
54
+ "lg": "0 10px 15px -3px rgb(0 0 0 / 0.1)",
55
+ "xl": "0 20px 25px -5px rgb(0 0 0 / 0.1)",
56
+ "none": "none"
57
+ },
58
+ "zIndex": {
59
+ "0": "0",
60
+ "10": "10",
61
+ "20": "20",
62
+ "30": "30",
63
+ "40": "40",
64
+ "50": "50"
65
+ },
66
+ "size": {
67
+ "0": "0px",
68
+ "full": "100%",
69
+ "screen": "100vh",
70
+ "auto": "auto",
71
+ "1/2": "50%",
72
+ "1/3": "33.333%",
73
+ "2/3": "66.666%",
74
+ "1/4": "25%",
75
+ "3/4": "75%"
76
+ }
77
+ },
78
+ "utilities": [
79
+ {
80
+ "prefix": "m",
81
+ "property": "margin",
82
+ "fromToken": "spacing",
83
+ "values": ["0", "1", "2", "3", "4", "6", "8"],
84
+ "responsive": true
85
+ },
86
+ {
87
+ "prefix": "mt",
88
+ "property": "margin-top",
89
+ "fromToken": "spacing",
90
+ "values": ["0", "1", "2", "4", "8"],
91
+ "responsive": true
92
+ },
93
+ {
94
+ "prefix": "mb",
95
+ "property": "margin-bottom",
96
+ "fromToken": "spacing",
97
+ "values": ["0", "1", "2", "4", "8"],
98
+ "responsive": true
99
+ },
100
+ {
101
+ "prefix": "ml",
102
+ "property": "margin-left",
103
+ "fromToken": "spacing",
104
+ "values": ["0", "1", "2", "4", "8"],
105
+ "responsive": true
106
+ },
107
+ {
108
+ "prefix": "mr",
109
+ "property": "margin-right",
110
+ "fromToken": "spacing",
111
+ "values": ["0", "1", "2", "4", "8"],
112
+ "responsive": true
113
+ },
114
+ {
115
+ "prefix": "mx",
116
+ "property": "margin-inline",
117
+ "fromToken": "spacing",
118
+ "values": ["0", "2", "4", "8"],
119
+ "responsive": true
120
+ },
121
+ {
122
+ "prefix": "my",
123
+ "property": "margin-block",
124
+ "fromToken": "spacing",
125
+ "values": ["0", "2", "4", "8"],
126
+ "responsive": true
127
+ },
128
+ {
129
+ "prefix": "p",
130
+ "property": "padding",
131
+ "fromToken": "spacing",
132
+ "values": ["0", "1", "2", "3", "4", "6", "8"],
133
+ "responsive": true
134
+ },
135
+ {
136
+ "prefix": "pt",
137
+ "property": "padding-top",
138
+ "fromToken": "spacing",
139
+ "values": ["0", "1", "2", "4", "8"],
140
+ "responsive": true
141
+ },
142
+ {
143
+ "prefix": "pb",
144
+ "property": "padding-bottom",
145
+ "fromToken": "spacing",
146
+ "values": ["0", "1", "2", "4", "8"],
147
+ "responsive": true
148
+ },
149
+ {
150
+ "prefix": "pl",
151
+ "property": "padding-left",
152
+ "fromToken": "spacing",
153
+ "values": ["0", "1", "2", "4", "8"],
154
+ "responsive": true
155
+ },
156
+ {
157
+ "prefix": "pr",
158
+ "property": "padding-right",
159
+ "fromToken": "spacing",
160
+ "values": ["0", "1", "2", "4", "8"],
161
+ "responsive": true
162
+ },
163
+ {
164
+ "prefix": "px",
165
+ "property": "padding-inline",
166
+ "fromToken": "spacing",
167
+ "values": ["0", "2", "4", "8"],
168
+ "responsive": true
169
+ },
170
+ {
171
+ "prefix": "py",
172
+ "property": "padding-block",
173
+ "fromToken": "spacing",
174
+ "values": ["0", "2", "4", "8"],
175
+ "responsive": true
176
+ },
177
+ {
178
+ "prefix": "gap",
179
+ "property": "gap",
180
+ "fromToken": "spacing",
181
+ "values": ["0", "1", "2", "3", "4", "6", "8"],
182
+ "responsive": true
183
+ },
184
+ {
185
+ "prefix": "text",
186
+ "property": "color",
187
+ "fromToken": "color",
188
+ "values": ["primary", "secondary", "accent", "dark", "light"]
189
+ },
190
+ {
191
+ "prefix": "bg",
192
+ "property": "background-color",
193
+ "fromToken": "color",
194
+ "values": ["primary", "secondary", "accent", "dark", "light"]
195
+ },
196
+ {
197
+ "prefix": "rounded",
198
+ "property": "border-radius",
199
+ "fromToken": "radius",
200
+ "values": ["sm", "md", "lg", "full"]
201
+ },
202
+ {
203
+ "prefix": "font",
204
+ "property": "font-size",
205
+ "fromToken": "fontSize",
206
+ "values": ["sm", "base", "xl", "2xl", "3xl", "4xl"],
207
+ "responsive": true
208
+ },
209
+ {
210
+ "prefix": "leading",
211
+ "property": "line-height",
212
+ "fromToken": "lineHeight",
213
+ "values": ["none", "tight", "normal", "relaxed", "loose"]
214
+ },
215
+ {
216
+ "prefix": "shadow",
217
+ "property": "box-shadow",
218
+ "fromToken": "shadow",
219
+ "values": ["sm", "md", "lg", "xl", "none"]
220
+ },
221
+ {
222
+ "prefix": "z",
223
+ "property": "z-index",
224
+ "fromToken": "zIndex",
225
+ "values": ["0", "10", "20", "30", "40", "50"]
226
+ },
227
+ {
228
+ "prefix": "w",
229
+ "property": "width",
230
+ "fromToken": "size",
231
+ "values": ["0", "full", "screen", "auto", "1/2", "1/3", "2/3", "1/4", "3/4"],
232
+ "responsive": true
233
+ },
234
+ {
235
+ "prefix": "h",
236
+ "property": "height",
237
+ "fromToken": "size",
238
+ "values": ["0", "full", "screen", "auto"],
239
+ "responsive": true
240
+ },
241
+ {
242
+ "prefix": "d",
243
+ "property": "display",
244
+ "values": ["flex", "grid", "block", "inline", "inline-block", "none"],
245
+ "responsive": true
246
+ },
247
+ {
248
+ "prefix": "flex",
249
+ "property": "flex-direction",
250
+ "values": ["row", "col", "row-reverse", "col-reverse"],
251
+ "valueMap": {
252
+ "row": "row",
253
+ "col": "column",
254
+ "row-reverse": "row-reverse",
255
+ "col-reverse": "column-reverse"
256
+ },
257
+ "responsive": true
258
+ },
259
+ {
260
+ "prefix": "justify",
261
+ "property": "justify-content",
262
+ "values": ["start", "end", "center", "between", "around", "evenly"],
263
+ "valueMap": {
264
+ "start": "flex-start",
265
+ "end": "flex-end",
266
+ "center": "center",
267
+ "between": "space-between",
268
+ "around": "space-around",
269
+ "evenly": "space-evenly"
270
+ },
271
+ "responsive": true
272
+ },
273
+ {
274
+ "prefix": "items",
275
+ "property": "align-items",
276
+ "values": ["start", "end", "center", "baseline", "stretch"],
277
+ "valueMap": {
278
+ "start": "flex-start",
279
+ "end": "flex-end",
280
+ "center": "center",
281
+ "baseline": "baseline",
282
+ "stretch": "stretch"
283
+ },
284
+ "responsive": true
285
+ },
286
+ {
287
+ "prefix": "wrap",
288
+ "property": "flex-wrap",
289
+ "values": ["wrap", "nowrap", "reverse"],
290
+ "valueMap": {
291
+ "wrap": "wrap",
292
+ "nowrap": "nowrap",
293
+ "reverse": "wrap-reverse"
294
+ }
295
+ },
296
+ {
297
+ "prefix": "text",
298
+ "property": "text-align",
299
+ "values": ["left", "center", "right"],
300
+ "responsive": true
301
+ }
302
+ ]
303
+ }
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "piloti",
3
+ "version": "1.0.0",
4
+ "description": "A config-driven CSS framework following CUBE CSS methodology",
5
+ "main": "src/main.css",
6
+ "bin": {
7
+ "piloti": "./bin/piloti.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "src",
12
+ "config"
13
+ ],
14
+ "scripts": {
15
+ "build": "node bin/piloti.js --config ./config/config.json --output ./src/0-gen-settings",
16
+ "watch": "nodemon --watch config --watch src bin/piloti.js --config ./config/config.json --output ./src/0-gen-settings",
17
+ "dev": "npm run watch",
18
+ "lint": "stylelint 'src/**/*.css'",
19
+ "lint:fix": "stylelint 'src/**/*.css' --fix",
20
+ "prepublishOnly": "npm run build"
21
+ },
22
+ "keywords": [
23
+ "css",
24
+ "framework",
25
+ "cube-css",
26
+ "utilities",
27
+ "design-tokens",
28
+ "responsive",
29
+ "piloti"
30
+ ],
31
+ "author": "Theo Paolo",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/theopaolo/piloti"
36
+ },
37
+ "devDependencies": {
38
+ "nodemon": "^3.1.11",
39
+ "stylelint": "^16.26.0",
40
+ "stylelint-config-standard": "^39.0.1",
41
+ "stylelint-value-no-unknown-custom-properties": "^6.0.1"
42
+ }
43
+ }
@@ -0,0 +1,4 @@
1
+ /* Piloti CSS Framework - Generated Entry Point */
2
+ @import url('./variables.css');
3
+ @import url('./utilities.css');
4
+ @import url('./responsive.css');