Skip to content

Icon feature grid in WordPress

Six features in a grid, each with an icon, a title and a short description.

Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in WordPress

features-grille-icones.php
<?php
/**
 * Plugin Name: Forge, Grille de fonctionnalités à icônes
 * Description: Six fonctionnalités en grille, chacune avec une icône, un titre et une courte description. Ajoute la composition « Grille de fonctionnalités à icônes » à l'éditeur de blocs.
 * Version: 1.0.0
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Forge
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: forge-features-grille-icones
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "fgrid", "layout": {"type": "default"}} -->
<section class="wp-block-group fgrid"><!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">Tout ce qu'il faut pour piloter votre activité</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "fgrid__lead"} -->
<p class="fgrid__lead">Une seule application pour la facturation, le suivi des paiements et la collaboration avec votre cabinet comptable.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<ul>
          <li>
            <span class="fgrid__icon"><svg aria-hidden="true" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M13 3 5 13.5h6L10 21l8-10.5h-6L13 3Z"/></svg></span>
            <h3>Synchronisation instantanée</h3>
style.css
:root {
  --fg-text: #0b1b3a;
  --fg-muted: #46577a;
  --fg-icon-bg: #dbe6ff;
  --fg-icon: #1d4ed8;
  --demo-features-grille-icones-bg: #f8faff;
  --demo-features-grille-icones-text: #0b1b3a;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {
    --fg-text: #e6edff;

Free component: copy it freely, including for commercial projects.

Features components in WordPress
  • Three cards in saturated flat colours (yellow, pink, electric blue) with high-contrast text and a dark variant. Every colour pair is measured at AA: 5.5:1 at worst.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Six features as frosted glass cards over a slowly drifting aurora mesh gradient. Pause button, still background under prefers-reduced-motion, CSS and a light script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The key message stays pinned while the background changes colour and illustration at each scroll step. CSS sticky, a light script, stacked cards as fallback under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A six-cell bento grid: key figures, SVG sparklines, a quote and icons. All the text is in the HTML and the animation is CSS only, with no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A two-offer table: checked rows, a column highlighted from top to bottom and one call-to-action button per offer. Pure HTML and CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A magazine-style article: title band, standfirst, drop cap, subheadings and a pull quote, set in three columns of equal height. Pure CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component