@prototyperco/ui 0.5.0-alpha.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 +44 -0
- package/dist/index.cjs +7865 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +903 -0
- package/dist/index.d.ts +903 -0
- package/dist/index.js +7519 -0
- package/dist/index.js.map +1 -0
- package/package.json +71 -0
- package/src/prototyper-tokens.css +535 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present Protochase, Inc.
|
|
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,44 @@
|
|
|
1
|
+
# @prototyperco/ui
|
|
2
|
+
|
|
3
|
+
Composable, design-first React component library built on [Base UI](https://base-ui.com) primitives. 50+ accessible components with OKLCH design tokens, Tailwind CSS v4, and a shadcn-compatible copy-paste model.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @prototyperco/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or use the CLI to add individual components:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bunx @prototyperco/cli init
|
|
15
|
+
bunx @prototyperco/cli add button dialog card
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Quick Start
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
import { Button } from "@prototyperco/ui";
|
|
22
|
+
|
|
23
|
+
export function App() {
|
|
24
|
+
return <Button variant="default">Click me</Button>;
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Features
|
|
29
|
+
|
|
30
|
+
- 50+ production-ready components
|
|
31
|
+
- Built on Base UI primitives (not Radix)
|
|
32
|
+
- OKLCH color system with automatic dark mode
|
|
33
|
+
- Tailwind CSS v4 with design tokens
|
|
34
|
+
- CVA variants for all components
|
|
35
|
+
- Compound component patterns
|
|
36
|
+
- Full TypeScript support
|
|
37
|
+
|
|
38
|
+
## Documentation
|
|
39
|
+
|
|
40
|
+
Full documentation and examples at [prototyper.ai](https://prototyper.ai).
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT
|