@kreavoks/kreaui 0.0.1 β 0.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 +45 -34
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,49 +1,60 @@
|
|
|
1
|
-
#
|
|
1
|
+
# KreaUI Component Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Modern, clean, and highly customizable Vue 3 component library built with Tailwind CSS for Kreavoks Digital projects.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
## π Features
|
|
6
|
+
- **Vue 3 & TypeScript**: Native Vue 3 components with full type support.
|
|
7
|
+
- **Tailwind CSS Integration**: Fully integrated with official Kreavoks Design Tokens.
|
|
8
|
+
- **Dark Mode Ready**: Built-in support for dark mode.
|
|
9
|
+
- **Lightweight & Modular**: Component structure built for optimal bundle size.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
---
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## π¦ Installation
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
Install KreaUI package via npm:
|
|
14
16
|
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
βββ public/
|
|
18
|
-
βββ src/
|
|
19
|
-
β βββ assets/
|
|
20
|
-
β βββ content/
|
|
21
|
-
β β βββ docs/
|
|
22
|
-
β βββ content.config.ts
|
|
23
|
-
βββ astro.config.mjs
|
|
24
|
-
βββ package.json
|
|
25
|
-
βββ tsconfig.json
|
|
17
|
+
```bash
|
|
18
|
+
npm install @kreavoks/kreaui
|
|
26
19
|
```
|
|
27
20
|
|
|
28
|
-
|
|
21
|
+
---
|
|
29
22
|
|
|
30
|
-
|
|
23
|
+
## β‘ Quick Start
|
|
31
24
|
|
|
32
|
-
|
|
25
|
+
### 1. Import Components & Style
|
|
26
|
+
Import the components and CSS styles into your Vue file:
|
|
33
27
|
|
|
34
|
-
|
|
28
|
+
```vue
|
|
29
|
+
<script setup>
|
|
30
|
+
import { Button, Badge } from '@kreavoks/kreaui';
|
|
31
|
+
import '@kreavoks/kreaui/style.css';
|
|
32
|
+
</script>
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
<template>
|
|
35
|
+
<Button variant="primary">Hello KreaUI</Button>
|
|
36
|
+
<Badge type="notification">5</Badge>
|
|
37
|
+
</template>
|
|
38
|
+
```
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
### 2. Register Tailwind CSS Plugin
|
|
41
|
+
To enable KreaUI's custom colors (e.g. `bg-kv-primary`) and corner radius values, add the KreaUI plugin to your `tailwind.config.js`:
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
import { kreauiPlugin } from '@kreavoks/kreaui';
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
content: [
|
|
48
|
+
"./node_modules/@kreavoks/kreaui/dist/**/*.js",
|
|
49
|
+
"./src/**/*.{html,js,vue,ts}"
|
|
50
|
+
],
|
|
51
|
+
plugins: [
|
|
52
|
+
kreauiPlugin
|
|
53
|
+
],
|
|
54
|
+
}
|
|
55
|
+
```
|
|
46
56
|
|
|
47
|
-
|
|
57
|
+
---
|
|
48
58
|
|
|
49
|
-
|
|
59
|
+
## π License
|
|
60
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kreavoks/kreaui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"main": "./lib/kreaui.umd.js",
|
|
6
6
|
"module": "./lib/kreaui.es.js",
|
|
7
7
|
"exports": {
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"preview": "astro preview",
|
|
23
23
|
"astro": "astro"
|
|
24
24
|
},
|
|
25
|
-
"dependencies": {
|
|
25
|
+
"dependencies": {},
|
|
26
|
+
"devDependencies": {
|
|
26
27
|
"@astrojs/react": "^6.0.0",
|
|
27
28
|
"@astrojs/starlight": "^0.41.1",
|
|
28
29
|
"@astrojs/vue": "^7.0.0",
|