You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,20 @@
6
6
7
7
# CSS Variables React hook
8
8
9
-
[css-vars-hook](https://github.com/morewings/css-vars-hook) contains React hooks to set and manipulate CSS custom properties from React component.
9
+
[css-vars-hook](https://github.com/morewings/css-vars-hook) contains React hooks to set and manipulate CSS custom properties (variables) from React component within React components.
- Set up and manage CSS themes for the whole application.
19
-
- Apply CSS themes (multiple variables) to any HTMLElement.
20
-
- Written in Typescript.
21
-
- Zero dependencies.
22
-
- Small and fast.
18
+
-**CSS Variables in React**: manage your component design in a fast and convenient way.
19
+
-**Dynamic Theming**: create and manage themes for your application. Apply multiple CSS variables to any HTML element.
20
+
-**TypeScript Support**: The library is written in TypeScript, offering type safety and enhancing developer experience.
21
+
-**Zero Dependencies**: It operates independently without the need for additional libraries, ensuring a lightweight integration.
22
+
-**Performance**: The hook is optimized for performance, with a small footprint that does not impact application speed.
23
23
24
24
## Install
25
25
@@ -29,7 +29,7 @@ npm install css-vars-hook
29
29
30
30
## Usage
31
31
32
-
`css-vars-hook` exposes two hooks: `useRootTheme`, `useLocalTheme`.
32
+
`css-vars-hook` exposes two hooks: `useRootTheme`, `useLocalTheme`. Both of them provide developer a bridge between **React Component state** and **CSS Custom Properties**.
33
33
34
34
## `useRootTheme`
35
35
@@ -62,7 +62,7 @@ export const App = () => (
62
62
63
63
### Memoize theme
64
64
65
-
To avoid unnecessary reconciliations and re-renders theme object has to **preserve referential equality** during component lifecycle.
65
+
To avoid unnecessary reconciliations and re-renders theme object has to **preserve referential equality** during component lifecycle.
0 commit comments