@bobbykim/manguito-theme 0.27.0 → 0.28.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.
@@ -48,6 +48,30 @@
48
48
  --breakpoint-2xl: 96rem; /* 1536px */
49
49
  }
50
50
 
51
+ /* property for background opacity class which has been deprecated with tailwind v4 */
52
+ @property --mcl-bg-opacity {
53
+ syntax: '<percentage>';
54
+ inherits: false;
55
+ initial-value: 100%;
56
+ }
57
+
58
+ @property --mcl-outline-opacity {
59
+ syntax: '<percentage>';
60
+ inherits: false;
61
+ initial-value: 100%;
62
+ }
63
+
64
+ @property --mcl-gm-shadow {
65
+ syntax: '<number>';
66
+ inherits: false;
67
+ initial-value: 10;
68
+ }
69
+
70
+ @property --mcl-depth-color {
71
+ syntax: '<color>';
72
+ inherits: false;
73
+ }
74
+
51
75
  /* Base Styles - replaces addBase from your plugin */
52
76
  @layer base {
53
77
  body {
@@ -520,6 +544,21 @@
520
544
  border-bottom-color: transparent;
521
545
  border-right-color: theme(--color-dark-3);
522
546
  }
547
+ .mcl-glassmorphism {
548
+ box-shadow:
549
+ /* base shadow */
550
+ 0 8px 32px --alpha(theme(--color-dark-4) / 10%),
551
+ /* highlight edges */ inset 0 1px 0
552
+ --alpha(var(--mcl-depth-color, theme(--color-light-1)) / 50%),
553
+ inset 0 -1px 0
554
+ --alpha(var(--mcl-depth-color, theme(--color-light-1)) / 10%),
555
+ /* dynamic glow */ inset 0 0 calc(var(--mcl-gm-shadow) * 2px)
556
+ calc(var(--mcl-gm-shadow) * 1px)
557
+ --alpha(
558
+ var(--mcl-depth-color, theme(--color-light-1)) /
559
+ calc(var(--mcl-gm-shadow) / 10 * 100%)
560
+ );
561
+ }
523
562
  }
524
563
 
525
564
  /* set variable for color-specific button variants */
@@ -537,26 +576,30 @@
537
576
  --mcl-link-color: --value(--color-*);
538
577
  }
539
578
 
540
- /* background opacity class which has been deprecated with tailwind v4 */
541
579
  @utility bg-opacity-* {
542
- --mcl-bg-opacity: calc(--value(integer) / 100);
580
+ --mcl-bg-opacity: calc(--value(integer) * 1%);
543
581
  }
544
582
 
545
583
  @utility bg-* {
546
- background-color: --alpha(
547
- --value(--color-*) / calc(var(--mcl-bg-opacity, 1) * 100%)
548
- );
584
+ background-color: --alpha(--value(--color-*) / var(--mcl-bg-opacity));
549
585
  }
550
586
 
551
587
  /* new outline opacity class which will replace deprecated ring-opacity class */
552
588
  @utility outline-opacity-* {
553
- --mcl-outline-opacity: calc(--value(integer) / 100);
589
+ --mcl-outline-opacity: calc(--value(integer) * 1%);
554
590
  }
555
591
 
556
592
  @utility outline-* {
557
- outline-color: --alpha(
558
- --value(--color-*) / calc(var(--mcl-outline-opacity, 1) * 100%)
559
- );
593
+ outline-color: --alpha(--value(--color-*) / var(--mcl-outline-opacity));
594
+ }
595
+
596
+ /* utility classes for glassmorphism depth */
597
+ @utility mcl-glass-* {
598
+ --mcl-depth-color: --value(--color-*);
599
+ }
600
+
601
+ @utility mcl-depth-* {
602
+ --mcl-gm-shadow: --value(integer);
560
603
  }
561
604
 
562
605
  /* Utility Classes - replaces addUtilities from your plugin */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobbykim/manguito-theme",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "main theme file for manguito components library. Other MCL components will need to import this file to run.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -60,5 +60,5 @@
60
60
  "url": "https://github.com/bobbykim89/manguito-component-library.git"
61
61
  },
62
62
  "license": "MIT",
63
- "gitHead": "cb87d8ea3ce5b3ae8d639237dbde742daac94390"
63
+ "gitHead": "c2d96267d7ae249fba7d58cdf8a69cbba218567e"
64
64
  }