@lemmo-lab/tokens 1.0.0 → 1.0.1

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.
@@ -17,5 +17,6 @@ export declare const tokens: {
17
17
  themes: typeof themes;
18
18
  defaultTheme: any;
19
19
  lightTheme: any;
20
+ [key: string]: any;
20
21
  };
21
22
  export default tokens;
package/dist/js/tokens.js CHANGED
@@ -164,6 +164,34 @@ export const core = {
164
164
  "glossInset": "inset 0 -2px 2px 0 rgba(255, 255, 255, 0.4), inset 0 2px 2px 0 rgba(255, 255, 255, 0.4)",
165
165
  "glowBrand": "0 0 0.4rem color-mix(in srgb, #d1fe17 56%, transparent)"
166
166
  },
167
+ "gradient": {
168
+ "surfaceFeatured": "linear-gradient(225deg, rgba(209, 254, 23, 0.16) 0%, rgba(209, 254, 23, 0.08) 28%, rgba(209, 254, 23, 0) 62%), var(--lemmo-color-surface-elevated, #18191C)",
169
+ "surfacePinkHaze": "radial-gradient(145% 54% at 100% 0%, color-mix(in srgb, var(--lemmo-color-surface-brand-secondary) 32%, transparent) 0%, color-mix(in srgb, var(--lemmo-color-surface-brand-secondary) 15%, transparent) 42%, transparent 78%), linear-gradient(180deg, color-mix(in srgb, var(--lemmo-color-surface-brand-secondary) 13%, transparent) 0%, color-mix(in srgb, var(--lemmo-color-surface-brand-secondary) 7%, transparent) 36%, transparent 72%), #18191C",
170
+ "surfaceOlive": "linear-gradient(180deg, #1F2022 0%, #222420 55%, #272A20 100%)",
171
+ "surfaceOcean": "linear-gradient(180deg, #121D23 0%, #152026 45%, #1D282E 75%, #273238 100%)",
172
+ "surfaceSteel": "linear-gradient(180deg, #1F2024 0%, #232428 40%, #343539 75%, #48494D 100%)",
173
+ "surfaceBase": "linear-gradient(180deg, #1D1F20 0%, #17191B 100%)",
174
+ "surfaceSoft": "radial-gradient(58% 220% at 3% 42%, rgba(255,255,255,0.095) 0%, rgba(255,255,255,0.035) 42%, rgba(255,255,255,0.012) 100%), linear-gradient(180deg, #1D1F20 0%, #17191B 100%)",
175
+ "surfaceLimeWash": "radial-gradient(56.49% 230.73% at 2.37% 40.91%, rgba(187,251,12,0.07) 0%, rgba(12,251,32,0.01) 100%), radial-gradient(41.8% 183.68% at 10.4% 53.71%, rgba(197,197,197,0.08) 0%, rgba(197,197,197,0.01) 100%), linear-gradient(180deg, #1D1F20 0%, #17191B 100%)",
176
+ "surfacePinkWash": "radial-gradient(56.49% 230.73% at 2.37% 40.91%, rgba(237,21,114,0.10) 0%, rgba(237,21,114,0.01) 100%), linear-gradient(180deg, #1D1F20 0%, #17191B 100%)",
177
+ "surfaceBlueWash": "radial-gradient(56.49% 230.73% at 2.37% 40.91%, rgba(21,68,237,0.10) 0%, rgba(21,68,237,0.01) 100%), linear-gradient(180deg, #1D1F20 0%, #17191B 100%)",
178
+ "surfaceSteelFlat": "linear-gradient(180deg, rgba(110,145,188,0.02) 0%, rgba(110,145,188,0.20) 100%), #1C1E20",
179
+ "surfacePlain": "linear-gradient(180deg, rgb(29,31,32) 0%, rgb(23,25,27) 100%)",
180
+ "rimVertical": "linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.09) 18%, rgba(255,255,255,0.03) 38%, rgba(255,255,255,0) 72%)",
181
+ "rimDiagonal": "linear-gradient(225deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.10) 18%, rgba(255,255,255,0.04) 42%, rgba(255,255,255,0) 76%)",
182
+ "borderPink": "radial-gradient(86.59% 115.91% at 50% 45.45%, #FB398C 0%, #ED1572 100%)",
183
+ "borderBlue": "radial-gradient(86.59% 115.91% at 50% 45.45%, #245EF1 0%, #1544ED 100%)",
184
+ "pillLime": "radial-gradient(ellipse 55% 95% at 73% 50%, rgba(117,239,29,0.6) 0%, rgba(194,237,21,0) 100%), radial-gradient(ellipse 25% 42% at 85% 37%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%), radial-gradient(ellipse 33% 70% at 12% 76%, rgba(200,239,29,0.6) 0%, rgba(194,237,21,0) 100%), linear-gradient(90deg, rgb(209,254,23) 0%, rgb(209,254,23) 100%)",
185
+ "pillBlue": "radial-gradient(ellipse 75% 300% at 73% 50%, #1d63ef 0%, #5150d0 45%, rgba(237,21,114,0) 100%), radial-gradient(ellipse 30% 120% at 85% 37%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%), #0256fe",
186
+ "pillUltraviolet": "radial-gradient(ellipse 55% 95% at 73% 50%, rgba(29,99,239,0.6) 0%, rgba(81,80,208,0.45) 25%, rgba(133,60,176,0.3) 50%, rgba(237,21,114,0) 100%), radial-gradient(ellipse 25% 42% at 85% 37%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%), radial-gradient(ellipse 33% 70% at 12% 76%, rgba(29,99,239,0.6) 0%, rgba(133,60,176,0.3) 50%, rgba(237,21,114,0) 100%), linear-gradient(90deg, rgb(2,86,254) 0%, rgb(2,86,254) 100%)",
187
+ "pillPink": "radial-gradient(ellipse 55% 95% at 73% 50%, rgba(239,29,186,0.6) 0%, rgba(237,21,114,0) 100%), radial-gradient(ellipse 25% 42% at 85% 37%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%), radial-gradient(ellipse 33% 70% at 12% 76%, rgba(176,29,239,0.6) 0%, rgba(206,25,176,0.3) 50%, rgba(237,21,114,0) 100%), linear-gradient(90deg, rgb(255,0,91) 0%, rgb(255,0,91) 100%)",
188
+ "offerBase": "radial-gradient(120% 90% at 50% 0%, #55142c 0%, #35101d 38%, #1e0c14 70%, #140a0f 100%)",
189
+ "offerFlash": "linear-gradient(0deg, rgba(255,0,91,0.32) 0%, rgba(255,0,91,0.016) 100%), linear-gradient(90deg, #0f1113 0%, #0f1113 100%)",
190
+ "offerDots": "radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0)",
191
+ "offerCombo": "linear-gradient(135deg, #ff005b 0%, #d1004e 40%, #8b006a 100%)",
192
+ "tableCyan": "radial-gradient(211% 211% at 50.16% 100%, rgba(60,140,255,0.20) 0%, rgba(60,140,255,0) 100%), radial-gradient(64.4% 64.4% at 50.16% 100%, rgba(60,216,255,0.20) 0%, rgba(60,216,255,0) 100%), rgba(255,255,255,0.05)",
193
+ "overlayDarken": "linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2))"
194
+ },
167
195
  "motion": {
168
196
  "duration": {
169
197
  "fast": "100ms",
@@ -206,14 +234,21 @@ export const core = {
206
234
  "lg": "64rem",
207
235
  "xl": "80rem",
208
236
  "2xl": "120rem",
209
- "3xl": "158rem"
237
+ "3xl": "158rem",
238
+ "tablet": "var(--lemmo-bp-md)",
239
+ "desktop": "var(--lemmo-bp-xl)",
240
+ "wide": "var(--lemmo-bp-2xl)"
210
241
  },
211
242
  "stroke": {
212
243
  "none": "0",
213
244
  "hairline": "0.5px",
214
245
  "thin": "1px",
215
246
  "medium": "1.5px",
216
- "thick": "2px"
247
+ "thick": "2px",
248
+ "rim": "var(--lemmo-stroke-thin)",
249
+ "border": "var(--lemmo-stroke-thin)",
250
+ "borderGradient": "var(--lemmo-stroke-thick)",
251
+ "divider": "var(--lemmo-stroke-hairline)"
217
252
  },
218
253
  "size": {
219
254
  "control": {
@@ -234,11 +269,28 @@ export const core = {
234
269
  "default": "3.25rem",
235
270
  "compact": "2.25rem"
236
271
  },
272
+ "gutter": "1rem",
237
273
  "container": {
238
274
  "base": "100%",
275
+ "sm": "40rem",
276
+ "md": "48rem",
277
+ "lg": "64rem",
278
+ "xl": "80rem",
279
+ "2xl": "120rem",
280
+ "3xl": "158rem",
281
+ "media": "calc(100vw - 2rem)",
239
282
  "copy": "80rem",
240
283
  "content": "56rem",
241
284
  "wide": "96rem"
285
+ },
286
+ "pricing": {
287
+ "columnSm": "66.5rem",
288
+ "columnLg": "89rem",
289
+ "maxDefault": "90rem",
290
+ "maxWide": "92rem",
291
+ "padX": "1rem",
292
+ "padXLg": "3.75rem",
293
+ "padY": "2rem"
242
294
  }
243
295
  },
244
296
  "spacing": {
@@ -412,32 +464,32 @@ export const semantic = {
412
464
  "background": "#5c000f",
413
465
  "foreground": "#ff5462",
414
466
  "border": "#fa0019",
415
- "glow": "{color.status.danger.glow}"
467
+ "glow": "#ff1f2e"
416
468
  },
417
469
  "warning": {
418
470
  "background": "#523f00",
419
471
  "foreground": "#ffef33",
420
472
  "border": "#dfab01",
421
- "glow": "{color.status.warning.glow}"
473
+ "glow": "#fff05a"
422
474
  },
423
475
  "success": {
424
476
  "background": "#0d4a17",
425
477
  "foreground": "#4ee466",
426
478
  "border": "#2eb844",
427
- "glow": "{color.status.success.glow}"
479
+ "glow": "#00e62e"
428
480
  },
429
481
  "info": {
430
482
  "background": "#000d26",
431
483
  "foreground": "#5b91fe",
432
484
  "border": "#0256fe",
433
- "glow": "{color.status.info.glow}"
485
+ "glow": "#3cd8ff"
434
486
  }
435
487
  }
436
488
  },
437
489
  "radius": {
438
- "base": "{radius.base}",
490
+ "base": ".5rem",
439
491
  "badge": "calc({radius.base} * 0.75)",
440
- "control": "{radius.base}",
492
+ "control": ".5rem",
441
493
  "card": "calc({radius.base} * 1.5)",
442
494
  "media": "calc({radius.base} * 2)",
443
495
  "featuredCard": "calc({radius.base} * 2.5)",
@@ -526,30 +578,30 @@ export const themes = {
526
578
  "background": "#5c000f",
527
579
  "foreground": "#ff5462",
528
580
  "border": "#fa0019",
529
- "glow": "{color.status.danger.glow}"
581
+ "glow": "#ff1f2e"
530
582
  },
531
583
  "warning": {
532
584
  "background": "#523f00",
533
585
  "foreground": "#ffef33",
534
586
  "border": "#dfab01",
535
- "glow": "{color.status.warning.glow}"
587
+ "glow": "#fff05a"
536
588
  },
537
589
  "success": {
538
590
  "background": "#0d4a17",
539
591
  "foreground": "#4ee466",
540
592
  "border": "#2eb844",
541
- "glow": "{color.status.success.glow}"
593
+ "glow": "#00e62e"
542
594
  },
543
595
  "info": {
544
596
  "background": "#000d26",
545
597
  "foreground": "#5b91fe",
546
598
  "border": "#0256fe",
547
- "glow": "{color.status.info.glow}"
599
+ "glow": "#3cd8ff"
548
600
  }
549
601
  }
550
602
  },
551
603
  "radius": {
552
- "base": "{radius.base}"
604
+ "base": ".5rem"
553
605
  },
554
606
  "shadow": {
555
607
  "cardFeatured": "0 1.5rem 4rem rgba(0, 0, 0, 0.24)",
@@ -650,7 +702,7 @@ export const themes = {
650
702
  }
651
703
  },
652
704
  "radius": {
653
- "base": "{radius.base}"
705
+ "base": ".5rem"
654
706
  },
655
707
  "shadow": {
656
708
  "cardFeatured": "0 1.5rem 4rem rgba(0, 0, 0, 0.08)",
@@ -7,31 +7,31 @@ export default {
7
7
  extend: {
8
8
  colors: {
9
9
  page: {
10
- primary: 'var(--lemu-page-background, var(--lemmo-page-background))',
11
- foreground: 'var(--lemu-page-foreground, var(--lemmo-page-foreground))',
10
+ primary: 'var(--lemu-page-background, var(--lemmo-color-page-primary, #131517))',
11
+ foreground: 'var(--lemu-page-foreground, var(--lemmo-color-font-primary, #e1e1e3))',
12
12
  },
13
13
  surface: {
14
- primary: 'var(--lemu-surface-primary-background, var(--lemmo-surface-primary-background))',
15
- secondary: 'var(--lemu-surface-secondary-background, var(--lemmo-surface-secondary-background))',
16
- tertiary: 'var(--lemu-surface-tertiary-background, var(--lemmo-surface-tertiary-background))',
17
- elevated: 'var(--lemu-surface-elevated-background, var(--lemmo-surface-elevated-background))',
18
- brand: 'var(--lemu-surface-brand-background, var(--lemmo-surface-brand-background))',
14
+ primary: 'var(--lemu-surface-primary, var(--lemmo-color-surface-primary, #1c1e20))',
15
+ secondary: 'var(--lemu-surface-secondary, var(--lemmo-color-surface-secondary, #23262a))',
16
+ tertiary: 'var(--lemu-surface-tertiary, var(--lemmo-color-surface-tertiary, #0f1113))',
17
+ elevated: 'var(--lemu-surface-elevated, var(--lemmo-color-surface-elevated, #18191c))',
18
+ brand: 'var(--lemu-surface-brand, var(--lemmo-color-surface-brand, #d1fe17))',
19
19
  },
20
20
  brand: {
21
- lime: '#d1fe17',
22
- pink: '#ff005b',
23
- blue: '#0256fe',
21
+ lime: 'var(--lemmo-color-brand-lime, #d1fe17)',
22
+ pink: 'var(--lemmo-color-brand-pink, #ff005b)',
23
+ blue: 'var(--lemmo-color-brand-blue, #0256fe)',
24
24
  }
25
25
  },
26
26
  borderRadius: {
27
- control: 'var(--lemu-radius-control, var(--lemmo-radius-control))',
28
- card: 'var(--lemu-radius-card, var(--lemmo-radius-card))',
29
- badge: 'var(--lemu-radius-badge, var(--lemmo-radius-badge))',
27
+ control: 'var(--lemmo-radius-control, 0.5rem)',
28
+ card: 'var(--lemmo-radius-card, 0.75rem)',
29
+ badge: 'var(--lemmo-radius-badge, 0.375rem)',
30
30
  },
31
31
  fontFamily: {
32
- body: ['var(--lemu-font-body, var(--lemmo-font-body))', 'sans-serif'],
33
- heading: ['var(--lemu-font-heading, var(--lemmo-font-heading))', 'sans-serif'],
34
- numeric: ['var(--lemu-font-numeric, var(--lemmo-font-numeric))', 'sans-serif'],
32
+ body: ['var(--lemmo-font-body)', 'sans-serif'],
33
+ heading: ['var(--lemmo-font-heading)', 'sans-serif'],
34
+ numeric: ['var(--lemmo-font-numeric)', 'sans-serif'],
35
35
  }
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemmo-lab/tokens",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Single source of truth design tokens for Lemmo products",
5
5
  "type": "module",
6
6
  "main": "./dist/js/tokens.js",
@@ -19,6 +19,7 @@
19
19
  "./css/themes/light.css": "./dist/css/themes/light.css",
20
20
  "./css/themes/neon.css": "./dist/css/themes/neon.css",
21
21
  "./css/themes/midnight.css": "./dist/css/themes/midnight.css",
22
+ "./css/system-design/*": "./dist/css/system-design/*",
22
23
  "./js": {
23
24
  "types": "./dist/js/tokens.d.ts",
24
25
  "import": "./dist/js/tokens.js",