Skip to content
← UI Library

Feature grid with hover accents

A ruled feature grid where each cell lights up, grows an accent bar and nudges its title on hover.

Svelte 5 · Version 1.0.0 · Zero extra packages

Connect MCP

Live preview

Built for developers

Typed SDKs and a CLI that fit your workflow.

Fast everywhere

Sub-50ms responses from regions near your users.

Private by default

Data is encrypted at rest and in transit.

Always recoverable

Replay or roll back any change in one click.

Made for teams

Roles, reviews and shared workspaces.

Clear analytics

Dashboards that answer the next question.

Global reach

Localised content in 40 languages.

Secure access

SSO, SCIM and fine-grained permissions.

Design decision

Thin rules keep eight features scannable, and the hover accent gives each one a moment of focus. Original Svelte 5 implementation. No code was copied from the inspiring component.

Inspired by Feature Section with hover effects by @manuarora700 on 21st.dev ↗

Source and integration

Pass four or eight features with title, description and an SVG path for the icon. The grid moves from one to two to four columns with its container width.

You may copy and adapt this original SaaSCrisp implementation in personal and commercial websites.

FeatureGrid.svelte
<script lang="ts">
	type Feature = { title: string; description: string; icon: string };
	let { features }: { features: Feature[] } = $props();
</script>

<div class="fg">
	<div class="fg-grid">
		{#each features as feature (feature.title)}
			<article>
				<span class="fg-icon" aria-hidden="true">
					<svg viewBox="0 0 24 24"><path d={feature.icon} /></svg>
				</span>
				<h3><span class="fg-bar" aria-hidden="true"></span><span class="fg-title">{feature.title}</span></h3>
				<p>{feature.description}</p>
			</article>
		{/each}
	</div>
</div>

<style>
	.fg {
		--_border: var(--ui-border, rgb(15 23 42 / 0.1));
		--_text: var(--ui-text, #0f172a);
		--_muted: var(--ui-muted, #64748b);
		--_accent: var(--ui-accent, #4f46e5);
		container-type: inline-size;
		font-family: var(--ui-font, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
		text-align: left;
	}
	.fg-grid {
		display: grid;
		grid-template-columns: 1fr;
	}
	@container (min-width: 520px) {
		.fg-grid {
			grid-template-columns: repeat(2, 1fr);
		}
	}
	@container (min-width: 900px) {
		.fg-grid {
			grid-template-columns: repeat(4, 1fr);
		}
	}
	article {
		position: relative;
		padding: 36px 0 36px;
		border-bottom: 1px solid var(--_border);
		isolation: isolate;
	}
	article::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(to top, rgb(15 23 42 / 0.04), transparent);
		opacity: 0;
		transition: opacity 0.25s;
	}
	article:hover::before {
		opacity: 1;
	}
	@container (min-width: 520px) {
		article {
			border-right: 1px solid var(--_border);
		}
	}
	.fg-icon {
		display: block;
		padding: 0 28px;
		color: var(--_muted);
		transition: color 0.25s;
	}
	article:hover .fg-icon {
		color: var(--_text);
	}
	.fg-icon svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.7;
		stroke-linecap: round;
		stroke-linejoin: round;
	}
	h3 {
		position: relative;
		margin: 18px 0 0;
		padding: 0 28px;
		color: var(--_text);
		font-size: 16px;
		font-weight: 600;
		letter-spacing: -0.01em;
	}
	.fg-bar {
		position: absolute;
		top: 50%;
		left: 0;
		width: 3px;
		height: 20px;
		translate: 0 -50%;
		border-radius: 0 4px 4px 0;
		background: rgb(15 23 42 / 0.15);
		transition:
			height 0.25s,
			background-color 0.25s;
	}
	article:hover .fg-bar {
		height: 30px;
		background: var(--_accent);
	}
	.fg-title {
		display: inline-block;
		transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	article:hover .fg-title {
		translate: 6px 0;
	}
	p {
		max-width: 32ch;
		margin: 8px 0 0;
		padding: 0 28px;
		color: var(--_muted);
		font-size: 14px;
		line-height: 1.55;
	}
	@media (prefers-reduced-motion: reduce) {
		.fg-bar,
		.fg-title {
			transition: none;
		}
	}
</style>
Agent prompt

Use the SaaSCrisp UI Library MCP at https://www.saascrisp.com/api/library/mcp. Retrieve feature-grid version 1.0.0 for svelte with get_ui_asset. Preview: https://www.saascrisp.com/library/feature-grid. Confirm the project's stack, reuse local primitives and map CSS variables to existing design tokens. Integrate the files and run the project's checks. Report changed files and additional dependencies.