@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.
Files changed (2) hide show
  1. package/README.md +45 -34
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,49 +1,60 @@
1
- # Starlight Starter Kit: Basics
1
+ # KreaUI Component Library
2
2
 
3
- [![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)
3
+ Modern, clean, and highly customizable Vue 3 component library built with Tailwind CSS for Kreavoks Digital projects.
4
4
 
5
- ```
6
- npm create astro@latest -- --template starlight
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
- > πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun!
11
+ ---
10
12
 
11
- ## πŸš€ Project Structure
13
+ ## πŸ“¦ Installation
12
14
 
13
- Inside of your Astro + Starlight project, you'll see the following folders and files:
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
- Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name.
21
+ ---
29
22
 
30
- Images can be added to `src/assets/` and embedded in Markdown with a relative link.
23
+ ## ⚑ Quick Start
31
24
 
32
- Static assets, like favicons, can be placed in the `public/` directory.
25
+ ### 1. Import Components & Style
26
+ Import the components and CSS styles into your Vue file:
33
27
 
34
- ## 🧞 Commands
28
+ ```vue
29
+ <script setup>
30
+ import { Button, Badge } from '@kreavoks/kreaui';
31
+ import '@kreavoks/kreaui/style.css';
32
+ </script>
35
33
 
36
- All commands are run from the root of the project, from a terminal:
34
+ <template>
35
+ <Button variant="primary">Hello KreaUI</Button>
36
+ <Badge type="notification">5</Badge>
37
+ </template>
38
+ ```
37
39
 
38
- | Command | Action |
39
- | :------------------------ | :----------------------------------------------- |
40
- | `npm install` | Installs dependencies |
41
- | `npm run dev` | Starts local dev server at `localhost:4321` |
42
- | `npm run build` | Build your production site to `./dist/` |
43
- | `npm run preview` | Preview your build locally, before deploying |
44
- | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
45
- | `npm run astro -- --help` | Get help using the Astro CLI |
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
- ## πŸ‘€ Want to learn more?
57
+ ---
48
58
 
49
- Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
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.1",
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",