@uniskin/flowbite 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 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
- # Temporary Holding Version
1
+ # @uniskin/flowbite
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Flowbite look for [uniskin](https://www.npmjs.com/package/uniskin):
4
+ the `ui-*` class vocabulary styled like Flowbite, as pure CSS. No Flowbite package or Flowbite JavaScript, and no runtime JavaScript.
5
+
6
+ ```css
7
+ @import "tailwindcss";
8
+ @plugin "uniskin" { adapter: "flowbite"; }
9
+ ```
10
+
11
+ ```html
12
+ <button class="ui-button ui-primary">Save</button>
13
+ <button class="ui-button ui-danger ui-outline">Delete</button>
14
+ ```
15
+
16
+ **1.0:** stable under semver; this adapter depends on `uniskin` at `^1.0.0`.
17
+
18
+ ## Install
19
+
20
+ ```sh
21
+ npx uniskin init --adapter flowbite --yes
22
+ ```
23
+
24
+ or by hand:
25
+
26
+ ```sh
27
+ npm install uniskin @uniskin/flowbite
28
+ ```
29
+
30
+ and add the `@plugin` line shown above to your Tailwind v4 entry CSS.
31
+
32
+ ## What you get
33
+
34
+ - **The whole vocabulary.** Every component and every documented modifier is
35
+ defined for Flowbite, not left to the default skin: `checkAdapter` from
36
+ `uniskin/conformance` reports 319 of 319 combinations.
37
+ - **Flowbite's own look.** `px-5 py-2.5 rounded-lg` buttons, `bg-gray-50`
38
+ inputs, `bg-*-50` alerts and `bg-*-100` badges, `h-2.5` progress, the dark
39
+ `bg-gray-900` tooltip, `w-44` dropdown menus, `h-8` pagination and the blue
40
+ active tab.
41
+ - **Follows your Tailwind theme.** Flowbite is Tailwind utilities, so its
42
+ tokens are Tailwind's palette. Every colour is a `var(--color-*)` with the
43
+ palette value as the fallback: override `--color-blue-700` in your `@theme`
44
+ and the skin follows; leave it alone and you get Flowbite's default blue.
45
+ - **Flowbite's dark mode.** The `.dark` class (also `[data-theme="dark"]`
46
+ and `prefers-color-scheme`): gray-800 surfaces, `*-900` tints with `*-300`
47
+ text and blue-600 fills.
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 Flowbite, on purpose
52
+
53
+ Uniskin holds every skin to WCAG 2.2 AA, and a few Flowbite values fall
54
+ short, so this adapter adjusts them:
55
+
56
+ - **Form-control borders** are a stronger grey than `gray-300` (1.5:1 on
57
+ white), so a control's boundary reaches 3:1 (WCAG 1.4.11).
58
+ - **Focus rings** keep Flowbite's 4px size but are solid, after a gap, instead
59
+ of the pale `ring-blue-300` (about 1.7:1).
60
+ - **Intent text** on a light page uses the 700 and 800 shades so coloured
61
+ text stays at 4.5:1; Flowbite's yellow is a fill only, and its text colour
62
+ is `yellow-800`.
63
+ - **Disabled controls** dim to 50%.
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