@hazae41/labase 1.0.7 → 1.0.8
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/README.md +19 -1
- package/package.json +1 -1
- package/src/index.css +1 -1
package/README.md
CHANGED
|
@@ -177,4 +177,22 @@ You can use animations such as
|
|
|
177
177
|
|
|
178
178
|
- `animate-scale-xywh-in` and `animate-scale-xywh-out`
|
|
179
179
|
|
|
180
|
-
- `animate-vibrate-loop`
|
|
180
|
+
- `animate-vibrate-loop`
|
|
181
|
+
|
|
182
|
+
### Dark mode
|
|
183
|
+
|
|
184
|
+
Dark mode is automatic based on system, but you can also force it on a subtree with `data-theme="dark"`
|
|
185
|
+
|
|
186
|
+
```tsx
|
|
187
|
+
function Example() {
|
|
188
|
+
return <main className="">
|
|
189
|
+
<div className="bg-default">
|
|
190
|
+
This will depend on the system
|
|
191
|
+
</div>
|
|
192
|
+
<div className="bg-default"
|
|
193
|
+
data-theme="dark">
|
|
194
|
+
This will always be dark
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
}
|
|
198
|
+
```
|
package/package.json
CHANGED