@banyan_cloud/roots 1.0.99 → 1.0.101

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banyan_cloud/roots",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "description": "Design System Library which drives the Banyan Cloud products",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -50,10 +50,40 @@
50
50
  scrollbar-width: none;
51
51
  }
52
52
 
53
+ @mixin customScrollBar($theme: dark) {
54
+ -ms-overflow-style: none;
55
+ scrollbar-width: thin;
56
+
57
+ &::-webkit-scrollbar {
58
+ width: 0.25rem;
59
+ background: transparent;
60
+ }
61
+
62
+ &::-webkit-scrollbar-thumb {
63
+ border-radius: 0.25rem;
64
+ }
65
+
66
+ @if $theme == dark {
67
+ &::-webkit-scrollbar-thumb {
68
+ background: $grey6;
69
+ }
70
+ } @else {
71
+ &::-webkit-scrollbar-thumb {
72
+ background: $grey2;
73
+ }
74
+ }
75
+ }
76
+
53
77
  @function derive-rgb-values-from-hex($hex) {
54
78
  @return red($hex), green($hex), blue($hex);
55
79
  }
56
80
 
57
- @mixin boxShadow {
58
- box-shadow: -2px -2px 4px rgba(166, 166, 166, 0.25), 2px 2px 4px rgba(166, 166, 166, 0.24);
81
+ @mixin boxShadow($theme: light) {
82
+ @if $theme == dark {
83
+ box-shadow: 0px 8px 20px rgba(24, 24, 24, 0.08);
84
+ }
85
+
86
+ @if $theme == light {
87
+ box-shadow: 0px 8px 20px rgba(24, 24, 24, 0.08);
88
+ }
59
89
  }