create-bunspace 0.3.1 → 0.5.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/dist/bin.js +335 -34
- package/dist/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +1616 -40
- package/dist/templates/monorepo/MUST-FOLLOW-GUIDELINES.md +1616 -40
- package/dist/templates/react-starter/MUST-FOLLOW-GUIDELINES.md +1845 -0
- package/dist/templates/react-starter/README.md +100 -0
- package/dist/templates/react-starter/bun.lock +1298 -0
- package/dist/templates/react-starter/components.json +27 -0
- package/dist/templates/react-starter/eslint.config.js +23 -0
- package/dist/templates/react-starter/index.html +36 -0
- package/dist/templates/react-starter/package.json +57 -0
- package/dist/templates/react-starter/public/registry.json +115 -0
- package/dist/templates/react-starter/public/themes/darkmatteviolet-dark.css +34 -0
- package/dist/templates/react-starter/public/themes/darkmatteviolet-light.css +34 -0
- package/dist/templates/react-starter/public/themes/default-dark.css +33 -0
- package/dist/templates/react-starter/public/themes/default-light.css +34 -0
- package/dist/templates/react-starter/public/themes/graphite-dark.css +34 -0
- package/dist/templates/react-starter/public/themes/graphite-light.css +34 -0
- package/dist/templates/react-starter/public/themes/synthwave84-dark.css +34 -0
- package/dist/templates/react-starter/public/themes/synthwave84-light.css +34 -0
- package/dist/templates/react-starter/public/vite.svg +1 -0
- package/dist/templates/react-starter/src/App.tsx +245 -0
- package/dist/templates/react-starter/src/assets/react.svg +1 -0
- package/dist/templates/react-starter/src/components/ThemeSelector.tsx +106 -0
- package/dist/templates/react-starter/src/components/animate-ui/components/buttons/icon.tsx +86 -0
- package/dist/templates/react-starter/src/components/animate-ui/components/buttons/theme-toggler.tsx +92 -0
- package/dist/templates/react-starter/src/components/animate-ui/primitives/animate/slot.tsx +96 -0
- package/dist/templates/react-starter/src/components/animate-ui/primitives/buttons/button.tsx +31 -0
- package/dist/templates/react-starter/src/components/animate-ui/primitives/effects/particles.tsx +155 -0
- package/dist/templates/react-starter/src/components/animate-ui/primitives/effects/theme-toggler.tsx +148 -0
- package/dist/templates/react-starter/src/components/component-example.tsx +444 -0
- package/dist/templates/react-starter/src/components/example.tsx +56 -0
- package/dist/templates/react-starter/src/index.css +131 -0
- package/dist/templates/react-starter/src/main.tsx +13 -0
- package/dist/templates/react-starter/src/providers/ThemeProvider.tsx +27 -0
- package/dist/templates/react-starter/tsconfig.app.json +36 -0
- package/dist/templates/react-starter/tsconfig.json +13 -0
- package/dist/templates/react-starter/tsconfig.node.json +26 -0
- package/dist/templates/react-starter/vite.config.ts +17 -0
- package/dist/templates/telegram-bot/MUST-FOLLOW-GUIDELINES.md +1845 -0
- package/package.json +6 -3
- package/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +1616 -40
- package/templates/monorepo/MUST-FOLLOW-GUIDELINES.md +1616 -40
- package/templates/react-starter/MUST-FOLLOW-GUIDELINES.md +1845 -0
- package/templates/react-starter/README.md +100 -0
- package/templates/react-starter/bun.lock +1298 -0
- package/templates/react-starter/components.json +27 -0
- package/templates/react-starter/eslint.config.js +23 -0
- package/templates/react-starter/index.html +36 -0
- package/templates/react-starter/package.json +57 -0
- package/templates/react-starter/public/registry.json +115 -0
- package/templates/react-starter/public/themes/darkmatteviolet-dark.css +34 -0
- package/templates/react-starter/public/themes/darkmatteviolet-light.css +34 -0
- package/templates/react-starter/public/themes/default-dark.css +33 -0
- package/templates/react-starter/public/themes/default-light.css +34 -0
- package/templates/react-starter/public/themes/graphite-dark.css +34 -0
- package/templates/react-starter/public/themes/graphite-light.css +34 -0
- package/templates/react-starter/public/themes/synthwave84-dark.css +34 -0
- package/templates/react-starter/public/themes/synthwave84-light.css +34 -0
- package/templates/react-starter/public/vite.svg +1 -0
- package/templates/react-starter/src/App.tsx +245 -0
- package/templates/react-starter/src/assets/react.svg +1 -0
- package/templates/react-starter/src/components/ThemeSelector.tsx +106 -0
- package/templates/react-starter/src/components/animate-ui/components/buttons/icon.tsx +86 -0
- package/templates/react-starter/src/components/animate-ui/components/buttons/theme-toggler.tsx +92 -0
- package/templates/react-starter/src/components/animate-ui/primitives/animate/slot.tsx +96 -0
- package/templates/react-starter/src/components/animate-ui/primitives/buttons/button.tsx +31 -0
- package/templates/react-starter/src/components/animate-ui/primitives/effects/particles.tsx +155 -0
- package/templates/react-starter/src/components/animate-ui/primitives/effects/theme-toggler.tsx +148 -0
- package/templates/react-starter/src/components/component-example.tsx +444 -0
- package/templates/react-starter/src/components/example.tsx +56 -0
- package/templates/react-starter/src/index.css +131 -0
- package/templates/react-starter/src/main.tsx +13 -0
- package/templates/react-starter/src/providers/ThemeProvider.tsx +27 -0
- package/templates/react-starter/tsconfig.app.json +36 -0
- package/templates/react-starter/tsconfig.json +13 -0
- package/templates/react-starter/tsconfig.node.json +26 -0
- package/templates/react-starter/vite.config.ts +17 -0
- package/templates/telegram-bot/MUST-FOLLOW-GUIDELINES.md +1845 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
{{DESCRIPTION}}
|
|
4
|
+
|
|
5
|
+
> Generated with [create-bunspace](https://github.com/mks2508/create-bunspace)
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **React 19.2** with TypeScript 5.9
|
|
10
|
+
- **Vite 8 (experimental)** for blazing fast builds
|
|
11
|
+
- **Tailwind CSS v4** with `@tailwindcss/vite`
|
|
12
|
+
- **BaseUI/MKS-UI** component library (`@mks2508/mks-ui`)
|
|
13
|
+
- **Theme Manager** (`@mks2508/theme-manager-react`)
|
|
14
|
+
- Animated theme transitions with multiple presets
|
|
15
|
+
- Light/dark/system mode support
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
bun install
|
|
21
|
+
bun run dev
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Stack
|
|
25
|
+
|
|
26
|
+
| Tool | Version |
|
|
27
|
+
|------|---------|
|
|
28
|
+
| React | 19.2 |
|
|
29
|
+
| Vite | 8.0.0-beta |
|
|
30
|
+
| Tailwind CSS | v4 |
|
|
31
|
+
| @mks2508/mks-ui | latest |
|
|
32
|
+
| TypeScript | 5.9 |
|
|
33
|
+
|
|
34
|
+
## Components
|
|
35
|
+
|
|
36
|
+
All UI components are imported from `@mks2508/mks-ui/react`:
|
|
37
|
+
|
|
38
|
+
- **AlertDialog** — Animated alert dialog with 3D flip entrance
|
|
39
|
+
- **Badge** — Status/label badges with variants
|
|
40
|
+
- **Button** — Button with multiple variants and sizes
|
|
41
|
+
- **Card** — Container card with header, content, footer, action sections
|
|
42
|
+
- **Combobox** — Searchable select with autocomplete
|
|
43
|
+
- **Dialog** — Animated modal dialog
|
|
44
|
+
- **DropdownMenu** — Menu with groups, checkboxes, radios, sub-menus
|
|
45
|
+
- **Field** — Form field wrapper with label, description, error
|
|
46
|
+
- **Input** — Text input
|
|
47
|
+
- **Select** — Select dropdown with groups
|
|
48
|
+
- **Tabs** — Tab navigation with animated indicators
|
|
49
|
+
- **Progress** — Progress bar
|
|
50
|
+
- **Switch** — Toggle switch
|
|
51
|
+
- **Checkbox** — Checkbox input
|
|
52
|
+
- **Separator** — Visual divider
|
|
53
|
+
|
|
54
|
+
## Theme Management
|
|
55
|
+
|
|
56
|
+
### Built-in Themes
|
|
57
|
+
|
|
58
|
+
The starter includes 4 built-in themes:
|
|
59
|
+
- **default** — Clean, neutral theme
|
|
60
|
+
- **synthwave84** — Retro synthwave aesthetic
|
|
61
|
+
- **graphite** — Dark, professional look
|
|
62
|
+
- **darkmatteviolet** — Dark with violet accents
|
|
63
|
+
|
|
64
|
+
### Animated Transitions
|
|
65
|
+
|
|
66
|
+
Theme switching supports multiple animation presets:
|
|
67
|
+
- `wipe` — Horizontal wipe transition
|
|
68
|
+
- `circle-expand` — Expanding circle
|
|
69
|
+
- `circle-shrink` — Shrinking circle
|
|
70
|
+
- `diamond` — Diamond-shaped reveal
|
|
71
|
+
- `crossfade` — Smooth fade
|
|
72
|
+
- `gif-mask` — Mask-based transition
|
|
73
|
+
- `slide` — Slide transition
|
|
74
|
+
- `none` — Instant switch
|
|
75
|
+
|
|
76
|
+
### Adding Themes
|
|
77
|
+
|
|
78
|
+
Install themes from TweakCN or custom registries:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
bun run install-theme https://tweakcn.com/r/themes/your-theme.json
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## CRITICAL: Tailwind v4 Consumer Setup
|
|
85
|
+
|
|
86
|
+
This app uses `@mks2508/mks-ui` which ships compiled JS with Tailwind class strings. Tailwind v4's `@tailwindcss/vite` plugin **does not scan `node_modules` by default**, so the following `@source` directive is required in `src/index.css`:
|
|
87
|
+
|
|
88
|
+
```css
|
|
89
|
+
@source "../node_modules/@mks2508/mks-ui/dist";
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Without this directive, component utility classes will not be generated, and components will render unstyled.
|
|
93
|
+
|
|
94
|
+
## Template Usage
|
|
95
|
+
|
|
96
|
+
Click "Use this template" to create a new repository from this starter.
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
MIT
|