// Food app UI
Grocery Delivery App UI Design in Expo
This grocery delivery app UI is designed for quick commerce, where minutes matter. The home screen leads with the delivery time and address, then search, a fresh produce offer, categories and best sellers.
- Screens
- 2
- Built with
- Expo SDK 58
- Fonts
- Plus Jakarta Sans
- License
- Free (MIT)
- Views
- 0

Quick Grocery Delivery app screens

Grocery home
Delivery time, wallet and profile, search with voice, an offer banner, categories, best sellers and a cart bar.

Order tracking
A drawn street map with store, rider and home pins, order steps, rider contact and the order items.
Copy the Quick Grocery Delivery kit
Use the artifact as a design brief, the skill to generate the UI with an AI agent, or the code to run it right away.
Design artifact
The full design: tokens, screens and source
# Quick Grocery Delivery: design artifact
This grocery delivery app UI is designed for quick commerce, where minutes matter. The home screen leads with the delivery time and address, then search, a fresh produce offer, categories and best sellers.
- Type: Food mobile app UI
- Screens: 2
- Artboard: 390 × 844
- Target: Expo SDK 58, Expo Router, TypeScript, expo-image, react-native-svg
- Live page: https://developermill.com/app-designs/grocery-delivery-app-ui-design
## Design direction
Fresh mint and white with a confident grocery green, yellow deal badges and product photos on clean white cards.
- Delivery time and address header
- Add buttons that turn into quantity steppers
- Floating cart bar with live total and savings
- Tracking map with order steps and rider card
## Foundations
### Colour
| Token | Hex |
| --- | --- |
| Grocery green | `#1E9E50` |
| Deep green | `#16803C` |
| Mint wash | `#E3F2D6` |
| Leaf | `#F3F8EE` |
| Deal yellow | `#FFC93C` |
| Ink | `#10261A` |
### Typography
- Typefaces: Plus Jakarta Sans
- Common sizes (px): 10, 11, 12, 13, 14, 15, 17, 18
### Shape and depth
- Common corner radii (px): 3, 10, 12, 14, 16, 18
- Shadows: `0 4px 12px rgba(16,38,26,0.12)`, `0 2px 12px rgba(16,38,26,0.06)`, `0 2px 10px rgba(16,38,26,0.06)`, `0 10px 24px rgba(22,128,60,0.35)`
## Screens
### 1. Grocery home
Delivery time, wallet and profile, search with voice, an offer banner, categories, best sellers and a cart bar.
Preview: https://developermill.com/app-designs/grocery-delivery-app-ui-design/home.webp
Copy on this screen:
- DELIVERY IN
- 11 minutes
- Home
- · RS Puram, Coimbatore
- ₹240
- KS
- Search groceries
- FARM FRESH
- Flat 30% off on veggies
- Shop now
- Vegetables
- Fruits
- Dairy
- Bakery
- Best sellers
- See all
- 27% OFF
- 11 MINS · 500 g
- Vine Tomatoes
- ₹38
- ₹52
- −
- +
- ADD
- 11 MINS · 2 pcs
- Hass Avocado
- ₹149
- ₹199
- View cart
### 2. Order tracking
A drawn street map with store, rider and home pins, order steps, rider contact and the order items.
Preview: https://developermill.com/app-designs/grocery-delivery-app-ui-design/tracking.webp
Copy on this screen:
- 1.2 km · 9 min
- Order #KV2381
- Arriving in
- 9 mins
- On time
- Confirmed
- Packed
- On the way
- Delivered
- MK
- Murugan K
- 4.9 · TN 37 BX 4521
- Vine Tomatoes
- 500 g × 1
- ₹38
- Robusta Banana
- 1 dozen × 1
- ₹56
- Toned Milk
- 1 L × 1
- ₹68
- Added to cart
- Kiwi & citrus box
- 1 kg · ₹189
## Full source
The original artboards as HTML. Image URLs point at the hosted demo assets.
### Grocery home (Main)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Grocery home</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
body{margin:0}
a{color:#16803C}a:hover{color:#0F5F2C}
button{font-family:inherit;cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; position: relative; overflow: hidden; box-sizing: border-box; background: #F3F8EE; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #10261A">
<div style="position: absolute; left: 0; top: 0; width: 390px; height: 300px; background: #E3F2D6"></div>
<div style="position: relative; padding: 56px 16px 0; display: flex; flex-direction: column; gap: 14px">
<div style="display: flex; justify-content: space-between; align-items: flex-start">
<div style="display: flex; flex-direction: column; gap: 2px">
<span style="font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: #16803C">DELIVERY IN</span>
<div style="display: flex; align-items: center; gap: 6px">
<span style="font-size: 26px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.1">11 minutes</span>
<svg width="16" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M13 2 4 14h7l-1 8 9-12h-7l1-8z" fill="#F5B400"/></svg>
</div>
<button style="display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 13px; color: #10261A">
<strong style="font-weight: 700">Home</strong><span style="color: #4A5D52">· RS Puram, Coimbatore</span>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#10261A" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</button>
</div>
<div style="display: flex; align-items: center; gap: 10px; padding-top: 6px">
<button aria-label="Wallet balance ₹240" style="display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #DCE7D4; background: #FFFFFF; font-size: 14px; font-weight: 700; color: #10261A">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#16803C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="18" height="14" rx="3"/><path d="M16 13h2M3 10h18M6 6l9-3 2 3"/></svg>
₹240
</button>
<button aria-label="Profile" style="width: 44px; height: 44px; border-radius: 22px; border: 0; background: #1E9E50; color: #FFFFFF; font-size: 14px; font-weight: 700">KS</button>
</div>
</div>
<label style="display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 2px 10px rgba(16,38,26,0.06)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#5E6F65" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
<span style="position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0)">Search groceries</span>
<input type="search" placeholder="Search "tomato", "milk", "atta"" style="flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 14px; color: #10261A">
<span style="width: 1px; height: 22px; background: #E1E7DD"></span>
<button aria-label="Voice search" style="border: 0; background: none; padding: 4px; display: flex">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#16803C" stroke-width="2" stroke-linecap="round" aria-hidden="true"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3"/></svg>
</button>
</label>
<div style="position: relative; height: 156px; border-radius: 20px; overflow: hidden; background: #1C5A33">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/631acb6850.jpg" alt="" style="position: absolute; right: -40px; top: 0; height: 156px; width: 300px; object-fit: cover; object-position: right center">
<div style="position: relative; padding: 18px; display: flex; flex-direction: column; gap: 6px; width: 190px">
<span style="font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #C8EBC0">FARM FRESH</span>
<span style="font-size: 22px; font-weight: 800; line-height: 1.15; color: #FFFFFF; letter-spacing: -0.4px">Flat 30% off on veggies</span>
<a href="#best" style="align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 10px; background: #FFC93C; color: #10261A; font-size: 13px; font-weight: 700; text-decoration: none">Shop now</a>
</div>
<div style="position: absolute; right: 14px; bottom: 12px; display: flex; gap: 4px" aria-hidden="true">
<span style="width: 14px; height: 5px; border-radius: 3px; background: #FFFFFF"></span>
<span style="width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.55)"></span>
<span style="width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.55)"></span>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px">
<a href="#" style="display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #10261A">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/c69c06d09d.jpg" alt="" style="width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: #FFFFFF">
<span style="font-size: 12px; font-weight: 600">Vegetables</span>
</a>
<a href="#" style="display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #10261A">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/41158a047e.jpg" alt="" style="width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: #FFFFFF">
<span style="font-size: 12px; font-weight: 600">Fruits</span>
</a>
<a href="#" style="display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #10261A">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/836a702598.jpg" alt="" style="width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: #FFFFFF">
<span style="font-size: 12px; font-weight: 600">Dairy</span>
</a>
<a href="#" style="display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #10261A">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/4b9c072b17.jpg" alt="" style="width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: #FFFFFF">
<span style="font-size: 12px; font-weight: 600">Bakery</span>
</a>
</div>
<div id="best" style="display: flex; justify-content: space-between; align-items: center; margin-top: 4px">
<h2 style="margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.3px">Best sellers</h2>
<a href="#" style="font-size: 13px; font-weight: 700; text-decoration: none">See all</a>
</div>
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px">
<div style="background: #FFFFFF; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 12px rgba(16,38,26,0.06)">
<div style="position: relative; height: 112px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/7ab092c715.jpg" alt="Vine tomatoes" style="width: 100%; height: 112px; object-fit: cover">
<span style="position: absolute; left: 10px; top: 10px; padding: 3px 7px; border-radius: 6px; background: #FFC93C; font-size: 10px; font-weight: 800; color: #10261A">27% OFF</span>
</div>
<div style="padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px">
<span style="display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #4E6056">
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="#4E6056" stroke-width="2.4" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>
11 MINS · 500 g
</span>
<span style="font-size: 15px; font-weight: 700">Vine Tomatoes</span>
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 4px">
<div style="display: flex; flex-direction: column">
<span style="font-size: 17px; font-weight: 800">₹38</span>
<s style="font-size: 11px; color: #5E6F65">₹52</s>
</div>
<sc-if value="{{ tomatoInCart }}" hint-placeholder-val="{{ true }}">
<div style="display: flex; align-items: center; height: 36px; border-radius: 10px; background: #1E9E50; color: #FFFFFF">
<button aria-label="Remove one" onClick="{{ decTomato }}" style="width: 30px; height: 36px; border: 0; background: none; color: #FFFFFF; font-size: 18px; font-weight: 700">−</button>
<span style="min-width: 18px; text-align: center; font-size: 14px; font-weight: 700">{{ tomatoQty }}</span>
<button aria-label="Add one" onClick="{{ incTomato }}" style="width: 30px; height: 36px; border: 0; background: none; color: #FFFFFF; font-size: 18px; font-weight: 700">+</button>
</div>
</sc-if>
<sc-if value="{{ tomatoEmpty }}" hint-placeholder-val="{{ false }}">
<button onClick="{{ incTomato }}" style="height: 36px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #1E9E50; background: #FFFFFF; color: #16803C; font-size: 13px; font-weight: 800">ADD</button>
</sc-if>
</div>
</div>
</div>
<div style="background: #FFFFFF; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 12px rgba(16,38,26,0.06)">
<div style="height: 112px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/f95638415e.jpg" alt="Hass avocado" style="width: 100%; height: 112px; object-fit: cover">
</div>
<div style="padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px">
<span style="display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #4E6056">
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="#4E6056" stroke-width="2.4" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>
11 MINS · 2 pcs
</span>
<span style="font-size: 15px; font-weight: 700">Hass Avocado</span>
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 4px">
<div style="display: flex; flex-direction: column">
<span style="font-size: 17px; font-weight: 800">₹149</span>
<s style="font-size: 11px; color: #5E6F65">₹199</s>
</div>
<sc-if value="{{ avocadoInCart }}" hint-placeholder-val="{{ false }}">
<div style="display: flex; align-items: center; height: 36px; border-radius: 10px; background: #1E9E50; color: #FFFFFF">
<button aria-label="Remove one" onClick="{{ decAvocado }}" style="width: 30px; height: 36px; border: 0; background: none; color: #FFFFFF; font-size: 18px; font-weight: 700">−</button>
<span style="min-width: 18px; text-align: center; font-size: 14px; font-weight: 700">{{ avocadoQty }}</span>
<button aria-label="Add one" onClick="{{ incAvocado }}" style="width: 30px; height: 36px; border: 0; background: none; color: #FFFFFF; font-size: 18px; font-weight: 700">+</button>
</div>
</sc-if>
<sc-if value="{{ avocadoEmpty }}" hint-placeholder-val="{{ true }}">
<button onClick="{{ incAvocado }}" style="height: 36px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #1E9E50; background: #FFFFFF; color: #16803C; font-size: 13px; font-weight: 800">ADD</button>
</sc-if>
</div>
</div>
</div>
<div style="background: #FFFFFF; border-radius: 18px; overflow: hidden; height: 140px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/a9d539191e.jpg" alt="Strawberries" style="width: 100%; height: 112px; object-fit: cover">
</div>
<div style="background: #FFFFFF; border-radius: 18px; overflow: hidden; height: 140px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/9919ae6315.jpg" alt="Robusta bananas" style="width: 100%; height: 112px; object-fit: cover">
</div>
</div>
</div>
<sc-if value="{{ hasItems }}" hint-placeholder-val="{{ true }}">
<div style="position: absolute; left: 16px; right: 16px; bottom: 24px; height: 64px; padding: 0 10px 0 12px; border-radius: 18px; background: #1E9E50; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 24px rgba(22,128,60,0.35)">
<div style="display: flex" aria-hidden="true">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/7ab092c715.jpg" alt="" style="width: 34px; height: 34px; border-radius: 10px; border: 2px solid #1E9E50; object-fit: cover; background: #FFFFFF">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/9919ae6315.jpg" alt="" style="width: 34px; height: 34px; border-radius: 10px; border: 2px solid #1E9E50; object-fit: cover; background: #FFFFFF; margin-left: -12px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/708643e3f7.jpg" alt="" style="width: 34px; height: 34px; border-radius: 10px; border: 2px solid #1E9E50; object-fit: cover; background: #FFFFFF; margin-left: -12px">
</div>
<div style="flex: 1; display: flex; flex-direction: column; color: #FFFFFF">
<span style="font-size: 15px; font-weight: 800">{{ cartLine }}</span>
<span style="font-size: 11px; font-weight: 500; color: #E2F5E6">{{ savedLine }}</span>
</div>
<a href="Tracking.dc.html" style="display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 12px; background: #FFFFFF; color: #16803C; font-size: 14px; font-weight: 800; text-decoration: none">
View cart
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#16803C" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg>
</a>
</div>
</sc-if>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(props) {
super(props);
this.state = { tomato: 1, avocado: 0 };
}
renderVals() {
const t = this.state.tomato;
const a = this.state.avocado;
const items = 2 + t + a;
const total = 248 + 38 * t + 149 * a;
const saved = 60 + 14 * t + 50 * a;
return {
tomatoQty: t,
tomatoInCart: t > 0,
tomatoEmpty: t === 0,
avocadoQty: a,
avocadoInCart: a > 0,
avocadoEmpty: a === 0,
hasItems: items > 0,
cartLine: items + ' items · ₹' + total,
savedLine: 'You saved ₹' + saved,
incTomato: () => this.setState({ tomato: t + 1 }),
decTomato: () => this.setState({ tomato: Math.max(0, t - 1) }),
incAvocado: () => this.setState({ avocado: a + 1 }),
decAvocado: () => this.setState({ avocado: Math.max(0, a - 1) })
};
}
}
</script>
</body>
</html>
```
### Order tracking (Tracking)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Live order tracking</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
body{margin:0}
a{color:#16803C}a:hover{color:#0F5F2C}
button{font-family:inherit;cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; position: relative; overflow: hidden; background: #FFFFFF; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #10261A">
<svg width="390" height="480" viewBox="0 0 390 480" style="position: absolute; left: 0; top: 0" aria-hidden="true">
<rect width="390" height="480" fill="#E8EBE3"/>
<rect x="84" y="74" width="72" height="62" rx="6" fill="#CFE6C3"/>
<rect x="284" y="254" width="62" height="62" rx="6" fill="#CFE6C3"/>
<rect x="0" y="164" width="56" height="62" rx="6" fill="#CFE6C3"/>
<rect x="184" y="344" width="72" height="44" rx="6" fill="#CFE6C3"/>
<rect x="184" y="74" width="72" height="62" rx="6" fill="#DEE2D8"/>
<rect x="84" y="254" width="72" height="62" rx="6" fill="#DEE2D8"/>
<g stroke="#FFFFFF" stroke-width="14">
<path d="M0 60H390M0 150H390M0 240H390M0 330H390"/>
<path d="M70 0V480M170 0V480M270 0V480M360 0V480"/>
</g>
<g stroke="#F6F7F3" stroke-width="5">
<path d="M0 105H390M0 195H390M0 285H390M120 0V420M220 0V420M315 0V420"/>
</g>
<path d="M-10 450C60 400 110 470 190 430S320 380 400 410" stroke="#BCDDF2" stroke-width="30" fill="none"/>
<text x="276" y="420" font-family="Plus Jakarta Sans, sans-serif" font-size="9" font-weight="700" fill="#7C8A80" transform="rotate(-90 276 420)">MAIN RD</text>
<text x="360" y="236" font-family="Plus Jakarta Sans, sans-serif" font-size="9" font-weight="700" fill="#7C8A80">TRICHY RD</text>
<path d="M300 150V215H230V330H70V392" stroke="#1E9E50" stroke-width="6" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<div style="position: absolute; left: 279px; top: 120px; width: 42px; height: 42px; border-radius: 14px; background: #FFFFFF; border: 2px solid #1E9E50; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(16,38,26,0.15)">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#16803C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="Store"><path d="M4 9 5.5 4h13L20 9M4 9h16v2a3 3 0 0 1-6 0 3 3 0 0 1-4 0 3 3 0 0 1-6 0V9zM5 13v7h14v-7M10 20v-4h4v4"/></svg>
</div>
<div style="position: absolute; left: 210px; top: 268px; width: 40px; height: 40px; border-radius: 20px; background: #1E9E50; border: 4px solid #FFFFFF; box-sizing: border-box; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(30,158,80,0.2)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="Delivery partner"><circle cx="6" cy="17" r="3"/><circle cx="18" cy="17" r="3"/><path d="M6 17h6l3-6h-4M15 11l3 6M13 7h3"/></svg>
</div>
<div style="position: absolute; left: 248px; top: 238px; padding: 6px 10px; border-radius: 8px; background: #10261A; color: #FFFFFF; font-size: 12px; font-weight: 700">1.2 km · 9 min</div>
<div style="position: absolute; left: 50px; top: 372px; width: 40px; height: 40px; border-radius: 20px 20px 20px 4px; transform: rotate(-45deg); background: #10261A; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(16,38,26,0.25)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" style="transform: rotate(45deg)" role="img" aria-label="Your home"><path d="M4 11 12 4l8 7M6 10v9h12v-9"/></svg>
</div>
<div style="position: absolute; left: 16px; right: 16px; top: 56px; display: flex; justify-content: space-between; align-items: center">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 14px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(16,38,26,0.12)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#10261A" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 6-6 6 6 6"/></svg>
</a>
<span style="padding: 10px 16px; border-radius: 12px; background: #FFFFFF; font-size: 14px; font-weight: 800; box-shadow: 0 4px 12px rgba(16,38,26,0.12)">Order #KV2381</span>
<button aria-label="Call support" style="width: 44px; height: 44px; border-radius: 14px; border: 0; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(16,38,26,0.12)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#16803C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z"/></svg>
</button>
</div>
<div style="position: absolute; left: 0; right: 0; top: 448px; bottom: 0; background: #FFFFFF; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 24px rgba(16,38,26,0.08); padding: 10px 18px 0; display: flex; flex-direction: column; gap: 14px">
<span style="align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #D7DDD4"></span>
<div style="display: flex; justify-content: space-between; align-items: flex-end">
<div style="display: flex; flex-direction: column">
<span style="font-size: 12px; font-weight: 600; color: #4E6056">Arriving in</span>
<span style="font-size: 28px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.1">9 mins</span>
</div>
<span style="padding: 6px 12px; border-radius: 10px; background: #E3F4E7; color: #146B33; font-size: 12px; font-weight: 700">On time</span>
</div>
<div style="display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px">
<div style="display: flex; flex-direction: column; gap: 6px">
<span style="height: 5px; border-radius: 3px; background: #1E9E50"></span>
<span style="font-size: 11px; font-weight: 600; color: #146B33">Confirmed</span>
</div>
<div style="display: flex; flex-direction: column; gap: 6px">
<span style="height: 5px; border-radius: 3px; background: #1E9E50"></span>
<span style="font-size: 11px; font-weight: 600; color: #146B33">Packed</span>
</div>
<div style="display: flex; flex-direction: column; gap: 6px">
<span style="height: 5px; border-radius: 3px; background: #1E9E50"></span>
<span style="font-size: 11px; font-weight: 600; color: #146B33">On the way</span>
</div>
<div style="display: flex; flex-direction: column; gap: 6px">
<span style="height: 5px; border-radius: 3px; background: #E1E6DE"></span>
<span style="font-size: 11px; font-weight: 600; color: #5E6F65">Delivered</span>
</div>
</div>
<div style="display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #F5F8F2; border: 1px solid #E3EADF">
<span style="width: 44px; height: 44px; border-radius: 22px; background: #F5A23A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800">MK</span>
<div style="flex: 1; display: flex; flex-direction: column; gap: 2px">
<span style="font-size: 15px; font-weight: 800">Murugan K</span>
<span style="display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #4E6056">
<svg width="11" height="11" viewBox="0 0 24 24" aria-hidden="true"><path d="m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z" fill="#F5B400"/></svg>
4.9 · TN 37 BX 4521
</span>
</div>
<button aria-label="Message rider" style="width: 44px; height: 44px; border-radius: 12px; border: 1px solid #DCE5D7; background: #FFFFFF; display: flex; align-items: center; justify-content: center">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#10261A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 12a8 8 0 0 1-11.6 7.1L4 20l1-4.2A8 8 0 1 1 20 12z"/></svg>
</button>
<button aria-label="Call rider" style="width: 44px; height: 44px; border-radius: 12px; border: 0; background: #1E9E50; display: flex; align-items: center; justify-content: center">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z"/></svg>
</button>
</div>
<div style="display: flex; flex-direction: column; gap: 10px">
<div style="display: flex; align-items: center; gap: 12px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/7ab092c715.jpg" alt="" style="width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #F5F8F2">
<div style="flex: 1; display: flex; flex-direction: column">
<span style="font-size: 14px; font-weight: 700">Vine Tomatoes</span>
<span style="font-size: 11px; color: #5E6F65">500 g × 1</span>
</div>
<span style="font-size: 14px; font-weight: 800">₹38</span>
</div>
<div style="display: flex; align-items: center; gap: 12px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/9919ae6315.jpg" alt="" style="width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #F5F8F2">
<div style="flex: 1; display: flex; flex-direction: column">
<span style="font-size: 14px; font-weight: 700">Robusta Banana</span>
<span style="font-size: 11px; color: #5E6F65">1 dozen × 1</span>
</div>
<span style="font-size: 14px; font-weight: 800">₹56</span>
</div>
<div style="display: flex; align-items: center; gap: 12px">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/708643e3f7.jpg" alt="" style="width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #F5F8F2">
<div style="flex: 1; display: flex; flex-direction: column">
<span style="font-size: 14px; font-weight: 700">Toned Milk</span>
<span style="font-size: 11px; color: #5E6F65">1 L × 1</span>
</div>
<span style="font-size: 14px; font-weight: 800">₹68</span>
</div>
</div>
</div>
<div style="position: absolute; left: 16px; right: 16px; bottom: 22px; height: 64px; padding: 0 10px; border-radius: 16px; background: #FFFFFF; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 28px rgba(16,38,26,0.18); border: 1px solid #E3EADF">
<img src="https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets/67c79f9508.jpg" alt="" style="width: 46px; height: 46px; border-radius: 10px; object-fit: cover">
<div style="flex: 1; display: flex; flex-direction: column">
<span style="display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #146B33">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#146B33" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m5 12 5 5 9-10"/></svg>
Added to cart
</span>
<span style="font-size: 14px; font-weight: 800">Kiwi & citrus box</span>
<span style="font-size: 11px; color: #5E6F65">1 kg · ₹189</span>
</div>
<a href="Main.dc.html" aria-label="Open cart" style="width: 44px; height: 44px; border-radius: 12px; background: #1E9E50; display: flex; align-items: center; justify-content: center">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="20" r="1.4"/><circle cx="18" cy="20" r="1.4"/><path d="M3 4h2.5l2.2 11h11l2-8H6.4"/></svg>
</a>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
renderVals() {
return {};
}
}
</script>
</body>
</html>
```SKILL.md
Save as .claude/skills/grocery-delivery-app-ui/SKILL.md
--- name: grocery-delivery-app-ui description: Build the Quick Grocery Delivery mobile app UI in Expo React Native. Use when asked to create a grocery delivery app UI or a new screen in this visual style. --- # Quick Grocery Delivery app UI Build this food app UI in an Expo Router project with TypeScript. Reference: https://developermill.com/app-designs/grocery-delivery-app-ui-design ## Visual direction Fresh mint and white with a confident grocery green, yellow deal badges and product photos on clean white cards. Keep these signature details: - Delivery time and address header - Add buttons that turn into quantity steppers - Floating cart bar with live total and savings - Tracking map with order steps and rider card ## Set up ```bash npx expo install expo-image react-native-svg @expo-google-fonts/plus-jakarta-sans expo-font ``` ## Tokens | Name | Hex | | --- | --- | | Grocery green | `#1E9E50` | | Deep green | `#16803C` | | Mint wash | `#E3F2D6` | | Leaf | `#F3F8EE` | | Deal yellow | `#FFC93C` | | Ink | `#10261A` | - Typefaces: Plus Jakarta Sans - Text sizes (px): 10, 11, 12, 13, 14, 15, 17, 18 - Corner radii (px): 3, 10, 12, 14, 16, 18 Define these once and reuse them. Do not add new colours. ## Screens 1. **Grocery home.** Delivery time, wallet and profile, search with voice, an offer banner, categories, best sellers and a cart bar. 2. **Order tracking.** A drawn street map with store, rider and home pins, order steps, rider contact and the order items. ## Build rules - Draw each screen on a 390 × 844 artboard and scale it to the device width. - Load each custom font weight by family name with expo-font. Do not set fontWeight with custom fonts. - Draw icons, charts and illustrations with react-native-svg. - Use Pressable with an accessibilityLabel for controls, with at least a 44px target. - Navigate with router.navigate and keep sample data as constants at the top of the file. - Use expo-image with contentFit for photos. ## Done when - All routes are linked and reachable. - Colours, type and radii match the tokens above. - `npx tsc --noEmit` and `npx expo lint` pass. - The layout holds up on small and large phones.
Set up the project
npx create-expo-app@latest grocery-delivery-app --template default cd grocery-delivery-app rm -rf src npx expo install expo-image react-native-svg @expo-google-fonts/plus-jakarta-sans expo-font
src/app/_layout.tsx
import {
PlusJakartaSans_400Regular,
PlusJakartaSans_500Medium,
PlusJakartaSans_600SemiBold,
PlusJakartaSans_700Bold,
PlusJakartaSans_800ExtraBold,
} from '@expo-google-fonts/plus-jakarta-sans';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
export default function RootLayout() {
const [fontsLoaded] = useFonts({
PlusJakartaSans_400Regular,
PlusJakartaSans_500Medium,
PlusJakartaSans_600SemiBold,
PlusJakartaSans_700Bold,
PlusJakartaSans_800ExtraBold,
});
if (!fontsLoaded) return null;
return <Stack screenOptions={{ headerShown: false }} />;
}src/app/index.tsx
import { Image } from 'expo-image';
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, Text, TextInput, View } from 'react-native';
import Svg, { Circle, Path, Rect } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { asset } from '@/lib/assets';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ tomato: 1, avocado: 0 });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const t = state.tomato;
const a = state.avocado;
const items = 2 + t + a;
const total = 248 + 38 * t + 149 * a;
const saved = 60 + 14 * t + 50 * a;
return {
tomatoQty: t,
tomatoInCart: t > 0,
tomatoEmpty: t === 0,
avocadoQty: a,
avocadoInCart: a > 0,
avocadoEmpty: a === 0,
hasItems: items > 0,
cartLine: items + ' items · ₹' + total,
savedLine: 'You saved ₹' + saved,
incTomato: () => setState({ tomato: t + 1 }),
decTomato: () => setState({ tomato: Math.max(0, t - 1) }),
incAvocado: () => setState({ avocado: a + 1 }),
decAvocado: () => setState({ avocado: Math.max(0, a - 1) }),
};
}
export default function MainScreen() {
const {
tomatoQty,
tomatoInCart,
tomatoEmpty,
avocadoQty,
avocadoInCart,
avocadoEmpty,
hasItems,
cartLine,
savedLine,
incTomato,
decTomato,
incAvocado,
decAvocado,
} = useScreen();
return (
<Screen background="#F3F8EE" statusBar="dark">
<View style={{ flex: 1 }}>
<View
style={{
position: 'absolute',
left: 0,
top: 0,
width: 390,
height: 300,
backgroundColor: '#E3F2D6',
}}
/>
<View style={{ paddingTop: 56, paddingBottom: 0, paddingHorizontal: 16, gap: 14 }}>
<View
style={{
justifyContent: 'space-between',
alignItems: 'flex-start',
flexDirection: 'row',
}}>
<View style={{ gap: 2, flexShrink: 1 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 11,
color: '#16803C',
letterSpacing: 0.8,
}}>
DELIVERY IN
</Text>
<View style={{ alignItems: 'center', gap: 6, flexDirection: 'row' }}>
<Text
style={{
flexShrink: 1,
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 26,
color: '#10261A',
letterSpacing: -0.6,
lineHeight: 28.6,
}}>
11 minutes
</Text>
<Svg width="16" height="18" viewBox="0 0 24 24">
<Path d="M13 2 4 14h7l-1 8 9-12h-7l1-8z" fill="#F5B400" />
</Svg>
</View>
<Pressable
accessibilityRole="button"
style={{
alignItems: 'center',
gap: 4,
borderWidth: 0,
padding: 0,
flexDirection: 'row',
}}>
<Text
style={{
flexShrink: 1,
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 13,
color: '#10261A',
}}>
Home
</Text>
<Text
style={{
flexShrink: 1,
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 13,
color: '#4A5D52',
}}>
· RS Puram, Coimbatore
</Text>
<Svg
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="#10261A"
strokeWidth="2.4"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="m6 9 6 6 6-6" />
</Svg>
</Pressable>
</View>
<View
style={{
alignItems: 'center',
gap: 10,
paddingTop: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Wallet balance ₹240"
style={{
alignItems: 'center',
gap: 6,
height: 40,
paddingVertical: 0,
paddingHorizontal: 12,
borderRadius: 12,
borderWidth: 1,
borderColor: '#DCE7D4',
backgroundColor: '#FFFFFF',
flexShrink: 1,
flexDirection: 'row',
}}>
<Svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="#16803C"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Rect x="3" y="6" width="18" height="14" rx="3" />
<Path d="M16 13h2M3 10h18M6 6l9-3 2 3" />
</Svg>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 14,
color: '#10261A',
flexShrink: 1,
}}>
₹240
</Text>
</Pressable>
<Pressable
accessibilityRole="button"
accessibilityLabel="Profile"
style={{
width: 44,
height: 44,
borderRadius: 22,
borderWidth: 0,
backgroundColor: '#1E9E50',
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 14,
color: '#FFFFFF',
textAlign: 'center',
}}>
KS
</Text>
</Pressable>
</View>
</View>
<View
style={{
alignItems: 'center',
gap: 10,
height: 50,
paddingVertical: 0,
paddingHorizontal: 14,
borderRadius: 16,
backgroundColor: '#FFFFFF',
boxShadow: '0 2px 10px rgba(16,38,26,0.06)',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#5E6F65"
strokeWidth="2"
strokeLinecap="round">
<Circle cx="11" cy="11" r="7" />
<Path d="m20 20-3.5-3.5" />
</Svg>
<TextInput
placeholder='Search "tomato", "milk", "atta"'
placeholderTextColor="#8A8A8A"
style={{
flex: 1,
minWidth: 0,
borderWidth: 0,
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 14,
color: '#10261A',
}}
/>
<View style={{ width: 1, height: 22, backgroundColor: '#E1E7DD' }} />
<Pressable
accessibilityRole="button"
accessibilityLabel="Voice search"
style={{ borderWidth: 0, padding: 4, flexShrink: 1, flexDirection: 'row' }}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#16803C"
strokeWidth="2"
strokeLinecap="round">
<Rect x="9" y="3" width="6" height="11" rx="3" />
<Path d="M5 11a7 7 0 0 0 14 0M12 18v3" />
</Svg>
</Pressable>
</View>
<View
style={{
height: 156,
borderRadius: 20,
overflow: 'hidden',
backgroundColor: '#1C5A33',
}}>
<Image
source={{ uri: asset('631acb6850.jpg') }}
contentFit="cover"
contentPosition="right center"
style={{ position: 'absolute', right: -40, top: 0, height: 156, width: 300 }}
/>
<View style={{ padding: 18, gap: 6, width: 226 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 10,
color: '#C8EBC0',
letterSpacing: 1,
}}>
FARM FRESH
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 22,
color: '#FFFFFF',
letterSpacing: -0.4,
lineHeight: 25.3,
}}>
Flat 30% off on veggies
</Text>
<Pressable
accessibilityRole="link"
style={{
alignSelf: 'flex-start',
marginTop: 6,
paddingVertical: 8,
paddingHorizontal: 14,
borderRadius: 10,
backgroundColor: '#FFC93C',
}}>
<Text
style={{ fontFamily: 'PlusJakartaSans_700Bold', fontSize: 13, color: '#10261A' }}>
Shop now
</Text>
</Pressable>
</View>
<View
style={{ position: 'absolute', right: 14, bottom: 12, gap: 4, flexDirection: 'row' }}>
<View style={{ width: 14, height: 5, borderRadius: 3, backgroundColor: '#FFFFFF' }} />
<View
style={{
width: 5,
height: 5,
borderRadius: 3,
backgroundColor: 'rgba(255,255,255,0.55)',
}}
/>
<View
style={{
width: 5,
height: 5,
borderRadius: 3,
backgroundColor: 'rgba(255,255,255,0.55)',
}}
/>
</View>
</View>
<View style={{ flexDirection: 'row', gap: 10 }}>
<Pressable accessibilityRole="link" style={{ alignItems: 'center', gap: 6, flex: 1 }}>
<Image
source={{ uri: asset('c69c06d09d.jpg') }}
contentFit="cover"
style={{ width: 76, height: 76, borderRadius: 18, backgroundColor: '#FFFFFF' }}
/>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 12,
color: '#10261A',
}}>
Vegetables
</Text>
</Pressable>
<Pressable accessibilityRole="link" style={{ alignItems: 'center', gap: 6, flex: 1 }}>
<Image
source={{ uri: asset('41158a047e.jpg') }}
contentFit="cover"
style={{ width: 76, height: 76, borderRadius: 18, backgroundColor: '#FFFFFF' }}
/>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 12,
color: '#10261A',
}}>
Fruits
</Text>
</Pressable>
<Pressable accessibilityRole="link" style={{ alignItems: 'center', gap: 6, flex: 1 }}>
<Image
source={{ uri: asset('836a702598.jpg') }}
contentFit="cover"
style={{ width: 76, height: 76, borderRadius: 18, backgroundColor: '#FFFFFF' }}
/>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 12,
color: '#10261A',
}}>
Dairy
</Text>
</Pressable>
<Pressable accessibilityRole="link" style={{ alignItems: 'center', gap: 6, flex: 1 }}>
<Image
source={{ uri: asset('4b9c072b17.jpg') }}
contentFit="cover"
style={{ width: 76, height: 76, borderRadius: 18, backgroundColor: '#FFFFFF' }}
/>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 12,
color: '#10261A',
}}>
Bakery
</Text>
</Pressable>
</View>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 4,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 18,
color: '#10261A',
letterSpacing: -0.3,
}}>
Best sellers
</Text>
<Pressable accessibilityRole="link" style={{ flexShrink: 1 }}>
<Text
style={{ fontFamily: 'PlusJakartaSans_700Bold', fontSize: 13, color: '#16803C' }}>
See all
</Text>
</Pressable>
</View>
<View style={{ gap: 12 }}>
<View style={{ flexDirection: 'row', gap: 12 }}>
<View
style={{
backgroundColor: '#FFFFFF',
borderRadius: 18,
overflow: 'hidden',
boxShadow: '0 2px 12px rgba(16,38,26,0.06)',
flex: 1,
}}>
<View style={{ height: 112 }}>
<Image
source={{ uri: asset('7ab092c715.jpg') }}
contentFit="cover"
accessibilityLabel="Vine tomatoes"
style={{ width: '100%', height: 112 }}
/>
<Text
style={{
position: 'absolute',
left: 10,
top: 10,
paddingVertical: 3,
paddingHorizontal: 7,
borderRadius: 6,
backgroundColor: '#FFC93C',
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 10,
color: '#10261A',
}}>
27% OFF
</Text>
</View>
<View style={{ paddingTop: 10, paddingBottom: 12, paddingHorizontal: 12, gap: 4 }}>
<View style={{ alignItems: 'center', gap: 4, flexDirection: 'row' }}>
<Svg
width="11"
height="11"
viewBox="0 0 24 24"
fill="none"
stroke="#4E6056"
strokeWidth="2.4"
strokeLinecap="round">
<Circle cx="12" cy="12" r="9" />
<Path d="M12 7v5l3 2" />
</Svg>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 10,
color: '#4E6056',
flexShrink: 1,
}}>
11 MINS · 500 g
</Text>
</View>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 15,
color: '#10261A',
}}>
Vine Tomatoes
</Text>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 4,
flexDirection: 'row',
}}>
<View style={{ flexShrink: 1 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 17,
color: '#10261A',
}}>
₹38
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 11,
color: '#5E6F65',
}}>
₹52
</Text>
</View>
{tomatoInCart ? (
<View
style={{
alignItems: 'center',
height: 36,
borderRadius: 10,
backgroundColor: '#1E9E50',
flexShrink: 1,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Remove one"
onPress={decTomato}
style={{
width: 30,
height: 36,
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 18,
color: '#FFFFFF',
textAlign: 'center',
}}>
−
</Text>
</Pressable>
<Text
style={{
minWidth: 18,
flexShrink: 1,
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 14,
color: '#FFFFFF',
textAlign: 'center',
}}>
{tomatoQty}
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Add one"
onPress={incTomato}
style={{
width: 30,
height: 36,
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 18,
color: '#FFFFFF',
textAlign: 'center',
}}>
+
</Text>
</Pressable>
</View>
) : null}
{tomatoEmpty ? (
<Pressable
accessibilityRole="button"
onPress={incTomato}
style={{
height: 36,
paddingVertical: 0,
paddingHorizontal: 16,
borderRadius: 10,
borderWidth: 1.5,
borderColor: '#1E9E50',
backgroundColor: '#FFFFFF',
flexShrink: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 13,
color: '#16803C',
textAlign: 'center',
}}>
ADD
</Text>
</Pressable>
) : null}
</View>
</View>
</View>
<View
style={{
backgroundColor: '#FFFFFF',
borderRadius: 18,
overflow: 'hidden',
boxShadow: '0 2px 12px rgba(16,38,26,0.06)',
flex: 1,
}}>
<View style={{ height: 112 }}>
<Image
source={{ uri: asset('f95638415e.jpg') }}
contentFit="cover"
accessibilityLabel="Hass avocado"
style={{ width: '100%', height: 112 }}
/>
</View>
<View style={{ paddingTop: 10, paddingBottom: 12, paddingHorizontal: 12, gap: 4 }}>
<View style={{ alignItems: 'center', gap: 4, flexDirection: 'row' }}>
<Svg
width="11"
height="11"
viewBox="0 0 24 24"
fill="none"
stroke="#4E6056"
strokeWidth="2.4"
strokeLinecap="round">
<Circle cx="12" cy="12" r="9" />
<Path d="M12 7v5l3 2" />
</Svg>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 10,
color: '#4E6056',
flexShrink: 1,
}}>
11 MINS · 2 pcs
</Text>
</View>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 15,
color: '#10261A',
}}>
Hass Avocado
</Text>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 4,
flexDirection: 'row',
}}>
<View style={{ flexShrink: 1 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 17,
color: '#10261A',
}}>
₹149
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 11,
color: '#5E6F65',
}}>
₹199
</Text>
</View>
{avocadoInCart ? (
<View
style={{
alignItems: 'center',
height: 36,
borderRadius: 10,
backgroundColor: '#1E9E50',
flexShrink: 1,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Remove one"
onPress={decAvocado}
style={{
width: 30,
height: 36,
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 18,
color: '#FFFFFF',
textAlign: 'center',
}}>
−
</Text>
</Pressable>
<Text
style={{
minWidth: 18,
flexShrink: 1,
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 14,
color: '#FFFFFF',
textAlign: 'center',
}}>
{avocadoQty}
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Add one"
onPress={incAvocado}
style={{
width: 30,
height: 36,
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 18,
color: '#FFFFFF',
textAlign: 'center',
}}>
+
</Text>
</Pressable>
</View>
) : null}
{avocadoEmpty ? (
<Pressable
accessibilityRole="button"
onPress={incAvocado}
style={{
height: 36,
paddingVertical: 0,
paddingHorizontal: 16,
borderRadius: 10,
borderWidth: 1.5,
borderColor: '#1E9E50',
backgroundColor: '#FFFFFF',
flexShrink: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 13,
color: '#16803C',
textAlign: 'center',
}}>
ADD
</Text>
</Pressable>
) : null}
</View>
</View>
</View>
</View>
<View style={{ flexDirection: 'row', gap: 12 }}>
<View
style={{
backgroundColor: '#FFFFFF',
borderRadius: 18,
overflow: 'hidden',
height: 140,
flex: 1,
}}>
<Image
source={{ uri: asset('a9d539191e.jpg') }}
contentFit="cover"
accessibilityLabel="Strawberries"
style={{ width: '100%', height: 112 }}
/>
</View>
<View
style={{
backgroundColor: '#FFFFFF',
borderRadius: 18,
overflow: 'hidden',
height: 140,
flex: 1,
}}>
<Image
source={{ uri: asset('9919ae6315.jpg') }}
contentFit="cover"
accessibilityLabel="Robusta bananas"
style={{ width: '100%', height: 112 }}
/>
</View>
</View>
</View>
</View>
{hasItems ? (
<View
style={{
position: 'absolute',
left: 16,
right: 16,
bottom: 24,
height: 64,
paddingVertical: 0,
paddingLeft: 12,
paddingRight: 10,
borderRadius: 18,
backgroundColor: '#1E9E50',
alignItems: 'center',
gap: 10,
boxShadow: '0 10px 24px rgba(22,128,60,0.35)',
flexDirection: 'row',
}}>
<View style={{ flexShrink: 1, flexDirection: 'row' }}>
<Image
source={{ uri: asset('7ab092c715.jpg') }}
contentFit="cover"
style={{
width: 38,
height: 38,
borderRadius: 10,
borderWidth: 2,
borderColor: '#1E9E50',
backgroundColor: '#FFFFFF',
}}
/>
<Image
source={{ uri: asset('9919ae6315.jpg') }}
contentFit="cover"
style={{
width: 38,
height: 38,
borderRadius: 10,
borderWidth: 2,
borderColor: '#1E9E50',
backgroundColor: '#FFFFFF',
marginLeft: -12,
}}
/>
<Image
source={{ uri: asset('708643e3f7.jpg') }}
contentFit="cover"
style={{
width: 38,
height: 38,
borderRadius: 10,
borderWidth: 2,
borderColor: '#1E9E50',
backgroundColor: '#FFFFFF',
marginLeft: -12,
}}
/>
</View>
<View style={{ flex: 1 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 15,
color: '#FFFFFF',
}}>
{cartLine}
</Text>
<Text
style={{ fontFamily: 'PlusJakartaSans_500Medium', fontSize: 11, color: '#E2F5E6' }}>
{savedLine}
</Text>
</View>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/tracking')}
style={{
alignItems: 'center',
gap: 4,
height: 44,
paddingVertical: 0,
paddingHorizontal: 14,
borderRadius: 12,
backgroundColor: '#FFFFFF',
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#16803C',
flexShrink: 1,
}}>
View cart
</Text>
<Svg
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="#16803C"
strokeWidth="2.6"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="m9 6 6 6-6 6" />
</Svg>
</Pressable>
</View>
) : null}
</View>
</Screen>
);
}src/app/tracking.tsx
import { Image } from 'expo-image';
import { router } from 'expo-router';
import { Pressable, Text, View } from 'react-native';
import Svg, { Circle, G, Path, Rect, Text as SvgText } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { asset } from '@/lib/assets';
export default function TrackingScreen() {
return (
<Screen background="#FFFFFF" statusBar="dark">
<View style={{ flex: 1 }}>
<Svg
width="390"
height="480"
viewBox="0 0 390 480"
style={{ position: 'absolute', left: 0, top: 0 }}>
<Rect width="390" height="480" fill="#E8EBE3" />
<Rect x="84" y="74" width="72" height="62" rx="6" fill="#CFE6C3" />
<Rect x="284" y="254" width="62" height="62" rx="6" fill="#CFE6C3" />
<Rect x="0" y="164" width="56" height="62" rx="6" fill="#CFE6C3" />
<Rect x="184" y="344" width="72" height="44" rx="6" fill="#CFE6C3" />
<Rect x="184" y="74" width="72" height="62" rx="6" fill="#DEE2D8" />
<Rect x="84" y="254" width="72" height="62" rx="6" fill="#DEE2D8" />
<G stroke="#FFFFFF" strokeWidth="14">
<Path d="M0 60H390M0 150H390M0 240H390M0 330H390" />
<Path d="M70 0V480M170 0V480M270 0V480M360 0V480" />
</G>
<G stroke="#F6F7F3" strokeWidth="5">
<Path d="M0 105H390M0 195H390M0 285H390M120 0V420M220 0V420M315 0V420" />
</G>
<Path
d="M-10 450C60 400 110 470 190 430S320 380 400 410"
stroke="#BCDDF2"
strokeWidth="30"
fill="none"
/>
<SvgText
x="276"
y="420"
fontFamily="PlusJakartaSans_700Bold"
fontSize="9"
fill="#7C8A80"
transform="rotate(-90 276 420)">
MAIN RD
</SvgText>
<SvgText x="360" y="236" fontFamily="PlusJakartaSans_700Bold" fontSize="9" fill="#7C8A80">
TRICHY RD
</SvgText>
<Path
d="M300 150V215H230V330H70V392"
stroke="#1E9E50"
strokeWidth="6"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
/>
</Svg>
<View
style={{
position: 'absolute',
left: 279,
top: 120,
width: 46,
height: 46,
borderRadius: 14,
backgroundColor: '#FFFFFF',
borderWidth: 2,
borderColor: '#1E9E50',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 4px 12px rgba(16,38,26,0.15)',
flexDirection: 'row',
}}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#16803C"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
accessibilityRole="image"
accessibilityLabel="Store">
<Path d="M4 9 5.5 4h13L20 9M4 9h16v2a3 3 0 0 1-6 0 3 3 0 0 1-4 0 3 3 0 0 1-6 0V9zM5 13v7h14v-7M10 20v-4h4v4" />
</Svg>
</View>
<View
style={{
position: 'absolute',
left: 210,
top: 268,
width: 40,
height: 40,
borderRadius: 20,
backgroundColor: '#1E9E50',
borderWidth: 4,
borderColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 0 0 8px rgba(30,158,80,0.2)',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#FFFFFF"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
accessibilityRole="image"
accessibilityLabel="Delivery partner">
<Circle cx="6" cy="17" r="3" />
<Circle cx="18" cy="17" r="3" />
<Path d="M6 17h6l3-6h-4M15 11l3 6M13 7h3" />
</Svg>
</View>
<Text
style={{
position: 'absolute',
left: 248,
top: 238,
paddingVertical: 6,
paddingHorizontal: 10,
borderRadius: 8,
backgroundColor: '#10261A',
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 12,
color: '#FFFFFF',
}}>
1.2 km · 9 min
</Text>
<View
style={{
position: 'absolute',
left: 50,
top: 372,
width: 40,
height: 40,
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
borderBottomRightRadius: 20,
borderBottomLeftRadius: 4,
transform: [{ rotate: '-45deg' }],
backgroundColor: '#10261A',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 4px 12px rgba(16,38,26,0.25)',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#FFFFFF"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round"
accessibilityRole="image"
accessibilityLabel="Your home"
style={{ transform: [{ rotate: '45deg' }] }}>
<Path d="M4 11 12 4l8 7M6 10v9h12v-9" />
</Svg>
</View>
<View
style={{
position: 'absolute',
left: 16,
right: 16,
top: 56,
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: 14,
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 4px 12px rgba(16,38,26,0.12)',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#10261A"
strokeWidth="2.4"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="m15 6-6 6 6 6" />
</Svg>
</Pressable>
<Text
style={{
paddingVertical: 10,
paddingHorizontal: 16,
borderRadius: 12,
backgroundColor: '#FFFFFF',
boxShadow: '0 4px 12px rgba(16,38,26,0.12)',
flexShrink: 1,
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#10261A',
}}>
Order #KV2381
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Call support"
style={{
width: 44,
height: 44,
borderRadius: 14,
borderWidth: 0,
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 4px 12px rgba(16,38,26,0.12)',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#16803C"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z" />
</Svg>
</Pressable>
</View>
<View
style={{
position: 'absolute',
left: 0,
right: 0,
top: 448,
bottom: 0,
backgroundColor: '#FFFFFF',
borderTopLeftRadius: 28,
borderTopRightRadius: 28,
borderBottomRightRadius: 0,
borderBottomLeftRadius: 0,
boxShadow: '0 -8px 24px rgba(16,38,26,0.08)',
paddingTop: 10,
paddingBottom: 0,
paddingHorizontal: 18,
gap: 14,
}}>
<View
style={{
alignSelf: 'center',
width: 40,
height: 4,
borderRadius: 2,
backgroundColor: '#D7DDD4',
}}
/>
<View
style={{
justifyContent: 'space-between',
alignItems: 'flex-end',
flexDirection: 'row',
}}>
<View style={{ flexShrink: 1 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 12,
color: '#4E6056',
}}>
Arriving in
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 28,
color: '#10261A',
letterSpacing: -0.6,
lineHeight: 30.8,
}}>
9 mins
</Text>
</View>
<Text
style={{
paddingVertical: 6,
paddingHorizontal: 12,
borderRadius: 10,
backgroundColor: '#E3F4E7',
flexShrink: 1,
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 12,
color: '#146B33',
}}>
On time
</Text>
</View>
<View style={{ flexDirection: 'row', gap: 6 }}>
<View style={{ gap: 6, flex: 1 }}>
<View style={{ height: 5, borderRadius: 3, backgroundColor: '#1E9E50' }} />
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 11,
color: '#146B33',
}}>
Confirmed
</Text>
</View>
<View style={{ gap: 6, flex: 1 }}>
<View style={{ height: 5, borderRadius: 3, backgroundColor: '#1E9E50' }} />
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 11,
color: '#146B33',
}}>
Packed
</Text>
</View>
<View style={{ gap: 6, flex: 1 }}>
<View style={{ height: 5, borderRadius: 3, backgroundColor: '#1E9E50' }} />
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 11,
color: '#146B33',
}}>
On the way
</Text>
</View>
<View style={{ gap: 6, flex: 1 }}>
<View style={{ height: 5, borderRadius: 3, backgroundColor: '#E1E6DE' }} />
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 11,
color: '#5E6F65',
}}>
Delivered
</Text>
</View>
</View>
<View
style={{
alignItems: 'center',
gap: 12,
padding: 12,
borderRadius: 16,
backgroundColor: '#F5F8F2',
borderWidth: 1,
borderColor: '#E3EADF',
flexDirection: 'row',
}}>
<View
style={{
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: '#F5A23A',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#FFFFFF',
flexShrink: 1,
}}>
MK
</Text>
</View>
<View style={{ flex: 1, gap: 2 }}>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 15,
color: '#10261A',
}}>
Murugan K
</Text>
<View style={{ alignItems: 'center', gap: 4, flexDirection: 'row' }}>
<Svg width="11" height="11" viewBox="0 0 24 24">
<Path
d="m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z"
fill="#F5B400"
/>
</Svg>
<Text
style={{
fontFamily: 'PlusJakartaSans_600SemiBold',
fontSize: 11,
color: '#4E6056',
flexShrink: 1,
}}>
4.9 · TN 37 BX 4521
</Text>
</View>
</View>
<Pressable
accessibilityRole="button"
accessibilityLabel="Message rider"
style={{
width: 44,
height: 44,
borderRadius: 12,
borderWidth: 1,
borderColor: '#DCE5D7',
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#10261A"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M20 12a8 8 0 0 1-11.6 7.1L4 20l1-4.2A8 8 0 1 1 20 12z" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="button"
accessibilityLabel="Call rider"
style={{
width: 44,
height: 44,
borderRadius: 12,
borderWidth: 0,
backgroundColor: '#1E9E50',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#FFFFFF"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z" />
</Svg>
</Pressable>
</View>
<View style={{ gap: 10 }}>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<Image
source={{ uri: asset('7ab092c715.jpg') }}
contentFit="cover"
style={{ width: 42, height: 42, borderRadius: 10, backgroundColor: '#F5F8F2' }}
/>
<View style={{ flex: 1 }}>
<Text
style={{ fontFamily: 'PlusJakartaSans_700Bold', fontSize: 14, color: '#10261A' }}>
Vine Tomatoes
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 11,
color: '#5E6F65',
}}>
500 g × 1
</Text>
</View>
<Text
style={{
flexShrink: 1,
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#10261A',
}}>
₹38
</Text>
</View>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<Image
source={{ uri: asset('9919ae6315.jpg') }}
contentFit="cover"
style={{ width: 42, height: 42, borderRadius: 10, backgroundColor: '#F5F8F2' }}
/>
<View style={{ flex: 1 }}>
<Text
style={{ fontFamily: 'PlusJakartaSans_700Bold', fontSize: 14, color: '#10261A' }}>
Robusta Banana
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 11,
color: '#5E6F65',
}}>
1 dozen × 1
</Text>
</View>
<Text
style={{
flexShrink: 1,
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#10261A',
}}>
₹56
</Text>
</View>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<Image
source={{ uri: asset('708643e3f7.jpg') }}
contentFit="cover"
style={{ width: 42, height: 42, borderRadius: 10, backgroundColor: '#F5F8F2' }}
/>
<View style={{ flex: 1 }}>
<Text
style={{ fontFamily: 'PlusJakartaSans_700Bold', fontSize: 14, color: '#10261A' }}>
Toned Milk
</Text>
<Text
style={{
fontFamily: 'PlusJakartaSans_400Regular',
fontSize: 11,
color: '#5E6F65',
}}>
1 L × 1
</Text>
</View>
<Text
style={{
flexShrink: 1,
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#10261A',
}}>
₹68
</Text>
</View>
</View>
</View>
<View
style={{
position: 'absolute',
left: 16,
right: 16,
bottom: 22,
height: 66,
paddingVertical: 0,
paddingHorizontal: 10,
borderRadius: 16,
backgroundColor: '#FFFFFF',
alignItems: 'center',
gap: 10,
boxShadow: '0 10px 28px rgba(16,38,26,0.18)',
borderWidth: 1,
borderColor: '#E3EADF',
flexDirection: 'row',
}}>
<Image
source={{ uri: asset('67c79f9508.jpg') }}
contentFit="cover"
style={{ width: 46, height: 46, borderRadius: 10 }}
/>
<View style={{ flex: 1 }}>
<View style={{ alignItems: 'center', gap: 4, flexDirection: 'row' }}>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#146B33"
strokeWidth="3"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="m5 12 5 5 9-10" />
</Svg>
<Text
style={{
fontFamily: 'PlusJakartaSans_700Bold',
fontSize: 11,
color: '#146B33',
flexShrink: 1,
}}>
Added to cart
</Text>
</View>
<Text
style={{
fontFamily: 'PlusJakartaSans_800ExtraBold',
fontSize: 14,
color: '#10261A',
}}>
{'Kiwi & citrus box'}
</Text>
<Text
style={{ fontFamily: 'PlusJakartaSans_400Regular', fontSize: 11, color: '#5E6F65' }}>
1 kg · ₹189
</Text>
</View>
<Pressable
accessibilityRole="link"
accessibilityLabel="Open cart"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: 12,
backgroundColor: '#1E9E50',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#FFFFFF"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Circle cx="9" cy="20" r="1.4" />
<Circle cx="18" cy="20" r="1.4" />
<Path d="M3 4h2.5l2.2 11h11l2-8H6.4" />
</Svg>
</Pressable>
</View>
</View>
</Screen>
);
}src/components/screen.tsx
import { StatusBar } from 'expo-status-bar';
import type { ReactNode } from 'react';
import { ScrollView, useWindowDimensions, View } from 'react-native';
// Every screen is drawn on a 390 wide artboard, then scaled to the device width.
const ARTBOARD_WIDTH = 390;
type Props = {
background: string;
statusBar: 'light' | 'dark';
height?: number;
children: ReactNode;
};
export function Screen({ background, statusBar, height: artboardHeight = 844, children }: Props) {
const { width, height } = useWindowDimensions();
const scale = width / ARTBOARD_WIDTH;
return (
<ScrollView
bounces={false}
showsVerticalScrollIndicator={false}
style={{ flex: 1, backgroundColor: background }}
contentContainerStyle={{ height: Math.max(artboardHeight * scale, height) }}>
<StatusBar style={statusBar} />
<View
style={{
width: ARTBOARD_WIDTH,
height: artboardHeight,
overflow: 'hidden',
transformOrigin: 'left top',
transform: [{ scale }],
}}>
{children}
</View>
</ScrollView>
);
}src/lib/assets.ts
// Demo images are hosted by DeveloperMill. Point this at your own CDN, or swap to require().
const ASSET_BASE = 'https://developermill.com/app-designs/grocery-delivery-app-ui-design/assets';
export const asset = (name: string) => `${ASSET_BASE}/${name}`;About this design
Quantity steppers update a floating cart bar with the item count, total and savings. The tracking screen shows the rider on a drawn map with order steps, rider details and the items on the way.
Fresh mint and white with a confident grocery green, yellow deal badges and product photos on clean white cards.
- Delivery time and address header
- Add buttons that turn into quantity steppers
- Floating cart bar with live total and savings
- Tracking map with order steps and rider card
Colour palette
Grocery green
#1E9E50
Deep green
#16803C
Mint wash
#E3F2D6
Leaf
#F3F8EE
Deal yellow
#FFC93C
Ink
#10261A
How to use this design
- 01
Pick what to copy
Copy the Quick Grocery Delivery artifact, skill or code from this page.
- 02
Run it or generate it
Paste the code into a new Expo app and start it, or give the skill to your AI coding agent.
- 03
Make it yours
Replace the demo images and sample content, then connect your own data.
Frequently asked questions
Do the quantity buttons work?
Yes. ADD turns into a stepper, and the cart bar updates the item count, total and savings as quantities change.
Is the tracking map live?
It is drawn with react-native-svg so it runs with no API key. Swap in react-native-maps and your rider location feed for live tracking.
Can prices use another currency?
Yes. Prices are plain text in the sample data, so rupees can become dollars or euros.
Is the Quick Grocery Delivery design free to use?
Yes. The design, skill and Expo code are free and MIT licensed, including for commercial apps. Replace the demo images and sample content with your own before you ship.
What is the difference between the artifact, skill and code?
The artifact is the full design: tokens, screens and source. The skill is a SKILL.md that teaches an AI coding agent to build the UI. The code is the finished Expo app you can paste in and run.
Which Expo version does the code use?
It targets Expo SDK 58 with Expo Router and TypeScript. It uses packages installed through npx expo install, with no custom native code.



