react-mcu 1.0.9 → 1.0.10
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 +7 -9
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
[](https://www.chromatic.com/library?appId=695eb517cb602e59b4cc045c&branch=main)
|
|
3
3
|
[](https://main--695eb517cb602e59b4cc045c.chromatic.com)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
[Material Design colors](https://m3.material.io/styles/color/system/overview) for React.
|
|
6
|
+
|
|
7
|
+
It injects `--mcu-*` CSS variables into the page.
|
|
7
8
|
|
|
8
9
|
https://github.com/user-attachments/assets/5b67c961-d7a4-4b64-9356-4ada26bc9be4
|
|
9
10
|
|
|
@@ -68,7 +69,7 @@ return (
|
|
|
68
69
|
|
|
69
70
|
## Tailwind
|
|
70
71
|
|
|
71
|
-
Compatible
|
|
72
|
+
Compatible through
|
|
72
73
|
[theme variables](https://tailwindcss.com/docs/theme):
|
|
73
74
|
|
|
74
75
|
https://github.com/abernier/react-mcu/blob/f981087651d77f6b11fc76cb783a5220a1b56e87/src/tailwind.css#L3-L76
|
|
@@ -88,13 +89,10 @@ Or simply:
|
|
|
88
89
|
|
|
89
90
|
Pre-requisites:
|
|
90
91
|
|
|
91
|
-
- [
|
|
92
|
-
- You should use `tailwind.cssVariables` in your
|
|
93
|
-
[`components.json`](https://ui.shadcn.com/docs/theming#css-variables)
|
|
92
|
+
- You should use [`tailwind.cssVariables`](https://ui.shadcn.com/docs/theming#css-variables)
|
|
94
93
|
|
|
95
|
-
Simply override
|
|
96
|
-
[shadcn's CSS variables](https://ui.shadcn.com/docs/theming#list-of-variables)
|
|
97
|
-
with MCU ones:
|
|
94
|
+
Simply override/remap
|
|
95
|
+
[shadcn's CSS variables](https://ui.shadcn.com/docs/theming#list-of-variables):
|
|
98
96
|
|
|
99
97
|
```css
|
|
100
98
|
:root {
|
package/dist/index.js
CHANGED