// Shopping app UI
Tool Rental App UI Design in Expo
This tool rental app UI makes hiring equipment as easy as shopping. The home screen offers category rings, popular rentals with daily prices and a row of top searches.
- Screens
- 3
- Built with
- Expo SDK 58
- Fonts
- Inter
- License
- Free (MIT)
- Views
- 1

Tool and Equipment Rental app screens

Rental home
A greeting, category rings, popular rental cards with daily prices and a top searches row.

Search tools
A search field, a popular heading and a two column grid of tools with prices and open buttons.

Tool detail
A drill cut-out, price and rating, a rental day picker, a description, quantity stepper and total.
Copy the Tool and Equipment Rental 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
# Tool and Equipment Rental: design artifact
This tool rental app UI makes hiring equipment as easy as shopping. The home screen offers category rings, popular rentals with daily prices and a row of top searches.
- Type: Shopping mobile app UI
- Screens: 3
- Artboard: 390 × 844
- Target: Expo SDK 58, Expo Router, TypeScript, expo-image, expo-linear-gradient, react-native-svg
- Live page: https://developermill.com/app-designs/tool-rental-app-ui-design
## Design direction
A warm yellow fade into white with black pill buttons, rounded cards and product cut-outs of power tools and machines.
- Category rings with selected state
- Popular rentals with daily prices
- Search that filters results as you type
- Rental day picker and live total
## Foundations
### Colour
| Token | Hex |
| --- | --- |
| Tool yellow | `#FFC727` |
| Honey | `#F5B800` |
| Cream | `#FFF3C9` |
| Ink | `#111111` |
| Stone | `#F2F0EB` |
| Bronze | `#B07A00` |
### Typography
- Typefaces: Inter
- Common sizes (px): 10, 11, 12, 13, 14, 15, 16, 19
### Shape and depth
- Common corner radii (px): 16, 18, 20, 22, 23, 24
- Shadows: `0 2px 8px rgba(0,0,0,0.04)`
## Screens
### 1. Rental home
A greeting, category rings, popular rental cards with daily prices and a top searches row.
Preview: https://developermill.com/app-designs/tool-rental-app-ui-design/home.webp
Copy on this screen:
- Hello
- Michael!
- Available for you
- See All
- Popular
- 4.9
- Power Drill
- $9
- /Per Day
- View details
- Generator
- $29
- Top Searching
### 2. Search tools
A search field, a popular heading and a two column grid of tools with prices and open buttons.
Preview: https://developermill.com/app-designs/tool-rental-app-ui-design/search.webp
Copy on this screen:
- Search tools
- Popular
- See All
- 4.9
- /Per Day
### 3. Tool detail
A drill cut-out, price and rating, a rental day picker, a description, quantity stepper and total.
Preview: https://developermill.com/app-designs/tool-rental-app-ui-design/tool.webp
Copy on this screen:
- Tools Detail
- Bosch Hammer Drill
- $18
- / per day
- 4.9(9k)
- Rental duration option
- Heavy-duty drill suitable for concrete, steel, and masonry work for professional construction
- ...Read more
- Book now
## Full source
The original artboards as HTML. Image URLs point at the hosted demo assets.
### Rental home (Main)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>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=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body{margin:0}
a{color:#1A1A1A;text-decoration:none}a:hover{color:#000}
.hscroll{scrollbar-width:none}.hscroll::-webkit-scrollbar{display:none}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; overflow: hidden; position: relative; font-family: Inter, system-ui, sans-serif; color: #1A1A1A; background: linear-gradient(180deg, #FFF3C9 0px, #FFFBEE 260px, #FFFFFF 420px); padding-top: 58px; display: flex; flex-direction: column">
<div style="display: flex; justify-content: space-between; align-items: flex-start; padding: 0 22px">
<h1 style="margin: 0; font-size: 34px; line-height: 40px; font-weight: 500; letter-spacing: -0.5px">Hello<br>Michael!</h1>
<div style="display: flex; gap: 12px; align-items: center">
<a href="Search.dc.html" aria-label="Search tools" style="width: 46px; height: 46px; border-radius: 23px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04)">
<svg aria-hidden="true" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-3.5-3.5"></path></svg>
</a>
<img src="https://developermill.com/app-designs/tool-rental-app-ui-design/assets/04c2e2a43b.jpg" alt="Michael's profile photo" style="width: 46px; height: 46px; border-radius: 23px; object-fit: cover; border: 2px solid #FFFFFF; box-sizing: border-box">
</div>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 22px; margin-top: 26px">
<h2 style="margin: 0; font-size: 19px; font-weight: 500">Available for you</h2>
<a href="Search.dc.html" style="font-size: 13px; font-weight: 500">See All</a>
</div>
<div class="hscroll" style="display: flex; gap: 12px; padding: 14px 22px 4px; overflow-x: auto">
<sc-for list="{{cats}}" as="c" hint-placeholder-count="6">
<button aria-label="{{c.label}}" onClick="{{c.pick}}" style="{{c.ring}}">
<img src="{{c.img}}" alt="" style="width: 38px; height: 38px; object-fit: contain">
</button>
</sc-for>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 22px; margin-top: 22px">
<h2 style="margin: 0; font-size: 19px; font-weight: 500">Popular</h2>
<a href="Search.dc.html" style="font-size: 13px; font-weight: 500">See All</a>
</div>
<div class="hscroll" style="display: flex; gap: 12px; padding: 14px 22px 0; overflow-x: auto">
<div style="flex: 0 0 300px; height: 236px; border-radius: 24px; overflow: hidden; position: relative; background: #F7EAB9">
<img src="https://developermill.com/app-designs/tool-rental-app-ui-design/assets/ae79ef9746.jpg" alt="Worker in a hard hat holding a cordless power drill" style="position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%">
<div style="position: absolute; top: 14px; right: 14px; width: 40px; height: 52px; border-radius: 20px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px">
<svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="#1A1A1A"><path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z"></path></svg>
<span style="font-size: 11px; font-weight: 600">4.9</span>
</div>
<div style="position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 14px 16px; display: flex; justify-content: space-between; align-items: flex-end; background: linear-gradient(180deg, rgba(247,234,185,0) 0%, rgba(247,234,185,0.92) 55%)">
<div style="display: flex; flex-direction: column; gap: 3px">
<span style="font-size: 15px; font-weight: 600">Power Drill</span>
<span style="font-size: 13px; font-weight: 600">$9 <span style="font-size: 11px; font-weight: 400; color: #4A4A4A">/Per Day</span></span>
</div>
<a href="Detail.dc.html" style="height: 40px; padding: 0 18px; border-radius: 20px; background: #111111; color: #FFFFFF; font-size: 13px; font-weight: 500; display: flex; align-items: center">View details</a>
</div>
</div>
<div style="flex: 0 0 300px; height: 236px; border-radius: 24px; overflow: hidden; position: relative; background: #F1EFEA">
<img src="https://developermill.com/app-designs/tool-rental-app-ui-design/assets/042526a870.png" alt="Portable generator" style="position: absolute; left: 50%; top: 22px; transform: translateX(-50%); height: 150px; object-fit: contain">
<div style="position: absolute; left: 16px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end">
<div style="display: flex; flex-direction: column; gap: 3px">
<span style="font-size: 15px; font-weight: 600">Generator</span>
<span style="font-size: 13px; font-weight: 600">$29 <span style="font-size: 11px; font-weight: 400; color: #4A4A4A">/Per Day</span></span>
</div>
<a href="Detail.dc.html" style="height: 40px; padding: 0 18px; border-radius: 20px; background: #111111; color: #FFFFFF; font-size: 13px; font-weight: 500; display: flex; align-items: center">View details</a>
</div>
</div>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 22px; margin-top: 24px">
<h2 style="margin: 0; font-size: 19px; font-weight: 500">Top Searching</h2>
<a href="Search.dc.html" style="font-size: 13px; font-weight: 500">See All</a>
</div>
<div class="hscroll" style="display: flex; gap: 12px; padding: 14px 22px 0; overflow-x: auto">
<sc-for list="{{top}}" as="t" hint-placeholder-count="3">
<a href="Detail.dc.html" style="flex: 0 0 166px; height: 170px; border-radius: 20px; background: #F6EBC2; position: relative; overflow: hidden; display: block">
<span style="position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 500">{{t.name}}</span>
<span style="position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px">
<svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="#1A1A1A"><path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z"></path></svg>
<span style="font-size: 10px; font-weight: 600">4.9</span>
</span>
<img src="{{t.img}}" alt="{{t.name}}" style="position: absolute; left: 10px; right: 10px; bottom: 14px; width: calc(100% - 20px); height: 104px; object-fit: contain">
</a>
</sc-for>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#F5B800","options":["#F5B800","#FF8A00","#2F80ED"]},"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { cat: 1 }; }
renderVals() {
const accent = this.props.accent ?? '#F5B800';
const base = [
{ label: 'Generators', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/042526a870.png' },
{ label: 'Drills', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/74b110d5ed.png' },
{ label: 'Air compressors', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/cd0a342d14.png' },
{ label: 'Chainsaws', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/14ad8bff76.png' },
{ label: 'Circular saws', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/c8bb53d539.png' },
{ label: 'Excavators', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/28e96765c9.png' }
];
const cats = base.map((c, i) => ({
...c,
pick: () => this.setState({ cat: i }),
ring: 'flex: 0 0 auto; width: 56px; height: 56px; border-radius: 28px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #FFFFFF; box-sizing: border-box; border: ' + (this.state.cat === i ? '2px solid ' + accent : '1px solid #EFEDE6')
}));
const top = [
{ name: 'Generator', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/042526a870.png' },
{ name: 'Concrete Mixer', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/c5dc5cb2d3.png' },
{ name: 'Excavator', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/28e96765c9.png' }
];
return { cats, top };
}
}
</script>
</body>
</html>
```
### Search tools (Search)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Search tools</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=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body{margin:0}
a{color:#1A1A1A;text-decoration:none}a:hover{color:#000}
.q::placeholder{color:#6B6B6B}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; overflow: hidden; font-family: Inter, system-ui, sans-serif; color: #1A1A1A; background: linear-gradient(180deg, #FFF3C9 0px, #FFFBEE 220px, #FFFFFF 380px); padding-top: 54px; display: flex; flex-direction: column">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 20px">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 22px; background: #FFFFFF; display: flex; align-items: center; justify-content: center">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 5l-7 7 7 7"></path></svg>
</a>
<h1 style="margin: 0; font-size: 19px; font-weight: 500">Search tools</h1>
<button aria-label="Notifications" style="width: 44px; height: 44px; border-radius: 22px; background: #FFFFFF; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer">
<svg aria-hidden="true" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z"></path><path d="M10 21h4"></path></svg>
</button>
</div>
<div style="display: flex; align-items: center; gap: 10px; margin: 20px 20px 0; height: 50px; border-radius: 25px; background: #FFFFFF; padding: 0 8px 0 16px">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-3.5-3.5"></path></svg>
<label for="q" style="position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0)">Search tools</label>
<input id="q" class="q" type="search" placeholder="Search" value="{{query}}" onChange="{{onQuery}}" style="flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: #1A1A1A">
<button aria-label="Filters" style="width: 40px; height: 40px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer">
<svg aria-hidden="true" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="1.8" stroke-linecap="round"><path d="M4 7h10M18 7h2M4 17h2M10 17h10"></path><circle cx="16" cy="7" r="2"></circle><circle cx="8" cy="17" r="2"></circle></svg>
</button>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-top: 22px">
<h2 style="margin: 0; font-size: 19px; font-weight: 500">Popular</h2>
<a href="Search.dc.html" style="font-size: 13px; font-weight: 500">See All</a>
</div>
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 20px 0">
<sc-for list="{{items}}" as="it" hint-placeholder-count="6">
<div style="height: 184px; border-radius: 18px; background: #F2F0EB; position: relative; overflow: hidden">
<span style="position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px">
<svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="#1A1A1A"><path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z"></path></svg>
<span style="font-size: 10px; font-weight: 600">4.9</span>
</span>
<img src="{{it.img}}" alt="{{it.name}}" style="position: absolute; left: 12px; top: 18px; width: calc(100% - 40px); height: 108px; object-fit: contain">
<div style="position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px">
<span style="font-size: 12px; font-weight: 500">{{it.name}}</span>
<span style="font-size: 10px; color: #4A4A4A"><strong style="color: #1A1A1A">{{it.price}}</strong>/Per Day</span>
</div>
<a href="Detail.dc.html" aria-label="Open {{it.name}}" style="position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 16px; background: #111111; display: flex; align-items: center; justify-content: center">
<svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 17L17 7M9 7h8v8"></path></svg>
</a>
</div>
</sc-for>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { query: '' }; }
renderVals() {
const all = [
{ name: 'Power Drill', price: '$5', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/74b110d5ed.png' },
{ name: 'Generator', price: '$29', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/042526a870.png' },
{ name: 'Cutting Machine', price: '$5', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/14ad8bff76.png' },
{ name: 'Concrete Mixer', price: '$199', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/c5dc5cb2d3.png' },
{ name: 'Construction excavator', price: '$99', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/28e96765c9.png' },
{ name: 'Construction truck', price: '$199', img: 'https://developermill.com/app-designs/tool-rental-app-ui-design/assets/d96e8ccb9c.png' }
];
const q = (this.state.query || '').trim().toLowerCase();
return {
query: this.state.query,
onQuery: (e) => this.setState({ query: e.target.value }),
items: q ? all.filter((x) => x.name.toLowerCase().indexOf(q) > -1) : all
};
}
}
</script>
</body>
</html>
```
### Tool detail (Detail)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tools detail</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=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body{margin:0}
a{color:#1A1A1A}a:hover{color:#000}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; overflow: hidden; position: relative; font-family: Inter, system-ui, sans-serif; color: #1A1A1A; background: linear-gradient(180deg, #FFF0BF 0px, #FFF8E2 300px, #FFFFFF 400px); padding-top: 54px; display: flex; flex-direction: column">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 20px">
<a href="Search.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 22px; background: #FFFFFF; display: flex; align-items: center; justify-content: center">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 5l-7 7 7 7"></path></svg>
</a>
<h1 style="margin: 0; font-size: 19px; font-weight: 500">Tools Detail</h1>
<button aria-label="{{favLabel}}" aria-pressed="{{fav}}" onClick="{{toggleFav}}" style="width: 44px; height: 44px; border-radius: 22px; background: #FFFFFF; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer">
<svg aria-hidden="true" width="19" height="19" viewBox="0 0 24 24" fill="{{heartFill}}" stroke="{{heartStroke}}" stroke-width="1.8" stroke-linejoin="round"><path d="M12 20s-7.5-4.6-9-9.3C1.9 7.2 4.2 4 7.6 4c2 0 3.4 1.1 4.4 2.6C13 5.1 14.4 4 16.4 4c3.4 0 5.7 3.2 4.6 6.7C19.5 15.4 12 20 12 20z"></path></svg>
</button>
</div>
<div style="height: 244px; display: flex; align-items: center; justify-content: center; margin-top: 4px">
<img src="https://developermill.com/app-designs/tool-rental-app-ui-design/assets/74b110d5ed.png" alt="Yellow cordless hammer drill" style="width: 300px; height: 225px; object-fit: contain">
</div>
<div style="padding: 0 20px; display: flex; flex-direction: column">
<div style="display: flex; justify-content: space-between; align-items: baseline">
<h2 style="margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.2px">Bosch Hammer Drill</h2>
<span style="font-size: 18px; font-weight: 600">$18 <span style="font-size: 13px; font-weight: 400; color: #4A4A4A">/ per day</span></span>
</div>
<div style="display: flex; align-items: center; gap: 6px; margin-top: 10px">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="{{accentDark}}" stroke-width="1.8" stroke-linejoin="round"><path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z"></path></svg>
<span style="font-size: 14px; color: #3D3D3D">4.9(9k)</span>
</div>
<h3 style="margin: 22px 0 0; font-size: 16px; font-weight: 500">Rental duration option</h3>
<div role="radiogroup" aria-label="Rental duration in days" style="display: flex; gap: 10px; margin-top: 14px">
<sc-for list="{{days}}" as="d" hint-placeholder-count="6">
<button role="radio" aria-checked="{{d.on}}" aria-label="{{d.aria}}" onClick="{{d.pick}}" style="{{d.style}}">{{d.label}}</button>
</sc-for>
</div>
<p style="margin: 22px 0 0; font-size: 13px; line-height: 20px; color: #4A4A4A; max-width: 280px">Heavy-duty drill suitable for concrete, steel, and masonry work for professional construction <a href="#more" style="color: #1A1A1A; font-weight: 600; text-decoration: none">...Read more</a></p>
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 26px">
<span style="font-size: 22px; font-weight: 600; color: {{accentDark}}">{{total}} <span style="font-size: 13px; font-weight: 400; color: #4A4A4A">/ {{dayLabel}}</span></span>
<div style="display: flex; align-items: center; gap: 14px">
<button aria-label="Decrease quantity" onClick="{{dec}}" style="width: 46px; height: 46px; border-radius: 23px; background: #111111; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round"><path d="M5 12h14"></path></svg>
</button>
<span aria-live="polite" style="font-size: 18px; font-weight: 500; min-width: 14px; text-align: center">{{qty}}</span>
<button aria-label="Increase quantity" onClick="{{inc}}" style="width: 46px; height: 46px; border-radius: 23px; background: #FFFFFF; border: 1.5px solid #1A1A1A; box-sizing: border-box; display: flex; align-items: center; justify-content: center; cursor: pointer">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#1A1A1A" stroke-width="2" stroke-linecap="round"><path d="M5 12h14M12 5v14"></path></svg>
</button>
</div>
</div>
<button style="margin-top: 24px; height: 54px; border-radius: 27px; border: 0; background: {{accent}}; color: #1A1A1A; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer">Book now</button>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#FFC727","options":["#FFC727","#FF9F1C","#7BC6FF"]},"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { days: 2, qty: 1, fav: false }; }
renderVals() {
const accent = this.props.accent ?? '#FFC727';
const accentDark = '#B07A00';
const s = this.state;
const days = [1, 2, 3, 4, 5, 6].map((n) => {
const on = s.days === n;
return {
label: n + ' D',
aria: n + (n === 1 ? ' day' : ' days'),
on,
pick: () => this.setState({ days: n }),
style: 'flex: 0 0 auto; width: 46px; height: 46px; border-radius: 23px; box-sizing: border-box; cursor: pointer; font: inherit; font-size: 12px; ' +
(on ? 'background: #FFF8E1; border: 1.5px solid ' + accent + '; color: ' + accentDark + '; font-weight: 600'
: 'background: #FFFFFF; border: 1px solid #E6E4DE; color: #6B6B6B')
};
});
return {
accent, accentDark, days,
qty: s.qty,
total: '$' + (18 * s.days * s.qty),
dayLabel: s.days + (s.days === 1 ? ' day' : ' day'),
inc: () => this.setState({ qty: Math.min(9, s.qty + 1) }),
dec: () => this.setState({ qty: Math.max(1, s.qty - 1) }),
fav: s.fav,
favLabel: s.fav ? 'Remove from favourites' : 'Add to favourites',
heartFill: s.fav ? '#E5484D' : 'none',
heartStroke: s.fav ? '#E5484D' : '#1A1A1A',
toggleFav: () => this.setState({ fav: !s.fav })
};
}
}
</script>
</body>
</html>
```SKILL.md
Save as .claude/skills/tool-rental-app-ui/SKILL.md
--- name: tool-rental-app-ui description: Build the Tool and Equipment Rental mobile app UI in Expo React Native. Use when asked to create a tool rental app UI or a new screen in this visual style. --- # Tool and Equipment Rental app UI Build this shopping app UI in an Expo Router project with TypeScript. Reference: https://developermill.com/app-designs/tool-rental-app-ui-design ## Visual direction A warm yellow fade into white with black pill buttons, rounded cards and product cut-outs of power tools and machines. Keep these signature details: - Category rings with selected state - Popular rentals with daily prices - Search that filters results as you type - Rental day picker and live total ## Set up ```bash npx expo install expo-image expo-linear-gradient react-native-svg @expo-google-fonts/inter expo-font ``` ## Tokens | Name | Hex | | --- | --- | | Tool yellow | `#FFC727` | | Honey | `#F5B800` | | Cream | `#FFF3C9` | | Ink | `#111111` | | Stone | `#F2F0EB` | | Bronze | `#B07A00` | - Typefaces: Inter - Text sizes (px): 10, 11, 12, 13, 14, 15, 16, 19 - Corner radii (px): 16, 18, 20, 22, 23, 24 Define these once and reuse them. Do not add new colours. ## Screens 1. **Rental home.** A greeting, category rings, popular rental cards with daily prices and a top searches row. 2. **Search tools.** A search field, a popular heading and a two column grid of tools with prices and open buttons. 3. **Tool detail.** A drill cut-out, price and rating, a rental day picker, a description, quantity stepper and total. ## 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 tool-rental-app --template default cd tool-rental-app rm -rf src npx expo install expo-image expo-linear-gradient react-native-svg @expo-google-fonts/inter expo-font
src/app/_layout.tsx
import {
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
Inter_800ExtraBold,
} from '@expo-google-fonts/inter';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
export default function RootLayout() {
const [fontsLoaded] = useFonts({
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
Inter_800ExtraBold,
});
if (!fontsLoaded) return null;
return <Stack screenOptions={{ headerShown: false }} />;
}src/app/index.tsx
import { Image } from 'expo-image';
import { LinearGradient } from 'expo-linear-gradient';
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native';
import Svg, { Circle, Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { asset } from '@/lib/assets';
import { css } from '@/lib/css';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ cat: 1 });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const accent = '#F5B800';
const base = [
{ label: 'Generators', img: '042526a870.png' },
{ label: 'Drills', img: '74b110d5ed.png' },
{ label: 'Air compressors', img: 'cd0a342d14.png' },
{ label: 'Chainsaws', img: '14ad8bff76.png' },
{ label: 'Circular saws', img: 'c8bb53d539.png' },
{ label: 'Excavators', img: '28e96765c9.png' },
];
const cats = base.map((c, i) => ({
...c,
pick: () => setState({ cat: i }),
ring:
'flex: 0 0 auto; width: 56px; height: 56px; border-radius: 28px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #FFFFFF; box-sizing: border-box; border: ' +
(state.cat === i ? '2px solid ' + accent : '1px solid #EFEDE6'),
}));
const top = [
{ name: 'Generator', img: '042526a870.png' },
{ name: 'Concrete Mixer', img: 'c5dc5cb2d3.png' },
{ name: 'Excavator', img: '28e96765c9.png' },
];
return { cats, top };
}
export default function MainScreen() {
const { cats, top } = useScreen();
return (
<Screen background="#FFFFFF" statusBar="dark">
<View style={{ paddingTop: 58, flex: 1 }}>
<LinearGradient
colors={['#FFF3C9', '#FFFBEE', '#FFFFFF']}
locations={[0, 2.6, 4.2]}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={StyleSheet.absoluteFill}
/>
<View
style={{
justifyContent: 'space-between',
alignItems: 'flex-start',
paddingVertical: 0,
paddingHorizontal: 22,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 34,
color: '#1A1A1A',
letterSpacing: -0.5,
lineHeight: 40,
}}>
Hello{'\n'}Michael!
</Text>
<View style={{ gap: 12, alignItems: 'center', flexShrink: 1, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Search tools"
onPress={() => router.navigate('/search')}
style={{
width: 46,
height: 46,
borderRadius: 23,
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 2px 8px rgba(0,0,0,0.04)',
flexDirection: 'row',
}}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="2"
strokeLinecap="round">
<Circle cx="11" cy="11" r="7" />
<Path d="M20 20l-3.5-3.5" />
</Svg>
</Pressable>
<Image
source={{ uri: asset('04c2e2a43b.jpg') }}
contentFit="cover"
accessibilityLabel="Michael's profile photo"
style={{
width: 46,
height: 46,
borderRadius: 23,
borderWidth: 2,
borderColor: '#FFFFFF',
}}
/>
</View>
</View>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 0,
paddingHorizontal: 22,
marginTop: 26,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 19,
color: '#1A1A1A',
}}>
Available for you
</Text>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/search')}
style={{ flexShrink: 1 }}>
<Text style={{ fontFamily: 'Inter_500Medium', fontSize: 13, color: '#1A1A1A' }}>
See All
</Text>
</Pressable>
</View>
<ScrollView
horizontal
showsHorizontalScrollIndicator={false}
contentContainerStyle={{ gap: 12, paddingHorizontal: 22, paddingBottom: 4 }}
style={{ paddingTop: 14, flexGrow: 0 }}>
{cats.map((c, index) => (
<Pressable
key={index}
accessibilityRole="button"
accessibilityLabel={c.label}
onPress={c.pick}
style={{
flexShrink: 1,
alignItems: 'center',
justifyContent: 'center',
...css(c.ring),
}}>
<Image
source={{ uri: asset(c.img) }}
contentFit="contain"
style={{ width: 38, height: 38 }}
/>
</Pressable>
))}
</ScrollView>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 0,
paddingHorizontal: 22,
marginTop: 22,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 19,
color: '#1A1A1A',
}}>
Popular
</Text>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/search')}
style={{ flexShrink: 1 }}>
<Text style={{ fontFamily: 'Inter_500Medium', fontSize: 13, color: '#1A1A1A' }}>
See All
</Text>
</Pressable>
</View>
<ScrollView
horizontal
showsHorizontalScrollIndicator={false}
contentContainerStyle={{ gap: 12, paddingHorizontal: 22, paddingBottom: 0 }}
style={{ paddingTop: 14, flexGrow: 0 }}>
<View
style={{
flexGrow: 0,
flexShrink: 0,
flexBasis: 300,
height: 236,
borderRadius: 24,
overflow: 'hidden',
backgroundColor: '#F7EAB9',
}}>
<Image
source={{ uri: asset('ae79ef9746.jpg') }}
contentFit="cover"
contentPosition={{ left: '60%', top: '20%' }}
accessibilityLabel="Worker in a hard hat holding a cordless power drill"
style={{
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0,
width: '100%',
height: '100%',
}}
/>
<View
style={{
position: 'absolute',
top: 14,
right: 14,
width: 40,
height: 52,
borderRadius: 20,
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
gap: 2,
}}>
<Svg width="15" height="15" viewBox="0 0 24 24" fill="#1A1A1A">
<Path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z" />
</Svg>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 11, color: '#1A1A1A' }}>
4.9
</Text>
</View>
<View
style={{
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
paddingVertical: 14,
paddingLeft: 16,
paddingRight: 14,
justifyContent: 'space-between',
alignItems: 'flex-end',
flexDirection: 'row',
}}>
<LinearGradient
colors={['rgba(247,234,185,0)', 'rgba(247,234,185,0.92)']}
locations={[0, 0.55]}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={StyleSheet.absoluteFill}
/>
<View style={{ gap: 3, flexShrink: 1 }}>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 15, color: '#1A1A1A' }}>
Power Drill
</Text>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 13, color: '#1A1A1A' }}>
{'$9 '}
<Text style={{ fontFamily: 'Inter_400Regular', fontSize: 11, color: '#4A4A4A' }}>
/Per Day
</Text>
</Text>
</View>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/detail')}
style={{
height: 40,
paddingVertical: 0,
paddingHorizontal: 18,
borderRadius: 20,
backgroundColor: '#111111',
alignItems: 'center',
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 13,
color: '#FFFFFF',
flexShrink: 1,
}}>
View details
</Text>
</Pressable>
</View>
</View>
<View
style={{
flexGrow: 0,
flexShrink: 0,
flexBasis: 300,
height: 236,
borderRadius: 24,
overflow: 'hidden',
backgroundColor: '#F1EFEA',
}}>
<Image
source={{ uri: asset('042526a870.png') }}
contentFit="contain"
accessibilityLabel="Portable generator"
style={{
position: 'absolute',
left: '50%',
top: 22,
transform: [{ translateX: '-50%' }],
height: 150,
}}
/>
<View
style={{
position: 'absolute',
left: 16,
right: 14,
bottom: 14,
justifyContent: 'space-between',
alignItems: 'flex-end',
flexDirection: 'row',
}}>
<View style={{ gap: 3, flexShrink: 1 }}>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 15, color: '#1A1A1A' }}>
Generator
</Text>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 13, color: '#1A1A1A' }}>
{'$29 '}
<Text style={{ fontFamily: 'Inter_400Regular', fontSize: 11, color: '#4A4A4A' }}>
/Per Day
</Text>
</Text>
</View>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/detail')}
style={{
height: 40,
paddingVertical: 0,
paddingHorizontal: 18,
borderRadius: 20,
backgroundColor: '#111111',
alignItems: 'center',
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 13,
color: '#FFFFFF',
flexShrink: 1,
}}>
View details
</Text>
</Pressable>
</View>
</View>
</ScrollView>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 0,
paddingHorizontal: 22,
marginTop: 24,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 19,
color: '#1A1A1A',
}}>
Top Searching
</Text>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/search')}
style={{ flexShrink: 1 }}>
<Text style={{ fontFamily: 'Inter_500Medium', fontSize: 13, color: '#1A1A1A' }}>
See All
</Text>
</Pressable>
</View>
<ScrollView
horizontal
showsHorizontalScrollIndicator={false}
contentContainerStyle={{ gap: 12, paddingHorizontal: 22, paddingBottom: 0 }}
style={{ paddingTop: 14, flexGrow: 0 }}>
{top.map((t, index) => (
<Pressable
key={index}
accessibilityRole="link"
onPress={() => router.navigate('/detail')}
style={{
flexGrow: 0,
flexShrink: 0,
flexBasis: 166,
height: 170,
borderRadius: 20,
backgroundColor: '#F6EBC2',
overflow: 'hidden',
}}>
<Text
style={{
position: 'absolute',
left: 12,
top: 12,
fontFamily: 'Inter_500Medium',
fontSize: 12,
color: '#1A1A1A',
}}>
{t.name}
</Text>
<View
style={{ position: 'absolute', right: 10, top: 10, alignItems: 'center', gap: 1 }}>
<Svg width="13" height="13" viewBox="0 0 24 24" fill="#1A1A1A">
<Path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z" />
</Svg>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 10, color: '#1A1A1A' }}>
4.9
</Text>
</View>
<Image
source={{ uri: asset(t.img) }}
contentFit="contain"
style={{ position: 'absolute', left: 10, right: 10, bottom: 14, height: 104 }}
/>
</Pressable>
))}
</ScrollView>
</View>
</Screen>
);
}src/app/detail.tsx
import { Image } from 'expo-image';
import { LinearGradient } from 'expo-linear-gradient';
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, StyleSheet, Text, View } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { asset } from '@/lib/assets';
import { css, cssText } from '@/lib/css';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ days: 2, qty: 1, fav: false });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const accent = '#FFC727';
const accentDark = '#B07A00';
const s = state;
const days = [1, 2, 3, 4, 5, 6].map((n) => {
const on = s.days === n;
return {
label: n + ' D',
aria: n + (n === 1 ? ' day' : ' days'),
on,
pick: () => setState({ days: n }),
style:
'flex: 0 0 auto; width: 46px; height: 46px; border-radius: 23px; box-sizing: border-box; cursor: pointer; font: inherit; font-size: 12px; ' +
(on
? 'background: #FFF8E1; border: 1.5px solid ' +
accent +
'; color: ' +
accentDark +
'; font-weight: 600'
: 'background: #FFFFFF; border: 1px solid #E6E4DE; color: #6B6B6B'),
};
});
return {
accent,
accentDark,
days,
qty: s.qty,
total: '$' + 18 * s.days * s.qty,
dayLabel: s.days + (s.days === 1 ? ' day' : ' day'),
inc: () => setState({ qty: Math.min(9, s.qty + 1) }),
dec: () => setState({ qty: Math.max(1, s.qty - 1) }),
fav: s.fav,
favLabel: s.fav ? 'Remove from favourites' : 'Add to favourites',
heartFill: s.fav ? '#E5484D' : 'none',
heartStroke: s.fav ? '#E5484D' : '#1A1A1A',
toggleFav: () => setState({ fav: !s.fav }),
};
}
export default function DetailScreen() {
const {
accent,
accentDark,
days,
qty,
total,
dayLabel,
inc,
dec,
favLabel,
heartFill,
heartStroke,
toggleFav,
} = useScreen();
return (
<Screen background="#FFFFFF" statusBar="dark">
<View style={{ paddingTop: 54, flex: 1 }}>
<LinearGradient
colors={['#FFF0BF', '#FFF8E2', '#FFFFFF']}
locations={[0, 3, 4]}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={StyleSheet.absoluteFill}
/>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 0,
paddingHorizontal: 20,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/search')}
style={{
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M15 5l-7 7 7 7" />
</Svg>
</Pressable>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 19,
color: '#1A1A1A',
}}>
Tools Detail
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel={favLabel}
onPress={toggleFav}
style={{
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: '#FFFFFF',
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="19"
height="19"
viewBox="0 0 24 24"
fill={heartFill}
stroke={heartStroke}
strokeWidth="1.8"
strokeLinejoin="round">
<Path d="M12 20s-7.5-4.6-9-9.3C1.9 7.2 4.2 4 7.6 4c2 0 3.4 1.1 4.4 2.6C13 5.1 14.4 4 16.4 4c3.4 0 5.7 3.2 4.6 6.7C19.5 15.4 12 20 12 20z" />
</Svg>
</Pressable>
</View>
<View
style={{
height: 244,
alignItems: 'center',
justifyContent: 'center',
marginTop: 4,
flexDirection: 'row',
}}>
<Image
source={{ uri: asset('74b110d5ed.png') }}
contentFit="contain"
accessibilityLabel="Yellow cordless hammer drill"
style={{ width: 300, height: 225 }}
/>
</View>
<View style={{ paddingVertical: 0, paddingHorizontal: 20 }}>
<View
style={{
justifyContent: 'space-between',
alignItems: 'baseline',
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 21,
color: '#1A1A1A',
letterSpacing: -0.2,
}}>
Bosch Hammer Drill
</Text>
<Text
style={{
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 18,
color: '#1A1A1A',
}}>
{'$18 '}
<Text style={{ fontFamily: 'Inter_400Regular', fontSize: 13, color: '#4A4A4A' }}>
/ per day
</Text>
</Text>
</View>
<View style={{ alignItems: 'center', gap: 6, marginTop: 10, flexDirection: 'row' }}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke={accentDark}
strokeWidth="1.8"
strokeLinejoin="round">
<Path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z" />
</Svg>
<Text
style={{
flexShrink: 1,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#3D3D3D',
}}>
4.9(9k)
</Text>
</View>
<Text
style={{
marginTop: 22,
marginBottom: 0,
marginHorizontal: 0,
fontFamily: 'Inter_500Medium',
fontSize: 16,
color: '#1A1A1A',
}}>
Rental duration option
</Text>
<View style={{ gap: 10, marginTop: 14, flexDirection: 'row' }}>
{days.map((d, index) => (
<Pressable
key={index}
accessibilityRole="button"
accessibilityLabel={d.aria}
onPress={d.pick}
style={{
flexShrink: 1,
alignItems: 'center',
justifyContent: 'center',
...css(d.style),
}}>
<Text
style={[
{
fontFamily: 'Inter_400Regular',
fontSize: 13.33,
color: '#000000',
textAlign: 'center',
},
cssText(d.style),
]}>
{d.label}
</Text>
</Pressable>
))}
</View>
<Text
style={{
marginTop: 22,
marginBottom: 0,
marginHorizontal: 0,
maxWidth: 280,
fontFamily: 'Inter_400Regular',
fontSize: 13,
color: '#4A4A4A',
lineHeight: 20,
}}>
{
'Heavy-duty drill suitable for concrete, steel, and masonry work for professional construction '
}
<Text style={{ fontFamily: 'Inter_600SemiBold', color: '#1A1A1A' }}>...Read more</Text>
</Text>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 26,
flexDirection: 'row',
}}>
<Text
style={{
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 22,
color: accentDark,
}}>
{total}{' '}
<Text style={{ fontFamily: 'Inter_400Regular', fontSize: 13, color: '#4A4A4A' }}>
{'/ '}
{dayLabel}
</Text>
</Text>
<View style={{ alignItems: 'center', gap: 14, flexShrink: 1, flexDirection: 'row' }}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Decrease quantity"
onPress={dec}
style={{
width: 46,
height: 46,
borderRadius: 23,
backgroundColor: '#111111',
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#FFFFFF"
strokeWidth="2"
strokeLinecap="round">
<Path d="M5 12h14" />
</Svg>
</Pressable>
<Text
style={{
minWidth: 14,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 18,
color: '#1A1A1A',
textAlign: 'center',
}}>
{qty}
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Increase quantity"
onPress={inc}
style={{
width: 46,
height: 46,
borderRadius: 23,
backgroundColor: '#FFFFFF',
borderWidth: 1.5,
borderColor: '#1A1A1A',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="2"
strokeLinecap="round">
<Path d="M5 12h14M12 5v14" />
</Svg>
</Pressable>
</View>
</View>
<Pressable
accessibilityRole="button"
style={{
marginTop: 24,
height: 54,
borderRadius: 27,
borderWidth: 0,
backgroundColor: accent,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 16,
color: '#1A1A1A',
textAlign: 'center',
}}>
Book now
</Text>
</Pressable>
</View>
</View>
</Screen>
);
}src/app/search.tsx
import { Image } from 'expo-image';
import { LinearGradient } from 'expo-linear-gradient';
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native';
import Svg, { Circle, Path } 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>>({ query: '' });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const all = [
{ name: 'Power Drill', price: '$5', img: '74b110d5ed.png' },
{ name: 'Generator', price: '$29', img: '042526a870.png' },
{ name: 'Cutting Machine', price: '$5', img: '14ad8bff76.png' },
{ name: 'Concrete Mixer', price: '$199', img: 'c5dc5cb2d3.png' },
{ name: 'Construction excavator', price: '$99', img: '28e96765c9.png' },
{ name: 'Construction truck', price: '$199', img: 'd96e8ccb9c.png' },
];
const q = (state.query || '').trim().toLowerCase();
return {
query: state.query,
onQuery: (text: string) => setState({ query: text }),
items: q ? all.filter((x) => x.name.toLowerCase().indexOf(q) > -1) : all,
};
}
export default function SearchScreen() {
const { query, onQuery, items } = useScreen();
return (
<Screen background="#FFFFFF" statusBar="dark">
<View style={{ paddingTop: 54, flex: 1 }}>
<LinearGradient
colors={['#FFF3C9', '#FFFBEE', '#FFFFFF']}
locations={[0, 2.2, 3.8]}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={StyleSheet.absoluteFill}
/>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 0,
paddingHorizontal: 20,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: '#FFFFFF',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M15 5l-7 7 7 7" />
</Svg>
</Pressable>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 19,
color: '#1A1A1A',
}}>
Search tools
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Notifications"
style={{
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: '#FFFFFF',
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="19"
height="19"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z" />
<Path d="M10 21h4" />
</Svg>
</Pressable>
</View>
<View
style={{
alignItems: 'center',
gap: 10,
marginTop: 20,
marginBottom: 0,
marginHorizontal: 20,
height: 50,
borderRadius: 25,
backgroundColor: '#FFFFFF',
paddingVertical: 0,
paddingLeft: 16,
paddingRight: 8,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="2"
strokeLinecap="round">
<Circle cx="11" cy="11" r="7" />
<Path d="M20 20l-3.5-3.5" />
</Svg>
<TextInput
value={query}
onChangeText={onQuery}
placeholder="Search"
placeholderTextColor="#8A8A8A"
style={{
flex: 1,
minWidth: 0,
borderWidth: 0,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#1A1A1A',
}}
/>
<Pressable
accessibilityRole="button"
accessibilityLabel="Filters"
style={{
width: 40,
height: 40,
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="19"
height="19"
viewBox="0 0 24 24"
fill="none"
stroke="#1A1A1A"
strokeWidth="1.8"
strokeLinecap="round">
<Path d="M4 7h10M18 7h2M4 17h2M10 17h10" />
<Circle cx="16" cy="7" r="2" />
<Circle cx="8" cy="17" r="2" />
</Svg>
</Pressable>
</View>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 0,
paddingHorizontal: 20,
marginTop: 22,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 19,
color: '#1A1A1A',
}}>
Popular
</Text>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/search')}
style={{ flexShrink: 1 }}>
<Text style={{ fontFamily: 'Inter_500Medium', fontSize: 13, color: '#1A1A1A' }}>
See All
</Text>
</Pressable>
</View>
<View
style={{
paddingTop: 14,
paddingBottom: 0,
paddingHorizontal: 20,
flexDirection: 'row',
gap: 12,
flexWrap: 'wrap',
}}>
{items.map((it, index) => (
<View
key={index}
style={{
height: 184,
borderRadius: 18,
backgroundColor: '#F2F0EB',
overflow: 'hidden',
flexGrow: 1,
flexBasis: '39.5%',
}}>
<View
style={{ position: 'absolute', right: 10, top: 10, alignItems: 'center', gap: 1 }}>
<Svg width="13" height="13" viewBox="0 0 24 24" fill="#1A1A1A">
<Path d="M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.5l1.3-6.6L2.5 9.3l6.6-.8z" />
</Svg>
<Text style={{ fontFamily: 'Inter_600SemiBold', fontSize: 10, color: '#1A1A1A' }}>
4.9
</Text>
</View>
<Image
source={{ uri: asset(it.img) }}
contentFit="contain"
style={{ position: 'absolute', left: 12, right: 28, top: 18, height: 108 }}
/>
<View style={{ position: 'absolute', left: 10, bottom: 10, gap: 2 }}>
<Text style={{ fontFamily: 'Inter_500Medium', fontSize: 12, color: '#1A1A1A' }}>
{it.name}
</Text>
<Text style={{ fontFamily: 'Inter_400Regular', fontSize: 10, color: '#4A4A4A' }}>
<Text style={{ fontFamily: 'Inter_700Bold', color: '#1A1A1A' }}>{it.price}</Text>
/Per Day
</Text>
</View>
<Pressable
accessibilityRole="link"
accessibilityLabel={`Open ${it.name}`}
onPress={() => router.navigate('/detail')}
style={{
position: 'absolute',
right: 8,
bottom: 8,
width: 32,
height: 32,
borderRadius: 16,
backgroundColor: '#111111',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="#FFFFFF"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M7 17L17 7M9 7h8v8" />
</Svg>
</Pressable>
</View>
))}
</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/tool-rental-app-ui-design/assets';
export const asset = (name: string) => `${ASSET_BASE}/${name}`;src/lib/css.ts
import type { TextStyle, ViewStyle } from 'react-native';
// A few styles change with state, so they are kept as short CSS strings from the design.
const FACES: Record<number, string> = {
400: 'Inter_400Regular',
500: 'Inter_500Medium',
600: 'Inter_600SemiBold',
700: 'Inter_700Bold',
800: 'Inter_800ExtraBold',
};
const px = (value: string) => (value.endsWith('%') ? (value as `${number}%`) : parseFloat(value));
function declarations(source: string) {
return source
.split(';')
.map((rule) => rule.split(':').map((part) => part.trim()))
.filter(([name, value]) => name && value);
}
export function css(source: string): ViewStyle {
const style: Record<string, unknown> = {};
for (const [name, ...rest] of declarations(source)) {
const value = rest.join(':');
if (name === 'background' || name === 'background-color') {
style.backgroundColor = value;
} else if (name === 'border') {
const [width, , ...color] = value.split(' ');
if (value === 'none' || value === '0') style.borderWidth = 0;
else {
style.borderWidth = parseFloat(width);
style.borderColor = color.join(' ');
}
} else if (name === 'display' && value === 'flex') {
style.flexDirection = style.flexDirection ?? 'row';
} else if (name === 'flex-direction') {
style.flexDirection = value;
} else if (name === 'align-items') {
style.alignItems = value;
} else if (name === 'justify-content') {
style.justifyContent = value;
} else if (name === 'box-shadow') {
style.boxShadow = value;
} else if (name === 'position') {
style.position = value === 'absolute' ? 'absolute' : 'relative';
} else if (name === 'opacity') {
style.opacity = parseFloat(value);
} else if (
name === 'gap' ||
name === 'width' ||
name === 'height' ||
name === 'left' ||
name === 'top'
) {
style[name] = px(value);
} else if (name === 'border-radius') {
style.borderRadius = px(value);
} else if (name === 'padding') {
const [vertical, horizontal = vertical] = value.split(' ');
style.paddingVertical = px(vertical);
style.paddingHorizontal = px(horizontal);
} else if (name === 'white-space' && value === 'nowrap') {
style.flexShrink = 0;
} else if (name === 'flex-shrink') {
style.flexShrink = parseFloat(value);
} else if (name === 'flex') {
const [grow, shrink, basis] = value.split(' ');
if (value === 'none') {
style.flexGrow = 0;
style.flexShrink = 0;
} else if (shrink === undefined) {
style.flex = parseFloat(grow);
} else {
style.flexGrow = parseFloat(grow);
style.flexShrink = parseFloat(shrink);
if (basis && basis !== 'auto') style.flexBasis = px(basis);
}
}
}
return style as ViewStyle;
}
export function cssText(source: string): TextStyle {
const style: Record<string, unknown> = {};
for (const [name, value] of declarations(source)) {
if (name === 'color') style.color = value;
if (name === 'font-size') style.fontSize = parseFloat(value);
if (name === 'font-weight' && FACES[Number(value)]) style.fontFamily = FACES[Number(value)];
if (name === 'text-decoration' && value.startsWith('line-through')) {
style.textDecorationLine = 'line-through';
}
}
return style as TextStyle;
}About this design
Search filters the grid as you type, and the detail page lets renters pick the number of days and the quantity while the total updates. It suits hardware stores, plant hire and peer-to-peer rental marketplaces.
A warm yellow fade into white with black pill buttons, rounded cards and product cut-outs of power tools and machines.
- Category rings with selected state
- Popular rentals with daily prices
- Search that filters results as you type
- Rental day picker and live total
Colour palette
Tool yellow
#FFC727
Honey
#F5B800
Cream
#FFF3C9
Ink
#111111
Stone
#F2F0EB
Bronze
#B07A00
How to use this design
- 01
Pick what to copy
Copy the Tool and Equipment Rental 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
What is interactive?
Category rings select, the search filters the grid as you type, and the detail page updates the total when you change days or quantity. The heart saves the item.
How is the total worked out?
It multiplies the daily price by the number of days and the quantity, so it is easy to replace with your own pricing rules.
Can I add deposits or delivery?
Yes. Add rows under the total on the detail screen. The layout already leaves room above the book button.
Is the Tool and Equipment Rental 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.



