// Health app UI
Mood Tracker and Breathing App UI Design in Expo
This mood tracker app UI makes self care feel gentle. The home screen celebrates mindful moments, shows a week of mood faces and links to breathing, sleep and stress cards.
- Screens
- 3
- Built with
- Expo SDK 58
- Fonts
- Instrument Serif, Inter
- License
- Free (MIT)
- Views
- 0
Calmo Mood Tracker app screens

Mindful home
A greeting with highlighted words, a week of mood faces, breath, sleep and stress cards and a daily routine list.

Breath exercise
A phase and countdown, a dial with a progress arc, an animated mascot, technique cards and play controls.

Mood insight
A month of mood faces, a monthly summary card with a cloud character and therapy statistics.
Copy the Calmo Mood Tracker 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
# Calmo Mood Tracker: design artifact This mood tracker app UI makes self care feel gentle. The home screen celebrates mindful moments, shows a week of mood faces and links to breathing, sleep and stress cards. - Type: Health 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/mood-tracker-app-ui-design ## Design direction Near-black pages with soft purple, orange, blue and pink cards, serif headlines and glossy mood emoji drawn in SVG. - Glossy mood faces drawn in SVG - Working 4-7-8 breathing timer with an animated mascot - Mood calendar with a selectable day - Floating tab bar that switches screens ## Foundations ### Colour | Token | Hex | | --- | --- | | Night | `#1B1B1D` | | Orange | `#FF8A2B` | | Lilac | `#C3A8FF` | | Pink | `#F58AC0` | | Blue | `#3B79F2` | | Graphite | `#2A2A2D` | ### Typography - Typefaces: Instrument Serif, Inter - Common sizes (px): 10, 11, 11.5, 12, 13, 17, 19, 22 ### Shape and depth - Common corner radii (px): 3, 5, 7, 18, 20, 22 - Shadows: `0 6px 16px rgba(0,0,0,0.35)` ## Screens ### 1. Mindful home A greeting with highlighted words, a week of mood faces, breath, sleep and stress cards and a daily routine list. Preview: https://developermill.com/app-designs/mood-tracker-app-ui-design/home.webp ### 2. Breath exercise A phase and countdown, a dial with a progress arc, an animated mascot, technique cards and play controls. Preview: https://developermill.com/app-designs/mood-tracker-app-ui-design/breath.webp ### 3. Mood insight A month of mood faces, a monthly summary card with a cloud character and therapy statistics. Preview: https://developermill.com/app-designs/mood-tracker-app-ui-design/mood.webp ## Source The full source for this design is the Expo code on the same page. Copy it to see every screen, component and style.
SKILL.md
Save as .claude/skills/mood-tracker-app-ui/SKILL.md
--- name: mood-tracker-app-ui description: Build the Calmo Mood Tracker mobile app UI in Expo React Native. Use when asked to create a mood tracker app UI or a new screen in this visual style. --- # Calmo Mood Tracker app UI Build this health app UI in an Expo Router project with TypeScript. Reference: https://developermill.com/app-designs/mood-tracker-app-ui-design ## Visual direction Near-black pages with soft purple, orange, blue and pink cards, serif headlines and glossy mood emoji drawn in SVG. Keep these signature details: - Glossy mood faces drawn in SVG - Working 4-7-8 breathing timer with an animated mascot - Mood calendar with a selectable day - Floating tab bar that switches screens ## Set up ```bash npx expo install expo-image expo-linear-gradient react-native-svg @expo-google-fonts/instrument-serif @expo-google-fonts/inter expo-font ``` ## Tokens | Name | Hex | | --- | --- | | Night | `#1B1B1D` | | Orange | `#FF8A2B` | | Lilac | `#C3A8FF` | | Pink | `#F58AC0` | | Blue | `#3B79F2` | | Graphite | `#2A2A2D` | - Typefaces: Instrument Serif, Inter - Text sizes (px): 10, 11, 11.5, 12, 13, 17, 19, 22 - Corner radii (px): 3, 5, 7, 18, 20, 22 Define these once and reuse them. Do not add new colours. ## Screens 1. **Mindful home.** A greeting with highlighted words, a week of mood faces, breath, sleep and stress cards and a daily routine list. 2. **Breath exercise.** A phase and countdown, a dial with a progress arc, an animated mascot, technique cards and play controls. 3. **Mood insight.** A month of mood faces, a monthly summary card with a cloud character and therapy statistics. ## 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 mood-tracker-app --template default cd mood-tracker-app rm -rf src npx expo install expo-image expo-linear-gradient react-native-svg @expo-google-fonts/instrument-serif @expo-google-fonts/inter expo-font
src/app/_layout.tsx
import { InstrumentSerif_400Regular } from '@expo-google-fonts/instrument-serif';
import { Inter_400Regular, Inter_500Medium, Inter_600SemiBold } from '@expo-google-fonts/inter';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
export default function RootLayout() {
const [fontsLoaded] = useFonts({
InstrumentSerif_400Regular,
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
});
if (!fontsLoaded) return null;
return <Stack screenOptions={{ headerShown: false, animation: 'fade' }} />;
}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 { Icon } from '@/components/icon';
import { MoodFace, type Mood } from '@/components/mood-face';
import { Screen } from '@/components/screen';
import { TabBar } from '@/components/tab-bar';
import { CircleButton, SectionHead } from '@/components/ui';
import { asset } from '@/lib/assets';
import { C, F } from '@/lib/theme';
const WEEK: Mood[] = ['happy', 'sad', 'calm', 'sad', 'surprised', 'empty', 'empty'];
const SLEEP = [0.42, 0.7, 0.55, 0.85, 0.62, 0.95, 0.78];
const STRESS = [0.55, 0.85, 0.4, 0.95, 0.65, 0.8, 0.5, 0.9];
const ROUTINE = [
{ title: 'Morning breathwork', mins: 8 },
{ title: 'Evening relaxation', mins: 12 },
];
export default function HomeScreen() {
const [day, setDay] = useState(4);
return (
<Screen background={C.bg} statusBar="light">
<View style={styles.root}>
<ScrollView contentContainerStyle={styles.scroll} showsVerticalScrollIndicator={false}>
<View style={styles.top}>
<CircleButton icon="menu" label="Open menu" />
<CircleButton icon="bell" label="Notifications" dot />
</View>
<View style={styles.greet}>
<Text style={styles.greetText}>Good morning, Zara!</Text>
<View style={styles.line}>
<Text style={styles.greetText}>You've enjoyed </Text>
<View style={[styles.highlight, { backgroundColor: C.orange }]}>
<Text style={styles.greetText}>5 mindful moments</Text>
</View>
</View>
<View style={styles.line}>
<Text style={styles.greetText}>and made space for </Text>
<View style={[styles.highlight, { backgroundColor: C.purple }]}>
<Text style={styles.greetText}>yourself.</Text>
</View>
</View>
</View>
<View style={styles.week}>
{WEEK.map((mood, index) => (
<Pressable
key={index}
accessibilityRole="button"
accessibilityLabel={`Day ${index + 1}`}
accessibilityState={{ selected: index === day }}
onPress={() => setDay(index)}
style={[styles.day, index === day && styles.dayOn]}>
<MoodFace mood={mood} size={34} />
<Text style={styles.dayNum}>{index + 1}</Text>
<Text style={styles.dayLabel}>Day</Text>
</Pressable>
))}
</View>
<View style={styles.grid}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Open breath exercise"
onPress={() => router.navigate('/breath')}
style={{ flex: 1 }}>
<LinearGradient colors={['#C9B5FF', '#A891F5', '#8C72EC']} style={[styles.card, styles.breath]}>
<Text style={styles.cardTitle}>Breath Exercise</Text>
<Text style={styles.cardSub}>Take a deep breath and find your calm.</Text>
<Image source={{ uri: asset('home-blob.png') }} style={styles.blob} contentFit="contain" />
<View style={styles.controls}>
<View style={styles.mini}>
<Icon name="volume" size={13} />
</View>
<View style={styles.playMini}>
<Icon name="play" size={15} />
</View>
<View style={styles.mini}>
<Icon name="timer" size={13} />
</View>
</View>
</LinearGradient>
</Pressable>
<View style={{ flex: 1, gap: 8 }}>
<LinearGradient colors={['#6E9BFF', '#3F72F5', '#2B58DD']} style={[styles.card, styles.small]}>
<View style={styles.row}>
<Icon name="moon" size={13} color="#FFE07A" />
<Text style={styles.smallTitle}>Sleep duration</Text>
</View>
<View style={styles.bars}>
{SLEEP.map((value, index) => (
<View
key={index}
style={[
styles.bar,
{
height: 46 * value,
opacity: index === 3 ? 0.55 : 1,
backgroundColor: index === 3 ? '#0E1B44' : '#fff',
},
]}
/>
))}
</View>
<Text style={styles.big}>8h 24m</Text>
</LinearGradient>
<LinearGradient colors={['#FFC1DE', '#F58AC0', '#EB6AA9']} style={[styles.card, styles.small]}>
<View style={styles.row}>
<Icon name="heart" size={13} color="#E2367D" />
<Text style={styles.smallTitle}>Stress indicator</Text>
</View>
<View style={styles.bars}>
{STRESS.map((value, index) => (
<View
key={index}
style={[
styles.bar,
{
width: 8,
height: 46 * value,
backgroundColor: index % 3 === 1 ? '#C43C7F' : '#fff',
},
]}
/>
))}
</View>
<Text style={styles.big}>High</Text>
</LinearGradient>
</View>
</View>
<SectionHead title="Daily Routine" style={{ marginTop: 18, marginBottom: 10 }} />
{ROUTINE.map((item) => (
<Pressable key={item.title} accessibilityRole="button" style={styles.routine}>
<View style={styles.routineIcon}>
<Icon name="lotus" size={16} color={C.orange} />
</View>
<Text style={styles.routineTitle}>{item.title}</Text>
<View style={styles.routineMins}>
<Icon name="clock" size={14} color="#151517" />
<Text style={styles.routineMinsText}>{item.mins} min</Text>
</View>
</Pressable>
))}
</ScrollView>
<TabBar active={0} />
</View>
</Screen>
);
}
const styles = StyleSheet.create({
root: { flex: 1, paddingTop: 46 },
scroll: { paddingHorizontal: 16, paddingBottom: 120 },
top: { flexDirection: 'row', justifyContent: 'space-between', marginTop: 8 },
greet: { alignItems: 'center', marginTop: 18, gap: 3 },
line: { flexDirection: 'row', alignItems: 'center' },
greetText: { fontFamily: F.serif, fontSize: 21.5, color: C.text, lineHeight: 28 },
highlight: { borderRadius: 7, paddingHorizontal: 4 },
week: { flexDirection: 'row', justifyContent: 'space-between', marginTop: 20 },
day: {
width: 44,
paddingTop: 5,
paddingBottom: 8,
borderRadius: 22,
backgroundColor: '#fff',
alignItems: 'center',
borderWidth: 2,
borderColor: '#fff',
},
dayOn: { borderColor: C.orange },
dayNum: { fontFamily: F.sansMed, fontSize: 11, color: C.ink, marginTop: 5 },
dayLabel: { fontFamily: F.sans, fontSize: 10, color: C.ink },
grid: { flexDirection: 'row', gap: 8, marginTop: 16 },
card: { borderRadius: 20, padding: 12, overflow: 'hidden' },
breath: { height: 232 },
cardTitle: { fontFamily: F.serif, fontSize: 17, color: '#fff' },
cardSub: {
fontFamily: F.sans,
fontSize: 10.5,
color: 'rgba(255,255,255,0.85)',
marginTop: 5,
lineHeight: 14,
width: '88%',
},
blob: { position: 'absolute', width: 150, height: 148, left: 12, bottom: 22 },
controls: {
position: 'absolute',
bottom: 12,
left: 12,
right: 12,
flexDirection: 'row',
justifyContent: 'space-around',
alignItems: 'center',
},
mini: {
width: 26,
height: 26,
borderRadius: 13,
backgroundColor: 'rgba(255,255,255,0.3)',
alignItems: 'center',
justifyContent: 'center',
},
playMini: {
width: 36,
height: 36,
borderRadius: 18,
backgroundColor: '#1A1A1C',
alignItems: 'center',
justifyContent: 'center',
paddingLeft: 2,
},
small: { height: 112, justifyContent: 'space-between' },
row: { flexDirection: 'row', alignItems: 'center', gap: 5 },
smallTitle: { fontFamily: F.sans, fontSize: 11, color: 'rgba(255,255,255,0.92)' },
bars: { flexDirection: 'row', alignItems: 'flex-end', justifyContent: 'space-between', height: 46 },
bar: { width: 12, borderRadius: 5 },
big: { fontFamily: F.serif, fontSize: 21, color: '#fff' },
routine: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#fff',
borderRadius: 18,
padding: 8,
marginBottom: 8,
},
routineIcon: {
width: 34,
height: 34,
borderRadius: 17,
backgroundColor: '#F2EFEA',
alignItems: 'center',
justifyContent: 'center',
},
routineTitle: { flex: 1, marginLeft: 10, fontFamily: F.sansMed, fontSize: 13, color: C.ink },
routineMins: {
flexDirection: 'row',
alignItems: 'center',
gap: 5,
backgroundColor: '#F1F1F3',
paddingHorizontal: 10,
paddingVertical: 7,
borderRadius: 14,
},
routineMinsText: { fontFamily: F.sansSemi, fontSize: 12, color: C.ink },
});src/app/breath.tsx
import { Image } from 'expo-image';
import { useEffect, useState } from 'react';
import { Animated, Easing, Pressable, StyleSheet, Text, View } from 'react-native';
import Svg, { Circle, Defs, Line, LinearGradient, Path, Stop, Text as SvgText, TextPath } from 'react-native-svg';
import { Icon } from '@/components/icon';
import { Screen } from '@/components/screen';
import { NavHeader } from '@/components/ui';
import { asset } from '@/lib/assets';
import { C, F } from '@/lib/theme';
// One 4-7-8 cycle: breathe in for 4 seconds, hold for 7, breathe out for 8.
const PHASES = [
{ label: 'Inhale', secs: 4 },
{ label: 'Hold', secs: 7 },
{ label: 'Exhale', secs: 8 },
];
const CYCLE = PHASES.reduce((total, phase) => total + phase.secs, 0);
// Geometry of the dial, measured on the 390 wide artboard.
const DIAL_X = 195;
const DIAL_Y = 344;
const TICK_INNER = 178;
function point(radius: number, degrees: number) {
const angle = (degrees * Math.PI) / 180;
return { x: DIAL_X + radius * Math.cos(angle), y: DIAL_Y + radius * Math.sin(angle) };
}
function arc(radius: number, from: number, to: number) {
const start = point(radius, from);
const end = point(radius, to);
return `M ${start.x} ${start.y} A ${radius} ${radius} 0 ${to - from > 180 ? 1 : 0} 1 ${end.x} ${end.y}`;
}
export default function BreathScreen() {
const [playing, setPlaying] = useState(false);
const [elapsed, setElapsed] = useState(7);
const [scale] = useState(() => new Animated.Value(1));
let phaseStart = 0;
let phase = 0;
for (let i = 0; i < PHASES.length; i++) {
if (elapsed < phaseStart + PHASES[i].secs) {
phase = i;
break;
}
phaseStart += PHASES[i].secs;
}
const secondsLeft = phaseStart + PHASES[phase].secs - elapsed;
useEffect(() => {
if (!playing) return;
const timer = setInterval(() => setElapsed((value) => (value + 1) % CYCLE), 1000);
return () => clearInterval(timer);
}, [playing]);
useEffect(() => {
if (!playing || phase === 1) return;
Animated.timing(scale, {
toValue: phase === 0 ? 1.06 : 0.96,
duration: PHASES[phase].secs * 1000,
easing: Easing.inOut(Easing.sin),
useNativeDriver: true,
}).start();
}, [phase, playing, scale]);
const knob = point(174, 298);
const reset = () => {
setPlaying(false);
setElapsed(7);
scale.setValue(1);
};
return (
<Screen background={C.bg} statusBar="light">
<View style={styles.root}>
<NavHeader title="Breath Exercise" />
<View style={styles.head}>
<Text style={styles.phase}>{PHASES[phase].label}</Text>
<Text style={styles.count}>{secondsLeft} second</Text>
</View>
<View style={styles.stage}>
<Animated.View style={[styles.blobWrap, { transform: [{ scale }] }]}>
<Image source={{ uri: asset('breath-blob.png') }} style={styles.blob} contentFit="contain" />
</Animated.View>
<Svg width={390} height={600} style={StyleSheet.absoluteFill} pointerEvents="none">
<Defs>
<LinearGradient id="progress" x1="0" y1="0" x2="1" y2="0">
<Stop offset="0" stopColor="#FF7A12" />
<Stop offset="1" stopColor="#FFA24D" />
</LinearGradient>
</Defs>
<Path d={arc(198, 180, 360)} stroke="#262628" strokeWidth={40} fill="none" />
{Array.from({ length: 61 }).map((_, index) => {
const degrees = 180 + index * 3;
const from = point(184, degrees);
const to = point(TICK_INNER + (index % 5 === 0 ? 20 : 15), degrees);
return (
<Line
key={index}
x1={from.x}
y1={from.y}
x2={to.x}
y2={to.y}
stroke="rgba(255,255,255,0.55)"
strokeWidth={1.3}
strokeLinecap="round"
/>
);
})}
<Path
d={arc(174, 180, 298)}
stroke="url(#progress)"
strokeWidth={26}
strokeLinecap="round"
fill="none"
/>
<Path id="labelPath" d={arc(170, 238, 300)} fill="none" />
<SvgText fill="#fff" fontSize={12} fontFamily={F.sansMed}>
<TextPath href="#labelPath" startOffset="0%">
10 min
</TextPath>
</SvgText>
<Circle cx={knob.x} cy={knob.y} r={11} fill="#fff" stroke="#FF8A2B" strokeWidth={3} />
</Svg>
<View style={styles.cards}>
<View style={styles.info}>
<View style={styles.infoHead}>
<Icon name="lungs" size={13} color="#E3471B" strokeWidth={2} />
<Text style={styles.infoLabel}>Breath technique</Text>
</View>
<Text style={styles.infoValue}>4-7-8 breath</Text>
</View>
<View style={styles.info}>
<View style={styles.infoHead}>
<Icon name="sun" size={13} color="#151517" />
<Text style={styles.infoLabel}>Ambience</Text>
</View>
<Text style={styles.infoValue}>Warm</Text>
</View>
</View>
<View style={styles.controls}>
<Pressable accessibilityRole="button" accessibilityLabel="Sound" style={styles.side}>
<Icon name="volume" size={22} />
</Pressable>
<Pressable
accessibilityRole="button"
accessibilityLabel={playing ? 'Pause' : 'Start'}
onPress={() => setPlaying((value) => !value)}
style={styles.play}>
<Icon name={playing ? 'stop' : 'play'} size={26} />
</Pressable>
<Pressable accessibilityRole="button" accessibilityLabel="Reset" onPress={reset} style={styles.side}>
<Icon name="stop" size={20} />
</Pressable>
</View>
</View>
</View>
</Screen>
);
}
const styles = StyleSheet.create({
root: { flex: 1, paddingTop: 46, overflow: 'hidden' },
head: { alignItems: 'center', marginTop: 26 },
phase: { fontFamily: F.serif, fontSize: 22, color: C.text },
count: { fontFamily: F.serif, fontSize: 40, color: C.text, marginTop: 2 },
stage: { flex: 1, marginTop: 14, alignItems: 'center' },
blobWrap: { position: 'absolute', top: 194, width: 364, height: 360, alignItems: 'center' },
blob: { width: 364, height: 357 },
cards: { position: 'absolute', top: 366, left: 24, right: 24, flexDirection: 'row', gap: 10 },
info: { flex: 1, backgroundColor: '#fff', borderRadius: 18, padding: 14, gap: 8 },
infoHead: { flexDirection: 'row', alignItems: 'center', gap: 6 },
infoLabel: { fontFamily: F.sans, fontSize: 11.5, color: C.ink },
infoValue: { fontFamily: F.serif, fontSize: 22, color: C.ink },
controls: {
position: 'absolute',
top: 470,
left: 36,
right: 36,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
side: {
width: 54,
height: 54,
borderRadius: 27,
backgroundColor: 'rgba(255,255,255,0.25)',
alignItems: 'center',
justifyContent: 'center',
},
play: {
width: 70,
height: 70,
borderRadius: 35,
backgroundColor: '#1A1A1C',
alignItems: 'center',
justifyContent: 'center',
paddingLeft: 3,
},
});src/app/mood.tsx
import { LinearGradient } from 'expo-linear-gradient';
import { useState } from 'react';
import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native';
import { Cloud } from '@/components/cloud';
import { Icon } from '@/components/icon';
import { MoodFace, type Mood } from '@/components/mood-face';
import { Screen } from '@/components/screen';
import { TabBar } from '@/components/tab-bar';
import { NavHeader, SectionHead } from '@/components/ui';
import { C, F } from '@/lib/theme';
const WEEKDAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
// One mood per day of May 2026. Empty days have not been logged yet.
const MONTH: Mood[] = [
'happy', 'surprised', 'sad', 'surprised', 'surprised', 'happy', 'calm',
'sad', 'surprised', 'calm', 'sad', 'happy', 'surprised', 'calm',
'calm', 'surprised', 'happy', 'sad', 'calm', 'surprised', 'sad',
'surprised', 'happy', 'sad', 'happy', 'surprised', 'calm', 'happy',
'happy', 'empty', 'empty',
];
export default function MoodInsightScreen() {
const [selected, setSelected] = useState<number | null>(null);
return (
<Screen background={C.bg} statusBar="light">
<View style={styles.root}>
<NavHeader title="Mood Insight" />
<ScrollView contentContainerStyle={styles.scroll} showsVerticalScrollIndicator={false}>
<View style={styles.calendarHead}>
<Text style={styles.heading}>Calendar Mood</Text>
<Pressable accessibilityRole="button" accessibilityLabel="Change month" style={styles.month}>
<Text style={styles.monthText}>May 2026</Text>
<Icon name="chevronDown" size={14} strokeWidth={2} />
</Pressable>
</View>
<View style={styles.calendar}>
<View style={styles.calendarRow}>
{WEEKDAYS.map((day) => (
<Text key={day} style={styles.weekday}>
{day}
</Text>
))}
</View>
{Array.from({ length: 5 }).map((_, week) => (
<View key={week} style={styles.calendarRow}>
{Array.from({ length: 7 }).map((__, weekday) => {
const index = week * 7 + weekday;
const mood = MONTH[index];
return (
<Pressable
key={weekday}
accessibilityRole="button"
accessibilityLabel={mood ? `May ${index + 1}, ${mood}` : undefined}
disabled={!mood}
onPress={() => setSelected(index)}
style={[styles.cell, selected === index && styles.cellOn]}>
{mood ? <MoodFace mood={mood} size={34} /> : null}
</Pressable>
);
})}
</View>
))}
</View>
<LinearGradient
colors={['#FF7DBA', '#F25BA3']}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 1 }}
style={styles.summary}>
<View style={{ width: '58%' }}>
<Text style={styles.summaryLabel}>Monthly mood summary</Text>
<Text style={styles.summaryBig}>Happy!</Text>
<Text style={styles.summaryText}>You've felt happy most of this month.</Text>
</View>
<View style={styles.cloud}>
<Cloud width={160} />
</View>
</LinearGradient>
<View style={styles.stats}>
<View style={styles.stat}>
<View style={styles.statHead}>
<Icon name="sofa" size={14} color="#3B79F2" />
<Text style={styles.statLabel}>Therapy session</Text>
</View>
<Text style={styles.statValue}>8/12</Text>
<Text style={styles.statSub}>Sessions completed</Text>
</View>
<View style={styles.stat}>
<View style={styles.statHead}>
<Icon name="lotus" size={14} color="#F2A11B" />
<Text style={styles.statLabel}>Mood stability</Text>
</View>
<Text style={styles.statValue}>74%</Text>
<Text style={styles.statSub}>Stable moods</Text>
</View>
</View>
<SectionHead title="Therapy History" style={{ marginTop: 18 }} />
</ScrollView>
<TabBar active={2} />
</View>
</Screen>
);
}
const styles = StyleSheet.create({
root: { flex: 1, paddingTop: 46 },
scroll: { paddingHorizontal: 16, paddingBottom: 120 },
calendarHead: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: 10 },
heading: { fontFamily: F.serif, fontSize: 19, color: C.text },
month: {
flexDirection: 'row',
alignItems: 'center',
gap: 6,
backgroundColor: C.surface,
paddingHorizontal: 12,
paddingVertical: 8,
borderRadius: 16,
},
monthText: { fontFamily: F.sansMed, fontSize: 12, color: C.text },
calendar: {
backgroundColor: '#fff',
borderRadius: 22,
paddingVertical: 12,
paddingHorizontal: 10,
marginTop: 12,
gap: 4,
},
calendarRow: { flexDirection: 'row', justifyContent: 'space-between' },
weekday: {
width: 42,
textAlign: 'center',
fontFamily: F.sansMed,
fontSize: 12,
color: C.ink,
marginBottom: 4,
},
cell: { width: 42, height: 40, alignItems: 'center', justifyContent: 'center', borderRadius: 20 },
cellOn: { backgroundColor: '#F1EEF6' },
summary: { marginTop: 10, borderRadius: 22, padding: 16, height: 128, overflow: 'hidden' },
summaryLabel: { fontFamily: F.sans, fontSize: 11.5, color: 'rgba(255,255,255,0.85)' },
summaryBig: { fontFamily: F.serif, fontSize: 32, color: '#fff', marginTop: 4 },
summaryText: {
fontFamily: F.sans,
fontSize: 11.5,
color: 'rgba(255,255,255,0.9)',
marginTop: 4,
lineHeight: 15,
},
cloud: { position: 'absolute', right: -6, bottom: -4 },
stats: { flexDirection: 'row', gap: 10, marginTop: 10 },
stat: { flex: 1, backgroundColor: '#fff', borderRadius: 18, padding: 13, gap: 6 },
statHead: { flexDirection: 'row', alignItems: 'center', gap: 6 },
statLabel: { fontFamily: F.sans, fontSize: 11.5, color: C.ink },
statValue: { fontFamily: F.serif, fontSize: 28, color: C.ink, marginTop: 2 },
statSub: { fontFamily: F.sans, fontSize: 11, color: C.inkDim },
});src/components/cloud.tsx
import Svg, { Circle, Defs, Ellipse, G, LinearGradient, Path, RadialGradient, Stop } from 'react-native-svg';
function CloudEye({ cx, cy }: { cx: number; cy: number }) {
return (
<G>
<Ellipse cx={cx} cy={cy} rx="13" ry="16" fill="url(#cloudEye)" />
<Circle cx={cx - 3} cy={cy + 2} r="8" fill="#141216" />
<Circle cx={cx - 5.5} cy={cy - 1.5} r="2.6" fill="#fff" />
</G>
);
}
// The pink cloud character on the monthly summary card.
export function Cloud({ width = 150 }: { width?: number }) {
return (
<Svg width={width} height={width * 0.72} viewBox="0 0 200 144">
<Defs>
<LinearGradient id="cloudBody" x1="0" y1="0" x2="0" y2="1">
<Stop offset="0" stopColor="#FFF7FB" />
<Stop offset="0.55" stopColor="#FFD3E7" />
<Stop offset="1" stopColor="#FF9CC8" />
</LinearGradient>
<RadialGradient id="cloudEye" cx="40%" cy="35%" r="70%">
<Stop offset="0" stopColor="#FFFFFF" />
<Stop offset="1" stopColor="#E9E2EC" />
</RadialGradient>
</Defs>
<Path
d="M30 140 C8 140 0 118 10 102 C2 82 18 60 42 64 C46 36 72 22 96 30 C110 6 150 4 166 30 C192 34 204 62 192 82 C204 100 196 140 168 140 Z"
fill="url(#cloudBody)"
/>
<Ellipse cx="80" cy="46" rx="22" ry="9" fill="#fff" opacity={0.7} transform="rotate(-18 80 46)" />
<Ellipse cx="140" cy="30" rx="14" ry="6" fill="#fff" opacity={0.6} transform="rotate(-10 140 30)" />
<CloudEye cx={96} cy={80} />
<CloudEye cx={132} cy={80} />
</Svg>
);
}src/components/icon.tsx
import Svg, { Circle, Path, Rect } from 'react-native-svg';
export type IconName =
| 'menu'
| 'bell'
| 'back'
| 'more'
| 'volume'
| 'play'
| 'stop'
| 'timer'
| 'home'
| 'wind'
| 'bars'
| 'smile'
| 'moon'
| 'heart'
| 'clock'
| 'arrow'
| 'chevronDown'
| 'lungs'
| 'sun'
| 'sofa'
| 'lotus';
type Props = {
name: IconName;
size?: number;
color?: string;
strokeWidth?: number;
};
export function Icon({ name, size = 20, color = '#fff', strokeWidth = 1.8 }: Props) {
const line = {
stroke: color,
strokeWidth,
fill: 'none',
strokeLinecap: 'round' as const,
strokeLinejoin: 'round' as const,
};
return (
<Svg width={size} height={size} viewBox="0 0 24 24">
{name === 'menu' && <Path d="M5 8h14M5 12h14M5 16h9" {...line} />}
{name === 'bell' && (
<>
<Path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z" {...line} />
<Path d="M10 20.5a2 2 0 0 0 4 0" {...line} />
</>
)}
{name === 'back' && <Path d="M14.5 6 8.5 12l6 6" {...line} />}
{name === 'more' && (
<>
<Circle cx="6" cy="12" r="1.6" fill={color} />
<Circle cx="12" cy="12" r="1.6" fill={color} />
<Circle cx="18" cy="12" r="1.6" fill={color} />
</>
)}
{name === 'volume' && (
<>
<Path d="M4 10v4h3.5L12 18V6L7.5 10z" {...line} />
<Path d="M15.5 9.5a3.5 3.5 0 0 1 0 5M18 7a7 7 0 0 1 0 10" {...line} />
</>
)}
{name === 'play' && (
<Path
d="M8 5.5v13l11-6.5z"
fill={color}
stroke={color}
strokeWidth={1.5}
strokeLinejoin="round"
/>
)}
{name === 'stop' && <Rect x="6.5" y="6.5" width="11" height="11" rx="2.5" fill={color} />}
{name === 'timer' && (
<>
<Circle cx="12" cy="13" r="7" {...line} />
<Path d="M12 13V9.5M10 3h4" {...line} />
</>
)}
{name === 'home' && (
<Path d="M4.5 10.5 12 4.5l7.5 6V19a1 1 0 0 1-1 1h-4v-5h-5v5h-4a1 1 0 0 1-1-1z" fill={color} />
)}
{name === 'wind' && (
<Path d="M3 9h11a3 3 0 1 0-3-3M3 13h15a3 3 0 1 1-3 3M3 17h7" {...line} />
)}
{name === 'bars' && (
<Path d="M6 19V11M12 19V5M18 19v-6" {...line} strokeWidth={strokeWidth + 0.6} />
)}
{name === 'smile' && (
<>
<Circle cx="12" cy="12" r="8.5" {...line} />
<Path d="M8.5 14a4 4 0 0 0 7 0" {...line} />
<Circle cx="9.3" cy="10" r="1" fill={color} />
<Circle cx="14.7" cy="10" r="1" fill={color} />
</>
)}
{name === 'moon' && <Path d="M19 14.5A7.5 7.5 0 0 1 9.5 5a7.5 7.5 0 1 0 9.5 9.5z" fill={color} />}
{name === 'heart' && (
<Path
d="M12 19s-7-4.3-7-9.2A3.8 3.8 0 0 1 12 8a3.8 3.8 0 0 1 7 1.8C19 14.7 12 19 12 19z"
fill={color}
/>
)}
{name === 'clock' && (
<>
<Circle cx="12" cy="12" r="8.5" fill={color} />
<Path d="M12 7.5V12l3 2" stroke="#fff" strokeWidth={1.8} strokeLinecap="round" fill="none" />
</>
)}
{name === 'arrow' && <Path d="M5 12h13M13 7l5 5-5 5" {...line} />}
{name === 'chevronDown' && <Path d="m7 10 5 5 5-5" {...line} />}
{name === 'lungs' && (
<>
<Path d="M12 4v8M12 10c-1.5 0-2.5-1-3-2-2 0-4.5 4-4.5 8.5 0 2 1.4 3 3 2.2L11 17v-5" {...line} />
<Path d="M12 10c1.5 0 2.5-1 3-2 2 0 4.5 4 4.5 8.5 0 2-1.4 3-3 2.2L13 17v-5" {...line} />
</>
)}
{name === 'sun' && (
<>
<Circle cx="12" cy="12" r="4" {...line} />
<Path
d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"
{...line}
/>
</>
)}
{name === 'sofa' && (
<>
<Path d="M5 11V8a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3" {...line} />
<Path
d="M3.5 12.5a1.5 1.5 0 0 1 3 0V14h11v-1.5a1.5 1.5 0 0 1 3 0V18h-17z"
fill={color}
stroke={color}
strokeWidth={1}
/>
</>
)}
{name === 'lotus' && (
<>
<Path
d="M12 18c-3-1.5-4.5-4-4.5-7 2.5.6 4 2.6 4.5 4.6.5-2 2-4 4.5-4.6 0 3-1.5 5.5-4.5 7z"
fill={color}
/>
<Path d="M12 15.5C10.5 13 10.8 9 12 6.5c1.2 2.5 1.5 6.5 0 9z" fill={color} />
<Path d="M4 13c2.5 3.5 5 5 8 5s5.5-1.5 8-5" {...line} />
</>
)}
</Svg>
);
}src/components/mood-face.tsx
import Svg, { Circle, Defs, Ellipse, Path, RadialGradient, Stop } from 'react-native-svg';
export type Mood = 'happy' | 'sad' | 'calm' | 'surprised' | 'empty';
const SHADES: Record<Exclude<Mood, 'empty'>, [string, string, string]> = {
happy: ['#FFC2E0', '#F58AC0', '#E2609F'],
sad: ['#8FD6FF', '#2EA7F0', '#1585D0'],
calm: ['#8EE8AE', '#2DBF6A', '#1E9C52'],
surprised: ['#FFC27A', '#FF8A1F', '#E86A00'],
};
const INK = '#1C1A1F';
function Eye({ cx, cy, dx = 0, dy = 0, r = 9 }: { cx: number; cy: number; dx?: number; dy?: number; r?: number }) {
return (
<>
<Circle cx={cx} cy={cy} r={r} fill="#fff" />
<Circle cx={cx + dx} cy={cy + dy} r={0.52 * r} fill={INK} />
<Circle cx={cx + dx - 0.18 * r} cy={cy + dy - 0.22 * r} r={0.15 * r} fill="#fff" />
</>
);
}
// A glossy mood emoji drawn in SVG, so it stays sharp at any size.
export function MoodFace({ mood, size = 32 }: { mood: Mood; size?: number }) {
if (mood === 'empty') {
return (
<Svg width={size} height={size} viewBox="0 0 100 100">
<Circle cx="50" cy="50" r="48" fill="#ECECEE" />
<Circle cx="38" cy="50" r="4" fill="#C9C9CD" />
<Circle cx="50" cy="50" r="4" fill="#C9C9CD" />
<Circle cx="62" cy="50" r="4" fill="#C9C9CD" />
</Svg>
);
}
const [light, mid, dark] = SHADES[mood];
const id = `mood-${mood}`;
return (
<Svg width={size} height={size} viewBox="0 0 100 100">
<Defs>
<RadialGradient id={id} cx="38%" cy="30%" r="75%">
<Stop offset="0" stopColor={light} />
<Stop offset="0.55" stopColor={mid} />
<Stop offset="1" stopColor={dark} />
</RadialGradient>
</Defs>
<Circle cx="50" cy="50" r="48" fill={`url(#${id})`} />
<Ellipse cx="36" cy="22" rx="14" ry="7" fill="#fff" opacity={0.35} transform="rotate(-20 36 22)" />
{mood === 'happy' && (
<>
<Eye cx={36} cy={42} dy={-1} />
<Eye cx={64} cy={42} dy={-1} />
<Path d="M33 58 Q50 60 67 58 Q64 78 50 78 Q36 78 33 58 Z" fill={INK} />
<Path d="M41 72 Q50 66 59 72 Q55 77 50 77 Q45 77 41 72 Z" fill="#FF6F8E" />
</>
)}
{mood === 'sad' && (
<>
<Path d="M26 35 L42 29M74 35 L58 29" stroke={INK} strokeWidth={4} strokeLinecap="round" />
<Eye cx={36} cy={46} dy={2.5} />
<Eye cx={64} cy={46} dy={2.5} />
<Path d="M38 72 Q50 62 62 72" stroke={INK} strokeWidth={5} strokeLinecap="round" fill="none" />
</>
)}
{mood === 'calm' && (
<>
<Path d="M27 45 Q36 38 45 45 Q36 51 27 45 Z" fill="#fff" />
<Path d="M55 45 Q64 38 73 45 Q64 51 55 45 Z" fill="#fff" />
<Circle cx="36" cy="46" r="3.6" fill={INK} />
<Circle cx="64" cy="46" r="3.6" fill={INK} />
<Path
d="M27 44.5 Q36 38 45 44.5M55 44.5 Q64 38 73 44.5"
stroke={INK}
strokeWidth={3.5}
strokeLinecap="round"
fill="none"
/>
<Path d="M40 65 Q50 71 60 65" stroke={INK} strokeWidth={4.5} strokeLinecap="round" fill="none" />
</>
)}
{mood === 'surprised' && (
<>
<Eye cx={35} cy={42} r={11} />
<Eye cx={65} cy={42} r={11} />
<Ellipse cx="50" cy="69" rx="7" ry="8.5" fill={INK} />
</>
)}
</Svg>
);
}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/components/tab-bar.tsx
import { router } from 'expo-router';
import { Pressable, StyleSheet, View } from 'react-native';
import { Icon, type IconName } from '@/components/icon';
const TABS: { icon: IconName; label: string; href?: '/' | '/breath' | '/mood' }[] = [
{ icon: 'home', label: 'Home', href: '/' },
{ icon: 'wind', label: 'Breath exercise', href: '/breath' },
{ icon: 'bars', label: 'Mood insight', href: '/mood' },
{ icon: 'smile', label: 'Profile' },
];
export function TabBar({ active }: { active: number }) {
return (
<View style={styles.wrap} pointerEvents="box-none">
<View style={styles.bar}>
{TABS.map((tab, index) => (
<Pressable
key={tab.icon}
accessibilityRole="tab"
accessibilityLabel={tab.label}
accessibilityState={{ selected: index === active }}
onPress={() => tab.href && router.navigate(tab.href)}
style={[styles.item, index === active && styles.active]}>
<Icon name={tab.icon} size={18} color={index === active ? '#fff' : 'rgba(255,255,255,0.55)'} />
</Pressable>
))}
</View>
</View>
);
}
const styles = StyleSheet.create({
wrap: { position: 'absolute', left: 0, right: 0, bottom: 34, alignItems: 'center' },
bar: {
flexDirection: 'row',
gap: 6,
padding: 5,
borderRadius: 30,
backgroundColor: 'rgba(120,120,126,0.55)',
borderWidth: 1,
borderColor: 'rgba(255,255,255,0.14)',
boxShadow: '0 6px 16px rgba(0,0,0,0.35)',
},
item: {
width: 40,
height: 40,
borderRadius: 20,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'rgba(255,255,255,0.08)',
},
active: { backgroundColor: '#1A1A1C' },
});src/components/ui.tsx
import { router } from 'expo-router';
import type { StyleProp, ViewStyle } from 'react-native';
import { Pressable, StyleSheet, Text, View } from 'react-native';
import { Icon, type IconName } from '@/components/icon';
import { C, F } from '@/lib/theme';
type CircleButtonProps = {
icon: IconName;
label: string;
onPress?: () => void;
size?: number;
dot?: boolean;
};
export function CircleButton({ icon, label, onPress, size = 34, dot }: CircleButtonProps) {
return (
<Pressable
accessibilityRole="button"
accessibilityLabel={label}
hitSlop={6}
onPress={onPress}
style={({ pressed }) => [
styles.circle,
{ width: size, height: size, borderRadius: size / 2, opacity: pressed ? 0.7 : 1 },
]}>
<Icon name={icon} size={size * 0.52} />
{dot && <View style={styles.dot} />}
</Pressable>
);
}
export function NavHeader({ title }: { title: string }) {
return (
<View style={styles.nav}>
<CircleButton icon="back" label="Back" onPress={() => router.navigate('/')} />
<Text style={styles.navTitle}>{title}</Text>
<CircleButton icon="more" label="More options" />
</View>
);
}
export function SectionHead({ title, style }: { title: string; style?: StyleProp<ViewStyle> }) {
return (
<View style={[styles.section, style]}>
<Text style={styles.sectionTitle}>{title}</Text>
<Pressable accessibilityRole="button" hitSlop={10} style={styles.viewAll}>
<Text style={styles.viewAllText}>View all</Text>
<Icon name="arrow" size={13} strokeWidth={2} />
</Pressable>
</View>
);
}
const styles = StyleSheet.create({
circle: { backgroundColor: C.surface, alignItems: 'center', justifyContent: 'center' },
dot: {
position: 'absolute',
top: 7,
right: 8,
width: 6,
height: 6,
borderRadius: 3,
backgroundColor: C.orange,
},
nav: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
paddingHorizontal: 16,
height: 48,
},
navTitle: { fontFamily: F.serif, fontSize: 19, color: C.text },
section: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' },
sectionTitle: { fontFamily: F.serif, fontSize: 19, color: C.text },
viewAll: { flexDirection: 'row', alignItems: 'center', gap: 4 },
viewAllText: { fontFamily: F.sans, fontSize: 12.5, color: C.textDim },
});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/mood-tracker-app-ui-design/assets';
export const asset = (name: string) => `${ASSET_BASE}/${name}`;src/lib/theme.ts
// Colours and font faces shared by every Calmo screen.
export const C = {
bg: '#1B1B1D',
surface: '#2A2A2D',
text: '#FFFFFF',
textDim: 'rgba(255,255,255,0.62)',
ink: '#151517',
inkDim: '#8C8C92',
orange: '#FF8A2B',
purple: '#C3A8FF',
pink: '#F58AC0',
blue: '#3B79F2',
};
export const F = {
serif: 'InstrumentSerif_400Regular',
sans: 'Inter_400Regular',
sansMed: 'Inter_500Medium',
sansSemi: 'Inter_600SemiBold',
};About this design
The breath screen runs a real 4-7-8 cycle: the timer counts each phase and the mascot grows and shrinks as you breathe. A mood calendar, monthly summary and therapy stats complete a strong base for wellness apps.
Near-black pages with soft purple, orange, blue and pink cards, serif headlines and glossy mood emoji drawn in SVG.
- Glossy mood faces drawn in SVG
- Working 4-7-8 breathing timer with an animated mascot
- Mood calendar with a selectable day
- Floating tab bar that switches screens
Colour palette
Night
#1B1B1D
Orange
#FF8A2B
Lilac
#C3A8FF
Pink
#F58AC0
Blue
#3B79F2
Graphite
#2A2A2D
How to use this design
- 01
Pick what to copy
Copy the Calmo Mood Tracker 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
Does the breathing timer work?
Yes. Play starts the 4-7-8 cycle, the phase and seconds count down, the mascot scales with your breath, and reset returns to the start.
How are the mood faces made?
Each face is an SVG component with a radial gradient, so you can add new moods or colours in code.
Is this suitable for a health product?
It is a front-end UI. Add secure storage and follow the privacy rules for health data in your region before collecting real mood logs.
Is the Calmo Mood Tracker 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.



