@kruzer/styles 3.0.0-alpha.29 → 3.0.0-alpha.3

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.
@@ -1,33 +1,6 @@
1
1
  module.exports = {
2
- theme: {
2
+ theme: {
3
3
  extend: {
4
- keyframes: {
5
- slideDownAndFade: {
6
- from: { opacity: "0", transform: "translateY(-2px)" },
7
- to: { opacity: "1", transform: "translateY(0)" },
8
- },
9
- slideLeftAndFade: {
10
- from: { opacity: "0", transform: "translateX(2px)" },
11
- to: { opacity: "1", transform: "translateX(0)" },
12
- },
13
- slideUpAndFade: {
14
- from: { opacity: "0", transform: "translateY(2px)" },
15
- to: { opacity: "1", transform: "translateY(0)" },
16
- },
17
- slideRightAndFade: {
18
- from: { opacity: "0", transform: "translateX(-2px)" },
19
- to: { opacity: "1", transform: "translateX(0)" },
20
- },
21
- },
22
- animation: {
23
- slideDownAndFade:
24
- "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
25
- slideLeftAndFade:
26
- "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
27
- slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
28
- slideRightAndFade:
29
- "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
30
- },
31
4
  gridTemplateColumns: {
32
5
  xs: "repeat(auto-fill,minmax(12.5rem,1fr))",
33
6
  sm: "repeat(auto-fill,minmax(22rem,1fr))",
@@ -38,15 +11,12 @@ module.exports = {
38
11
  "span-full": "1 / -1",
39
12
  },
40
13
  screens: {
41
- "2md": "930px",
14
+ '2md': '930px',
42
15
  },
43
16
  lineHeight: {
44
- 120: "120%",
45
- 140: "140%",
46
- },
47
- aria: {
48
- invalid: 'invalid="true"',
49
- },
17
+ 120: '120%',
18
+ 140: '140%',
19
+ }
50
20
  },
51
21
  colors: {
52
22
  neutral: {
@@ -104,212 +74,13 @@ module.exports = {
104
74
  70: "rgb(var(--brand-70) / <alpha-value>)",
105
75
  80: "rgb(var(--brand-80) / <alpha-value>)",
106
76
  },
107
- post: "rgb(var(--post) / <alpha-value>)",
108
- delete: "rgb(var(--delete) / <alpha-value>)",
109
- put: "rgb(var(--put) / <alpha-value>)",
110
- patch: "rgb(var(--patch) / <alpha-value>)",
111
- get: "rgb(var(--get) / <alpha-value>)",
112
- body: "rgb(var(--body-background) / <alpha-value>)",
77
+ "post": "rgb(var(--post) / <alpha-value>)",
78
+ "delete": "rgb(var(--delete) / <alpha-value>)",
79
+ "put": "rgb(var(--put) / <alpha-value>)",
80
+ "patch": "rgb(var(--patch) / <alpha-value>)",
81
+ "get": "rgb(var(--get) / <alpha-value>)",
82
+ body: 'rgb(var(--body-background) / <alpha-value>)',
113
83
  transparent: "transparent",
114
- customer: {
115
- primary: {
116
- 100: "var(--color-customer-primary-100)",
117
- 200: "var(--color-customer-primary-200)",
118
- 300: "var(--color-customer-primary-300)",
119
- 400: "var(--color-customer-primary-400)",
120
- 500: "var(--color-customer-primary-500)",
121
- 600: "var(--color-customer-primary-600)",
122
- 700: "var(--color-customer-primary-700)",
123
- 800: "var(--color-customer-primary-800)",
124
- 900: "var(--color-customer-primary-900)",
125
- },
126
- secondary: {
127
- 100: "var(--color-customer-secondary-100)",
128
- 200: "var(--color-customer-secondary-200)",
129
- 300: "var(--color-customer-secondary-300)",
130
- 400: "var(--color-customer-secondary-400)",
131
- 500: "var(--color-customer-secondary-500)",
132
- 600: "var(--color-customer-secondary-600)",
133
- 700: "var(--color-customer-secondary-700)",
134
- 800: "var(--color-customer-secondary-800)",
135
- 900: "var(--color-customer-secondary-900)",
136
- },
137
- tertiary: {
138
- 100: "var(--color-customer-tertiary-100)",
139
- 200: "var(--color-customer-tertiary-200)",
140
- 300: "var(--color-customer-tertiary-300)",
141
- 400: "var(--color-customer-tertiary-400)",
142
- 500: "var(--color-customer-tertiary-500)",
143
- 600: "var(--color-customer-tertiary-600)",
144
- 700: "var(--color-customer-tertiary-700)",
145
- 800: "var(--color-customer-tertiary-800)",
146
- 900: "var(--color-customer-tertiary-900)",
147
- },
148
- },
149
- brand: {
150
- primary: {
151
- 100: "#EAEEFA",
152
- 200: "#D6DCF5",
153
- 300: "#8397E2",
154
- 400: "#4C79FA",
155
- 500: "#3151CE",
156
- 600: "#2746AD",
157
- 700: "#1D317C",
158
- 800: "#142052",
159
- 900: "#0A1029",
160
- },
161
- navy: {
162
- 100: "#C9D1FF",
163
- 200: "#9AA5E2",
164
- 300: "#48507D",
165
- 400: "#2A2E45",
166
- 500: "#232534",
167
- 600: "#1C1E2A",
168
- 700: "#191C2A",
169
- 800: "#0E0F15",
170
- 900: "#07070A",
171
- },
172
- paper: {
173
- 100: "#FEFDFB",
174
- 200: "#FEFCF9",
175
- 300: "#FDFBF6",
176
- 400: "#FDF9F3",
177
- 500: "#FCF8F0",
178
- 600: "#F7ECD6",
179
- 700: "#F2E0BD",
180
- 800: "#EDD4A3",
181
- 900: "#EBCE96",
182
- },
183
- green: {
184
- 100: "#E4F7E4",
185
- 200: "#C9EEC8",
186
- 300: "#AFE6AD",
187
- 400: "#8FFF85",
188
- 500: "#79D576",
189
- 600: "#62AC5D",
190
- 700: "#4C8B4A",
191
- 800: "#366534",
192
- 900: "#1F401E",
193
- },
194
- },
195
- product: {
196
- oms: {
197
- 100: "#F8DFD6",
198
- 200: "#F1BFAD",
199
- 300: "#EA9E85",
200
- 400: "#DF8738",
201
- 500: "#DC5E33",
202
- 600: "#CF4A11",
203
- 700: "#84381F",
204
- 800: "#582614",
205
- 900: "#2C130A",
206
- },
207
- pim: {
208
- 100: "#E8F1EF",
209
- 200: "#D2E5E3",
210
- 300: "#C2D7D5",
211
- 400: "#A3BCB9",
212
- 500: "#345B57",
213
- 600: "#27443F",
214
- 700: "#1F3734",
215
- 800: "#152423",
216
- 900: "#0A1211",
217
- },
218
- appstore: {
219
- 100: "#E9F7FF",
220
- 200: "#D5EFFE",
221
- 300: "#AADEFD",
222
- 400: "#A6E6FD",
223
- 500: "#72C8FC",
224
- 600: "#65B0D8",
225
- 700: "#4589B3",
226
- 800: "#184A6A",
227
- 900: "#012B45",
228
- },
229
- devtools: {
230
- 100: "#F7C9E8",
231
- 200: "#E0A5CD",
232
- 300: "#B35C96",
233
- 400: "#9F127A",
234
- 500: "#861360",
235
- 600: "#640D4D",
236
- 700: "#500B3A",
237
- 800: "#360826",
238
- 900: "#1B0413",
239
- },
240
- black: {
241
- 100: "#E5E7EB",
242
- 200: "#D1D5DB",
243
- 300: "#9CA3AF",
244
- 400: "#6B7280",
245
- 500: "#374151",
246
- 600: "#1F2937",
247
- 700: "#111827",
248
- 800: "#0B0F19",
249
- 900: "#05070D",
250
- },
251
- neutral: {
252
- 100: "#F4F4F8",
253
- 200: "#EEEFF4",
254
- 300: "#E3E3ED",
255
- 400: "#D9DAE5",
256
- 500: "#C6C9D9",
257
- 600: "#A9ADC0",
258
- 700: "#989DAD",
259
- 800: "#777D8A",
260
- 900: "#3D4150",
261
- },
262
- },
263
- system: {
264
- neutral: {
265
- 100: "#F4F4F8",
266
- 200: "#EEEFF4",
267
- 300: "#E3E3ED",
268
- 400: "#D9DAE5",
269
- 500: "#C6C9D9",
270
- 600: "#A9ADC0",
271
- 700: "#989DAD",
272
- 800: "#777D8A",
273
- 900: "#3D4150",
274
- },
275
- success: {
276
- 100: "#D1FADF",
277
- 200: "#A6F4C5",
278
- 300: "#6CE9A6",
279
- 400: "#32D583",
280
- 500: "#12B76A",
281
- 600: "#039855",
282
- 700: "#027A48",
283
- 800: "#05603A",
284
- 900: "#054F31",
285
- },
286
- error: {
287
- 100: "#FEE4E2",
288
- 200: "#FECDCA",
289
- 300: "#FECDCA",
290
- 400: "#F97066",
291
- 500: "#F04438",
292
- 600: "#D92D20",
293
- 700: "#B42318",
294
- 800: "#912018",
295
- 900: "#7A271A",
296
- },
297
- warning: {
298
- 100: "#FEF0C7",
299
- 200: "#FEDF89",
300
- 300: "#FEC84B",
301
- 400: "#FDB022",
302
- 500: "#F79009",
303
- 600: "#DC6803",
304
- 700: "#B54708",
305
- 800: "#93370D",
306
- 900: "#7A2E0E",
307
- },
308
- global: {
309
- 100: "#FFFFFF",
310
- 900: "#1A1A1A",
311
- },
312
- },
313
84
  },
314
85
  spacing: {
315
86
  0: "0",
@@ -347,15 +118,13 @@ module.exports = {
347
118
  base: "1rem",
348
119
  md: "1.077rem",
349
120
  "2md": "1.231rem",
350
- xl: "1.538rem",
121
+ "xl": "1.538rem",
351
122
  "2xl": "2rem",
352
123
  "3xl": "2.462rem",
353
124
  },
354
125
  fontFamily: {
355
- sans: ["Fira Sans", "sans-serif"],
356
- mono: ["Fira Mono", "monospace"],
357
- dmsans: ["DMSans", "sans-serif"],
358
- inter: ["Inter", "sans-serif"],
126
+ 'sans': ['Fira Sans', 'sans-serif'],
127
+ 'mono': ['Fira Mono', 'monospace'],
359
128
  },
360
129
  fontWeight: {
361
130
  regular: 400,
@@ -364,10 +133,34 @@ module.exports = {
364
133
  bold: 700,
365
134
  },
366
135
  boxShadow: {
367
- sm: "0px 3px 10px 0px rgba(0, 0, 0, 0.05)",
368
- DEFAULT: "0px 2px 10px 0px rgba(0, 0, 0, 0.1)",
369
- md: "0 0px 20px -1px rgb(0 0 0 / 0.1)",
370
- bordered: "0 0px 0px 3px rgb(0 0 0 / 0.1)",
136
+ sm: '0px 3px 10px 0px rgba(0, 0, 0, 0.05)',
137
+ DEFAULT: '0px 2px 10px 0px rgba(0, 0, 0, 0.1)',
138
+ md: '0 0px 20px -1px rgb(0 0 0 / 0.1)',
139
+ bordered: '0 0px 0px 3px rgb(0 0 0 / 0.1)',
140
+ },
141
+ keyframes: {
142
+ slideDownAndFade: {
143
+ from: { opacity: '0', transform: 'translateY(-2px)' },
144
+ to: { opacity: '1', transform: 'translateY(0)' },
145
+ },
146
+ slideLeftAndFade: {
147
+ from: { opacity: '0', transform: 'translateX(2px)' },
148
+ to: { opacity: '1', transform: 'translateX(0)' },
149
+ },
150
+ slideUpAndFade: {
151
+ from: { opacity: '0', transform: 'translateY(2px)' },
152
+ to: { opacity: '1', transform: 'translateY(0)' },
153
+ },
154
+ slideRightAndFade: {
155
+ from: { opacity: '0', transform: 'translateX(-2px)' },
156
+ to: { opacity: '1', transform: 'translateX(0)' },
157
+ },
158
+ },
159
+ animation: {
160
+ slideDownAndFade: 'slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
161
+ slideLeftAndFade: 'slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
162
+ slideUpAndFade: 'slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
163
+ slideRightAndFade: 'slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
371
164
  },
372
165
  },
373
- };
166
+ }
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Fira+Sans:wght@400;500;600;700&display=swap";@tailwind base;@tailwind components;@tailwind utilities;*{margin:0;padding:0;box-sizing:border-box}body{position:relative}@media(max-width: 640px){html{font-size:16px}}@media(min-width: 640px){html{font-size:13px}}@layer base{:root{--neutral-0: 255 255 255;--neutral-25: 250 250 250;--neutral-50: 243 243 243;--neutral-100: 230 230 230;--neutral-150: 217 217 217;--neutral-200: 204 204 204;--neutral-250: 191 191 191;--neutral-300: 179 179 179;--neutral-350: 165 165 165;--neutral-400: 153 153 153;--neutral-450: 140 140 140;--neutral-500: 128 128 128;--neutral-550: 115 115 115;--neutral-600: 102 102 102;--neutral-650: 90 90 90;--neutral-700: 76 76 76;--neutral-750: 64 64 64;--neutral-800: 51 51 51;--neutral-850: 38 38 38;--neutral-900: 21 24 30;--primary-0: 246 248 254;--primary-50: 232 239 253;--primary-100: 206 227 253;--primary-500: 9 112 246;--primary-600: 7 90 197;--primary-900: 2 22 49;--success-100: 240 254 230;--success-500: 116 217 38;--success-600: 93 173 31;--danger-100: 254 232 230;--danger-500: 246 24 9;--danger-600: 197 19 7;--warning-100: 254 244 230;--warning-500: 246 143 9;--warning-600: 197 114 7;--brand-10: 155 212 255;--brand-20: 55 170 255;--brand-30: 89 131 247;--brand-40: 87 153 247;--brand-50: 27 123 247;--brand-60: 27 105 253;--brand-70: 11 94 215;--brand-80: 8 43 94;--post: var(--success-600);--delete: var(--danger-500);--put: var(--warning-500);--patch: 180 45 255;--get: var(--primary-500);--body-background: var(--neutral-50);--color-customer-primary-100: #f0f9ff;--color-customer-primary-200: #e0f2fe;--color-customer-primary-300: #bae6fd;--color-customer-primary-400: #7dd3fc;--color-customer-primary-500: #38bdf8;--color-customer-primary-600: #0ea5e9;--color-customer-primary-700: #0284c7;--color-customer-primary-800: #0369a1;--color-customer-primary-900: #0c4a6e;--color-customer-secondary-100: #f5f5f5;--color-customer-secondary-200: #e5e5e5;--color-customer-secondary-300: #d4d4d4;--color-customer-secondary-400: #a3a3a3;--color-customer-secondary-500: #737373;--color-customer-secondary-600: #525252;--color-customer-secondary-700: #404040;--color-customer-secondary-800: #262626;--color-customer-secondary-900: #0a0a0a;--color-customer-tertiary-100: #f9fafb;--color-customer-tertiary-200: #f3f4f6;--color-customer-tertiary-300: #e5e7eb;--color-customer-tertiary-400: #d1d5db;--color-customer-tertiary-500: #9ca3af;--color-customer-tertiary-600: #6b7280;--color-customer-tertiary-700: #4b5563;--color-customer-tertiary-800: #374151;--color-customer-tertiary-900: #1f2937}}@font-face{font-family:"DMSans";src:url("~@kruzer/styles/assets/fonts/DMSans-Light.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/DMSans-Light.ttf") format("truetype");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:"DMSans";src:url("~@kruzer/styles/assets/fonts/DMSans-Regular.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/DMSans-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:"DMSans";src:url("~@kruzer/styles/assets/fonts/DMSans-Italic.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/DMSans-Italic.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:"DMSans";src:url("~@kruzer/styles/assets/fonts/DMSans-Medium.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/DMSans-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:"DMSans";src:url("~@kruzer/styles/assets/fonts/DMSans-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:"DMSans";src:url("~@kruzer/styles/assets/fonts/DMSans-Bold.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/DMSans-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:"Inter";src:url("~@kruzer/styles/assets/fonts/Inter-Light.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/Inter-Light.ttf") format("truetype");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:"Inter";src:url("~@kruzer/styles/assets/fonts/Inter-Regular.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/Inter-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:"Inter";src:url("~@kruzer/styles/assets/fonts/Inter-Italic.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/Inter-Italic.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:"Inter";src:url("~@kruzer/styles/assets/fonts/Inter-Medium.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/Inter-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:"Inter";src:url("~@kruzer/styles/assets/fonts/Inter-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:"Inter";src:url("~@kruzer/styles/assets/fonts/Inter-Bold.woff2") format("woff2"),url("~@kruzer/styles/assets/fonts/Inter-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}body{font-family:"Fira Sans",sans-serif;font-weight:400;font-style:normal;@apply text-neutral-700}h1{@apply text-3xl;line-height:140%}h2{@apply text-2xl;line-height:140%}h3{@apply text-xl;line-height:140%}h4{@apply text-2md;line-height:140%}h4{@apply text-md;line-height:140%}a,p,span{@apply text-base;line-height:140%}small{@apply text-sm;line-height:120%}p{white-space:normal;line-height:140%}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{@apply bg-neutral-600 rounded}.krz-grid-xs{@apply grid grid-cols-xs gap-4}.krz-grid-sm{@apply grid grid-cols-sm gap-4}.krz-grid-md{@apply grid grid-cols-md gap-4}.krz-grid-lg{@apply grid grid-cols-lg gap-4}
1
+ @import"https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Fira+Sans:wght@400;500;600;700&display=swap";@tailwind base;@tailwind components;@tailwind utilities;*{margin:0;padding:0;box-sizing:border-box}body{position:relative}@media(max-width: 640px){html{font-size:16px}}@media(min-width: 640px){html{font-size:13px}}@layer base{:root{--neutral-0: 255 255 255;--neutral-25: 250 250 250;--neutral-50: 243 243 243;--neutral-100: 230 230 230;--neutral-150: 217 217 217;--neutral-200: 204 204 204;--neutral-250: 191 191 191;--neutral-300: 179 179 179;--neutral-350: 165 165 165;--neutral-400: 153 153 153;--neutral-450: 140 140 140;--neutral-500: 128 128 128;--neutral-550: 115 115 115;--neutral-600: 102 102 102;--neutral-650: 90 90 90;--neutral-700: 76 76 76;--neutral-750: 64 64 64;--neutral-800: 51 51 51;--neutral-850: 38 38 38;--neutral-900: 21 24 30;--primary-0: 246 248 254;--primary-50: 232 239 253;--primary-100: 206 227 253;--primary-500: 9 112 246;--primary-600: 7 90 197;--primary-900: 2 22 49;--success-100: 240 254 230;--success-500: 116 217 38;--success-600: 93 173 31;--danger-100: 254 232 230;--danger-500: 246 24 9;--danger-600: 197 19 7;--warning-100: 254 244 230;--warning-500: 246 143 9;--warning-600: 197 114 7;--brand-10: 155 212 255;--brand-20: 55 170 255;--brand-30: 89 131 247;--brand-40: 87 153 247;--brand-50: 27 123 247;--brand-60: 27 105 253;--brand-70: 11 94 215;--brand-80: 8 43 94;--post: var(--success-600);--delete: var(--danger-500);--put: var(--warning-500);--patch: 180 45 255;--get: var(--primary-500);--body-background: var(--neutral-50)}}body{font-family:"Fira Sans",sans-serif;font-weight:400;font-style:normal}h1{@apply text-3xl;line-height:140%}h2{@apply text-2xl;line-height:140%}h3{@apply text-xl;line-height:140%}h4{@apply text-2md;line-height:140%}h4{@apply text-md;line-height:140%}a,p,span{@apply text-base;line-height:140%}small{@apply text-sm;line-height:120%}p{white-space:normal;line-height:140%}
package/package.json CHANGED
@@ -1,20 +1,15 @@
1
1
  {
2
2
  "name": "@kruzer/styles",
3
- "version": "3.0.0-alpha.29",
3
+ "version": "3.0.0-alpha.3",
4
4
  "type": "module",
5
- "main": "./dist/styles.js",
6
- "module": "./dist/styles.js",
7
5
  "files": [
8
6
  "dist/styles.min.scss",
9
- "dist/kruzer-tailwind-preset.cjs",
10
- "dist/styles.js",
11
- "dist/assets"
7
+ "dist/kruzer-tailwind-preset.cjs"
12
8
  ],
13
9
  "scripts": {
14
10
  "dev": "vite",
15
11
  "build": "sass src/styles/main.scss src/styles/styles.min.scss --no-source-map --style compressed && tsc && vite build",
16
- "preview": "vite preview",
17
- "publish": "npm publish --tag alpha"
12
+ "preview": "vite preview"
18
13
  },
19
14
  "keywords": [
20
15
  "scss",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/styles.js DELETED
@@ -1 +0,0 @@
1
-