@hazae41/labase 1.0.25 → 1.0.26

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@hazae41/labase",
4
- "version": "1.0.25",
4
+ "version": "1.0.26",
5
5
  "description": "The Tailwind framework for monochrome apps",
6
6
  "repository": "github:hazae41/labase",
7
7
  "author": "hazae41",
package/src/index.css CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  body {
56
- @apply h-full w-full text-base text-default bg-default **:scrollbar-default-transparent;
56
+ @apply h-full w-full text-base text-default bg-default **:scrollbar-default-[transparent];
57
57
  }
58
58
 
59
59
  body {
@@ -1,103 +1,71 @@
1
- @utility scrollbar-white-opaque {
2
- @supports (-moz-appearance:none) {
3
- scrollbar-color: rgba(0 0 0 / 0.1) white;
4
- }
5
-
6
- &::-webkit-scrollbar {
7
- @apply bg-white;
8
- }
1
+ @import "tailwindcss/index";
9
2
 
10
- &::-webkit-scrollbar-thumb {
11
- @apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
12
- }
13
-
14
- &::-webkit-scrollbar-thumb:hover {
15
- @apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
16
- }
17
- }
3
+ @import "./padding/index.css";
4
+ @import "./margin/index.css";
5
+ @import "./animations/index.css";
6
+ @import "./background/index.css";
7
+ @import "./text/index.css";
8
+ @import "./border/index.css";
9
+ @import "./outline/index.css";
10
+ @import "./divide/index.css";
11
+ @import "./scrollbar/index.css";
18
12
 
19
- @utility scrollbar-black-opaque {
20
- @supports (-moz-appearance:none) {
21
- scrollbar-color: rgba(255 255 255 / 0.1) black;
13
+ @custom-variant light {
14
+ @media (prefers-color-scheme: light) {
15
+ &:not([data-theme="dark"], [data-theme="opposite"], [data-theme="dark"] *, [data-theme="opposite"] *) {
16
+ @slot;
17
+ }
22
18
  }
23
19
 
24
- &::-webkit-scrollbar {
25
- @apply bg-black;
20
+ @media (prefers-color-scheme: dark) {
21
+ &:where([data-theme="opposite"], [data-theme="opposite"] *) {
22
+ @slot;
23
+ }
26
24
  }
27
25
 
28
- &::-webkit-scrollbar-thumb {
29
- @apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
30
- }
31
-
32
- &::-webkit-scrollbar-thumb:hover {
33
- @apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
26
+ &:where([data-theme="light"], [data-theme="light"] *) {
27
+ @slot;
34
28
  }
35
29
  }
36
30
 
37
- @utility scrollbar-default-opaque {
38
- @apply scrollbar-white-opaque;
39
-
40
- @variant dark {
41
- @apply scrollbar-black-opaque;
31
+ @custom-variant dark {
32
+ @media (prefers-color-scheme: dark) {
33
+ &:not([data-theme="light"], [data-theme="opposite"], [data-theme="light"] *, [data-theme="opposite"] *) {
34
+ @slot;
35
+ }
42
36
  }
43
- }
44
37
 
45
- @utility scrollbar-opposite-opaque {
46
- @apply scrollbar-black-opaque;
38
+ @media (prefers-color-scheme: light) {
39
+ &:where([data-theme="opposite"], [data-theme="opposite"] *) {
40
+ @slot;
41
+ }
42
+ }
47
43
 
48
- @variant dark {
49
- @apply scrollbar-white-opaque;
44
+ &:where([data-theme="dark"], [data-theme="dark"] *) {
45
+ @slot;
50
46
  }
51
47
  }
52
48
 
53
- @utility scrollbar-white-transparent {
54
- @supports (-moz-appearance:none) {
55
- scrollbar-color: rgba(0 0 0 / 0.1) transparent;
56
- }
49
+ @layer base {
57
50
 
58
- &::-webkit-scrollbar {
59
- @apply bg-transparent;
51
+ html {
52
+ @apply h-full w-full text-base;
60
53
  }
61
54
 
62
- &::-webkit-scrollbar-thumb {
63
- @apply bg-black/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
55
+ body {
56
+ @apply h-full w-full text-base text-default bg-default **:scrollbar-default-[transparent];
64
57
  }
65
58
 
66
- &::-webkit-scrollbar-thumb:hover {
67
- @apply bg-black/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
59
+ body {
60
+ font-family: ui-rounded, system-ui, sans-serif;
68
61
  }
69
- }
70
62
 
71
- @utility scrollbar-black-transparent {
72
- @supports (-moz-appearance:none) {
73
- scrollbar-color: rgba(255 255 255 / 0.1) transparent;
63
+ ::selection {
64
+ @apply bg-default-double-contrast;
74
65
  }
75
66
 
76
- &::-webkit-scrollbar {
67
+ ::backdrop {
77
68
  @apply bg-transparent;
78
69
  }
79
70
 
80
- &::-webkit-scrollbar-thumb {
81
- @apply bg-white/10 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
82
- }
83
-
84
- &::-webkit-scrollbar-thumb:hover {
85
- @apply bg-white/20 rounded-[10px] border-[3px] border-solid border-transparent bg-clip-padding;
86
- }
87
- }
88
-
89
- @utility scrollbar-default-transparent {
90
- @apply scrollbar-white-transparent;
91
-
92
- @variant dark {
93
- @apply scrollbar-black-transparent;
94
- }
95
- }
96
-
97
- @utility scrollbar-opposite-transparent {
98
- @apply scrollbar-black-transparent;
99
-
100
- @variant dark {
101
- @apply scrollbar-white-transparent;
102
- }
103
71
  }