VP0Design source for AI builders
    View design page

    📱 iOS app UI starter. Paste the design link below into Claude Code, Rork, Lovable, or your AI app builder and ask it to start from this design. These are UI starters. Add your own backend/data logic.

    Flow — Hydrate

    templateiosby @vp0

    Tap to fill each glass and reach your daily water goal.

    #Health #Nutrition #Minimal

    Works withClaude CodeCursorRorkLovablev0& any AI coding agent
    https://vp0.com/source/flow-hydrate
    npx vp0com add flow-hydrate --target react-native
    Open in v0

    Or skip the paste

    Install the free VP0 MCP once and your AI builder can search and import any design by name, with no link to copy and no API key.

    Claude Code
    claude mcp add vp0 -- npx -y vp0-mcp
    Cursor / Windsurf
    {
      "mcpServers": {
        "vp0": { "command": "npx", "args": ["-y", "vp0-mcp"] }
      }
    }

    Use with AI

    Prompt

    Build this iOS app design in my project: "Flow — Hydrate" — Tap to fill each glass and reach your daily water goal.. 1. Fetch https://api.vp0.com/designs/flow-hydrate/manifest — a JSON manifest whose files[] array contains EVERY source file inline (path + content). 2. Create each file at its exact files[].path and paste its content VERBATIM. Do not re-imagine or restyle the UI — the provided code IS the design. 3. Install dependencies exactly as given by the manifest's installCommand field (skip if null). 4. Render the entry component (targets[].entrypoint) from a screen. Keep SafeAreaView / safe-area insets and the existing styling untouched. 5. It is a UI starter: once it renders pixel-perfect, wire my own data, navigation and backend on top. Human-readable source page: https://vp0.com/source/flow-hydrate

    Integration steps
    This is an iOS app UI starter for Expo React Native ("Flow — Hydrate").
    Integrate it into the user's Expo project as follows:
    1. No extra dependencies are required.
    2. Create the following file(s) and paste each provided "content" exactly:
       - App.tsx
    3. Render the exported component from a screen (e.g. app/(tabs)/index.tsx). It targets iOS — keep SafeAreaView / safe-area insets and the existing styling.
    4. These are UI starters: reproduce the visual layout faithfully, then wire the user's own data/navigation/backend afterward.

    Preview

    Flow — Hydrate preview 1

    Code · 1 file

    React Native
    Download .zip
    App.tsx
    raw
    import React, { useState } from 'react';
    import { View, Text, Pressable, StyleSheet, SafeAreaView } from 'react-native';
    
    const GOAL = 8;
    
    export default function App() {
      const [filled, setFilled] = useState(3);
      const pct = Math.round((filled / GOAL) * 100);
      const ml = filled * 250;
      return (
        <SafeAreaView style={s.safe}>
          <View style={s.head}>
            <Text style={s.kicker}>STAY HYDRATED</Text>
            <Text style={s.h1}>{ml} ml</Text>
            <Text style={s.sub}>{filled} of {GOAL} glasses · {pct}%</Text>
          </View>
    
          <View style={s.barWrap}>
            <View style={s.barTrack}>
              <View style={[s.barFill, { height: pct + '%' }]} />
            </View>
          </View>
    
          <View style={s.glasses}>
            {Array.from({ length: GOAL }).map((_, i) => {
              const on = i < filled;
              return (
                <Pressable key={i} onPress={() => setFilled(i + 1 === filled ? i : i + 1)} style={[s.glass, on && s.glassOn]}>
                  <Text style={s.glassIcon}>{on ? '💧' : '🥛'}</Text>
                </Pressable>
              );
            })}
          </View>
    
          <Pressable onPress={() => setFilled((f) => Math.min(GOAL, f + 1))} style={({ pressed }) => [s.btn, pressed && { opacity: 0.85 }]}>
            <Text style={s.btnText}>+ Add a glass</Text>
          </Pressable>
        </SafeAreaView>
      );
    }
    
    const s = StyleSheet.create({
      safe: { flex: 1, backgroundColor: '#04121C' },
      head: { paddingTop: 64, alignItems: 'center' },
      kicker: { color: '#33B1FF', fontSize: 12, fontWeight: '700', letterSpacing: 2 },
      h1: { color: '#fff', fontSize: 52, fontWeight: '800', marginTop: 8 },
      sub: { color: '#5E8AB0', fontSize: 15, marginTop: 4 },
      barWrap: { flex: 1, alignItems: 'center', justifyContent: 'center' },
      barTrack: { width: 86, height: 240, borderRadius: 43, backgroundColor: '#0B2333', justifyContent: 'flex-end', overflow: 'hidden', borderWidth: 1, borderColor: '#143246' },
      barFill: { width: '100%', backgroundColor: '#33B1FF', borderRadius: 43 },
      glasses: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'center', gap: 12, paddingHorizontal: 30 },
      glass: { width: 52, height: 52, borderRadius: 14, backgroundColor: '#0B2333', alignItems: 'center', justifyContent: 'center', borderWidth: 1, borderColor: '#143246' },
      glassOn: { backgroundColor: '#0E3349', borderColor: '#33B1FF' },
      glassIcon: { fontSize: 22 },
      btn: { backgroundColor: '#33B1FF', margin: 26, borderRadius: 30, paddingVertical: 18, alignItems: 'center' },
      btnText: { color: '#04121C', fontSize: 17, fontWeight: '800' },
    });
    

    Machine endpoints

    Open, CORS-enabled, no key. React Native is the default target; append ?target=swiftui where SwiftUI is available.