@usevyre/ai-context 0.1.1 → 0.2.1

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.
Files changed (44) hide show
  1. package/dist/anti-patterns.json +222 -0
  2. package/dist/cheat-sheets/accordion.md +25 -0
  3. package/dist/cheat-sheets/alert.md +35 -0
  4. package/dist/cheat-sheets/avatar.md +34 -0
  5. package/dist/cheat-sheets/badge.md +41 -0
  6. package/dist/cheat-sheets/breadcrumb.md +26 -0
  7. package/dist/cheat-sheets/button.md +63 -0
  8. package/dist/cheat-sheets/calendar.md +27 -0
  9. package/dist/cheat-sheets/card.md +37 -0
  10. package/dist/cheat-sheets/checkbox.md +32 -0
  11. package/dist/cheat-sheets/command.md +29 -0
  12. package/dist/cheat-sheets/dropdownmenu.md +25 -0
  13. package/dist/cheat-sheets/field.md +36 -0
  14. package/dist/cheat-sheets/index.md +34 -0
  15. package/dist/cheat-sheets/input.md +28 -0
  16. package/dist/cheat-sheets/label.md +22 -0
  17. package/dist/cheat-sheets/modal.md +33 -0
  18. package/dist/cheat-sheets/pagination.md +15 -0
  19. package/dist/cheat-sheets/popover.md +32 -0
  20. package/dist/cheat-sheets/progress.md +27 -0
  21. package/dist/cheat-sheets/select.md +32 -0
  22. package/dist/cheat-sheets/separator.md +26 -0
  23. package/dist/cheat-sheets/sheet.md +28 -0
  24. package/dist/cheat-sheets/sidebar.md +33 -0
  25. package/dist/cheat-sheets/skeleton.md +27 -0
  26. package/dist/cheat-sheets/slider.md +22 -0
  27. package/dist/cheat-sheets/switch.md +26 -0
  28. package/dist/cheat-sheets/table.md +28 -0
  29. package/dist/cheat-sheets/tabs.md +24 -0
  30. package/dist/cheat-sheets/toast.md +41 -0
  31. package/dist/cheat-sheets/tooltip.md +30 -0
  32. package/dist/cheat-sheets/typography.md +22 -0
  33. package/dist/claude-context.md +716 -40
  34. package/dist/copilot-instructions.md +716 -40
  35. package/dist/cursor-rules.md +255 -261
  36. package/dist/full-context.md +715 -40
  37. package/dist/index.js +5054 -584
  38. package/dist/schema.json +1278 -0
  39. package/dist/tokens.json +1388 -0
  40. package/dist/tokens.md +180 -0
  41. package/dist/version-info.json +233 -0
  42. package/dist/windsurf-rules.md +716 -40
  43. package/package.json +9 -3
  44. package/LICENSE +0 -21
