@hazae41/labase 1.0.30 → 1.0.31

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.30",
4
+ "version": "1.0.31",
5
5
  "description": "The Tailwind framework for monochrome apps",
6
6
  "repository": "github:hazae41/labase",
7
7
  "author": "hazae41",
@@ -23,11 +23,9 @@
23
23
  }
24
24
 
25
25
  @utility border-opposite-contrast {
26
- /* strong dark on light */
27
26
  @apply border-black/80;
28
27
 
29
28
  @variant dark {
30
- /* strong light on dark */
31
29
  @apply border-white/90;
32
30
  }
33
31
  }
package/src/index.css CHANGED
@@ -47,6 +47,42 @@
47
47
  }
48
48
  }
49
49
 
50
+ @custom-variant in-light {
51
+ @media (prefers-color-scheme: light) {
52
+ &:not([data-theme="dark"] *, [data-theme="opposite"] *) {
53
+ @slot;
54
+ }
55
+ }
56
+
57
+ @media (prefers-color-scheme: dark) {
58
+ &:where([data-theme="opposite"] *) {
59
+ @slot;
60
+ }
61
+ }
62
+
63
+ &:where([data-theme="light"] *) {
64
+ @slot;
65
+ }
66
+ }
67
+
68
+ @custom-variant in-dark {
69
+ @media (prefers-color-scheme: dark) {
70
+ &:not([data-theme="light"] *, [data-theme="opposite"] *) {
71
+ @slot;
72
+ }
73
+ }
74
+
75
+ @media (prefers-color-scheme: light) {
76
+ &:where([data-theme="opposite"] *) {
77
+ @slot;
78
+ }
79
+ }
80
+
81
+ &:where([data-theme="dark"] *) {
82
+ @slot;
83
+ }
84
+ }
85
+
50
86
  @layer base {
51
87
 
52
88
  html {