@orion-ds/core 1.2.1 → 1.2.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 +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,20 @@ console.log(themes.light);
|
|
|
70
70
|
console.log(themes.dark);
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
## Using with @orion-ds/react
|
|
74
|
+
|
|
75
|
+
If you're using the React component library, you need **BOTH** CSS files:
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
// In your app entry file (e.g., main.tsx, App.tsx)
|
|
79
|
+
import '@orion-ds/core/theme.css'; // Design tokens - REQUIRED
|
|
80
|
+
import '@orion-ds/react/dist/react.css'; // Component styles - REQUIRED
|
|
81
|
+
|
|
82
|
+
import { ThemeProvider, Button } from '@orion-ds/react';
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
> **Warning**: Missing either import will result in unstyled or broken components.
|
|
86
|
+
|
|
73
87
|
## Features
|
|
74
88
|
|
|
75
89
|
- **Type-Safe**: Full TypeScript support with autocomplete
|