@blurrow/ui 0.0.0-stage → 0.1.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 +65 -2
- package/dist/index.d.ts +631 -0
- package/dist/index.js +5559 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +401 -0
- package/package.json +39 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 manyports
|
|
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,66 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @blurrow/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
buttons you want to press, fields you want to fill in.
|
|
4
|
+
|
|
5
|
+
48 react components that share the same materials and the same light. made with care by [@manyports](https://manyports.com).
|
|
6
|
+
|
|
7
|
+
## install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @blurrow/ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
you'll need react 19 and tailwind css v4.
|
|
14
|
+
|
|
15
|
+
## set up
|
|
16
|
+
|
|
17
|
+
**1. styles.** add the tokens to your global stylesheet, after tailwind, and point tailwind at the package so it picks up the classes the components use:
|
|
18
|
+
|
|
19
|
+
```css
|
|
20
|
+
/* app/globals.css */
|
|
21
|
+
@import "tailwindcss";
|
|
22
|
+
@import "@blurrow/ui/styles.css";
|
|
23
|
+
|
|
24
|
+
@source "../node_modules/@blurrow/ui";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
the `@source` path is relative to the css file, so adjust it if your stylesheet lives somewhere else.
|
|
28
|
+
|
|
29
|
+
**2. font.** everything is set in archivo. load it as the `--font-archivo` variable. with next.js:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
// app/layout.tsx
|
|
33
|
+
import { Archivo } from "next/font/google";
|
|
34
|
+
import { ToastProvider } from "@blurrow/ui";
|
|
35
|
+
import "./globals.css";
|
|
36
|
+
|
|
37
|
+
const archivo = Archivo({ subsets: ["latin"], variable: "--font-archivo" });
|
|
38
|
+
|
|
39
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
40
|
+
return (
|
|
41
|
+
<html lang="en" className={archivo.variable}>
|
|
42
|
+
<body className="bg-[#EBEBEB] font-sans text-neutral-900 antialiased">
|
|
43
|
+
<ToastProvider>{children}</ToastProvider>
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
`ToastProvider` is only needed if you use toasts.
|
|
51
|
+
|
|
52
|
+
## use
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
import { Button } from "@blurrow/ui";
|
|
56
|
+
|
|
57
|
+
export default function Page() {
|
|
58
|
+
return <Button variant="primary">say hi</Button>;
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
every component is marked `"use client"`, so you can import them straight into server components.
|
|
63
|
+
|
|
64
|
+
## license
|
|
65
|
+
|
|
66
|
+
MIT
|