Card with a soft radial light that follows the pointer and a border that glows near it. Lights up on keyboard focus too.
Instant previews
Every pull request gets its own preview link, ready before the review starts.
Instant previews
Every pull request gets its own preview link, ready before the review starts.
Instant previews
Every pull request gets its own preview link, ready before the review starts.
Instant previews
Every pull request gets its own preview link, ready before the review starts.
Instant previews
Every pull request gets its own preview link, ready before the review starts.
<x-markas.spotlight-card>
<div class="p-6">
<span class="flex size-10 items-center justify-center rounded-lg bg-subtle text-ink">
<svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M13 3 4 14h7l-1 7 9-11h-7l1-7Z" /></svg>
</span>
<h3 class="mt-4 text-base font-semibold text-ink">Instant previews</h3>
<p class="mt-1 text-sm text-muted">
Every pull request gets its own preview link, ready before the review starts.
</p>
</div>
</x-markas.spotlight-card>Examples
Pricing card
Pro
$24 per month
- Unlimited projects
- Preview links
- Priority support
Pro
$24 per month
- Unlimited projects
- Preview links
- Priority support
Pro
$24 per month
- Unlimited projects
- Preview links
- Priority support
Pro
$24 per month
- Unlimited projects
- Preview links
- Priority support
Pro
$24 per month
- Unlimited projects
- Preview links
- Priority support
Feature grid
Same classes
Blade, React, and Vue share one markup.
Dark mode
Tokens switch with a single class.
Accessible
Checked with axe and the keyboard.
Zero runtime
Copy the file, keep the code.
Same classes
Blade, React, and Vue share one markup.
Dark mode
Tokens switch with a single class.
Accessible
Checked with axe and the keyboard.
Zero runtime
Copy the file, keep the code.
Same classes
Blade, React, and Vue share one markup.
Dark mode
Tokens switch with a single class.
Accessible
Checked with axe and the keyboard.
Zero runtime
Copy the file, keep the code.
Same classes
Blade, React, and Vue share one markup.
Dark mode
Tokens switch with a single class.
Accessible
Checked with axe and the keyboard.
Zero runtime
Copy the file, keep the code.
Same classes
Blade, React, and Vue share one markup.
Dark mode
Tokens switch with a single class.
Accessible
Checked with axe and the keyboard.
Zero runtime
Copy the file, keep the code.
Status colors
API
Operational, 99.98% uptime
Webhooks
Delayed, fix in progress
API
Operational, 99.98% uptime
Webhooks
Delayed, fix in progress
API
Operational, 99.98% uptime
Webhooks
Delayed, fix in progress
API
Operational, 99.98% uptime
Webhooks
Delayed, fix in progress
API
Operational, 99.98% uptime
Webhooks
Delayed, fix in progress
Installation
npx markasui@latest add spotlight-cardpnpm dlx markasui@latest add spotlight-cardyarn dlx markasui@latest add spotlight-cardbunx --bun markasui@latest add spotlight-card- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Install the dependency:
npm install alpinejs - Copy the component source below to
resources/views/components/markas/spotlight-card.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/SpotlightCard.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/SpotlightCard.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/SpotlightCard.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/SpotlightCard.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/spotlight-card.component.ts.
Usage
<x-markas.spotlight-card>
<div class="p-6">
<h3 class="font-semibold">Instant previews</h3>
<p class="text-sm text-muted">Every pull request gets its own link.</p>
</div>
</x-markas.spotlight-card>
<x-markas.spotlight-card color="success">...</x-markas.spotlight-card>import { SpotlightCard } from "@/components/markas/SpotlightCard";
<SpotlightCard>
<div className="p-6">
<h3 className="font-semibold">Instant previews</h3>
<p className="text-sm text-muted">Every pull request gets its own link.</p>
</div>
</SpotlightCard>
<SpotlightCard color="success">...</SpotlightCard><template>
<SpotlightCard>
<div class="p-6">
<h3 class="font-semibold">Instant previews</h3>
<p class="text-sm text-muted">Every pull request gets its own link.</p>
</div>
</SpotlightCard>
<SpotlightCard color="success">...</SpotlightCard>
</template><script lang="ts">
import SpotlightCard from "$lib/components/markas/SpotlightCard.svelte";
</script>
<SpotlightCard>
<div class="p-6">
<h3 class="font-semibold">Instant previews</h3>
<p class="text-sm text-muted">Every pull request gets its own link.</p>
</div>
</SpotlightCard>---
import SpotlightCard from "@/components/markas/SpotlightCard.astro";
---
<SpotlightCard color="success">
<div class="p-6">
<h3 class="font-semibold">Instant previews</h3>
<p class="text-sm text-muted">Every pull request gets its own link.</p>
</div>
</SpotlightCard>import { Component } from "@angular/core";
import { SpotlightCard } from "./markas/spotlight-card.component";
@Component({
selector: "app-feature",
imports: [SpotlightCard],
template: `
<div markas-spotlight-card color="success">
<div class="p-6">
<h3 class="font-semibold">Instant previews</h3>
<p class="text-sm text-muted">Every pull request gets its own link.</p>
</div>
</div>
`,
})
export class Feature {}- The pointer position is stored in the
--spot-xand--spot-ycustom properties; the light and border are CSS radial gradients. - Focus inside the card shows the glow at the center, so keyboard users get the same feedback. The Blade version needs Alpine.js.
- Class and attributes go to the outer element. Add padding inside the content.
Props
| Name | Type | Default | Description |
|---|---|---|---|
color | 'primary' | 'success' | 'warning' | 'danger' | primary | Color of the light and the glowing border. |
children / slot | ReactNode / slot | - | Card content. Add your own padding, such as p-6. |
Accessibility
- The light and the glowing border are aria-hidden layers that never catch the pointer.
- When focus moves inside the card, the glow appears centered, so keyboard users see the same effect.
- With reduced motion, the glow appears without a fade.
Related components
More animations components with the same classes in every framework.
- Avatar GroupOverlapping stack of avatars that spreads out on hover, shows each name in a tooltip, and collapses extra people into a +N chip.
- Letter SwapText whose letters slide out and back in with a stagger when its link or button is hovered or focused. Forward, ping-pong, or shuffled order.
- MarqueeEndless horizontal or vertical scroll of any content, with faded edges, reverse direction, and a pause on hover or focus.
- Number TickerNumber that counts up to its value when it scrolls into view, with thousands separators, decimals, and a prefix or suffix.
- Scroll ProgressThin bar at the top of the page or a scrolling container that fills as the reader scrolls.
- Text HighlighterA highlight that draws behind inline text from four directions: in view, on hover or focus, on mount, or on command. Solid, marker, underline, or gradient.