pixelforge-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/README.md ADDED
@@ -0,0 +1,233 @@
1
+ # PixelForge UI 🎮
2
+
3
+ A **retro-future design system** with pixel-perfect components, Game Boy pastels, and dark mode. Built with React, TypeScript, and Tailwind CSS.
4
+
5
+ ![Version](https://img.shields.io/badge/version-1.0.0-blue)
6
+ ![License](https://img.shields.io/badge/license-MIT-green)
7
+ ![React](https://img.shields.io/badge/React-18+-61DAFB?logo=react)
8
+
9
+ ---
10
+
11
+ ## 🎨 Features
12
+
13
+ - ✨ **Retro-Future Aesthetic** — Soft shadows, gentle glows, and pixel-perfect borders
14
+ - 🌙 **Dark Mode** — Full light/dark theme support out of the box
15
+ - 🎮 **Game Boy Palette** — Pastello colors inspired by classic gaming consoles
16
+ - ♿ **Accessible** — WCAG 2.1 compliant components with keyboard navigation
17
+ - 📦 **Tree-shakeable** — Import only what you need
18
+ - 🎯 **TypeScript** — Full type safety
19
+ - 🚀 **Zero Dependencies** — Works with any React app
20
+
21
+ ---
22
+
23
+ ## 📦 Installation
24
+
25
+ ```bash
26
+ npm install @pixelforge/ui
27
+ ```
28
+
29
+ or with yarn:
30
+
31
+ ```bash
32
+ yarn add @pixelforge/ui
33
+ ```
34
+
35
+ ---
36
+
37
+ ## 🚀 Quick Start
38
+
39
+ ### 1. Setup Tailwind CSS
40
+
41
+ ```bash
42
+ npm install -D tailwindcss postcss autoprefixer
43
+ npx tailwindcss init -p
44
+ ```
45
+
46
+ ### 2. Configure Tailwind
47
+
48
+ Update your `tailwind.config.js`:
49
+
50
+ ```js
51
+ import { colors, spacing, shadows } from '@pixelforge/ui'
52
+
53
+ export default {
54
+ content: [
55
+ './src/**/*.{js,ts,jsx,tsx}',
56
+ ],
57
+ theme: {
58
+ extend: {
59
+ colors,
60
+ spacing,
61
+ boxShadow: shadows,
62
+ },
63
+ },
64
+ }
65
+ ```
66
+
67
+ ### 3. Use Components
68
+
69
+ ```tsx
70
+ import { Button } from '@pixelforge/ui'
71
+ import '@pixelforge/ui/dist/index.css'
72
+
73
+ export default function App() {
74
+ return <Button>Press Start</Button>
75
+ }
76
+ ```
77
+
78
+ ---
79
+
80
+ ## 📚 Design Tokens
81
+
82
+ All design tokens are exported from the package:
83
+
84
+ ```tsx
85
+ import {
86
+ colors,
87
+ typography,
88
+ spacing,
89
+ shadows,
90
+ borderRadius,
91
+ transitions,
92
+ zIndex,
93
+ } from '@pixelforge/ui'
94
+ ```
95
+
96
+ ### Color Palette
97
+
98
+ ```tsx
99
+ // Primary pastello colors
100
+ colors.primary.lime // #C4F0C8
101
+ colors.primary.lavender // #D4B5E8
102
+ colors.primary.sky // #B8E0F0
103
+ colors.primary.peach // #F0D9C8
104
+ colors.primary.mint // #C8F0E0
105
+
106
+ // Semantic colors
107
+ colors.semantic.success // #7FD8B8
108
+ colors.semantic.warning // #FFB347
109
+ colors.semantic.error // #FF6B6B
110
+ colors.semantic.info // #B8E0F0
111
+ ```
112
+
113
+ ---
114
+
115
+ ## 🎮 Components
116
+
117
+ ### Available Components
118
+
119
+ - ✅ Button
120
+ - ✅ Input
121
+ - ✅ Card
122
+ - ✅ Badge
123
+ - ✅ Modal
124
+ - ✅ Dropdown
125
+ - ✅ Tooltip
126
+ - ✅ Navbar
127
+ - ✅ Sidebar
128
+ - ✅ Footer
129
+
130
+ See the [documentation](./docs/index.html) for full usage examples.
131
+
132
+ ---
133
+
134
+ ## 🌙 Dark Mode
135
+
136
+ Dark mode is supported via CSS class. Use a theme switcher in your app:
137
+
138
+ ```tsx
139
+ export function ThemeToggle() {
140
+ const [isDark, setIsDark] = useState(false)
141
+
142
+ return (
143
+ <button
144
+ onClick={() => {
145
+ setIsDark(!isDark)
146
+ document.documentElement.classList.toggle('dark')
147
+ }}
148
+ >
149
+ {isDark ? '🌙' : '☀️'}
150
+ </button>
151
+ )
152
+ }
153
+ ```
154
+
155
+ ---
156
+
157
+ ## 🛠️ Development
158
+
159
+ Clone and install:
160
+
161
+ ```bash
162
+ git clone https://github.com/yourusername/pixelforge-ui.git
163
+ cd pixelforge-ui
164
+ npm install
165
+ ```
166
+
167
+ ### Build
168
+
169
+ ```bash
170
+ npm run build
171
+ ```
172
+
173
+ ### Watch Mode
174
+
175
+ ```bash
176
+ npm run dev
177
+ ```
178
+
179
+ ### Type Check
180
+
181
+ ```bash
182
+ npm run type-check
183
+ ```
184
+
185
+ ---
186
+
187
+ ## 📖 Documentation
188
+
189
+ Full component documentation is available in the `/docs` folder.
190
+
191
+ To run the documentation locally:
192
+
193
+ ```bash
194
+ npm run docs
195
+ ```
196
+
197
+ Then visit `http://localhost:8080`
198
+
199
+ ---
200
+
201
+ ## 🎨 Customization
202
+
203
+ All tokens can be overridden in your `tailwind.config.js`:
204
+
205
+ ```js
206
+ export default {
207
+ theme: {
208
+ extend: {
209
+ colors: {
210
+ pixelforge: {
211
+ lime: '#your-custom-color',
212
+ },
213
+ },
214
+ },
215
+ },
216
+ }
217
+ ```
218
+
219
+ ---
220
+
221
+ ## 📄 License
222
+
223
+ MIT © 2024 PixelForge UI
224
+
225
+ ---
226
+
227
+ ## 🤝 Contributing
228
+
229
+ Contributions are welcome! Please open an issue or submit a pull request.
230
+
231
+ ---
232
+
233
+ **Made with 🎮 by the PixelForge team**