oberconcejo/VS-CODE / .agents/skills/app-store-screenshots
app-store-screenshots
FlaggedUse when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS, macOS, and/or Android apps, or scaffolding a screenshot editor with Next.js. Triggers on app store, mac app store, play store, screenshots, marketing assets, html-to-image, phone mockup, mac mockup, android screenshots, feature graphic.
template/src/components/editor/background-controls.tsx
View on GitHub"use client";
import * as React from "react";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { cleanHexColor } from "@/lib/clean-hex-color";
import type { Slide, Theme } from "@/lib/types";
type Props = {
slide: Slide;
theme: Theme;
onChange: (patch: Partial<Slide>) => void;
};
export function BackgroundControls({ slide, theme, onChange }: Props) {
const mode = slide.backgroundColor ? "custom" : slide.inverted ? "alternate" : "theme";
const customColor = cleanHexColor(slide.backgroundColor) || cleanHexColor(theme.bg) || "#FFFFFF";
// Keep partial hex input local so typing "#0B" or clearing the field doesn't
// write an invalid color into the slide (or drop it out of custom mode).
const [draft, setDraft] = React.useState(customColor);
React.useEffect(() => setDraft(customColor), [customColor]);
return (
<div className="space-y-1.5">
<Label className="text-xs">Background</Label>
<Select
value={mode}
onValueChange={(nextMode) => {
if (nextMode === "theme") onChange({ inverted: false, backgroundColor: undefined });
if (nextMode === "alternate") onChange({ inverted: true, backgroundColor: undefined });
if (nextMode === "custom") onChange({ inverted: false, backgroundColor: customColor });
}}
>
<SelectTrigger aria-label="Background"><SelectValue /></SelectTrigger>
<SelectContent>
<SelectItem value="theme">Theme background</SelectItem>
<SelectItem value="alternate">Theme alternate</SelectItem>
<SelectItem value="custom">Custom color</SelectItem>
</SelectContent>
</Select>
{mode === "custom" && (
<div className="flex items-center gap-2">
<input
type="color"
value={customColor}
onChange={(event) => onChange({ backgroundColor: event.target.value.toUpperCase() })}
className="h-8 w-10 cursor-pointer rounded border bg-transparent p-0.5"
aria-label="Custom background color"
/>
<Input
value={draft}
onChange={(event) => {
const next = event.target.value.toUpperCase();
setDraft(next);
const color = cleanHexColor(next);
if (color) onChange({ backgroundColor: color });
}}
onBlur={() => setDraft(customColor)}
placeholder="#0B0908"
className="h-8 font-mono text-xs uppercase"
aria-label="Custom background hex color"
/>
</div>
)}
{mode === "custom" && (
<p className="text-[11px] text-muted-foreground">
Caption text switches to a readable colour when the theme's colours would be too faint.
</p>
)}
</div>
);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |