Community project. This is not an official government website.

Run by volunteers. Lampung Design System is built by an open source community. No government agency runs or endorses it.

Official services use go.id. Government websites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

Spotlight

Spotlight

The one thing on the page worth doing next, on the accent tint: an eyebrow, a title, a sentence and one or two actions. At most one per page.

Usage

Use it when

  • There is a clear next step for this person: register before a deadline, finish an unfinished tryout, complete the profile.
  • A dashboard needs a single focal call to action above the regular sections.
  • A small form that is the point of the page (join a class with a code) can live inside it; fields switch to the base color automatically.

Use something else when

  • Telling people about a problem or a change (a warning, an outage): use Alert. Or a banner across the page.
  • Several destinations of equal weight: use Link card.
  • There is nothing yet and the page explains how to start: use Empty state.
  • Key numbers: use Stat row.
  • Pointing at one control for a first-time tip: use Coachmark.
  • A notification that leaves by itself: use Toast.

Where it goes. Near the top of the main column, inside the first section or right under the page header, full width of the column. On phones it keeps its place at the top with 20 px padding.

Examples

Next step on a dashboardSay what, by when, and why it matters; the primary button names the outcome.
Next step

Register for next term before 30 November

Seats in elective courses go to the earliest registrations.

<div class="spotlight" style="width: 100%;">
  <span class="spotlight__eyebrow"><span class="ic" aria-hidden="true">event</span>Next step</span>
  <h3 class="spotlight__title">Register for next term before 30 November</h3>
  <p class="spotlight__body">Seats in elective courses go to the earliest registrations.</p>
  <div class="spotlight__actions"><button type="button" class="btn btn--primary">Register now</button><button type="button" class="btn btn--secondary">See the schedule</button></div>
</div>
With a small formA field inside the spotlight keeps the base color, never fill on fill.
Join a class

Got a code from your teacher?

<div class="spotlight" style="width: 100%;">
  <span class="spotlight__eyebrow"><span class="ic" aria-hidden="true">group</span>Join a class</span>
  <h3 class="spotlight__title">Got a code from your teacher?</h3>
  <div class="spotlight__actions" style="align-items: flex-end;">
    <div class="field" style="flex: 1; min-width: 200px;"><label class="sr-only" for="sp-code">Class code</label><div class="control"><input id="sp-code" placeholder="e.g. DB-2026-A" autocapitalize="characters"></div></div>
    <button type="button" class="btn btn--primary">Join class</button>
  </div>
</div>

Anatomy

PartWhat it is
.spotlightRequired. Accent tint, 28 px padding (20 px on phones), extra large radius.
.spotlight__eyebrowOptional. Small accent label with an icon ("Next step", "Due Friday").
.spotlight__titleRequired. An h2 or h3, Title 2, at most 34 characters per line.
.spotlight__bodyOptional. One or two sentences on why it matters.
.spotlight__actionsRequired. One primary button and at most one secondary, 14 px above.

Motion and microinteractions

  • Static by default. If it appears because of something the person did (a step just unlocked), let it enter once with enter and exit: fade and 8 px rise on --spring-smooth.
  • When the step is done, collapse it with .collapse (grid-template-rows on --spring-smooth, 560 ms) rather than letting the page jump. See height expand.
  • Reduced motion: appear and disappear without travel.

Accessibility

  • Use a real heading for the title (h2 or h3 in the page outline) so it is found by heading navigation.
  • Buttons name outcomes ("Register now"); a lone field still has a label (visually hidden with .sr-only is fine when the title says it).
  • Text on the accent tint uses --text-strong and --text-subtle; keep custom colors out.

Do and don't

Do

  • Show one spotlight, and only while the step is relevant.
  • Include the deadline or the reason in the title.

Don't

  • Stack two spotlights, or use it for promotions that are not the next step for this person.
  • Add a shadow, image or gradient to make it louder.
  • Use it for errors; that is an alert.