No.470 · Feedback
First Light
An empty state that is the first object, not yet filled in: a dashed ghost sits exactly where the first project, message, tile or item will live. Its dashes close up as you point at it, and activating it creates the real thing in place.
The prompt
Written for the variant you picked above: Paper
Build an empty-state primitive that replaces the illustration + heading + paragraph + button stack. The empty surface draws a ghost of the first object at its real size, in the slot where it will appear, plus one or two fainter 'future' outlines for the slots after it. The ghost's outline is an SVG rect with stroke-dasharray 5 6. On hover or focus it takes 'first light': the dash gap transitions to 0 so the dashes close into a solid edge, the stroke warms toward the accent, and the transparent ghost fills to the surface colour with a soft shadow (420–520ms). Its call ('+ Your first project') darkens and the plus tile inverts. Activating the ghost (it is a real button named 'Create your first project') swaps its face for an inline editor inside the same outline. Type the project name into the card and it becomes the real card, while a new, quieter ghost ('Another project') takes the next slot. Escape or Cancel returns focus to the ghost, and creation is announced. One primitive, four presets: - Projects: a card grid. - Conversation: a ghost message bubble aligned where your first message will sit, which opens starters plus a field. - Dashboard: a ghost tile with sketched bars, which opens a metric picker and turns into a real tile with a sparkline. - Collection: a ghost that is also a drop zone. Drop a file or paste a link while it's focused, or click to type one. It is monochrome apart from the single accent on the lit outline. Paper and Night themes. Selected variant — Paper (paper): Palette for this theme (Paper): --fl-accent #b4532a; --fl-dash rgb(28 27 24 / 0.24); --fl-ink #1c1b18; --fl-muted #7a766d; --fl-page #f4f2ed; --fl-surface #ffffff. Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "paper". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Point at the ghost, then click it and create the first object where it will live. Switch presets at the top. Motion: The dashes close and the surface fills over 420–520ms; the editor fades in over 260ms. Accessibility: The ghost is a labelled button that says what it creates. The editor's first field takes focus, Escape or Cancel returns focus to the ghost, and a status region announces creation. Future outlines are aria-hidden. Reduced motion makes first light an instant colour change. Responsive behavior: Grids collapse to one column and the future outlines hide on small screens, leaving just the first ghost. Touch: Tap the ghost to create; in Collection, a tap opens the link field. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.
Notes
- Interaction
- Point at the ghost, then click it and create the first object where it will live. Switch presets at the top.
- Motion
- The dashes close and the surface fills over 420–520ms; the editor fades in over 260ms.
- Accessibility
- The ghost is a labelled button that says what it creates. The editor's first field takes focus, Escape or Cancel returns focus to the ghost, and a status region announces creation. Future outlines are aria-hidden. Reduced motion makes first light an instant colour change.
- Responsive
- Grids collapse to one column and the future outlines hide on small screens, leaving just the first ghost.
- On touch
- Tap the ghost to create; in Collection, a tap opens the link field.