@dskripchenko/ui 1.0.1 → 1.0.3
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 +12 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +3 -1
- package/dist/styles/all.css +261 -0
- package/dist/styles/global.css +8 -0
- package/dist/styles/reset.css +12 -0
- package/dist/styles/themes.css +112 -0
- package/dist/styles/tokens.css +127 -0
- package/package.json +19 -16
package/README.md
CHANGED
|
@@ -39,12 +39,22 @@ npm install @dskripchenko/ui
|
|
|
39
39
|
import { createApp } from 'vue'
|
|
40
40
|
import App from './App.vue'
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
import '@dskripchenko/ui/styles/
|
|
42
|
+
// Everything in one line: tokens + themes + reset + base typography + components.
|
|
43
|
+
import '@dskripchenko/ui/styles/all.css'
|
|
44
44
|
|
|
45
45
|
createApp(App).mount('#app')
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
Prefer granular imports? Use the per-file entries instead — order matters (tokens → themes → component styles):
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
import '@dskripchenko/ui/styles/tokens.css' // primitives (colors, spacing, radius…)
|
|
52
|
+
import '@dskripchenko/ui/styles/themes.css' // :root[data-theme="light|dark"] + semantic aliases
|
|
53
|
+
import '@dskripchenko/ui/styles/reset.css' // optional: minimal HTML reset
|
|
54
|
+
import '@dskripchenko/ui/styles/global.css' // optional: :root font-family + base typography
|
|
55
|
+
import '@dskripchenko/ui/styles/index.css' // component styles
|
|
56
|
+
```
|
|
57
|
+
|
|
48
58
|
```vue
|
|
49
59
|
<!-- App.vue -->
|
|
50
60
|
<script setup lang="ts">
|