@qdesignsystems/design-system-core 0.1.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 +45 -0
- package/dist/index.d.mts +770 -0
- package/dist/index.d.ts +770 -0
- package/dist/index.js +11931 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +11931 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +3854 -0
- package/dist/styles.d.mts +2 -0
- package/dist/styles.d.ts +2 -0
- package/package.json +106 -0
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @q-designsystem/core
|
|
2
|
+
|
|
3
|
+
Core React component library built on shadcn/ui.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @q-designsystem/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Button, ThemeProvider } from '@q-designsystem/core';
|
|
15
|
+
import '@q-designsystem/core/styles';
|
|
16
|
+
|
|
17
|
+
function App() {
|
|
18
|
+
return (
|
|
19
|
+
<ThemeProvider defaultTheme="light">
|
|
20
|
+
<Button>Click me</Button>
|
|
21
|
+
</ThemeProvider>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Components
|
|
27
|
+
|
|
28
|
+
All components are built on shadcn/ui and use CSS variables for theming.
|
|
29
|
+
|
|
30
|
+
### Button
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import { Button } from '@q-designsystem/core';
|
|
34
|
+
|
|
35
|
+
<Button variant="default">Default</Button>
|
|
36
|
+
<Button variant="destructive">Destructive</Button>
|
|
37
|
+
<Button variant="outline">Outline</Button>
|
|
38
|
+
<Button variant="secondary">Secondary</Button>
|
|
39
|
+
<Button variant="ghost">Ghost</Button>
|
|
40
|
+
<Button variant="link">Link</Button>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Theming
|
|
44
|
+
|
|
45
|
+
Components use CSS variables that can be customized via themes. See `@q-designsystem/themes` for theme definitions.
|