@uniskin/bootstrap 0.0.0-stage → 1.2.0
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/LICENSE +21 -0
- package/README.md +72 -2
- package/dist/index.d.ts +1295 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +657 -0
- package/dist/index.js.map +1 -0
- package/package.json +49 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Uniskin contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,73 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @uniskin/bootstrap
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Bootstrap 5.3 look for [uniskin](https://www.npmjs.com/package/uniskin):
|
|
4
|
+
the `ui-*` class vocabulary styled like Bootstrap, as pure CSS. No Bootstrap
|
|
5
|
+
package, jQuery or Popper required, and no JavaScript.
|
|
6
|
+
|
|
7
|
+
```css
|
|
8
|
+
@import "tailwindcss";
|
|
9
|
+
@plugin "uniskin" { adapter: "bootstrap"; }
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<button class="ui-button ui-primary">Save</button>
|
|
14
|
+
<button class="ui-button ui-danger ui-outline">Delete</button>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**1.0:** stable under semver; this adapter depends on `uniskin` at `^1.0.0`.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npx uniskin init --adapter bootstrap --yes
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
or by hand:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npm install uniskin @uniskin/bootstrap
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
and add the `@plugin` line shown above to your Tailwind v4 entry CSS.
|
|
32
|
+
|
|
33
|
+
## What you get
|
|
34
|
+
|
|
35
|
+
- **The whole vocabulary.** Every component and every documented modifier is
|
|
36
|
+
defined for Bootstrap, not left to the default skin: `checkAdapter` from
|
|
37
|
+
`uniskin/conformance` reports 319 of 319 combinations, from buttons, form
|
|
38
|
+
controls, cards and alerts to tables, accordions, tooltips, toasts, dropdown
|
|
39
|
+
menus, pagination, sliders and the modal as a drawer.
|
|
40
|
+
- **Bootstrap's own values.** Palette, radii, spacing, type scale, hover
|
|
41
|
+
shades and the `-subtle` / `-text-emphasis` colours of Bootstrap 5.3.
|
|
42
|
+
- **Follows your Bootstrap theme.** Every colour is `var(--bs-*)` with
|
|
43
|
+
Bootstrap's default as the fallback. Load Bootstrap's stylesheet and a
|
|
44
|
+
customised `--bs-primary`, `--bs-body-bg` or `--bs-border-radius` carries
|
|
45
|
+
through; leave it out and you still get Bootstrap's default look.
|
|
46
|
+
- **Bootstrap's dark mode.** `data-bs-theme="dark"` switches the skin, as do
|
|
47
|
+
Uniskin's `.dark` and `[data-theme="dark"]` and `prefers-color-scheme`.
|
|
48
|
+
- **Accessibility checked.** The same axe, contrast and keyboard tests as the
|
|
49
|
+
other skins pass in light and dark.
|
|
50
|
+
|
|
51
|
+
## Where it differs from stock Bootstrap, on purpose
|
|
52
|
+
|
|
53
|
+
Uniskin holds every skin to WCAG 2.2 AA, and a few of Bootstrap's own values
|
|
54
|
+
fall short, so this adapter adjusts them:
|
|
55
|
+
|
|
56
|
+
- **Form-control borders** are a stronger grey than Bootstrap's `#dee2e6`
|
|
57
|
+
(1.3:1 on white), so a control's boundary reaches 3:1 (WCAG 1.4.11).
|
|
58
|
+
- **Focus rings** are solid (a surface-colour gap, then the ring colour) at
|
|
59
|
+
Bootstrap's 0.25rem size, instead of a translucent glow that is about 1.4:1.
|
|
60
|
+
- **Intent text** on a light page uses Bootstrap's darker `active` shades
|
|
61
|
+
(for example `#0a58ca`, `#146c43`, `#b02a37`) so coloured text and outline
|
|
62
|
+
buttons stay at 4.5:1.
|
|
63
|
+
- **Disabled form controls** dim to 50% like `.form-check-input:disabled`.
|
|
64
|
+
|
|
65
|
+
## Documentation
|
|
66
|
+
|
|
67
|
+
- [Vocabulary reference](https://github.com/Munawarhussain729/uniskin/blob/main/docs/vocabulary.md)
|
|
68
|
+
- [Writing adapters](https://github.com/Munawarhussain729/uniskin/blob/main/docs/writing-adapters.md)
|
|
69
|
+
- [Stability policy](https://github.com/Munawarhussain729/uniskin/blob/main/docs/stability.md)
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT
|