// Education app UI
Book Reading App UI Design in Expo
This book reading app UI keeps readers coming back. The home screen celebrates a 25 day streak, shows new books on a frosted glass shelf, offers genre tabs and opens a white sheet with an Autumn Reads collection.
- Screens
- 3
- Built with
- Expo SDK 58
- Fonts
- Inter Tight, Newsreader, DM Serif Display
- License
- Free (MIT)
- Views
- 1

Book Reading app screens

Library home
A streak banner, a big headline, new book covers on a glass shelf, genre tabs and a popular collection.

Book detail
A large cover with a soft shadow, title, author, rating, pages, read time and readers, a blurb and Continue reading.

Reader
Chapter title, serif text with a drop cap and a highlighted line, and a control bar with page progress and the streak.
Copy the Book Reading 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
# Book Reading: design artifact
This book reading app UI keeps readers coming back. The home screen celebrates a 25 day streak, shows new books on a frosted glass shelf, offers genre tabs and opens a white sheet with an Autumn Reads collection.
- Type: Education mobile app UI
- Screens: 3
- Artboard: 390 × 844
- Target: Expo SDK 58, Expo Router, TypeScript, expo-blur, expo-linear-gradient, react-native-svg
- Live page: https://developermill.com/app-designs/book-reading-app-ui-design
## Design direction
Soft lavender with white sheets, large Inter Tight headlines, a serif reader in Newsreader and eight illustrated covers drawn in code.
- Eight book covers drawn with shapes and type
- Frosted glass shelf under the new books
- Book detail with stats and audiobook button
- Reader with text size toggle and progress bar
## Foundations
### Colour
| Token | Hex |
| --- | --- |
| Lavender | `#C8C7FB` |
| Ink | `#111111` |
| Indigo | `#4B48D6` |
| Paper | `#FBFAF7` |
| Mist | `#F3F3F6` |
| Slate | `#77778A` |
### Typography
- Typefaces: Inter Tight, Newsreader, DM Serif Display
- Common sizes (px): 10, 12, 13, 14, 15, 16, 18, 20
### Shape and depth
- Common corner radii (px): 3, 4, 6, 9, 16, 28
- Shadows: `inset 0 1px 0 rgba(255,255,255,0.45)`, `0 24px 40px -14px rgba(40,30,120,0.45)`
## Screens
### 1. Library home
A streak banner, a big headline, new book covers on a glass shelf, genre tabs and a popular collection.
Preview: https://developermill.com/app-designs/book-reading-app-ui-design/home.webp
Copy on this screen:
- Wow! 25 Days without a break
- You're ahead of 81% of readers
- You Have 12 New Books Design
- Design
- ‹
- 16 books
- ›
- All
- 23
- 10
- Fantasy
- 5
- Mystery
- 8
- Collections
- Books
- Autumn Reads
- The Most Popular Books
- 250
- Top
### 2. Book detail
A large cover with a soft shadow, title, author, rating, pages, read time and readers, a blurb and Continue reading.
Preview: https://developermill.com/app-designs/book-reading-app-ui-design/detail.webp
Copy on this screen:
- Design · 3 of 16
- The Shape of Use
- Elena Marsh
- 4.8
- Pages
- 312
- Read time
- 6h 20m
- Readers
- 12.4k
- About the book
- Why does a good handle feel obvious and a bad door feel like a trap? Elena Marsh walks through the everyday objects we touch without thinking, and shows how shape, feedback and habit decide whether a thing gets used well.
- Continue reading
- 38%
### 3. Reader
Chapter title, serif text with a drop cap and a highlighted line, and a control bar with page progress and the streak.
Preview: https://developermill.com/app-designs/book-reading-app-ui-design/reader.webp
Copy on this screen:
- The Shape of Use
- Chapter 3 · The Handle
- aA
- A
- door handle is a promise. Before your hand arrives, its shape has already told you whether to push, pull or turn, and most of the time you never notice the message.
- We notice only when the promise is broken: the flat plate that asks to be pulled, the elegant bar that will not move.
- Good objects explain themselves through the body before they reach the mind.
- The grip, the weight, the small click at the end of a turn are all part of the conversation.
- Look around the room you are in. Count the things you used today without once reading an instruction.
- Page 118 of 312
- 24 min left in chapter
- Day 26 streak
## Full source
The original artboards as HTML. Image URLs point at the hosted demo assets.
### Library home (Main)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home – new books</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=DM+Serif+Display&family=Anton&family=Yellowtail&display=swap">
<style>
body{margin:0}
a{color:inherit;text-decoration:none}
</style>
</helmet>
<div style="position: relative; width: 390px; height: 844px; overflow: hidden; background: linear-gradient(180deg, {{tint}} 0%, {{tint}} 100%); font-family: 'Inter Tight', sans-serif; color: #111">
<div style="display: flex; align-items: center; gap: 12px; padding: 58px 22px 0 22px">
<svg aria-hidden="true" width="34" height="30" viewBox="0 0 34 30"><path d="M2 8h9M0 14h9M4 20h7" stroke="#2B2B4A" stroke-width="1.8" stroke-linecap="round"></path><path d="M24 2 L13 17 h8 l-3 11 L30 12 h-8 l3 -10 Z" fill="#2B2B4A"></path></svg>
<div style="flex: 1; min-width: 0">
<div style="font-size: 15px; font-weight: 500; letter-spacing: -0.2px; color: #22223A">Wow! 25 Days without a break</div>
<div style="font-size: 13px; color: #4A4A6E; margin-top: 2px">You're ahead of 81% of readers</div>
</div>
<div aria-hidden="true" style="display: flex; gap: 4px"><span style="width: 5px; height: 5px; border-radius: 50%; background: #22223A"></span><span style="width: 5px; height: 5px; border-radius: 50%; background: #9C9BD0"></span><span style="width: 5px; height: 5px; border-radius: 50%; background: #9C9BD0"></span></div>
</div>
<h1 style="margin: 26px 22px 0 22px; font-size: 47px; line-height: 1.06; font-weight: 500; letter-spacing: -1.8px">You Have 12 New Books Design</h1>
<div style="display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0 30px">
<div style="font-size: 16px; font-weight: 500">Design</div>
<div style="display: flex; align-items: center; gap: 8px; font-size: 14px; color: #3A3A5C">
<button aria-label="Previous books" style="border: 0; background: none; padding: 4px; cursor: pointer; color: #3A3A5C; font-size: 16px">‹</button>16 books<button aria-label="Next books" style="border: 0; background: none; padding: 4px; cursor: pointer; color: #3A3A5C; font-size: 16px">›</button>
</div>
</div>
<div style="position: relative; height: 170px; margin-top: 12px">
<div style="position: absolute; left: 30px; top: 6px; display: flex; gap: 24px">
<a href="Detail.dc.html" aria-label="Grid Theory" style="display: block; width: 84px"><dc-import name="Cover" book="grid" ratio="2 / 3" hint-size="84px,126px"></dc-import></a>
<a href="Detail.dc.html" aria-label="Quiet Objects" style="display: block; width: 84px"><dc-import name="Cover" book="quiet" ratio="2 / 3" hint-size="84px,126px"></dc-import></a>
<a href="Detail.dc.html" aria-label="The Shape of Use" style="display: block; width: 84px"><dc-import name="Cover" book="shape" ratio="2 / 3" hint-size="84px,126px"></dc-import></a>
<a href="Detail.dc.html" aria-label="Negative Space" style="display: block; width: 84px"><dc-import name="Cover" book="negative" ratio="2 / 3" hint-size="84px,126px"></dc-import></a>
</div>
<div aria-hidden="true" style="position: absolute; left: 18px; right: 0; top: 76px; height: 60px; background: rgba(150,148,245,0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 6px 0 0 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45)"></div>
</div>
<div role="tablist" aria-label="Genres" style="display: flex; justify-content: space-between; padding: 0 22px; margin-top: 6px">
<button role="tab" aria-selected="true" style="display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 18px; color: #111; cursor: pointer">All <span style="font-size: 10px; padding: 2px 5px; border-radius: 9px; background: #DDDCFD; color: #4B48D6">23</span></button>
<button role="tab" aria-selected="false" style="display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 18px; color: #4E4E66; cursor: pointer">Design <span style="font-size: 10px; padding: 2px 5px; border-radius: 9px; background: rgba(255,255,255,0.45); color: #5A5A72">10</span></button>
<button role="tab" aria-selected="false" style="display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 18px; color: #4E4E66; cursor: pointer">Fantasy <span style="font-size: 10px; padding: 2px 5px; border-radius: 9px; background: rgba(255,255,255,0.45); color: #5A5A72">5</span></button>
<button role="tab" aria-selected="false" style="display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 18px; color: #4E4E66; cursor: pointer">Mystery <span style="font-size: 10px; padding: 2px 5px; border-radius: 9px; background: rgba(255,255,255,0.45); color: #5A5A72">8</span></button>
</div>
<div style="position: absolute; left: 0; right: 0; bottom: 0; height: 278px; background: #fff; border-radius: 30px 30px 0 0; padding: 18px 18px 0 22px; box-sizing: border-box; display: flex; gap: 12px">
<div style="flex: 1; min-width: 0; display: flex; flex-direction: column">
<div style="display: flex; gap: 6px">
<span style="font-size: 13px; padding: 6px 11px; border-radius: 16px; background: #EFEFF2; color: #55556A">Collections</span>
<span style="font-size: 13px; padding: 6px 11px; border-radius: 16px; background: #EFEFF2; color: #55556A">Books</span>
</div>
<div style="font-size: 21px; font-weight: 500; letter-spacing: -0.4px; margin-top: 18px">Autumn Reads</div>
<div style="font-size: 21px; letter-spacing: -0.4px; line-height: 1.25; color: #77778A; margin-top: 4px">The Most Popular Books</div>
<div style="display: flex; align-items: flex-start; gap: 4px; margin-top: auto; margin-bottom: 18px">
<span style="font-size: 76px; line-height: 0.9; font-weight: 400; letter-spacing: -3px">250</span>
<span style="font-size: 13px; color: #77778A">Top</span>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 186px; align-content: start">
<a href="Detail.dc.html" aria-label="Brush & Fire"><dc-import name="Cover" book="brush" ratio="3 / 4" radius="10" hint-size="89px,119px"></dc-import></a>
<a href="Detail.dc.html" aria-label="Hush"><dc-import name="Cover" book="hush" ratio="3 / 4" radius="10" hint-size="89px,119px"></dc-import></a>
<a href="Detail.dc.html" aria-label="Cut to Frame"><dc-import name="Cover" book="cut" ratio="3 / 4" radius="10" hint-size="89px,119px"></dc-import></a>
<a href="Detail.dc.html" aria-label="The Orchard"><dc-import name="Cover" book="orchard" ratio="3 / 4" radius="10" hint-size="89px,119px"></dc-import></a>
</div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"tint":{"editor":"color","default":"#C8C7FB","options":["#C8C7FB","#F6D9C4","#CFE8D6","#D9E4F7"]},"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
renderVals() {
return { tint: this.props.tint ?? '#C8C7FB' };
}
}
</script>
</body>
</html>
```
### Book detail (Detail)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Book detail – The Shape of Use</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=DM+Serif+Display&family=Anton&family=Yellowtail&display=swap">
<style>
body{margin:0}
a{color:inherit;text-decoration:none}
</style>
</helmet>
<div style="position: relative; width: 390px; height: 844px; overflow: hidden; background: #fff; font-family: 'Inter Tight', sans-serif; color: #111">
<div style="position: absolute; left: 0; right: 0; top: 0; height: 330px; background: {{tint}}; border-radius: 0 0 34px 34px"></div>
<div style="position: relative; display: flex; justify-content: space-between; align-items: center; padding: 58px 20px 0 20px">
<a href="Main.dc.html" aria-label="Back to home" style="width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 18l-6-6 6-6"></path></svg>
</a>
<div style="font-size: 14px; color: #3A3A5C">Design · 3 of 16</div>
<button aria-label="Save to collection" style="width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.55); 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="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
</div>
<div style="position: relative; display: flex; justify-content: center; margin-top: 22px">
<div style="width: 176px; box-shadow: 0 24px 40px -14px rgba(40,30,120,0.45); border-radius: 4px">
<dc-import name="Cover" book="shape" ratio="2 / 3" radius="4" hint-size="176px,264px"></dc-import>
</div>
</div>
<div style="position: relative; padding: 0 22px">
<div style="margin-top: 28px; display: flex; justify-content: space-between; align-items: flex-end">
<div>
<h1 style="margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.9px">The Shape of Use</h1>
<div style="font-size: 15px; color: #77778A; margin-top: 4px">Elena Marsh</div>
</div>
<div style="display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500">
<svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="#111"><path d="M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z"></path></svg>4.8
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px">
<div style="background: #F3F3F6; border-radius: 16px; padding: 12px 14px"><div style="font-size: 12px; color: #6E6E82">Pages</div><div style="font-size: 20px; font-weight: 500; margin-top: 2px">312</div></div>
<div style="background: #F3F3F6; border-radius: 16px; padding: 12px 14px"><div style="font-size: 12px; color: #6E6E82">Read time</div><div style="font-size: 20px; font-weight: 500; margin-top: 2px">6h 20m</div></div>
<div style="background: #F3F3F6; border-radius: 16px; padding: 12px 14px"><div style="font-size: 12px; color: #6E6E82">Readers</div><div style="font-size: 20px; font-weight: 500; margin-top: 2px">12.4k</div></div>
</div>
<div style="font-size: 16px; font-weight: 500; margin-top: 20px">About the book</div>
<p style="margin: 6px 0 0 0; font-size: 14px; line-height: 1.5; color: #5A5A6E">Why does a good handle feel obvious and a bad door feel like a trap? Elena Marsh walks through the everyday objects we touch without thinking, and shows how shape, feedback and habit decide whether a thing gets used well.</p>
<div style="display: flex; gap: 10px; margin-top: 22px">
<a href="Reader.dc.html" style="flex: 1; height: 56px; border-radius: 28px; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 500">Continue reading <span style="font-size: 13px; color: #B9B8F5">38%</span></a>
<button aria-label="Listen to audiobook" style="width: 56px; height: 56px; border-radius: 50%; border: 0; background: {{tint}}; display: flex; align-items: center; justify-content: center; cursor: pointer">
<svg aria-hidden="true" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z"></path></svg>
</button>
</div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"tint":{"editor":"color","default":"#C8C7FB","options":["#C8C7FB","#F6D9C4","#CFE8D6","#D9E4F7"]},"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
renderVals() {
return { tint: this.props.tint ?? '#C8C7FB' };
}
}
</script>
</body>
</html>
```
### Reader (Reader)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Reader – chapter 3</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap">
<style>
body{margin:0}
a{color:inherit;text-decoration:none}
</style>
</helmet>
<div style="position: relative; width: 390px; height: 844px; overflow: hidden; background: #FBFAF7; font-family: 'Inter Tight', sans-serif; color: #111">
<div style="display: flex; align-items: center; justify-content: space-between; padding: 58px 20px 0 20px">
<a href="Detail.dc.html" aria-label="Back to book" style="width: 44px; height: 44px; border-radius: 50%; background: #EFEEF4; display: flex; align-items: center; justify-content: center">
<svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 18l-6-6 6-6"></path></svg>
</a>
<div style="text-align: center">
<div style="font-size: 12px; color: #77778A">The Shape of Use</div>
<div style="font-size: 15px; font-weight: 500; margin-top: 1px">Chapter 3 · The Handle</div>
</div>
<button aria-label="Change text size" onClick="{{toggleSize}}" style="width: 44px; height: 44px; border-radius: 50%; border: 0; background: #EFEEF4; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: #111">aA</button>
</div>
<div style="padding: 26px 26px 0 26px; font-family: 'Newsreader', serif; font-size: {{textSize}}px; line-height: 1.6; color: #24242E">
<p style="margin: 0 0 14px 0"><span style="font-size: 44px; line-height: 0.8; float: left; margin: 6px 8px 0 0; color: #111">A</span> door handle is a promise. Before your hand arrives, its shape has already told you whether to push, pull or turn, and most of the time you never notice the message.</p>
<p style="margin: 0 0 14px 0">We notice only when the promise is broken: the flat plate that asks to be pulled, the elegant bar that will not move.</p>
<p style="margin: 0 0 14px 0"><span style="background: {{tint}}; border-radius: 4px; padding: 1px 2px">Good objects explain themselves through the body before they reach the mind.</span> The grip, the weight, the small click at the end of a turn are all part of the conversation.</p>
<p style="margin: 0; font-style: italic; color: #5A5A6E">Look around the room you are in. Count the things you used today without once reading an instruction.</p>
</div>
<div style="position: absolute; left: 16px; right: 16px; bottom: 26px; background: {{tint}}; border-radius: 28px; padding: 16px 18px 14px 18px">
<div style="display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #3A3A5C">
<span>Page 118 of 312</span>
<span>24 min left in chapter</span>
</div>
<div role="progressbar" aria-label="Book progress" aria-valuenow="38" aria-valuemin="0" aria-valuemax="100" style="height: 6px; border-radius: 3px; background: rgba(255,255,255,0.6); margin-top: 10px; overflow: hidden">
<div style="width: 38%; height: 100%; background: #111; border-radius: 3px"></div>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 12px">
<button aria-label="Previous page" style="width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.6); 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="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 18l-6-6 6-6"></path></svg></button>
<div style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">
<svg aria-hidden="true" width="18" height="16" viewBox="0 0 34 30"><path d="M24 2 L13 17 h8 l-3 11 L30 12 h-8 l3 -10 Z" fill="#111"></path></svg>Day 26 streak
</div>
<button aria-label="Next page" style="width: 44px; height: 44px; border-radius: 50%; border: 0; background: #111; 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="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18l6-6-6-6"></path></svg></button>
</div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"tint":{"editor":"color","default":"#C8C7FB","options":["#C8C7FB","#F6D9C4","#CFE8D6","#D9E4F7"]},"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(props) { super(props); this.state = { large: false }; }
renderVals() {
return {
tint: this.props.tint ?? '#C8C7FB',
textSize: this.state.large ? 19 : 17,
toggleSize: () => this.setState({ large: !this.state.large })
};
}
}
</script>
</body>
</html>
```
### Cover component (Cover)
Every `<dc-import name="Cover">` above renders this board with its `book`, `ratio` and `radius` props. In the Expo code it is `src/components/book-cover.tsx`.
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Book cover</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=DM+Serif+Display&family=Anton&family=Yellowtail&display=swap">
<style>body{margin:0}</style>
</helmet>
<div style="position: relative; width: 100%; aspect-ratio: {{ratio}}; container-type: inline-size; overflow: hidden; border-radius: {{radius}}px; font-family: 'Inter Tight', sans-serif; box-shadow: 0 1px 2px rgba(20,20,60,0.18)">
<sc-if value="{{isGrid}}" hint-placeholder-val="{{ true }}">
<div style="position: absolute; inset: 0; background: #F4F1EA">
<div style="position: absolute; left: 0; top: 0; bottom: 0; width: 11%; background: #1F4FD8"></div>
<div style="position: absolute; left: 11%; right: 0; top: 24%; height: 32%; background: #F7D224"></div>
<div style="position: absolute; right: 0; bottom: 12%; width: 38%; height: 26%; background: #E0342A"></div>
<div style="position: absolute; left: 18%; top: 61%; width: 36%; height: 0.8cqw; background: #111"></div>
<div style="position: absolute; right: 7%; top: 5%; font-size: 14cqw; font-weight: 800; letter-spacing: -0.05em; color: #111; line-height: 1">grid theory</div>
<div style="position: absolute; right: 7%; top: 16%; font-size: 4.6cqw; color: #333">a century of modernist form</div>
<div style="position: absolute; left: 18%; top: 65%; width: 38%; font-size: 4.6cqw; line-height: 1.25; color: #222">the definitive reference on grids, blocks and colour</div>
<div style="position: absolute; left: 18%; bottom: 4%; font-size: 4.2cqw; font-weight: 700; letter-spacing: 0.15em; color: #111">NORDA</div>
</div>
</sc-if>
<sc-if value="{{isQuiet}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: #F57A1F">
<div style="position: absolute; left: 7%; top: 5%; width: 36%; font-size: 4.8cqw; line-height: 1.25; color: #1a1a1a">the industrial designer's notebook</div>
<div style="position: absolute; right: 2%; top: 2%; bottom: 2%; writing-mode: vertical-rl; font-size: 33cqw; font-weight: 800; line-height: 0.82; letter-spacing: -0.06em; color: #111">quiet objects</div>
<div style="position: absolute; left: 7%; bottom: 4%; font-size: 4.2cqw; font-weight: 700; letter-spacing: 0.15em; color: #1a1a1a">KESTREL</div>
</div>
</sc-if>
<sc-if value="{{isShape}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: #F5DC3F">
<div style="position: absolute; left: 0; right: 0; top: 9%; text-align: center; font-family: 'DM Serif Display', serif; font-size: 13.5cqw; line-height: 1.05; color: #9B1B1B">The Shape<br>of Use</div>
<svg aria-hidden="true" viewBox="0 0 100 110" style="position: absolute; left: 22%; bottom: 7%; width: 52%">
<ellipse cx="50" cy="104" rx="34" ry="5" fill="rgba(120,60,0,0.18)"></ellipse>
<rect x="26" y="94" width="40" height="8" rx="3" fill="#B71F1A"></rect>
<path d="M44 95 L36 58 L62 30" stroke="#B71F1A" stroke-width="5" fill="none" stroke-linecap="round"></path>
<circle cx="36" cy="58" r="4.5" fill="#8E1512"></circle>
<path d="M54 22 L80 12 L92 40 L66 50 Z" fill="#D2271F"></path>
<path d="M66 50 Q79 58 92 40" fill="#FFF3B0" opacity="0.8"></path>
</svg>
<div style="position: absolute; right: 7%; bottom: 5%; font-family: 'DM Serif Display', serif; font-size: 4.6cqw; letter-spacing: 0.1em; color: #9B1B1B">ELENA MARSH</div>
</div>
</sc-if>
<sc-if value="{{isNegative}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: #131313">
<div style="position: absolute; left: 8%; top: 6%; font-size: 6cqw; font-weight: 600; letter-spacing: 0.2em; color: #fff">NEGATIVE<br>SPACE</div>
<svg aria-hidden="true" viewBox="0 0 100 150" style="position: absolute; inset: 0; width: 100%; height: 100%">
<path d="M40 150 C 40 110, 95 112, 88 78 C 82 48, 45 52, 52 80 C 58 104, 98 96, 100 60" stroke="#fff" stroke-width="2.2" fill="none" stroke-linecap="round"></path>
</svg>
<div style="position: absolute; left: 8%; bottom: 4%; width: 6cqw; height: 6cqw; border-radius: 50%; border: 0.8cqw solid #fff; box-sizing: border-box"></div>
</div>
</sc-if>
<sc-if value="{{isBrush}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: repeating-radial-gradient(circle at 75% 30%, #2E7F86 0 2.5cqw, #E3A93A 2.5cqw 4.5cqw, #1E5C78 4.5cqw 7cqw, #D86A2B 7cqw 9cqw)">
<svg aria-hidden="true" viewBox="0 0 100 133" style="position: absolute; inset: 0; width: 100%; height: 100%">
<path d="M18 133 C 22 105, 40 96, 60 96 C 82 96, 96 108, 100 133 Z" fill="#23506E"></path>
<path d="M44 92 C 40 70, 44 52, 62 50 C 80 50, 86 70, 80 92 C 74 104, 52 104, 44 92 Z" fill="#E9B072"></path>
<path d="M46 82 C 48 104, 76 106, 80 82 C 76 96, 52 96, 46 82 Z" fill="#C8551E"></path>
<ellipse cx="62" cy="46" rx="30" ry="6" fill="#F2CF4A"></ellipse>
<path d="M44 46 C 44 30, 80 30, 80 46 Z" fill="#E8BE3A"></path>
<circle cx="55" cy="70" r="2.2" fill="#1E4A5C"></circle><circle cx="71" cy="70" r="2.2" fill="#1E4A5C"></circle>
</svg>
<div style="position: absolute; left: 4%; top: 4%; bottom: 4%; writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'DM Serif Display', serif; font-size: 15cqw; line-height: 1; color: #F7D23E; text-shadow: 0 0 3cqw rgba(0,0,0,0.25)">BRUSH & FIRE</div>
<div style="position: absolute; right: 6%; bottom: 4%; font-size: 4.4cqw; color: #FFF6DA">the life of a painter</div>
</div>
</sc-if>
<sc-if value="{{isHush}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: #E5142B">
<div style="position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-family: 'Yellowtail', cursive; font-size: 46cqw; line-height: 1; color: #fff">Hush</div>
<svg aria-hidden="true" viewBox="0 0 100 133" style="position: absolute; inset: 0; width: 100%; height: 100%">
<g fill="#111"><circle cx="24" cy="22" r="2"></circle><rect x="22.6" y="24.5" width="2.8" height="8" rx="1.2"></rect></g>
<g fill="#111"><circle cx="80" cy="50" r="2"></circle><rect x="78.6" y="52.5" width="2.8" height="8" rx="1.2"></rect></g>
</svg>
<div style="position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-size: 5.4cqw; font-weight: 700; letter-spacing: 0.12em; color: #fff">NINA HOLLOWAY</div>
<div style="position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font-size: 3.8cqw; color: #FFD9DD">a novel</div>
</div>
</sc-if>
<sc-if value="{{isCut}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: #F1E6C8">
<div style="position: absolute; left: 0; top: 0; width: 46%; height: 30%; background: #E0A526"></div>
<div style="position: absolute; left: 46%; top: 0; right: 0; height: 18%; background: #D9531E"></div>
<div style="position: absolute; right: 0; top: 18%; width: 28%; height: 30%; background: #2A8C8A"></div>
<div style="position: absolute; left: 0; top: 64%; width: 22%; height: 22%; background: #111"></div>
<div style="position: absolute; right: 10%; top: 66%; width: 24%; height: 16%; background: #C9302C; border-radius: 0 0 50% 50%"></div>
<div style="position: absolute; left: 7%; top: 28%; font-family: 'Anton', sans-serif; font-size: 19cqw; line-height: 0.95; color: #1a1a1a">CUT<br>TO<br>FRAME</div>
<div style="position: absolute; left: 26%; bottom: 8%; width: 44%; font-size: 4cqw; line-height: 1.2; color: #333">the complete guide to the short film</div>
<div style="position: absolute; left: 26%; bottom: 3%; font-size: 4.2cqw; font-weight: 700; color: #1a1a1a">Owen Pike</div>
</div>
</sc-if>
<sc-if value="{{isOrchard}}" hint-placeholder-val="{{ false }}">
<div style="position: absolute; inset: 0; background: linear-gradient(180deg, #0D2654 0%, #1D4C8F 58%, #0A1C42 100%)">
<div style="position: absolute; left: -10%; right: -10%; top: 52%; height: 22%; background: radial-gradient(ellipse at center, rgba(190,215,255,0.45), rgba(190,215,255,0) 70%)"></div>
<div style="position: absolute; left: 0; right: 0; top: 6%; text-align: center; font-family: 'Anton', sans-serif; font-size: 17cqw; line-height: 1; color: #fff">THE ORCHARD</div>
<div style="position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-size: 4.2cqw; color: #CFE0FF">some secrets ripen slowly</div>
<svg aria-hidden="true" viewBox="0 0 100 133" style="position: absolute; inset: 0; width: 100%; height: 100%">
<rect x="51" y="44" width="2.4" height="16" fill="#C9D2DC"></rect>
<circle cx="52.2" cy="42" r="4" fill="none" stroke="#C9D2DC" stroke-width="2"></circle>
<path d="M52 58 C 44 58, 42 70, 40 78 C 32 86, 30 104, 52 108 C 74 104, 72 86, 64 78 C 62 70, 60 58, 52 58 Z" fill="#D3242C"></path>
<path d="M44 74 C 42 84, 40 92, 44 98" stroke="#FF7A7A" stroke-width="2" fill="none" opacity="0.7"></path>
<ellipse cx="52" cy="110" rx="18" ry="2.5" fill="rgba(0,0,0,0.35)"></ellipse>
</svg>
<div style="position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font-size: 4.4cqw; font-weight: 600; letter-spacing: 0.14em; color: #fff">J. R. CALLOWAY</div>
</div>
</sc-if>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"book":{"editor":"enum","options":["grid","quiet","shape","negative","brush","hush","cut","orchard"],"default":"grid"},"ratio":{"editor":"enum","options":["2 / 3","3 / 4"],"default":"2 / 3"},"radius":{"editor":"int","min":0,"max":24,"default":3},"$preview":{"width":120,"height":180}}'>
class Component extends DCLogic {
renderVals() {
const b = this.props.book ?? 'grid';
return {
ratio: this.props.ratio ?? '2 / 3',
radius: this.props.radius ?? 3,
isGrid: b === 'grid', isQuiet: b === 'quiet', isShape: b === 'shape', isNegative: b === 'negative',
isBrush: b === 'brush', isHush: b === 'hush', isCut: b === 'cut', isOrchard: b === 'orchard'
};
}
}
</script>
</body>
</html>
```SKILL.md
Save as .claude/skills/book-reading-app-ui/SKILL.md
--- name: book-reading-app-ui description: Build the Book Reading mobile app UI in Expo React Native. Use when asked to create a book reading app UI or a new screen in this visual style. --- # Book Reading app UI Build this education app UI in an Expo Router project with TypeScript. Reference: https://developermill.com/app-designs/book-reading-app-ui-design ## Visual direction Soft lavender with white sheets, large Inter Tight headlines, a serif reader in Newsreader and eight illustrated covers drawn in code. Keep these signature details: - Eight book covers drawn with shapes and type - Frosted glass shelf under the new books - Book detail with stats and audiobook button - Reader with text size toggle and progress bar ## Set up ```bash npx expo install expo-blur expo-linear-gradient react-native-svg @expo-google-fonts/anton @expo-google-fonts/dm-serif-display @expo-google-fonts/inter-tight @expo-google-fonts/newsreader @expo-google-fonts/yellowtail expo-font ``` ## Tokens | Name | Hex | | --- | --- | | Lavender | `#C8C7FB` | | Ink | `#111111` | | Indigo | `#4B48D6` | | Paper | `#FBFAF7` | | Mist | `#F3F3F6` | | Slate | `#77778A` | - Typefaces: Inter Tight, Newsreader, DM Serif Display - Text sizes (px): 10, 12, 13, 14, 15, 16, 18, 20 - Corner radii (px): 3, 4, 6, 9, 16, 28 Define these once and reuse them. Do not add new colours. ## Screens 1. **Library home.** A streak banner, a big headline, new book covers on a glass shelf, genre tabs and a popular collection. 2. **Book detail.** A large cover with a soft shadow, title, author, rating, pages, read time and readers, a blurb and Continue reading. 3. **Reader.** Chapter title, serif text with a drop cap and a highlighted line, and a control bar with page progress and the streak. ## 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 book-reading-app --template default cd book-reading-app rm -rf src npx expo install expo-blur expo-linear-gradient react-native-svg @expo-google-fonts/anton @expo-google-fonts/dm-serif-display @expo-google-fonts/inter-tight @expo-google-fonts/newsreader @expo-google-fonts/yellowtail expo-font
src/app/_layout.tsx
import { Anton_400Regular } from '@expo-google-fonts/anton';
import { DMSerifDisplay_400Regular } from '@expo-google-fonts/dm-serif-display';
import {
InterTight_400Regular,
InterTight_500Medium,
InterTight_600SemiBold,
InterTight_700Bold,
InterTight_800ExtraBold,
} from '@expo-google-fonts/inter-tight';
import { Newsreader_400Regular, Newsreader_400Regular_Italic } from '@expo-google-fonts/newsreader';
import { Yellowtail_400Regular } from '@expo-google-fonts/yellowtail';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
export default function RootLayout() {
const [fontsLoaded] = useFonts({
Anton_400Regular,
DMSerifDisplay_400Regular,
InterTight_400Regular,
InterTight_500Medium,
InterTight_600SemiBold,
InterTight_700Bold,
InterTight_800ExtraBold,
Newsreader_400Regular,
Newsreader_400Regular_Italic,
Yellowtail_400Regular,
});
if (!fontsLoaded) return null;
return <Stack screenOptions={{ headerShown: false }} />;
}src/app/index.tsx
import { BlurView } from 'expo-blur';
import { LinearGradient } from 'expo-linear-gradient';
import { router } from 'expo-router';
import { Pressable, StyleSheet, Text, View } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { BookCover } from '@/components/book-cover';
const tint = '#C8C7FB';
export default function MainScreen() {
return (
<Screen background="#FFFFFF" statusBar="dark">
<View style={{ flex: 1 }}>
<LinearGradient
colors={[tint, tint]}
locations={[0, 1]}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, y: 1 }}
style={StyleSheet.absoluteFill}
/>
<View
style={{
alignItems: 'center',
gap: 12,
paddingTop: 58,
paddingBottom: 0,
paddingHorizontal: 22,
flexDirection: 'row',
}}>
<Svg width="34" height="30" viewBox="0 0 34 30">
<Path
d="M2 8h9M0 14h9M4 20h7"
stroke="#2B2B4A"
strokeWidth="1.8"
strokeLinecap="round"
/>
<Path d="M24 2 L13 17 h8 l-3 11 L30 12 h-8 l3 -10 Z" fill="#2B2B4A" />
</Svg>
<View style={{ flex: 1, minWidth: 0 }}>
<Text
style={{
fontFamily: 'InterTight_500Medium',
fontSize: 15,
color: '#22223A',
letterSpacing: -0.2,
}}>
Wow! 25 Days without a break
</Text>
<Text
style={{
marginTop: 2,
fontFamily: 'InterTight_400Regular',
fontSize: 13,
color: '#4A4A6E',
}}>
{"You're ahead of 81% of readers"}
</Text>
</View>
<View style={{ gap: 4, flexShrink: 1, flexDirection: 'row' }}>
<View
style={{ width: 5, height: 5, borderRadius: '50%', backgroundColor: '#22223A' }}
/>
<View
style={{ width: 5, height: 5, borderRadius: '50%', backgroundColor: '#9C9BD0' }}
/>
<View
style={{ width: 5, height: 5, borderRadius: '50%', backgroundColor: '#9C9BD0' }}
/>
</View>
</View>
<Text
style={{
marginTop: 26,
marginBottom: 0,
marginHorizontal: 22,
fontFamily: 'InterTight_500Medium',
fontSize: 47,
color: '#111',
letterSpacing: -1.8,
lineHeight: 49.82,
}}>
You Have 12 New Books Design
</Text>
<View
style={{
alignItems: 'center',
justifyContent: 'space-between',
paddingTop: 20,
paddingBottom: 0,
paddingLeft: 30,
paddingRight: 22,
flexDirection: 'row',
}}>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_500Medium',
fontSize: 16,
color: '#111',
}}>
Design
</Text>
<View style={{ alignItems: 'center', gap: 8, flexShrink: 1, flexDirection: 'row' }}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Previous books"
style={{
borderWidth: 0,
padding: 4,
flexShrink: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 16,
color: '#3A3A5C',
textAlign: 'center',
}}>
‹
</Text>
</Pressable>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 14,
color: '#3A3A5C',
flexShrink: 1,
}}>
16 books
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Next books"
style={{
borderWidth: 0,
padding: 4,
flexShrink: 1,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 16,
color: '#3A3A5C',
textAlign: 'center',
}}>
›
</Text>
</Pressable>
</View>
</View>
<View style={{ height: 170, marginTop: 12 }}>
<View style={{ position: 'absolute', left: 30, top: 6, gap: 24, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Grid Theory"
onPress={() => router.navigate('/detail')}
style={{ width: 84 }}>
<BookCover book="grid" width={84} ratio={2 / 3} />
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Quiet Objects"
onPress={() => router.navigate('/detail')}
style={{ width: 84 }}>
<BookCover book="quiet" width={84} ratio={2 / 3} />
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="The Shape of Use"
onPress={() => router.navigate('/detail')}
style={{ width: 84 }}>
<BookCover book="shape" width={84} ratio={2 / 3} />
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Negative Space"
onPress={() => router.navigate('/detail')}
style={{ width: 84 }}>
<BookCover book="negative" width={84} ratio={2 / 3} />
</Pressable>
</View>
<View
style={{
position: 'absolute',
left: 18,
right: 0,
top: 76,
height: 60,
backgroundColor: 'rgba(150,148,245,0.42)',
borderTopLeftRadius: 6,
borderTopRightRadius: 0,
borderBottomRightRadius: 0,
borderBottomLeftRadius: 6,
boxShadow: 'inset 0 1px 0 rgba(255,255,255,0.45)',
overflow: 'hidden',
}}>
<BlurView intensity={12} tint="default" style={StyleSheet.absoluteFill} />
</View>
</View>
<View
style={{
justifyContent: 'space-between',
paddingVertical: 0,
paddingHorizontal: 22,
marginTop: 6,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="button"
style={{
alignItems: 'center',
gap: 5,
borderWidth: 0,
paddingVertical: 6,
paddingHorizontal: 0,
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 18,
color: '#111',
flexShrink: 1,
}}>
All
</Text>
<Text
style={{
paddingVertical: 2,
paddingHorizontal: 5,
borderRadius: 9,
backgroundColor: '#DDDCFD',
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 10,
color: '#4B48D6',
}}>
23
</Text>
</Pressable>
<Pressable
accessibilityRole="button"
style={{
alignItems: 'center',
gap: 5,
borderWidth: 0,
paddingVertical: 6,
paddingHorizontal: 0,
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 18,
color: '#4E4E66',
flexShrink: 1,
}}>
Design
</Text>
<Text
style={{
paddingVertical: 2,
paddingHorizontal: 5,
borderRadius: 9,
backgroundColor: 'rgba(255,255,255,0.45)',
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 10,
color: '#5A5A72',
}}>
10
</Text>
</Pressable>
<Pressable
accessibilityRole="button"
style={{
alignItems: 'center',
gap: 5,
borderWidth: 0,
paddingVertical: 6,
paddingHorizontal: 0,
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 18,
color: '#4E4E66',
flexShrink: 1,
}}>
Fantasy
</Text>
<Text
style={{
paddingVertical: 2,
paddingHorizontal: 5,
borderRadius: 9,
backgroundColor: 'rgba(255,255,255,0.45)',
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 10,
color: '#5A5A72',
}}>
5
</Text>
</Pressable>
<Pressable
accessibilityRole="button"
style={{
alignItems: 'center',
gap: 5,
borderWidth: 0,
paddingVertical: 6,
paddingHorizontal: 0,
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 18,
color: '#4E4E66',
flexShrink: 1,
}}>
Mystery
</Text>
<Text
style={{
paddingVertical: 2,
paddingHorizontal: 5,
borderRadius: 9,
backgroundColor: 'rgba(255,255,255,0.45)',
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 10,
color: '#5A5A72',
}}>
8
</Text>
</Pressable>
</View>
<View
style={{
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
height: 278,
backgroundColor: '#fff',
borderTopLeftRadius: 30,
borderTopRightRadius: 30,
borderBottomRightRadius: 0,
borderBottomLeftRadius: 0,
paddingTop: 18,
paddingBottom: 0,
paddingLeft: 22,
paddingRight: 18,
gap: 12,
flexDirection: 'row',
}}>
<View style={{ flex: 1, minWidth: 0 }}>
<View style={{ gap: 6, flexDirection: 'row' }}>
<Text
style={{
paddingVertical: 6,
paddingHorizontal: 11,
borderRadius: 16,
backgroundColor: '#EFEFF2',
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 13,
color: '#55556A',
}}>
Collections
</Text>
<Text
style={{
paddingVertical: 6,
paddingHorizontal: 11,
borderRadius: 16,
backgroundColor: '#EFEFF2',
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 13,
color: '#55556A',
}}>
Books
</Text>
</View>
<Text
style={{
marginTop: 18,
fontFamily: 'InterTight_500Medium',
fontSize: 21,
color: '#111',
letterSpacing: -0.4,
}}>
Autumn Reads
</Text>
<Text
style={{
marginTop: 4,
fontFamily: 'InterTight_400Regular',
fontSize: 21,
color: '#77778A',
letterSpacing: -0.4,
lineHeight: 26.25,
}}>
The Most Popular Books
</Text>
<View
style={{
alignItems: 'flex-start',
gap: 4,
marginTop: 'auto',
marginBottom: 18,
flexDirection: 'row',
}}>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 76,
color: '#111',
letterSpacing: -3,
lineHeight: 68.4,
}}>
250
</Text>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 13,
color: '#77778A',
}}>
Top
</Text>
</View>
</View>
<View style={{ width: 186, gap: 8 }}>
<View style={{ flexDirection: 'row', gap: 8 }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Brush & Fire"
onPress={() => router.navigate('/detail')}
style={{ flex: 1 }}>
<BookCover book="brush" width={89} ratio={3 / 4} radius={10} />
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Hush"
onPress={() => router.navigate('/detail')}
style={{ flex: 1 }}>
<BookCover book="hush" width={89} ratio={3 / 4} radius={10} />
</Pressable>
</View>
<View style={{ flexDirection: 'row', gap: 8 }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Cut to Frame"
onPress={() => router.navigate('/detail')}
style={{ flex: 1 }}>
<BookCover book="cut" width={89} ratio={3 / 4} radius={10} />
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="The Orchard"
onPress={() => router.navigate('/detail')}
style={{ flex: 1 }}>
<BookCover book="orchard" width={89} ratio={3 / 4} radius={10} />
</Pressable>
</View>
</View>
</View>
</View>
</Screen>
);
}src/app/detail.tsx
import { router } from 'expo-router';
import { Pressable, Text, View } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { BookCover } from '@/components/book-cover';
const tint = '#C8C7FB';
export default function DetailScreen() {
return (
<Screen background="#fff" statusBar="dark">
<View style={{ flex: 1 }}>
<View
style={{
position: 'absolute',
left: 0,
right: 0,
top: 0,
height: 330,
backgroundColor: tint,
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
borderBottomRightRadius: 34,
borderBottomLeftRadius: 34,
}}
/>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
paddingTop: 58,
paddingBottom: 0,
paddingHorizontal: 20,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back to home"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: 'rgba(255,255,255,0.55)',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#111"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M15 18l-6-6 6-6" />
</Svg>
</Pressable>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 14,
color: '#3A3A5C',
}}>
Design · 3 of 16
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Save to collection"
style={{
width: 44,
height: 44,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: 'rgba(255,255,255,0.55)',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#111"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z" />
</Svg>
</Pressable>
</View>
<View style={{ justifyContent: 'center', marginTop: 22, flexDirection: 'row' }}>
<View
style={{
width: 176,
boxShadow: '0 24px 40px -14px rgba(40,30,120,0.45)',
borderRadius: 4,
}}>
<BookCover book="shape" width={176} ratio={2 / 3} radius={4} />
</View>
</View>
<View style={{ paddingVertical: 0, paddingHorizontal: 22 }}>
<View
style={{
marginTop: 28,
justifyContent: 'space-between',
alignItems: 'flex-end',
flexDirection: 'row',
}}>
<View style={{ flexShrink: 1 }}>
<Text
style={{
margin: 0,
fontFamily: 'InterTight_500Medium',
fontSize: 30,
color: '#111',
letterSpacing: -0.9,
}}>
The Shape of Use
</Text>
<Text
style={{
marginTop: 4,
fontFamily: 'InterTight_400Regular',
fontSize: 15,
color: '#77778A',
}}>
Elena Marsh
</Text>
</View>
<View style={{ alignItems: 'center', gap: 4, flexShrink: 1, flexDirection: 'row' }}>
<Svg width="15" height="15" viewBox="0 0 24 24" fill="#111">
<Path d="M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z" />
</Svg>
<Text
style={{
fontFamily: 'InterTight_500Medium',
fontSize: 15,
color: '#111',
flexShrink: 1,
}}>
4.8
</Text>
</View>
</View>
<View style={{ marginTop: 20, flexDirection: 'row', gap: 8 }}>
<View
style={{
backgroundColor: '#F3F3F6',
borderRadius: 16,
paddingVertical: 12,
paddingHorizontal: 14,
flex: 1,
}}>
<Text style={{ fontFamily: 'InterTight_400Regular', fontSize: 12, color: '#6E6E82' }}>
Pages
</Text>
<Text
style={{
marginTop: 2,
fontFamily: 'InterTight_500Medium',
fontSize: 20,
color: '#111',
}}>
312
</Text>
</View>
<View
style={{
backgroundColor: '#F3F3F6',
borderRadius: 16,
paddingVertical: 12,
paddingHorizontal: 14,
flex: 1,
}}>
<Text style={{ fontFamily: 'InterTight_400Regular', fontSize: 12, color: '#6E6E82' }}>
Read time
</Text>
<Text
style={{
marginTop: 2,
fontFamily: 'InterTight_500Medium',
fontSize: 20,
color: '#111',
}}>
6h 20m
</Text>
</View>
<View
style={{
backgroundColor: '#F3F3F6',
borderRadius: 16,
paddingVertical: 12,
paddingHorizontal: 14,
flex: 1,
}}>
<Text style={{ fontFamily: 'InterTight_400Regular', fontSize: 12, color: '#6E6E82' }}>
Readers
</Text>
<Text
style={{
marginTop: 2,
fontFamily: 'InterTight_500Medium',
fontSize: 20,
color: '#111',
}}>
12.4k
</Text>
</View>
</View>
<Text
style={{
marginTop: 20,
fontFamily: 'InterTight_500Medium',
fontSize: 16,
color: '#111',
}}>
About the book
</Text>
<Text
style={{
marginTop: 6,
marginBottom: 0,
marginHorizontal: 0,
fontFamily: 'InterTight_400Regular',
fontSize: 14,
color: '#5A5A6E',
lineHeight: 21,
}}>
Why does a good handle feel obvious and a bad door feel like a trap? Elena Marsh walks
through the everyday objects we touch without thinking, and shows how shape, feedback
and habit decide whether a thing gets used well.
</Text>
<View style={{ gap: 10, marginTop: 22, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
onPress={() => router.navigate('/reader')}
style={{
flex: 1,
height: 56,
borderRadius: 28,
backgroundColor: '#111',
alignItems: 'center',
justifyContent: 'center',
gap: 10,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'InterTight_500Medium',
fontSize: 16,
color: '#fff',
flexShrink: 1,
}}>
Continue reading
</Text>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_500Medium',
fontSize: 13,
color: '#B9B8F5',
}}>
38%
</Text>
</Pressable>
<Pressable
accessibilityRole="button"
accessibilityLabel="Listen to audiobook"
style={{
width: 56,
height: 56,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: tint,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#111"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M3 18v-6a9 9 0 0 1 18 0v6" />
<Path d="M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z" />
</Svg>
</Pressable>
</View>
</View>
</View>
</Screen>
);
}src/app/reader.tsx
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, Text, View } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ large: false });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
return {
tint: '#C8C7FB',
textSize: state.large ? 19 : 17,
toggleSize: () => setState({ large: !state.large }),
};
}
export default function ReaderScreen() {
const { tint, textSize, toggleSize } = useScreen();
return (
<Screen background="#FBFAF7" statusBar="dark">
<View style={{ flex: 1 }}>
<View
style={{
alignItems: 'center',
justifyContent: 'space-between',
paddingTop: 58,
paddingBottom: 0,
paddingHorizontal: 20,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back to book"
onPress={() => router.navigate('/detail')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#EFEEF4',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#111"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M15 18l-6-6 6-6" />
</Svg>
</Pressable>
<View style={{ flexShrink: 1 }}>
<Text
style={{
fontFamily: 'InterTight_400Regular',
fontSize: 12,
color: '#77778A',
textAlign: 'center',
}}>
The Shape of Use
</Text>
<Text
style={{
marginTop: 1,
fontFamily: 'InterTight_500Medium',
fontSize: 15,
color: '#111',
textAlign: 'center',
}}>
Chapter 3 · The Handle
</Text>
</View>
<Pressable
accessibilityRole="button"
accessibilityLabel="Change text size"
onPress={toggleSize}
style={{
width: 44,
height: 44,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#EFEEF4',
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'InterTight_600SemiBold',
fontSize: 15,
color: '#111',
textAlign: 'center',
}}>
aA
</Text>
</Pressable>
</View>
<View style={{ paddingTop: 26, paddingBottom: 0, paddingHorizontal: 26 }}>
<View
style={{ marginTop: 0, marginBottom: 14, marginHorizontal: 0, flexDirection: 'row' }}>
<Text
style={{
marginTop: 6,
marginBottom: 0,
marginLeft: 0,
marginRight: 8,
flexShrink: 1,
fontFamily: 'Newsreader_400Regular',
fontSize: 44,
color: '#111',
lineHeight: 35.2,
}}>
A
</Text>
<Text
style={{
margin: 0,
flex: 1,
fontFamily: 'Newsreader_400Regular',
fontSize: textSize,
color: '#24242E',
lineHeight: textSize * 1.6,
flexShrink: 1,
}}>
door handle is a promise. Before your hand arrives, its shape has already told you
whether to push, pull or turn, and most of the time you never notice the message.
</Text>
</View>
<Text
style={{
marginTop: 0,
marginBottom: 14,
marginHorizontal: 0,
fontFamily: 'Newsreader_400Regular',
fontSize: textSize,
color: '#24242E',
lineHeight: textSize * 1.6,
}}>
We notice only when the promise is broken: the flat plate that asks to be pulled, the
elegant bar that will not move.
</Text>
<Text
style={{
marginTop: 0,
marginBottom: 14,
marginHorizontal: 0,
fontFamily: 'Newsreader_400Regular',
fontSize: textSize,
color: '#24242E',
lineHeight: textSize * 1.6,
}}>
<Text style={{ backgroundColor: tint }}>
Good objects explain themselves through the body before they reach the mind.
</Text>
{
' The grip, the weight, the small click at the end of a turn are all part of the conversation.'
}
</Text>
<Text
style={{
margin: 0,
fontFamily: 'Newsreader_400Regular_Italic',
fontSize: textSize,
color: '#5A5A6E',
lineHeight: textSize * 1.6,
}}>
Look around the room you are in. Count the things you used today without once reading an
instruction.
</Text>
</View>
<View
style={{
position: 'absolute',
left: 16,
right: 16,
bottom: 26,
backgroundColor: tint,
borderRadius: 28,
paddingTop: 16,
paddingBottom: 14,
paddingHorizontal: 18,
}}>
<View
style={{ justifyContent: 'space-between', alignItems: 'center', flexDirection: 'row' }}>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 13,
color: '#3A3A5C',
}}>
Page 118 of 312
</Text>
<Text
style={{
flexShrink: 1,
fontFamily: 'InterTight_400Regular',
fontSize: 13,
color: '#3A3A5C',
}}>
24 min left in chapter
</Text>
</View>
<View
style={{
height: 6,
borderRadius: 3,
backgroundColor: 'rgba(255,255,255,0.6)',
marginTop: 10,
overflow: 'hidden',
}}>
<View
style={{ width: '38%', height: '100%', backgroundColor: '#111', borderRadius: 3 }}
/>
</View>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 12,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Previous page"
style={{
width: 44,
height: 44,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: 'rgba(255,255,255,0.6)',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#111"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M15 18l-6-6 6-6" />
</Svg>
</Pressable>
<View style={{ alignItems: 'center', gap: 8, flexShrink: 1, flexDirection: 'row' }}>
<Svg width="18" height="16" viewBox="0 0 34 30">
<Path d="M24 2 L13 17 h8 l-3 11 L30 12 h-8 l3 -10 Z" fill="#111" />
</Svg>
<Text
style={{
fontFamily: 'InterTight_500Medium',
fontSize: 14,
color: '#111',
flexShrink: 1,
}}>
Day 26 streak
</Text>
</View>
<Pressable
accessibilityRole="button"
accessibilityLabel="Next page"
style={{
width: 44,
height: 44,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#111',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M9 18l6-6-6-6" />
</Svg>
</Pressable>
</View>
</View>
</View>
</Screen>
);
}src/components/book-cover.tsx
import type { ReactNode } from 'react';
import { Text, View, type TextStyle, type ViewStyle } from 'react-native';
import Svg, {
Circle,
Defs,
Ellipse,
G,
LinearGradient,
Path,
RadialGradient,
Rect,
Stop,
} from 'react-native-svg';
export type Book = 'grid' | 'quiet' | 'shape' | 'negative' | 'brush' | 'hush' | 'cut' | 'orchard';
type Props = {
book: Book;
/** Width of the cover in artboard pixels. Every measurement inside scales with it. */
width: number;
/** Width / height, for example 2 / 3 for a paperback or 3 / 4 for a square-ish card. */
ratio?: number;
radius?: number;
};
const SANS = {
400: 'InterTight_400Regular',
600: 'InterTight_600SemiBold',
700: 'InterTight_700Bold',
800: 'InterTight_800ExtraBold',
};
const SERIF = 'DMSerifDisplay_400Regular';
const POSTER = 'Anton_400Regular';
const SCRIPT = 'Yellowtail_400Regular';
/**
* Eight illustrated book covers drawn with shapes and type only, so they stay
* sharp at any size. One unit (u) is 1% of the cover width.
*/
export function BookCover({ book, width, ratio = 2 / 3, radius = 3 }: Props) {
const W = width;
const H = width / ratio;
const u = W / 100;
// Absolute text helper: position plus type in one go.
const label = (
text: ReactNode,
pos: ViewStyle,
size: number,
color: string,
extra: TextStyle = {},
) => (
<Text
style={[
{ position: 'absolute', fontSize: size * u, color, fontFamily: SANS[400] },
pos as TextStyle,
extra,
]}>
{text}
</Text>
);
// Vertical type, as in CSS writing-mode: vertical-rl. The text is laid out
// horizontally in a box as long as the column, then turned on its side.
const vertical = (
text: string,
opts: { side: 'left' | 'right'; inset: number; size: number; lines: number; lh: number },
style: TextStyle,
) => {
const length = H * 0.92;
const block = opts.lines * opts.lh * opts.size * u;
const cx = opts.side === 'right' ? W - opts.inset * W - block / 2 : opts.inset * W + block / 2;
return (
<View
style={{
position: 'absolute',
left: cx - length / 2,
top: H / 2 - block / 2,
width: length,
height: block,
transform: [{ rotate: opts.side === 'right' ? '90deg' : '-90deg' }],
}}>
<Text style={[{ fontSize: opts.size * u, lineHeight: opts.lh * opts.size * u }, style]}>
{text}
</Text>
</View>
);
};
let art: ReactNode = null;
switch (book) {
case 'grid':
art = (
<View style={{ flex: 1, backgroundColor: '#F4F1EA' }}>
<View style={{ position: 'absolute', left: 0, top: 0, bottom: 0, width: '11%', backgroundColor: '#1F4FD8' }} />
<View style={{ position: 'absolute', left: '11%', right: 0, top: '24%', height: '32%', backgroundColor: '#F7D224' }} />
<View style={{ position: 'absolute', right: 0, bottom: '12%', width: '38%', height: '26%', backgroundColor: '#E0342A' }} />
<View style={{ position: 'absolute', left: '18%', top: '61%', width: '36%', height: 0.8 * u, backgroundColor: '#111' }} />
{label('grid theory', { right: '7%', top: '5%' }, 14, '#111', {
fontFamily: SANS[800],
letterSpacing: -0.05 * 14 * u,
lineHeight: 14 * u,
})}
{label('a century of modernist form', { right: '7%', top: '16%' }, 4.6, '#333')}
{label('the definitive reference on grids, blocks and colour', { left: '18%', top: '65%', width: '38%' }, 4.6, '#222', {
lineHeight: 4.6 * 1.25 * u,
})}
{label('NORDA', { left: '18%', bottom: '4%' }, 4.2, '#111', {
fontFamily: SANS[700],
letterSpacing: 0.15 * 4.2 * u,
})}
</View>
);
break;
case 'quiet':
art = (
<View style={{ flex: 1, backgroundColor: '#F57A1F' }}>
{label("the industrial designer's notebook", { left: '7%', top: '5%', width: '36%' }, 4.8, '#1a1a1a', {
lineHeight: 4.8 * 1.25 * u,
})}
{vertical('quiet objects', { side: 'right', inset: 0.02, size: 33, lines: 2, lh: 0.82 }, {
fontFamily: SANS[800],
letterSpacing: -0.06 * 33 * u,
color: '#111',
})}
{label('KESTREL', { left: '7%', bottom: '4%' }, 4.2, '#1a1a1a', {
fontFamily: SANS[700],
letterSpacing: 0.15 * 4.2 * u,
})}
</View>
);
break;
case 'shape':
art = (
<View style={{ flex: 1, backgroundColor: '#F5DC3F' }}>
{label('The Shape\nof Use', { left: 0, right: 0, top: '9%' }, 13.5, '#9B1B1B', {
fontFamily: SERIF,
textAlign: 'center',
lineHeight: 13.5 * 1.05 * u,
})}
<Svg
viewBox="0 0 100 110"
width={0.52 * W}
height={0.52 * W * 1.1}
style={{ position: 'absolute', left: 0.22 * W, bottom: 0.07 * H }}>
<Ellipse cx="50" cy="104" rx="34" ry="5" fill="rgba(120,60,0,0.18)" />
<Rect x="26" y="94" width="40" height="8" rx="3" fill="#B71F1A" />
<Path d="M44 95 L36 58 L62 30" stroke="#B71F1A" strokeWidth={5} fill="none" strokeLinecap="round" />
<Circle cx="36" cy="58" r="4.5" fill="#8E1512" />
<Path d="M54 22 L80 12 L92 40 L66 50 Z" fill="#D2271F" />
<Path d="M66 50 Q79 58 92 40" fill="#FFF3B0" opacity={0.8} />
</Svg>
{label('ELENA MARSH', { right: '7%', bottom: '5%' }, 4.6, '#9B1B1B', {
fontFamily: SERIF,
letterSpacing: 0.1 * 4.6 * u,
})}
</View>
);
break;
case 'negative':
art = (
<View style={{ flex: 1, backgroundColor: '#131313' }}>
{label('NEGATIVE\nSPACE', { left: '8%', top: '6%' }, 6, '#fff', {
fontFamily: SANS[600],
letterSpacing: 0.2 * 6 * u,
})}
<Svg viewBox="0 0 100 150" width={W} height={H} preserveAspectRatio="xMidYMid meet" style={{ position: 'absolute', left: 0, top: 0 }}>
<Path
d="M40 150 C 40 110, 95 112, 88 78 C 82 48, 45 52, 52 80 C 58 104, 98 96, 100 60"
stroke="#fff"
strokeWidth={2.2}
fill="none"
strokeLinecap="round"
/>
</Svg>
<View
style={{
position: 'absolute',
left: '8%',
bottom: '4%',
width: 6 * u,
height: 6 * u,
borderRadius: 3 * u,
borderWidth: 0.8 * u,
borderColor: '#fff',
}}
/>
</View>
);
break;
case 'brush': {
// repeating-radial-gradient: four colour bands, 9u wide, repeated outwards.
const cx = 0.75 * W;
const cy = 0.3 * H;
const reach = Math.hypot(cx, H - cy);
const bands = [
[9, '#D86A2B'],
[7, '#1E5C78'],
[4.5, '#E3A93A'],
[2.5, '#2E7F86'],
] as const;
const rings: ReactNode[] = [];
for (let k = Math.ceil(reach / (9 * u)); k >= 0; k--) {
for (const [edge, color] of bands) {
rings.push(<Circle key={`${k}-${edge}`} cx={cx} cy={cy} r={(k * 9 + edge) * u} fill={color} />);
}
}
art = (
<View style={{ flex: 1 }}>
<Svg width={W} height={H} style={{ position: 'absolute', left: 0, top: 0 }}>
{rings}
</Svg>
<Svg viewBox="0 0 100 133" width={W} height={H} style={{ position: 'absolute', left: 0, top: 0 }}>
<Path d="M18 133 C 22 105, 40 96, 60 96 C 82 96, 96 108, 100 133 Z" fill="#23506E" />
<Path d="M44 92 C 40 70, 44 52, 62 50 C 80 50, 86 70, 80 92 C 74 104, 52 104, 44 92 Z" fill="#E9B072" />
<Path d="M46 82 C 48 104, 76 106, 80 82 C 76 96, 52 96, 46 82 Z" fill="#C8551E" />
<Ellipse cx="62" cy="46" rx="30" ry="6" fill="#F2CF4A" />
<Path d="M44 46 C 44 30, 80 30, 80 46 Z" fill="#E8BE3A" />
<Circle cx="55" cy="70" r="2.2" fill="#1E4A5C" />
<Circle cx="71" cy="70" r="2.2" fill="#1E4A5C" />
</Svg>
{vertical('BRUSH & FIRE', { side: 'left', inset: 0.04, size: 15, lines: 1, lh: 1 }, {
fontFamily: SERIF,
color: '#F7D23E',
textShadowColor: 'rgba(0,0,0,0.25)',
textShadowRadius: 3 * u,
})}
{label('the life of a painter', { right: '6%', bottom: '4%' }, 4.4, '#FFF6DA')}
</View>
);
break;
}
case 'hush':
art = (
<View style={{ flex: 1, backgroundColor: '#E5142B' }}>
{label('Hush', { left: 0, right: 0, top: '22%' }, 46, '#fff', {
fontFamily: SCRIPT,
textAlign: 'center',
lineHeight: 46 * u,
})}
<Svg viewBox="0 0 100 133" width={W} height={H} style={{ position: 'absolute', left: 0, top: 0 }}>
<G fill="#111">
<Circle cx="24" cy="22" r="2" />
<Rect x="22.6" y="24.5" width="2.8" height="8" rx="1.2" />
</G>
<G fill="#111">
<Circle cx="80" cy="50" r="2" />
<Rect x="78.6" y="52.5" width="2.8" height="8" rx="1.2" />
</G>
</Svg>
{label('NINA HOLLOWAY', { left: 0, right: 0, bottom: '7%' }, 5.4, '#fff', {
fontFamily: SANS[700],
letterSpacing: 0.12 * 5.4 * u,
textAlign: 'center',
})}
{label('a novel', { left: 0, right: 0, bottom: '3%' }, 3.8, '#FFD9DD', { textAlign: 'center' })}
</View>
);
break;
case 'cut':
art = (
<View style={{ flex: 1, backgroundColor: '#F1E6C8' }}>
<View style={{ position: 'absolute', left: 0, top: 0, width: '46%', height: '30%', backgroundColor: '#E0A526' }} />
<View style={{ position: 'absolute', left: '46%', top: 0, right: 0, height: '18%', backgroundColor: '#D9531E' }} />
<View style={{ position: 'absolute', right: 0, top: '18%', width: '28%', height: '30%', backgroundColor: '#2A8C8A' }} />
<View style={{ position: 'absolute', left: 0, top: '64%', width: '22%', height: '22%', backgroundColor: '#111' }} />
<View
style={{
position: 'absolute',
right: '10%',
top: '66%',
width: 24 * u,
height: 0.16 * H,
backgroundColor: '#C9302C',
borderBottomLeftRadius: 12 * u,
borderBottomRightRadius: 12 * u,
}}
/>
{label('CUT\nTO\nFRAME', { left: '7%', top: '28%' }, 19, '#1a1a1a', {
fontFamily: POSTER,
lineHeight: 19 * 0.95 * u,
})}
{label('the complete guide to the short film', { left: '26%', bottom: '8%', width: '44%' }, 4, '#333', {
lineHeight: 4 * 1.2 * u,
})}
{label('Owen Pike', { left: '26%', bottom: '3%' }, 4.2, '#1a1a1a', { fontFamily: SANS[700] })}
</View>
);
break;
case 'orchard':
art = (
<View style={{ flex: 1 }}>
<Svg width={W} height={H} style={{ position: 'absolute', left: 0, top: 0 }}>
<Defs>
<LinearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<Stop offset="0" stopColor="#0D2654" />
<Stop offset="0.58" stopColor="#1D4C8F" />
<Stop offset="1" stopColor="#0A1C42" />
</LinearGradient>
<RadialGradient id="glow" cx="0.5" cy="0.5" r="0.707">
<Stop offset="0" stopColor="rgb(190,215,255)" stopOpacity={0.45} />
<Stop offset="0.7" stopColor="rgb(190,215,255)" stopOpacity={0} />
</RadialGradient>
</Defs>
<Rect x="0" y="0" width={W} height={H} fill="url(#sky)" />
<Rect x={-0.1 * W} y={0.52 * H} width={1.2 * W} height={0.22 * H} fill="url(#glow)" />
</Svg>
{label('THE ORCHARD', { left: 0, right: 0, top: '6%' }, 17, '#fff', {
fontFamily: POSTER,
textAlign: 'center',
lineHeight: 17 * u,
})}
{label('some secrets ripen slowly', { left: 0, right: 0, top: '22%' }, 4.2, '#CFE0FF', { textAlign: 'center' })}
<Svg viewBox="0 0 100 133" width={W} height={H} style={{ position: 'absolute', left: 0, top: 0 }}>
<Rect x="51" y="44" width="2.4" height="16" fill="#C9D2DC" />
<Circle cx="52.2" cy="42" r="4" fill="none" stroke="#C9D2DC" strokeWidth={2} />
<Path
d="M52 58 C 44 58, 42 70, 40 78 C 32 86, 30 104, 52 108 C 74 104, 72 86, 64 78 C 62 70, 60 58, 52 58 Z"
fill="#D3242C"
/>
<Path d="M44 74 C 42 84, 40 92, 44 98" stroke="#FF7A7A" strokeWidth={2} fill="none" opacity={0.7} />
<Ellipse cx="52" cy="110" rx="18" ry="2.5" fill="rgba(0,0,0,0.35)" />
</Svg>
{label('J. R. CALLOWAY', { left: 0, right: 0, bottom: '4%' }, 4.4, '#fff', {
fontFamily: SANS[600],
letterSpacing: 0.14 * 4.4 * u,
textAlign: 'center',
})}
</View>
);
break;
}
return (
<View
style={{
width: W,
height: H,
borderRadius: radius,
overflow: 'hidden',
boxShadow: '0 1px 2px rgba(20,20,60,0.18)',
}}>
{art}
</View>
);
}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>
);
}About this design
The detail page has a large cover, rating, page count, read time and a Continue reading button with progress. The reader uses a serif font with a drop cap, a highlighted passage and a lavender control bar with page progress and the streak.
Soft lavender with white sheets, large Inter Tight headlines, a serif reader in Newsreader and eight illustrated covers drawn in code.
- Eight book covers drawn with shapes and type
- Frosted glass shelf under the new books
- Book detail with stats and audiobook button
- Reader with text size toggle and progress bar
Colour palette
Lavender
#C8C7FB
Ink
#111111
Indigo
#4B48D6
Paper
#FBFAF7
Mist
#F3F3F6
Slate
#77778A
How to use this design
- 01
Pick what to copy
Copy the Book Reading 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
Are the book covers images?
No. All eight covers are one BookCover component drawn with views, SVG and Google fonts. Pass a book name and a width and it scales.
Does the text size button work?
Yes. The aA button switches the reader between 17 and 19 point text and the line height follows.
Can I use real cover images?
Yes. Replace BookCover with an expo-image Image at the same size. The shelf and grid layouts stay the same.
Is the Book Reading 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.



