@invana/ui 0.0.28 → 0.0.30
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 +11 -5
- package/dist/index.cjs +1679 -577
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1097 -118
- package/dist/index.d.ts +1097 -118
- package/dist/index.js +1660 -576
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import '@invana/ui/styles.css';
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
The precompiled sheet gives you CSS custom properties but **not** the `@theme` tokens — your own
|
|
36
|
-
Tailwind will regenerate `text-sm` at its stock `0.875rem` rather than the kit's
|
|
36
|
+
Tailwind will regenerate `text-sm` at its stock `0.875rem` rather than the kit's value. Prefer the
|
|
37
37
|
first form when you have a Tailwind build.
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
@@ -83,10 +83,16 @@ Also exported: `cn` and the `useOverflowItems` hook.
|
|
|
83
83
|
|
|
84
84
|
## Type scale
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
Three rungs — `base` · `sm` · `xs` — and the root is the only dial.
|
|
87
|
+
|
|
88
|
+
Components declare no font size: default text inherits the root. Text that is deliberately
|
|
89
|
+
subordinate — a count, a timing, a row's subtitle — uses `text-sm`, and the genuinely small uses
|
|
90
|
+
`text-xs`. Setting `html` to 13px gives you an application (13 / 12 / 11); 16px gives you a site
|
|
91
|
+
(16 / 14.8 / 13.5), and every component follows, because each step is a ratio of the root.
|
|
92
|
+
|
|
93
|
+
There is no `text-meta`. It was a third name over the same 12px as `text-xs`, while `text-sm` was an
|
|
94
|
+
alias of `base` — four class names over two sizes, with `text-sm` not meaning small. Retiring it was
|
|
95
|
+
a 1:1 rename, so no pixel moved.
|
|
90
96
|
|
|
91
97
|
## Documentation
|
|
92
98
|
|