canny-ui 1.0.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 CannyMinds
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 ADDED
@@ -0,0 +1,53 @@
1
+ # canny-ui
2
+
3
+ Pure-CSS foundation for the Canny-UI design system — tokens, layout utilities, and a battery of enterprise components, all shipped as one flat stylesheet.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add canny-ui
9
+ # or
10
+ npm install canny-ui
11
+ ```
12
+
13
+ ## Use
14
+
15
+ Import the compiled stylesheet once at the root of your app:
16
+
17
+ ```ts
18
+ import 'canny-ui/dist/canny-ui.min.css';
19
+ ```
20
+
21
+ Every component then works from a single class API — no framework required:
22
+
23
+ ```html
24
+ <button class="btn solid primary">Save changes</button>
25
+ <input class="input" placeholder="name@company.com" />
26
+ <div class="card">Elevated surface</div>
27
+ ```
28
+
29
+ Scope typography and themes by wrapping your tree in `.cny-app`:
30
+
31
+ ```html
32
+ <body class="cny-app">
33
+ <!-- your app -->
34
+ </body>
35
+ ```
36
+
37
+ ## What's inside
38
+
39
+ - **Tokens** — Zinc / Indigo palette, 4pt spacing scale, radii, shadows, motion tokens, all as CSS custom properties
40
+ - **Base** — reset + typography scoped to `.cny-app`
41
+ - **Components** — Button, Input, Card, Alert, Form controls, Table (resizable), Avatar, Progress, Skeleton, Tooltip, Navbar, Sidebar, Scrollbar, Text, Field, Select, MultiSelect-chip styling
42
+ - **Utilities** — spacing (`p-*`, `m-*`, `gap-*`), flex / grid / align / justify, Container / Divider / Spacer
43
+ - **Dark mode** — opt-in via `.cny-dark`
44
+
45
+ ## For React users
46
+
47
+ There's also [`canny-ui-react`](https://www.npmjs.com/package/canny-ui-react) — thin typed React wrappers over the same class API, with Radix + motion + cmdk under the hood for accessibility and interactions.
48
+
49
+ ## Links
50
+
51
+ - **Docs**: https://github.com/CannyMinds/Canny-UI#readme
52
+ - **Issues**: https://github.com/CannyMinds/Canny-UI/issues
53
+ - **License**: MIT