@razzusharma/accent-theme 1.0.0 → 1.0.2
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 +9 -9
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @razzusharma/accent-theme
|
|
2
2
|
|
|
3
3
|
A React hook and provider for dynamic accent color theming. Perfect for adding customizable color themes to your React applications.
|
|
4
4
|
|
|
@@ -15,11 +15,11 @@ A React hook and provider for dynamic accent color theming. Perfect for adding c
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install @
|
|
18
|
+
npm install @razzusharma/accent-theme
|
|
19
19
|
# or
|
|
20
|
-
yarn add @
|
|
20
|
+
yarn add @razzusharma/accent-theme
|
|
21
21
|
# or
|
|
22
|
-
pnpm add @
|
|
22
|
+
pnpm add @razzusharma/accent-theme
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Quick Start
|
|
@@ -27,7 +27,7 @@ pnpm add @tourgasm/accent-theme
|
|
|
27
27
|
### 1. Wrap your app with the provider
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
|
-
import { AccentThemeProvider } from '@
|
|
30
|
+
import { AccentThemeProvider } from '@razzusharma/accent-theme';
|
|
31
31
|
|
|
32
32
|
function App() {
|
|
33
33
|
return (
|
|
@@ -41,7 +41,7 @@ function App() {
|
|
|
41
41
|
### 2. Use the hook in your components
|
|
42
42
|
|
|
43
43
|
```tsx
|
|
44
|
-
import { useAccentTheme, useAccentColor } from '@
|
|
44
|
+
import { useAccentTheme, useAccentColor } from '@razzusharma/accent-theme';
|
|
45
45
|
|
|
46
46
|
function MyComponent() {
|
|
47
47
|
const { accentColor, setAccentColor } = useAccentTheme();
|
|
@@ -61,7 +61,7 @@ function MyComponent() {
|
|
|
61
61
|
### 3. Use the built-in color picker
|
|
62
62
|
|
|
63
63
|
```tsx
|
|
64
|
-
import { AccentColorPicker } from '@
|
|
64
|
+
import { AccentColorPicker } from '@razzusharma/accent-theme';
|
|
65
65
|
|
|
66
66
|
function Settings() {
|
|
67
67
|
return (
|
|
@@ -87,7 +87,7 @@ function Settings() {
|
|
|
87
87
|
### Custom Colors
|
|
88
88
|
|
|
89
89
|
```tsx
|
|
90
|
-
import { AccentThemeProvider } from '@
|
|
90
|
+
import { AccentThemeProvider } from '@razzusharma/accent-theme';
|
|
91
91
|
|
|
92
92
|
const customColors = {
|
|
93
93
|
coral: {
|
|
@@ -198,4 +198,4 @@ module.exports = {
|
|
|
198
198
|
|
|
199
199
|
## License
|
|
200
200
|
|
|
201
|
-
MIT ©
|
|
201
|
+
MIT © razzusharma
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@razzusharma/accent-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Dynamic accent color theming for React apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
9
11
|
"scripts": {
|
|
10
12
|
"build": "tsup",
|
|
11
13
|
"dev": "tsup --watch",
|