@crazy-staff/ui 0.0.0-stage → 0.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/CHANGELOG.md +35 -0
- package/LICENSE +21 -0
- package/README.md +51 -2
- package/dist/index.d.ts +3887 -0
- package/dist/index.js +7687 -0
- package/dist/index.js.map +1 -0
- package/package.json +80 -4
- package/src/styles/theme.css +247 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @crazy-staff/ui
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- First public release. The look is settled (our own twist on Fumadocs, crazy-hub palette, superellipse
|
|
8
|
+
corners, opaque borders, WCAG-checked colours), 60 components with docs, effects (Glow, Progressive Blur,
|
|
9
|
+
Reveal) and motion throughout.
|
|
10
|
+
|
|
11
|
+
## 0.1.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Round 2: NumberField; Calendar/Date Picker redesign; Command gains search parts (breadcrumbs, highlight,
|
|
16
|
+
jump item, loading, filters); Chart gradients, smooth curves, legend toggles, crosshair tooltip, formats,
|
|
17
|
+
stacking; ProgressiveBlur; new Pagination; sidebar-style hover glide in Tabs and Toggle Group; stable table
|
|
18
|
+
columns; borders on every Button/Toggle variant (no layout shift); gentler press; pointer cursor.
|
|
19
|
+
|
|
20
|
+
## 0.1.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Round 1d: docs rewritten like shadcn/ui (live example + View code, Command/Manual install, API tables),
|
|
25
|
+
16 new components (Calendar, Date Picker, Combobox, Command, Input OTP, Native Select, Menubar, Navigation
|
|
26
|
+
Menu, Carousel, Chart, Code Block, Data Table, Resizable, Sidebar, Typography, Item), Tabs and Toggle Group
|
|
27
|
+
in the Toggle look, gliding Pagination, custom Textarea grip, rounder Tooltip, opaque borders.
|
|
28
|
+
|
|
29
|
+
## 0.1.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- 334040f: Monorepo foundations and the first components from design round 1: `Button`, `Input`, `Switch`, `Card`
|
|
34
|
+
and `Chip`, the `cn`/`tv` helpers, `registerSquircles()` and the semantic token theme
|
|
35
|
+
(`@crazy-staff/ui/theme.css`) in the "Soft" look on the crazy-hub palette.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dawid Seipold
|
|
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,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @crazy-staff/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The design system of [crazy-staff](https://github.com/crazy-staff): 60 React components on
|
|
4
|
+
[Base UI](https://base-ui.com), styled with Tailwind CSS 4 and tailwind-variants, animated with motion, themed
|
|
5
|
+
entirely through CSS variables — our own twist on Fumadocs.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun add @crazy-staff/ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
React 19 and Tailwind CSS 4 are peer dependencies.
|
|
14
|
+
|
|
15
|
+
## Set up
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import 'tailwindcss';
|
|
19
|
+
@import '@crazy-staff/ui/theme.css';
|
|
20
|
+
@source '../node_modules/@crazy-staff/ui/dist';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { registerSquircles } from '@crazy-staff/ui';
|
|
25
|
+
|
|
26
|
+
registerSquircles(); // once on the client: squircle corners in Firefox and Safari
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The theme uses Inter and Geist Mono (e.g. `@fontsource-variable/inter`, `@fontsource-variable/geist-mono`).
|
|
30
|
+
Add the `dark` class to `<html>` for dark mode.
|
|
31
|
+
|
|
32
|
+
## Use
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
import { Button, Card } from '@crazy-staff/ui';
|
|
36
|
+
|
|
37
|
+
<Card.Root interactive>
|
|
38
|
+
<Card.Header>
|
|
39
|
+
<Card.Title>Infinite mana</Card.Title>
|
|
40
|
+
</Card.Header>
|
|
41
|
+
<Card.Footer>
|
|
42
|
+
<Button size="sm">Enable</Button>
|
|
43
|
+
</Card.Footer>
|
|
44
|
+
</Card.Root>;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Every colour, radius, shadow, font, density and duration is a `--cui-*` variable you can override.
|
|
48
|
+
|
|
49
|
+
Docs and examples: run the showcase from the [repository](https://github.com/crazy-staff/crazy-ui)
|
|
50
|
+
(`bun install && bun dev`).
|
|
51
|
+
|
|
52
|
+
MIT © Dawid Seipold
|