Skip to content

end to end app store screenshot creation using AI

Polish Apple TV, Apple Watch and CarPlay layouts

Parth Jadhav4cfd37419bec
diff --git a/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx b/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx
index 8237423..5004bca 100644
--- a/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx
+++ b/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx
@@ -276,22 +276,33 @@ export function IPad({ src, alt = "", style, hideEmpty }: FrameProps) {
}
function EmptySlot() {
+ // Sized off the slot's own width (container query units) so the hint stays
+ // readable on a 4K TV canvas and still fits inside a 422 px watch face.
return (
<div
style={{
width: "100%",
height: "100%",
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- color: "rgba(255,255,255,0.4)",
- fontSize: "min(2vw, 14px)",
+ containerType: "inline-size",
background: "linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%)",
- textAlign: "center",
- padding: "4%",
}}
>
- Drop a screenshot here
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: "rgba(255,255,255,0.4)",
+ fontSize: "6cqw",
+ textAlign: "center",
+ padding: "8%",
+ boxSizing: "border-box",
+ }}
+ >
+ Drop a screenshot here
+ </div>
</div>
);
}
diff --git a/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx b/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
index 83a65a6..2036a82 100644
--- a/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
+++ b/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
@@ -263,9 +263,10 @@ function Caption({
onFocus={onFocus}
placeholder="LABEL"
style={{
- fontSize: unit * 0.028,
+ // Floor keeps the label legible on the 422×514 Apple Watch canvas.
+ fontSize: Math.max(unit * 0.028, 16),
fontWeight: 600,
- letterSpacing: unit * 0.0015,
+ letterSpacing: Math.max(unit * 0.0015, 0.8),
color: accent,
textTransform: "uppercase",
marginBottom: unit * 0.018,
@@ -365,9 +366,8 @@ function getDefaultRects(
fwFrac: number,
fwSmallFrac: number,
// Phones and tablets are deliberately hung past the canvas edge so they bleed off
- // it. A landscape device must not be cropped - a clipped television or head unit
- // reads as a mistake, not a design. When true, every device rect stays fully
- // inside the canvas.
+ // it. When true (TV, watch, CarPlay), every device rect stays fully inside the
+ // canvas instead.
contain = false,
): LayoutRects {
const deviceW = fwFrac * cW;
@@ -434,7 +434,11 @@ function getDefaultRects(
align: "center",
},
};
- case "split-landscape":
+ case "split-landscape": {
+ // Contained devices sit beside the caption instead of sliding under it.
+ // The caption is beside it, not above, so it can be taller than elsewhere.
+ const splitW = contain ? Math.min(cW * 0.5, cH * 0.84 * frameAspect) : deviceW;
+ const splitH = splitW / frameAspect;
return {
caption: {
x: cW * 0.05,
@@ -444,12 +448,13 @@ function getDefaultRects(
align: "left",
},
device: {
- x: contain ? cW - deviceW - cW * 0.04 : cW - deviceW + cW * 0.03,
- y: (cH - deviceH) / 2,
- width: deviceW,
- height: deviceH,
+ x: contain ? cW - splitW - cW * 0.05 : cW - deviceW + cW * 0.03,
+ y: (cH - splitH) / 2,
+ width: splitW,
+ height: splitH,
},
};
+ }
default:
return {};
}
@@ -473,6 +478,10 @@ function rectFor(
};
}
+// Devices whose frame must never be cropped by the canvas edge. A clipped TV,
+// head unit or watch face reads as a mistake, not as a deliberate bleed.
+const CONTAINED_DEVICES: ReadonlySet<Device> = new Set<Device>(["tvos", "watchos", "carplay"]);
+
function getSlideGeometry(slide: Slide, device: Device, orientation: Orientation) {
const { cW, cH } = getCanvas(device, orientation);
const { Comp: Frame, widthFn, smallWidthFn } = getFrameForDevice(device, orientation);
@@ -481,7 +490,7 @@ function getSlideGeometry(slide: Slide, device: Device, orientation: Orientation
const fwSmallFrac = smallWidthFn(cW, cH);
const defaults = getDefaultRects(
slide.layout, cW, cH, frameAspect, fwFrac, fwSmallFrac,
- device === "tvos" || device === "carplay",
+ CONTAINED_DEVICES.has(device),
);
return { cW, cH, Frame, frameAspect, defaults };
}
diff --git a/skills/app-store-screenshots/template/src/lib/constants.ts b/skills/app-store-screenshots/template/src/lib/constants.ts
index 93dc8dd..008bfe2 100644
--- a/skills/app-store-screenshots/template/src/lib/constants.ts
+++ b/skills/app-store-screenshots/template/src/lib/constants.ts
@@ -10,9 +10,9 @@ export const CANVAS: Record<Device, { w: number; h: number; wL?: number; hL?: nu
// smaller size is a downscale rather than an upscale.
watchos: { w: 422, h: 514 },
// CarPlay has NO App Store screenshot slot of its own - see EXPORT_SIZES below.
- // The canvas is therefore the iPhone canvas, because that is where a CarPlay
- // shot is actually submitted.
- carplay: { w: 1320, h: 2868 },
+ // It is submitted in an iPhone slot, which accepts landscape, so the canvas is
+ // the 6.9" iPhone size turned sideways to fit a wide head unit.
+ carplay: { w: 2868, h: 1320 },
android: { w: 1080, h: 1920 },
"android-7": { w: 1200, h: 1920, wL: 1920, hL: 1200 },
"android-10": { w: 1600, h: 2560, wL: 2560, hL: 1600 },
@@ -54,12 +54,13 @@ export const EXPORT_SIZES: Record<Device, ExportSize[]> = {
// metadata, not documentation: `asc screenshots sizes --all` lists APPLE_TV,
// VISION_PRO, DESKTOP, IPAD*, IPHONE*, WATCH* and nothing for CarPlay. A CarPlay
// app ships inside its iPhone app, so a CarPlay shot is submitted in an iPhone
- // slot. These are therefore the iPhone sizes on purpose.
+ // slot. These are therefore the iPhone sizes on purpose, in landscape (every
+ // iPhone slot accepts both orientations).
carplay: [
- { label: '6.9"', w: 1320, h: 2868 },
- { label: '6.5"', w: 1284, h: 2778 },
- { label: '6.3"', w: 1206, h: 2622 },
- { label: '6.1"', w: 1125, h: 2436 },
+ { label: '6.9" landscape', w: 2868, h: 1320 },
+ { label: '6.5" landscape', w: 2778, h: 1284 },
+ { label: '6.3" landscape', w: 2622, h: 1206 },
+ { label: '6.1" landscape', w: 2436, h: 1125 },
],
android: [{ label: "Phone", w: 1080, h: 1920 }],
"android-7": [{ label: '7" Portrait', w: 1200, h: 1920 }],
@@ -130,8 +131,9 @@ export function tvW(cW: number, cH: number, clamp = 0.58) {
export function watchW(cW: number, cH: number, clamp = 0.52) {
return Math.min(clamp, 0.72 * (cH / cW) * WATCH_RATIO);
}
+// Height-bound on the wide canvas: the head unit must clear the caption block.
export function carPlayW(cW: number, cH: number, clamp = 0.86) {
- return Math.min(clamp, 0.72 * (cH / cW) * CARPLAY_RATIO);
+ return Math.min(clamp, 0.58 * (cH / cW) * CARPLAY_RATIO);
}
// ---------- Themes ----------
diff --git a/skills/app-store-screenshots/template/src/lib/defaults.ts b/skills/app-store-screenshots/template/src/lib/defaults.ts
index 4cd1087..ed8dd97 100644
--- a/skills/app-store-screenshots/template/src/lib/defaults.ts
+++ b/skills/app-store-screenshots/template/src/lib/defaults.ts
@@ -76,6 +76,32 @@ function ipadStarter(): Slide[] {
];
}
+function tvStarter(): Slide[] {
+ return [
+ { id: nid(), layout: "hero", label: en("MEET YOUR APP"), headline: en("Made for\nthe living room."), screenshot: "" },
+ { id: nid(), layout: "split-landscape", label: en("FEATURE 01"), headline: en("One idea\nper screen."), screenshot: "" },
+ { id: nid(), layout: "device-top", label: en("FEATURE 02"), headline: en("Flip the contrast."), screenshot: "", inverted: true },
+ { id: nid(), layout: "no-device", label: en("MORE"), headline: en("And so\nmuch more."), screenshot: "" },
+ ];
+}
+
+// Short headlines: the watch canvas is only 422 px wide.
+function watchStarter(): Slide[] {
+ return [
+ { id: nid(), layout: "hero", label: en("MEET YOUR APP"), headline: en("On your\nwrist."), screenshot: "" },
+ { id: nid(), layout: "device-bottom", label: en("FEATURE 01"), headline: en("One glance.\nDone."), screenshot: "" },
+ { id: nid(), layout: "device-top", label: en("FEATURE 02"), headline: en("Always\nwith you."), screenshot: "", inverted: true },
+ ];
+}
+
+function carplayStarter(): Slide[] {
+ return [
+ { id: nid(), layout: "split-landscape", label: en("CARPLAY"), headline: en("Eyes on\nthe road."), screenshot: "" },
+ { id: nid(), layout: "device-bottom", label: en("FEATURE 01"), headline: en("Everything, one tap away."), screenshot: "" },
+ { id: nid(), layout: "device-top", label: en("FEATURE 02"), headline: en("Made for every drive."), screenshot: "", inverted: true },
+ ];
+}
+
function tabletStarter(kind: "7" | "10"): Slide[] {
return [
{
@@ -121,9 +147,9 @@ export const DEFAULT_PROJECT: ProjectState = {
iphone: makeStarterSlides(),
android: makeStarterSlides(),
ipad: ipadStarter(),
- tvos: makeStarterSlides(),
- watchos: makeStarterSlides(),
- carplay: makeStarterSlides(),
+ tvos: tvStarter(),
+ watchos: watchStarter(),
+ carplay: carplayStarter(),
"android-7": tabletStarter("7"),
"android-10": tabletStarter("10"),
"feature-graphic": fgStarter(),