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 CHANGED
@@ -2,8 +2,9 @@
2
2
  [![](https://img.shields.io/badge/chromatic-171c23.svg?logo=chromatic)](https://www.chromatic.com/library?appId=695eb517cb602e59b4cc045c&branch=main)
3
3
  [![](https://img.shields.io/badge/storybook-171c23.svg?logo=storybook)](https://main--695eb517cb602e59b4cc045c.chromatic.com)
4
4
 
5
- It injects `--mcu-*` CSS variables into the page, based on
6
- [m3 color system](https://m3.material.io/styles/color/system/overview).
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 with Tailwind through
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
- - [Tailwind setup](#tailwind)
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
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // src/Mcu.tsx
2
4
  import {
3
5
  argbFromHex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-mcu",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A React component library",
5
5
  "keywords": [
6
6
  "react",