package/dist/tokens.md ADDED
@@ -0,0 +1,180 @@
1
+ # useVyre Token Reference for AI Agents
2
+ # Version: 0.1.2 | Generated: 2026-05-08
3
+ # Machine-readable version: @usevyre/tokens/ai (ai-tokens.json)
4
+
5
+ ## Usage
6
+
7
+ ```css
8
+ /* CSS */
9
+ @import "@usevyre/tokens/css";
10
+ color: var(--vyre-color-semantic-accent);
11
+ ```
12
+
13
+ ```ts
14
+ /* TypeScript/JS */
15
+ import { tokens, cssVar } from "@usevyre/tokens";
16
+ const accent = tokens["colorSemanticAccent"]; // resolved hex value
17
+ const css = cssVar("color-semantic-accent"); // "var(--vyre-color-semantic-accent)"
18
+ ```
19
+
20
+ ## Rules
21
+
22
+ 1. NEVER use primitive tokens (--vyre-color-primitive-*) in components — use semantic tokens instead.
23
+ 2. Semantic tokens adapt automatically to light/dark theme via [data-theme] attribute on <html>.
24
+ 3. For interactive hover states, use the -hover suffix variant of the token.
25
+ 4. For low-opacity backgrounds (badges, highlights), use -subtle suffix tokens.
26
+ 5. Text hierarchy: text-primary > text-secondary > text-muted > text-disabled.
27
+ 6. For text on accent/colored backgrounds, use text-inverse or accent-foreground.
28
+ 7. Import CSS: @import "@usevyre/tokens/css". Import JS: import { tokens } from "@usevyre/tokens".
29
+ 8. Use cssVar() helper to reference tokens in JS: cssVar('color-semantic-accent') → var(--vyre-color-semantic-accent).
30
+
31
+ ---
32
+
33
+ ## Semantic Color Tokens
34
+
35
+ These are the tokens to use in all component styling. They switch automatically between light/dark.
36
+
37
+ | CSS Variable | Description | Light | Dark | Usage |
38
+ |---|---|---|---|---|
39
+ | `--vyre-color-semantic-background` | Page/app background. Deepest layer. | `#ffffff` | `#09090b` | Page/app root background, Layout wrapper background |
40
+ | `--vyre-color-semantic-surface` | Cards, panels, sidebars. | `#fafafa` | `#18181b` | Card background, Panel background |
41
+ | `--vyre-color-semantic-surface-raised` | Dropdowns, popovers, elevated cards. | `#f4f4f5` | `#27272a` | Dropdown background, Popover background |
42
+ | `--vyre-color-semantic-surface-overlay` | Modals, tooltips, highest elevation. | `#ffffff` | `#333338` | Modal background, Tooltip background |
43
+ | `--vyre-color-semantic-border` | Default border for cards, inputs, dividers. | `#e4e4e7` | `#3f3f46` | Card border, Input border |
44
+ | `--vyre-color-semantic-border-subtle` | Very low contrast border. Section dividers. | `#ebebec` | `#27272a` | Section divider, Low-contrast rule between rows |
45
+ | `--vyre-color-semantic-border-strong` | Focused inputs, selected states. | `#a1a1aa` | `#71717a` | Input focus ring, Selected item border |
46
+ | `--vyre-color-semantic-text-primary` | Headings, body text, primary content. | `#09090b` | `#fafafa` | Heading text, Body copy |
47
+ | `--vyre-color-semantic-text-secondary` | Subtitles, descriptions, supporting text. | `#52525b` | `#d1d1d6` | Subtitle, Description text |
48
+ | `--vyre-color-semantic-text-muted` | Placeholders, timestamps, helper text. | `#a1a1aa` | `#71717a` | Placeholder text, Timestamp |
49
+ | `--vyre-color-semantic-text-disabled` | Disabled state text. | `#d1d1d6` | `#52525b` | Disabled input text, Greyed-out label |
50
+ | `--vyre-color-semantic-text-inverse` | Text on dark/accent backgrounds. | `#ffffff` | `#09090b` | Text on dark/accent background, Text inside accent-colored badge |
51
+ | `--vyre-color-semantic-accent` | Primary brand accent. CTAs, highlights, focus rings. | `#7c3aed` | `#a78bfa` | Button primary background, Link active state |
52
+ | `--vyre-color-semantic-accent-hover` | Hover state for accent elements. | `#6d28d9` | `#c4b5fd` | Button primary hover state |
53
+ | `--vyre-color-semantic-accent-foreground` | Text color on accent background. | `#ffffff` | `#09090b` | Text/icon on accent-colored background |
54
+ | `--vyre-color-semantic-accent-subtle` | Low-opacity accent for badge backgrounds, highlights. | `#f5f3ff` | `rgba(139, 92, 246, 0.12)` | Accent badge background, Highlighted row background |
55
+ | `--vyre-color-semantic-accent-subtle-border` | Border for accent subtle containers. | `#ddd6fe` | `rgba(139, 92, 246, 0.25)` | Border of accent-subtle containers |
56
+ | `--vyre-color-semantic-teal` | Secondary accent. Code, AI-context indicators. | `#14b8a6` | `#2dd4bf` | Button teal variant, Code block accent |
57
+ | `--vyre-color-semantic-teal-hover` | Hover state for teal elements. | `#0d9488` | `#5eead4` | Teal button hover state |
58
+ | `--vyre-color-semantic-teal-subtle` | Low-opacity teal for badge backgrounds. | `rgba(20, 184, 166, 0.08)` | `rgba(45, 212, 191, 0.10)` | Teal badge background |
59
+ | `--vyre-color-semantic-success` | Success states, confirmations. | `#16a34a` | `#4ade80` | Success alert icon/text, Toast success border-left |
60
+ | `--vyre-color-semantic-success-subtle` | Success badge background. | `#f0fdf4` | `rgba(74, 222, 128, 0.10)` | Success alert background, Success badge background |
61
+ | `--vyre-color-semantic-success-subtle-border` | Border for success subtle containers. | `#dcfce7` | `rgba(74, 222, 128, 0.20)` | Success alert border |
62
+ | `--vyre-color-semantic-warning` | Warning states, beta indicators. | `#f59e0b` | `#fbbf24` | Warning alert icon/text, Toast warning border-left |
63
+ | `--vyre-color-semantic-warning-subtle` | Warning badge background. | `#fffbeb` | `rgba(251, 191, 36, 0.10)` | Warning alert background, Warning badge background |
64
+ | `--vyre-color-semantic-warning-subtle-border` | Border for warning subtle containers. | `#fef3c7` | `rgba(251, 191, 36, 0.20)` | Warning alert border |
65
+ | `--vyre-color-semantic-danger` | Error states, destructive actions. | `#dc2626` | `#f87171` | Button danger variant, Error alert icon/text |
66
+ | `--vyre-color-semantic-danger-hover` | Hover state for danger elements. | `#ef4444` | `#ef4444` | Danger button hover state |
67
+ | `--vyre-color-semantic-danger-subtle` | Error badge background. | `#fef2f2` | `rgba(248, 113, 113, 0.10)` | Error alert background, Danger badge background |
68
+ | `--vyre-color-semantic-danger-subtle-border` | Border for danger subtle containers. | `#fee2e2` | `rgba(248, 113, 113, 0.20)` | Error alert border |
69
+
70
+ ---
71
+
72
+ ## Spacing (4px grid)
73
+
74
+ | CSS Variable | Value | Notes |
75
+ |---|---|---|
76
+ | `--vyre-spacing-0` | `0` | |
77
+ | `--vyre-spacing-1` | `0.25rem` | 4px |
78
+ | `--vyre-spacing-2` | `0.5rem` | 8px |
79
+ | `--vyre-spacing-3` | `0.75rem` | 12px |
80
+ | `--vyre-spacing-4` | `1rem` | 16px |
81
+ | `--vyre-spacing-5` | `1.25rem` | 20px |
82
+ | `--vyre-spacing-6` | `1.5rem` | 24px |
83
+ | `--vyre-spacing-8` | `2rem` | 32px |
84
+ | `--vyre-spacing-10` | `2.5rem` | 40px |
85
+ | `--vyre-spacing-12` | `3rem` | 48px |
86
+ | `--vyre-spacing-16` | `4rem` | 64px |
87
+ | `--vyre-spacing-20` | `5rem` | 80px |
88
+ | `--vyre-spacing-24` | `6rem` | 96px |
89
+
90
+ ---
91
+
92
+ ## Border Radius
93
+
94
+ | CSS Variable | Value | Notes |
95
+ |---|---|---|
96
+ | `--vyre-border-radius-none` | `0` | |
97
+ | `--vyre-border-radius-sm` | `0.375rem` | 6px. Tight corners. |
98
+ | `--vyre-border-radius-md` | `0.5rem` | 8px. Default component radius. |
99
+ | `--vyre-border-radius-lg` | `0.75rem` | 12px. Cards, panels. |
100
+ | `--vyre-border-radius-xl` | `1rem` | 16px. Large cards. |
101
+ | `--vyre-border-radius-2xl` | `1.5rem` | 24px. Modals, sheets. |
102
+ | `--vyre-border-radius-full` | `9999px` | Badges, pills, avatars. |
103
+
104
+ ---
105
+
106
+ ## Typography — Font Sizes
107
+
108
+ | CSS Variable | Value | Notes |
109
+ |---|---|---|
110
+ | `--vyre-typography-font-size-2xs` | `0.625rem` | 10px. Tiny labels only. |
111
+ | `--vyre-typography-font-size-xs` | `0.6875rem` | 11px. Badge text, captions. |
112
+ | `--vyre-typography-font-size-sm` | `0.8125rem` | 13px. Default UI text, buttons. |
113
+ | `--vyre-typography-font-size-md` | `0.9375rem` | 15px. Body text. |
114
+ | `--vyre-typography-font-size-lg` | `1.125rem` | 18px. Large body, small headings. |
115
+ | `--vyre-typography-font-size-xl` | `1.375rem` | 22px. Section headings. |
116
+ | `--vyre-typography-font-size-2xl` | `1.75rem` | 28px. Page headings. |
117
+ | `--vyre-typography-font-size-3xl` | `2.25rem` | 36px. Large headings. |
118
+ | `--vyre-typography-font-size-4xl` | `3rem` | 48px. Hero headings. |
119
+ | `--vyre-typography-font-size-5xl` | `4rem` | 64px. Display headings. |
120
+
121
+ **Font weights:** light (300), regular (400), medium (500), semibold (600), bold (700)
122
+ Use `--vyre-typography-font-weight-[name]`.
123
+
124
+ **Font families:**
125
+ - Display/Body: `--vyre-typography-font-family-display` / `--vyre-typography-font-family-body` → Geist, Inter, system-ui
126
+ - Mono: `--vyre-typography-font-family-mono` → Geist Mono, JetBrains Mono
127
+
128
+ ---
129
+
130
+ ## Shadows
131
+
132
+ | CSS Variable | Notes |
133
+ |---|---|
134
+ | `--vyre-shadow-sm` | — |
135
+ | `--vyre-shadow-md` | — |
136
+ | `--vyre-shadow-lg` | — |
137
+ | `--vyre-shadow-xl` | — |
138
+ | `--vyre-shadow-sm-dark` | — |
139
+ | `--vyre-shadow-md-dark` | — |
140
+ | `--vyre-shadow-lg-dark` | — |
141
+ | `--vyre-shadow-xl-dark` | — |
142
+ | `--vyre-shadow-glow-accent` | — |
143
+ | `--vyre-shadow-glow-teal` | — |
144
+
145
+ Use `-dark` variants inside `[data-theme="dark"]`. `glow-accent` and `glow-teal` for focus glows.
146
+
147
+ ---
148
+
149
+ ## Transitions — Duration
150
+
151
+ | CSS Variable | Value |
152
+ |---|---|
153
+ | `--vyre-transition-duration-instant` | `80ms` |
154
+ | `--vyre-transition-duration-fast` | `120ms` |
155
+ | `--vyre-transition-duration-normal` | `200ms` |
156
+ | `--vyre-transition-duration-slow` | `350ms` |
157
+
158
+ **Easing:** `--vyre-transition-easing-out` (default), `-in`, `-inout`, `-spring` (bounce)
159
+
160
+ ---
161
+
162
+ ## Z-Index Scale
163
+
164
+ | CSS Variable | Value | Layer |
165
+ |---|---|---|
166
+ | `--vyre-z-index-base` | `0` | |
167
+ | `--vyre-z-index-raised` | `10` | |
168
+ | `--vyre-z-index-sticky` | `100` | |
169
+ | `--vyre-z-index-overlay` | `200` | |
170
+ | `--vyre-z-index-modal` | `1000` | |
171
+ | `--vyre-z-index-toast` | `2000` | |
172
+
173
+ ---
174
+
175
+ ## Common Mistakes
176
+
177
+ - ❌ Using raw hex values → ✅ Use `var(--vyre-color-semantic-accent)`
178
+ - ❌ `--vyre-color-primitive-violet-600` in a component → ✅ `--vyre-color-semantic-accent`
179
+ - ❌ Custom z-index numbers → ✅ Use `var(--vyre-z-index-modal)`
180
+ - ❌ Hardcoded px spacing → ✅ Use `var(--vyre-spacing-4)` (= 16px)
@@ -0,0 +1,233 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "packageVersion": "0.1.1",
4
+ "generatedAt": "2026-05-08T07:42:19.123Z",
5
+ "validFor": [
6
+ "@usevyre/react@0.1.1+",
7
+ "@usevyre/vue@0.1.1+"
8
+ ],
9
+ "changelog": {
10
+ "0.2.0": {
11
+ "date": "2026-05-08",
12
+ "breaking": false,
13
+ "summary": "Added structured schema, anti-patterns JSON, per-tool format generation"
14
+ },
15
+ "0.1.1": {
16
+ "date": "2026-05-06",
17
+ "breaking": false,
18
+ "summary": "Initial AI context with full-context.md, cursor/claude/windsurf/copilot formats"
19
+ }
20
+ },
21
+ "components": {
22
+ "Accordion": {
23
+ "version": "0.1.1",
24
+ "lastUpdated": "2026-05-08",
25
+ "breaking": false,
26
+ "stable": true,
27
+ "changelog": null
28
+ },
29
+ "Alert": {
30
+ "version": "0.1.1",
31
+ "lastUpdated": "2026-05-08",
32
+ "breaking": false,
33
+ "stable": true,
34
+ "changelog": null
35
+ },
36
+ "Avatar": {
37
+ "version": "0.1.1",
38
+ "lastUpdated": "2026-05-08",
39
+ "breaking": false,
40
+ "stable": true,
41
+ "changelog": null
42
+ },
43
+ "Badge": {
44
+ "version": "0.1.1",
45
+ "lastUpdated": "2026-05-08",
46
+ "breaking": false,
47
+ "stable": true,
48
+ "changelog": null
49
+ },
50
+ "Breadcrumb": {
51
+ "version": "0.1.1",
52
+ "lastUpdated": "2026-05-08",
53
+ "breaking": false,
54
+ "stable": true,
55
+ "changelog": null
56
+ },
57
+ "Button": {
58
+ "version": "0.1.1",
59
+ "lastUpdated": "2026-05-08",
60
+ "breaking": false,
61
+ "stable": true,
62
+ "changelog": null
63
+ },
64
+ "Calendar": {
65
+ "version": "0.1.1",
66
+ "lastUpdated": "2026-05-08",
67
+ "breaking": false,
68
+ "stable": true,
69
+ "changelog": null
70
+ },
71
+ "Card": {
72
+ "version": "0.1.1",
73
+ "lastUpdated": "2026-05-08",
74
+ "breaking": false,
75
+ "stable": true,
76
+ "changelog": null
77
+ },
78
+ "Checkbox": {
79
+ "version": "0.1.1",
80
+ "lastUpdated": "2026-05-08",
81
+ "breaking": false,
82
+ "stable": true,
83
+ "changelog": null
84
+ },
85
+ "Command": {
86
+ "version": "0.1.1",
87
+ "lastUpdated": "2026-05-08",
88
+ "breaking": false,
89
+ "stable": true,
90
+ "changelog": null
91
+ },
92
+ "DropdownMenu": {
93
+ "version": "0.1.1",
94
+ "lastUpdated": "2026-05-08",
95
+ "breaking": false,
96
+ "stable": true,
97
+ "changelog": null
98
+ },
99
+ "Field": {
100
+ "version": "0.1.1",
101
+ "lastUpdated": "2026-05-08",
102
+ "breaking": false,
103
+ "stable": true,
104
+ "changelog": null
105
+ },
106
+ "Input": {
107
+ "version": "0.1.1",
108
+ "lastUpdated": "2026-05-08",
109
+ "breaking": false,
110
+ "stable": true,
111
+ "changelog": null
112
+ },
113
+ "Label": {
114
+ "version": "0.1.1",
115
+ "lastUpdated": "2026-05-08",
116
+ "breaking": false,
117
+ "stable": true,
118
+ "changelog": null
119
+ },
120
+ "Modal": {
121
+ "version": "0.1.1",
122
+ "lastUpdated": "2026-05-08",
123
+ "breaking": false,
124
+ "stable": true,
125
+ "changelog": null
126
+ },
127
+ "Pagination": {
128
+ "version": "0.1.1",
129
+ "lastUpdated": "2026-05-08",
130
+ "breaking": false,
131
+ "stable": true,
132
+ "changelog": null
133
+ },
134
+ "Popover": {
135
+ "version": "0.1.1",
136
+ "lastUpdated": "2026-05-08",
137
+ "breaking": false,
138
+ "stable": true,
139
+ "changelog": null
140
+ },
141
+ "Progress": {
142
+ "version": "0.1.1",
143
+ "lastUpdated": "2026-05-08",
144
+ "breaking": false,
145
+ "stable": true,
146
+ "changelog": null
147
+ },
148
+ "Select": {
149
+ "version": "0.1.1",
150
+ "lastUpdated": "2026-05-08",
151
+ "breaking": false,
152
+ "stable": true,
153
+ "changelog": null
154
+ },
155
+ "Separator": {
156
+ "version": "0.1.1",
157
+ "lastUpdated": "2026-05-08",
158
+ "breaking": false,
159
+ "stable": true,
160
+ "changelog": null
161
+ },
162
+ "Sheet": {
163
+ "version": "0.1.1",
164
+ "lastUpdated": "2026-05-08",
165
+ "breaking": false,
166
+ "stable": true,
167
+ "changelog": null
168
+ },
169
+ "Sidebar": {
170
+ "version": "0.1.1",
171
+ "lastUpdated": "2026-05-08",
172
+ "breaking": false,
173
+ "stable": true,
174
+ "changelog": null
175
+ },
176
+ "Skeleton": {
177
+ "version": "0.1.1",
178
+ "lastUpdated": "2026-05-08",
179
+ "breaking": false,
180
+ "stable": true,
181
+ "changelog": null
182
+ },
183
+ "Slider": {
184
+ "version": "0.1.1",
185
+ "lastUpdated": "2026-05-08",
186
+ "breaking": false,
187
+ "stable": true,
188
+ "changelog": null
189
+ },
190
+ "Switch": {
191
+ "version": "0.1.1",
192
+ "lastUpdated": "2026-05-08",
193
+ "breaking": false,
194
+ "stable": true,
195
+ "changelog": null
196
+ },
197
+ "Table": {
198
+ "version": "0.1.1",
199
+ "lastUpdated": "2026-05-08",
200
+ "breaking": false,
201
+ "stable": true,
202
+ "changelog": null
203
+ },
204
+ "Tabs": {
205
+ "version": "0.1.1",
206
+ "lastUpdated": "2026-05-08",
207
+ "breaking": false,
208
+ "stable": true,
209
+ "changelog": null
210
+ },
211
+ "Toast": {
212
+ "version": "0.1.1",
213
+ "lastUpdated": "2026-05-08",
214
+ "breaking": false,
215
+ "stable": true,
216
+ "changelog": null
217
+ },
218
+ "Tooltip": {
219
+ "version": "0.1.1",
220
+ "lastUpdated": "2026-05-08",
221
+ "breaking": false,
222
+ "stable": true,
223
+ "changelog": null
224
+ },
225
+ "Typography": {
226
+ "version": "0.1.1",
227
+ "lastUpdated": "2026-05-08",
228
+ "breaking": false,
229
+ "stable": true,
230
+ "changelog": null
231
+ }
232
+ }
233
+ }