aibos-design-system 1.0.0 → 1.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 +335 -333
- package/components/README.md +130 -0
- package/components/react/Button.tsx +82 -0
- package/components/react/Card.tsx +73 -0
- package/components/react/README.md +324 -0
- package/components/react/StatusIndicator.tsx +101 -0
- package/components/react/index.ts +17 -0
- package/components/react/nextui-helpers.tsx +88 -0
- package/components/utils.ts +38 -0
- package/dist/headless-map.json +44 -41
- package/dist/tokens/index.d.ts +66 -66
- package/dist/tokens.json +34 -34
- package/{API_REFERENCE.md → docs/API_REFERENCE.md} +379 -379
- package/{EXTERNAL_USAGE.md → docs/EXTERNAL_USAGE.md} +372 -370
- package/docs/INTEGRATION_GUIDE.md +433 -0
- package/docs/QUICK_REFERENCE.md +303 -0
- package/input.css +4056 -4050
- package/lib/cli-autocomplete.ts +231 -0
- package/lib/cli-commands.ts +364 -0
- package/lib/cli-filter-engine.ts +271 -0
- package/lib/cli-parser.ts +197 -0
- package/lib/utils.ts +18 -0
- package/package.json +57 -8
- package/style.css +686 -236
- package/types/aibos-classes.ts +70 -0
- package/types/design-tokens.ts +83 -0
- package/types/index.ts +9 -0
package/README.md
CHANGED
|
@@ -1,333 +1,335 @@
|
|
|
1
|
-
# Neo-Analog Design System v2.0
|
|
2
|
-
|
|
3
|
-
**Version**: 2.0
|
|
4
|
-
**Last Updated**: 2025-01-27
|
|
5
|
-
**Status**: ✅ **Production-Ready | Beast Mode Enabled**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Overview
|
|
10
|
-
|
|
11
|
-
The Neo-Analog Design System is an enterprise-grade, production-ready design system that achieves **100% Figma compliance** and delivers **desktop-app performance** with pure CSS/HTML—zero JavaScript framework overhead.
|
|
12
|
-
|
|
13
|
-
### Key Features
|
|
14
|
-
|
|
15
|
-
- ✅ **254 Design Tokens** - Comprehensive token system (colors, typography, spacing, shadows, motion)
|
|
16
|
-
- ✅ **171 Semantic Classes** - Reusable `.na-*` component classes
|
|
17
|
-
- ✅ **Beast Mode Patterns** - Advanced patterns (Radio State Machine, Bi-directional Grid, Omni Shell)
|
|
18
|
-
- ✅ **100% Figma Compliant** - Full alignment with Figma design system standards
|
|
19
|
-
- ✅ **Zero Framework Overhead** - Pure CSS/HTML implementation
|
|
20
|
-
- ✅ **Drift Prevention** - Automated semantic validation
|
|
21
|
-
- ✅ **Headless Architecture** - Platform-agnostic design API
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Quick Start
|
|
26
|
-
|
|
27
|
-
### For External Users (npm Package)
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
# Install
|
|
31
|
-
npm install
|
|
32
|
-
|
|
33
|
-
# Import CSS
|
|
34
|
-
import '
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- `.na-
|
|
49
|
-
- `.na-
|
|
50
|
-
- `.na-
|
|
51
|
-
- `.na-
|
|
52
|
-
- `.na-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
pnpm
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
pnpm
|
|
87
|
-
pnpm
|
|
88
|
-
pnpm
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
- **[
|
|
172
|
-
- **[
|
|
173
|
-
- **[
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
├──
|
|
186
|
-
├──
|
|
187
|
-
├──
|
|
188
|
-
├──
|
|
189
|
-
├──
|
|
190
|
-
├── .
|
|
191
|
-
├──
|
|
192
|
-
├──
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
│ ├──
|
|
196
|
-
│ ├──
|
|
197
|
-
│ ├──
|
|
198
|
-
│
|
|
199
|
-
├──
|
|
200
|
-
│
|
|
201
|
-
|
|
202
|
-
│ ├──
|
|
203
|
-
│ ├──
|
|
204
|
-
│
|
|
205
|
-
├──
|
|
206
|
-
│
|
|
207
|
-
|
|
208
|
-
│ ├──
|
|
209
|
-
│
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
<
|
|
226
|
-
<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
</
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
|
265
|
-
|
|
266
|
-
| `pnpm
|
|
267
|
-
| `pnpm
|
|
268
|
-
| `pnpm
|
|
269
|
-
| `pnpm
|
|
270
|
-
| `pnpm
|
|
271
|
-
| `pnpm
|
|
272
|
-
| `pnpm
|
|
273
|
-
| `pnpm
|
|
274
|
-
| `pnpm
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
- **[
|
|
302
|
-
- **[
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
- **[
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
**
|
|
327
|
-
**
|
|
328
|
-
**
|
|
329
|
-
**
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
1
|
+
# Neo-Analog Design System v2.0
|
|
2
|
+
|
|
3
|
+
**Version**: 2.0
|
|
4
|
+
**Last Updated**: 2025-01-27
|
|
5
|
+
**Status**: ✅ **Production-Ready | Beast Mode Enabled**
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
The Neo-Analog Design System is an enterprise-grade, production-ready design system that achieves **100% Figma compliance** and delivers **desktop-app performance** with pure CSS/HTML—zero JavaScript framework overhead.
|
|
12
|
+
|
|
13
|
+
### Key Features
|
|
14
|
+
|
|
15
|
+
- ✅ **254 Design Tokens** - Comprehensive token system (colors, typography, spacing, shadows, motion)
|
|
16
|
+
- ✅ **171 Semantic Classes** - Reusable `.na-*` component classes
|
|
17
|
+
- ✅ **Beast Mode Patterns** - Advanced patterns (Radio State Machine, Bi-directional Grid, Omni Shell)
|
|
18
|
+
- ✅ **100% Figma Compliant** - Full alignment with Figma design system standards
|
|
19
|
+
- ✅ **Zero Framework Overhead** - Pure CSS/HTML implementation
|
|
20
|
+
- ✅ **Drift Prevention** - Automated semantic validation
|
|
21
|
+
- ✅ **Headless Architecture** - Platform-agnostic design API
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
### For External Users (npm Package)
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Install
|
|
31
|
+
npm install aibos-design-system
|
|
32
|
+
|
|
33
|
+
# Import CSS
|
|
34
|
+
import 'aibos-design-system/css';
|
|
35
|
+
# or
|
|
36
|
+
import 'aibos-design-system';
|
|
37
|
+
|
|
38
|
+
# Use classes
|
|
39
|
+
<div className="na-card na-p-6">Content</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
📖 **See [EXTERNAL_USAGE.md](./EXTERNAL_USAGE.md) for complete external usage guide**
|
|
43
|
+
📋 **See [API_REFERENCE.md](./API_REFERENCE.md) for typography, spacing, and component reference**
|
|
44
|
+
|
|
45
|
+
### 📋 Quick Reference for npm Users
|
|
46
|
+
|
|
47
|
+
**Typography Hierarchy:**
|
|
48
|
+
- `.na-h1` = 32px bold (Page titles)
|
|
49
|
+
- `.na-h2` = 24px semibold (Section titles)
|
|
50
|
+
- `.na-h3` = 20px semibold (Subsections)
|
|
51
|
+
- `.na-h4` = 18px semibold (Card titles)
|
|
52
|
+
- `.na-data` = 14px monospace (Data values)
|
|
53
|
+
- `.na-data-large` = 30px serif (KPI values)
|
|
54
|
+
- `.na-metadata` = 11px uppercase (Labels)
|
|
55
|
+
|
|
56
|
+
**Spacing:**
|
|
57
|
+
- Use standard Tailwind classes: `p-4` (16px), `p-6` (24px), `p-8` (32px)
|
|
58
|
+
- Standard padding: `p-6` (24px)
|
|
59
|
+
- Standard gap: `gap-6` (24px)
|
|
60
|
+
|
|
61
|
+
**Components:**
|
|
62
|
+
- Cards: `.na-card p-6`
|
|
63
|
+
- Buttons: `.na-btn na-btn-primary`
|
|
64
|
+
- Status: `.na-status na-status-ok`
|
|
65
|
+
|
|
66
|
+
👉 **Full details in [API_REFERENCE.md](./API_REFERENCE.md)**
|
|
67
|
+
|
|
68
|
+
### For Developers (Local Development)
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
cd design_system
|
|
72
|
+
pnpm install
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Build
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pnpm build # Compile CSS from input.css
|
|
79
|
+
pnpm watch # Watch mode for development
|
|
80
|
+
pnpm dev # Development mode (watch)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Quality Control
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pnpm quality # Run all quality checks
|
|
87
|
+
pnpm validate # Design token validation
|
|
88
|
+
pnpm lint # CSS/JS linting
|
|
89
|
+
pnpm enforce:semantics # Drift detection
|
|
90
|
+
pnpm validate:all # Combined validation
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Documentation
|
|
96
|
+
|
|
97
|
+
### For npm Package Users
|
|
98
|
+
|
|
99
|
+
1. **[API Reference](./API_REFERENCE.md)** ⭐ **QUICK REFERENCE**
|
|
100
|
+
- Typography hierarchy (sizes, weights, usage)
|
|
101
|
+
- Spacing & padding scale
|
|
102
|
+
- Component classes
|
|
103
|
+
- Color tokens
|
|
104
|
+
- Complete API reference
|
|
105
|
+
|
|
106
|
+
2. **[External Usage Guide](./EXTERNAL_USAGE.md)** ⭐ **GETTING STARTED**
|
|
107
|
+
- Installation instructions
|
|
108
|
+
- Framework examples (React, Vue, Svelte)
|
|
109
|
+
- Common patterns
|
|
110
|
+
- Troubleshooting
|
|
111
|
+
|
|
112
|
+
### Essential Guides
|
|
113
|
+
|
|
114
|
+
3. **[Design System Guide](./docs/DESIGN_SYSTEM.md)** ⭐ **COMPLETE REFERENCE**
|
|
115
|
+
- Complete design system reference
|
|
116
|
+
- All tokens, components, and patterns
|
|
117
|
+
- Usage guidelines and examples
|
|
118
|
+
|
|
119
|
+
2. **[Advanced Patterns](./docs/ADVANCED_PATTERNS.md)** 🚀 **BEAST MODE**
|
|
120
|
+
- Radio Button State Machine (0ms latency view switching)
|
|
121
|
+
- Bi-directional Sticky Grid (Frozen panes)
|
|
122
|
+
- Omni Shell Layout (Grid-based application shell)
|
|
123
|
+
- Status Select Component
|
|
124
|
+
|
|
125
|
+
3. **[Quick Start Guide](./docs/QUICK_START_GUIDE.md)**
|
|
126
|
+
- Single repository setup
|
|
127
|
+
- Monorepo integration
|
|
128
|
+
- Framework integration examples
|
|
129
|
+
|
|
130
|
+
4. **[Color System Reference](./docs/COLOR_SYSTEM_REFERENCE.md)**
|
|
131
|
+
- Complete color token reference
|
|
132
|
+
- Semantic color mappings
|
|
133
|
+
- Usage examples
|
|
134
|
+
|
|
135
|
+
5. **[Headless Architecture](./docs/HEADLESS_ARCHITECTURE_STRATEGY.md)**
|
|
136
|
+
- Platform-agnostic design API
|
|
137
|
+
- Headless map extraction
|
|
138
|
+
- Cross-platform usage
|
|
139
|
+
|
|
140
|
+
### AI Agent Protocol
|
|
141
|
+
|
|
142
|
+
**[AI Design Protocol](./AI_DESIGN_PROTOCOL.md)** - Strict instructions for AI agents to enforce semantic class usage and prevent drift.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Prototypes
|
|
147
|
+
|
|
148
|
+
### System Launcher
|
|
149
|
+
|
|
150
|
+
**Start here**: Open [`prototypes/index.html`](./prototypes/index.html) to access the **System Launcher**—a high-impact landing page presenting all prototypes as a cohesive product suite.
|
|
151
|
+
|
|
152
|
+
### The Neo-Analog Trilogy (Beast Mode)
|
|
153
|
+
|
|
154
|
+
1. **[The Console](./prototypes/prototype-dashboard-nextgen.html)** 📊
|
|
155
|
+
- Executive Command Center
|
|
156
|
+
- Breathing data visualizations
|
|
157
|
+
- Cinematic lighting effects
|
|
158
|
+
|
|
159
|
+
2. **[OMNI ERP OS](./prototypes/omni-erp-integrated.html)** ⚡ **GOLD STANDARD**
|
|
160
|
+
- High-Frequency ERP Operating System
|
|
161
|
+
- Bi-directional sticky grids
|
|
162
|
+
- CSS state machines (0ms latency)
|
|
163
|
+
|
|
164
|
+
3. **[Project AEGIS](./prototypes/prototype-aegis-threat-map.html)** 🛡️
|
|
165
|
+
- Cybersecurity Threat Map
|
|
166
|
+
- Pure CSS data visualization
|
|
167
|
+
- CSS Grid world maps, motion paths, hex-grid topology
|
|
168
|
+
|
|
169
|
+
### Standard Modules
|
|
170
|
+
|
|
171
|
+
- **[UI Kit Reference](./prototypes/prototype-ui-kit.html)** - Complete component showcase
|
|
172
|
+
- **[ERP God Mode](./prototypes/prototype-erp-god-mode.html)** - Enterprise ERP dashboard
|
|
173
|
+
- **[Data Lineage](./prototypes/prototype-data-lineage.html)** - Data catalog and lineage
|
|
174
|
+
- **[IDE Dashboard](./prototypes/prototype-ide-dashboard.html)** - IDE-style dashboard
|
|
175
|
+
- **[Supabase ERP](./prototypes/prototype-supabase-erp.html)** - Supabase integration
|
|
176
|
+
|
|
177
|
+
See [`prototypes/README.md`](./prototypes/README.md) for complete prototype documentation.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## File Structure
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
design_system/
|
|
185
|
+
├── README.md # This file
|
|
186
|
+
├── AI_DESIGN_PROTOCOL.md # AI agent protocol
|
|
187
|
+
├── input.css # Source file (all design tokens)
|
|
188
|
+
├── style.css # Compiled output
|
|
189
|
+
├── package.json # Dependencies and scripts
|
|
190
|
+
├── tailwind.config.js # Tailwind configuration
|
|
191
|
+
├── postcss.config.js # PostCSS configuration
|
|
192
|
+
├── .stylelintrc.json # CSS linting rules
|
|
193
|
+
├── eslint.config.js # JavaScript linting
|
|
194
|
+
├── docs/ # Documentation
|
|
195
|
+
│ ├── DESIGN_SYSTEM.md # ⭐ Main documentation
|
|
196
|
+
│ ├── ADVANCED_PATTERNS.md # 🚀 Beast Mode patterns
|
|
197
|
+
│ ├── QUICK_START_GUIDE.md # Getting started
|
|
198
|
+
│ ├── COLOR_SYSTEM_REFERENCE.md # Color reference
|
|
199
|
+
│ ├── HEADLESS_ARCHITECTURE_STRATEGY.md # Headless API
|
|
200
|
+
│ └── archive/ # Archived documentation
|
|
201
|
+
├── prototypes/ # Production prototypes
|
|
202
|
+
│ ├── index.html # 🚀 System Launcher
|
|
203
|
+
│ ├── omni-erp-integrated.html # ⚡ Gold Standard
|
|
204
|
+
│ ├── prototype-*.html # Official prototypes
|
|
205
|
+
│ ├── README.md # Prototype documentation
|
|
206
|
+
│ └── archive/ # Archived prototypes
|
|
207
|
+
├── scripts/ # Build and validation scripts
|
|
208
|
+
│ ├── enforce-semantics.cjs # Drift detection
|
|
209
|
+
│ ├── extract-headless-map.cjs # Headless map extraction
|
|
210
|
+
│ ├── extract-tokens.js # Token extraction
|
|
211
|
+
│ └── validate-design-tokens.js # Token validation
|
|
212
|
+
└── dist/ # Generated files
|
|
213
|
+
├── tokens.json # Extracted tokens
|
|
214
|
+
├── headless-map.json # Headless design map
|
|
215
|
+
└── tokens/ # TypeScript definitions
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Usage Examples
|
|
221
|
+
|
|
222
|
+
### Typography
|
|
223
|
+
|
|
224
|
+
```html
|
|
225
|
+
<h1 class="na-h1">Page Title</h1>
|
|
226
|
+
<h2 class="na-h2">Section Title</h2>
|
|
227
|
+
<div class="na-data">$12,450.00</div>
|
|
228
|
+
<div class="na-metadata">PO-88219 • Feed Supply</div>
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Components
|
|
232
|
+
|
|
233
|
+
```html
|
|
234
|
+
<div class="na-card">
|
|
235
|
+
<h3 class="na-h4">Card Title</h3>
|
|
236
|
+
<div class="na-data">Data value</div>
|
|
237
|
+
</div>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Beast Mode Patterns
|
|
241
|
+
|
|
242
|
+
```html
|
|
243
|
+
<!-- Radio Button State Machine -->
|
|
244
|
+
<input type="radio" name="view" id="v-grid" class="na-state-radio" checked>
|
|
245
|
+
<label for="v-grid" class="na-state-label">Grid</label>
|
|
246
|
+
|
|
247
|
+
<!-- Bi-directional Sticky Grid -->
|
|
248
|
+
<div class="na-grid-frozen">
|
|
249
|
+
<table class="na-table-frozen">...</table>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
<!-- Omni Shell Layout -->
|
|
253
|
+
<div class="na-shell-omni">
|
|
254
|
+
<header class="na-shell-head">...</header>
|
|
255
|
+
<aside class="na-shell-rail">...</aside>
|
|
256
|
+
<main class="na-shell-main">...</main>
|
|
257
|
+
</div>
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Scripts Reference
|
|
263
|
+
|
|
264
|
+
| Command | Description |
|
|
265
|
+
|---------|-------------|
|
|
266
|
+
| `pnpm build` | Compile CSS from input.css |
|
|
267
|
+
| `pnpm watch` | Watch mode for development |
|
|
268
|
+
| `pnpm dev` | Development mode (watch) |
|
|
269
|
+
| `pnpm extract:tokens` | Extract design tokens to JSON |
|
|
270
|
+
| `pnpm extract:headless` | Generate headless design map |
|
|
271
|
+
| `pnpm enforce:semantics` | Run drift detection |
|
|
272
|
+
| `pnpm validate` | Validate design tokens |
|
|
273
|
+
| `pnpm validate:all` | Run all validations |
|
|
274
|
+
| `pnpm quality` | Run complete quality check |
|
|
275
|
+
| `pnpm lint` | Run linting |
|
|
276
|
+
| `pnpm lint:fix` | Fix linting issues |
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Design Tokens
|
|
281
|
+
|
|
282
|
+
### Available Exports
|
|
283
|
+
|
|
284
|
+
```typescript
|
|
285
|
+
// CSS
|
|
286
|
+
import '@aibos/design-system/css'
|
|
287
|
+
|
|
288
|
+
// Tokens (JSON)
|
|
289
|
+
import tokens from '@aibos/design-system/tokens'
|
|
290
|
+
|
|
291
|
+
// Tokens (TypeScript)
|
|
292
|
+
import type { DesignTokens } from '@aibos/design-system/tokens/typescript'
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## Documentation
|
|
298
|
+
|
|
299
|
+
### For External Users
|
|
300
|
+
|
|
301
|
+
- **[EXTERNAL_USAGE.md](./EXTERNAL_USAGE.md)** ⭐ **START HERE** - How to install and use as npm package
|
|
302
|
+
- **[API_REFERENCE.md](./API_REFERENCE.md)** - Complete typography, spacing, and component reference
|
|
303
|
+
- **[NPM Publishing Guide](./docs/NPM_PUBLISHING_GUIDE.md)** - How to publish to npm via GitHub Actions
|
|
304
|
+
- **[Publishing Guide](./docs/PUBLISHING_GUIDE.md)** - Manual publishing instructions
|
|
305
|
+
|
|
306
|
+
### For Developers
|
|
307
|
+
|
|
308
|
+
- **[Design System Guide](./docs/DESIGN_SYSTEM.md)** - Complete design system reference
|
|
309
|
+
- **[Advanced Patterns](./docs/ADVANCED_PATTERNS.md)** - Beast Mode patterns documentation
|
|
310
|
+
- **[Quick Start Guide](./docs/QUICK_START_GUIDE.md)** - Development setup
|
|
311
|
+
|
|
312
|
+
## Support
|
|
313
|
+
|
|
314
|
+
For questions or issues:
|
|
315
|
+
|
|
316
|
+
1. **External users**: Check [EXTERNAL_USAGE.md](./EXTERNAL_USAGE.md) first
|
|
317
|
+
2. **Developers**: Check [DESIGN_SYSTEM.md](./docs/DESIGN_SYSTEM.md) first
|
|
318
|
+
3. Review [ADVANCED_PATTERNS.md](./docs/ADVANCED_PATTERNS.md) for Beast Mode patterns
|
|
319
|
+
4. Run `pnpm quality` to check for issues
|
|
320
|
+
5. Review validation output
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Status
|
|
325
|
+
|
|
326
|
+
**Version**: 2.0
|
|
327
|
+
**Last Updated**: 2025-01-27
|
|
328
|
+
**Status**: ✅ **Production Ready**
|
|
329
|
+
**Beast Mode**: ✅ **Enabled**
|
|
330
|
+
**Prototypes**: 8 production-ready modules
|
|
331
|
+
**Documentation**: Complete and consolidated
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
**Neo-Analog Design System** - Enterprise-grade UI framework with zero framework overhead.
|