Skip to content

Commit 37dd058

Browse files
style: fix prettier formatting in AGENTS.md
Co-Authored-By: Claude Haiku 4.5 <[email protected]>
1 parent 4fa9136 commit 37dd058

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

AGENTS.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ apps/
3737

3838
**Controller Pattern (Valtio)**
3939
State management via reactive controllers:
40+
4041
- `ModalController` - Modal visibility and state
4142
- `RouterController` - Navigation between views
4243
- `ConnectionsController` - Wallet connections and networks
@@ -46,13 +47,15 @@ State management via reactive controllers:
4647

4748
**Adapter Pattern**
4849
Blockchain-specific implementations:
50+
4951
- `BlockchainAdapter` - Base interface
5052
- EVM adapters (Ethers, Wagmi)
5153
- Solana adapter
5254
- Bitcoin adapter
5355

5456
**Connector Pattern**
5557
Wallet connection methods:
58+
5659
- `WalletConnectConnector` - Default WalletConnect protocol
5760
- Custom connectors for Coinbase, Phantom, etc.
5861

@@ -92,6 +95,7 @@ packages/appkit/src/ # AppKit-specific UI (@reown/appkit-react-native)
9295
### Component Hierarchy
9396

9497
**Base Components** (`packages/ui/src/components/`):
98+
9599
- `wui-card` - Container with themed background/border
96100
- `wui-icon` - SVG icon renderer (60+ icons)
97101
- `wui-text` - Typography with 23 variants
@@ -102,6 +106,7 @@ packages/appkit/src/ # AppKit-specific UI (@reown/appkit-react-native)
102106
- `wui-loading-spinner` - Loading indicator
103107

104108
**Composite Components** (`packages/ui/src/composites/`):
109+
105110
- `wui-button` - Primary button (size: sm/md, variant: fill/shade/accent)
106111
- `wui-list-item` - Pressable list item with animations
107112
- `wui-input-text` - Animated text input with focus states
@@ -112,20 +117,23 @@ packages/appkit/src/ # AppKit-specific UI (@reown/appkit-react-native)
112117
- `wui-avatar` - Address-based avatar with gradient
113118

114119
**Layout Components** (`packages/ui/src/layout/`):
120+
115121
- `FlexView` - Flex container replacing View (supports gap, padding arrays)
116122
- `Overlay` - Semi-transparent overlay
117123
- `Separator` - Divider with optional text
118124

119125
### Theming System
120126

121127
**Theme Colors** (62 keys in DarkTheme/LightTheme):
128+
122129
- `accent-100` to `accent-020` - Primary brand colors
123130
- `fg-100` to `fg-300` - Foreground/text colors
124131
- `bg-100` to `bg-300` - Background colors
125132
- `success-100`, `error-100` - Semantic colors
126133
- `gray-glass-001` to `gray-glass-090` - Glass morphism overlays
127134

128135
**Design Tokens**:
136+
129137
```
130138
Spacing: '0' | '4xs' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl'
131139
0 2 4 6 8 12 14 16 20 24 32 40 (px)
@@ -135,13 +143,15 @@ BorderRadius: '5xs' | '4xs' | '3xs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | '3xl' | '
135143
```
136144

137145
**Typography** (23 variants):
146+
138147
- Sizes: `medium-title`, `small-title`, `large`, `medium`, `paragraph`, `small`, `tiny`, `micro`
139148
- Weights: `400`, `500`, `600`, `700`
140149
- Example: `paragraph-500`, `small-400`, `micro-700`
141150

142151
**Using Theme**:
152+
143153
```typescript
144-
const Theme = useTheme()
154+
const Theme = useTheme();
145155
// Returns themed color object that responds to light/dark mode
146156
```
147157

@@ -150,11 +160,13 @@ const Theme = useTheme()
150160
Animations use React Native's `Animated` API, preferring the native driver for GPU-accelerated properties (opacity, transforms) and falling back to `useNativeDriver: false` when animating unsupported properties like colors.
151161

152162
**Modal Animation** (native driver):
163+
153164
- Opening: Spring physics (damping: 25, stiffness: 220)
154165
- Closing: Timing animation (150ms) for snappy UX
155166
- Backdrop: Opacity fade (300ms in, 250ms out)
156167

157168
**Component Animations** (JS-driven, `useNativeDriver: false`):
169+
158170
- `useAnimatedValue` hook for color interpolation on press states
159171
- `Animated.createAnimatedComponent(Pressable)` for interactive elements
160172
- Color transitions between normal/pressed states
@@ -164,6 +176,7 @@ Animations use React Native's `Animated` API, preferring the native driver for G
164176
**RouterController** manages navigation between views defined in `RouterControllerState` (see `packages/core/src/controllers/RouterController.ts` for the up-to-date list of route IDs).
165177

166178
View categories:
179+
167180
- Account flows (account overview and default account views)
168181
- Connection flows (social logins, external wallets, WalletConnect, etc.)
169182
- Network management (network selection, switching, unsupported network messaging)
@@ -173,6 +186,7 @@ View categories:
173186
- Informational views (e.g., "What is a network?", "What is a wallet?")
174187

175188
**View Pattern**:
189+
176190
```typescript
177191
export function MyView() {
178192
const snapshot = useSnapshot(ControllerState)
@@ -191,6 +205,7 @@ export function MyView() {
191205
### Common UI Patterns
192206

193207
**FlexView Layout**:
208+
194209
```typescript
195210
<FlexView
196211
flexDirection="row"
@@ -201,6 +216,7 @@ export function MyView() {
201216
```
202217

203218
**List Item**:
219+
204220
```typescript
205221
<ListItem
206222
icon="wallet"
@@ -214,6 +230,7 @@ export function MyView() {
214230
```
215231

216232
**Button**:
233+
217234
```typescript
218235
<Button size="md" variant="fill" onPress={handlePress}>
219236
Connect Wallet
@@ -237,6 +254,7 @@ export function MyView() {
237254
### Code Quality Requirements
238255

239256
**Before pushing any solution, always run:**
257+
240258
```bash
241259
yarn format # Prettier formatting
242260
yarn lint # ESLint checks

0 commit comments

Comments
 (0)