🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Headless Block Styles icon
gepflegt Getestet bis 7.0.9

Headless Block Styles

Headless Block Styles brings full Gutenberg block styling to any headless frontend (e.g. Next.js) using the WordPress REST API — no WPGraphQL required.

Aktive Installationen<10Neu
Downloads · 30d70▲ +11.1% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score49/100Messe
Downloads aller Zeiten312Seit Jul 2026
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.1PHP 7.4+
Downloads · 7d16▼ -38.5% week over week
Unser Urteil

Mit Vorsicht verwenden

Headless Block Styles works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 49/100 on our health check.

  • Kleine Benutzerbasis (<10 aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

135Aug 31Oct 14Nov 28
Gestern1
Täglicher Durchschnitt (1 Jahr)2
Spitzentag33Jul 21, 2026
Letzte 12 Monate311

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Headless Block Styles stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
Blöcke >100 10,000 Beste Blöcke Plugins →
decoupled #36 157 Best decoupled plugins →
Gutenberg >100 8,517 Beste Gutenberg-Plugins →
headless #73 606 Best headless plugins →
rest-api >100 10,000 Best rest-api plugins →

About Headless Block Styles

From the official readme · v0.1.0

Beschreibung

Headless Block Styles brings full Gutenberg block styling to any headless frontend (e.g. Next.js) using the WordPress REST API — no WPGraphQL required.

It does two things:

  1. Serves the global stylesheet (wp_get_global_stylesheet()): all --wp--preset--* CSS variables, preset classes (has-*-color, has-*-font-size, …), and theme/user styles — the CSS WordPress would normally enqueue on its own frontend.
  2. Computes per-block inline styles on the server with the WordPress Style Engine and adds a block_data field to post REST responses, so your frontend receives ready-to-spread React style objects instead of deriving them from raw block attributes in JavaScript.

REST API

GET /wp-json/headless-block-styles/v1/stylesheet

  • types — comma-separated subset of variables,presets,styles,base-layout-styles. Omit for all.
  • format — json (default) or css (raw CSS, usable directly in a <link> tag).

GET /wp-json/headless-block-styles/v1/theme

Returns merged theme.json settings (wp_get_global_settings()) — color palette, font sizes, layout sizes.

block_data field on posts and pages

Every REST-enabled post type response gains a block_data field: the parsed block tree where each block carries inlineStyles (camelCase, ready for a React style prop), classNames (editor-parity has-* classes), attributes, innerHTML, and recursive innerBlocks.

inlineStyles covers the `style` attribute (spacing, borders, typography, colors — via the WP Style Engine), preset attributes (`backgroundColor`, `textColor`, `gradient`, `borderColor`, `fontSize`, `fontFamily`), and layout (`width`, `height`, `layout.contentSize/wideSize/justifyContent`).

rendered_blocks field on posts and pages

For rendering WordPress’s HTML faithfully: returns html, css, and svg — the rendered block markup together with the block-support CSS WordPress generates at render time (layout container rules, element link/button colors, duotone filters) and the duotone SVG definitions. On a normal WordPress frontend this CSS is printed in a <style> tag and never reaches REST consumers; here it is captured from the same render as the returned HTML so the generated class names always match.

Not needed on a request? Exclude fields: /wp/v2/posts?_fields=id,title,content.

Filters

  • headless_block_styles_block_inline_styles — modify a block’s computed style object. Args: $styles, $attrs.
  • headless_block_styles_block_class_names — modify a block’s computed class names. Args: $classnames, $attrs.
  • headless_block_styles_post_types — which post types get the block_data field.

Full documentation and Next.js usage examples: github.com/FuSan21/headless-block-styles

Installation

  1. Upload the headless-block-styles folder to /wp-content/plugins/, or install via Plugins → Add New.
  2. Activate the plugin through the Plugins menu.
  3. Fetch /wp-json/headless-block-styles/v1/stylesheet from your frontend and inject the CSS, and read block_data from your post/page REST responses.

Änderungsprotokoll

0.1.0

  • Initial release: global stylesheet and theme settings REST endpoints, block_data REST field with server-computed inline styles and class names, rendered_blocks REST field capturing render-time block-support CSS and duotone SVG.

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Headless Block Styles alternatives

Alle Blöcke Plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Spectra Legacy – Gutenberg Blöcke Spectra Legacy – Gutenberg Blöcke Gutenberg Blöcke für vorhandene Spectra-Websites. Gepflegt, stabil und voll unterstützt —… durch Brainstorming-Kraft 1M+ ★★★★★★★★★★ 4.7 (1.9K) Vor 2 Wochen 87
2 Kadence-Blöcke — Page Builder-Toolkit für Gutenberg Editor Kadence-Blöcke — Page Builder-Toolkit für Gutenberg Editor 20+ Gutenberg blockiert mit endlosen Optionen, die erstklassige Effizienz für… von Nexcess 600K+ ★★★★★★★★★★ 4.8 (337) Vor 5 Tagen 90
3 verlängern verlängern Die besten WordPress-Vorlagen, Muster und Layoutbibliotheken mit mehr als 1.000 Designs für… durch verlängern 500K+ ★★★★★★★★★★ 4.7 (10) Vor 3 tagen 76
4 SiteOrigin-Widgets-Bundle SiteOrigin-Widgets-Bundle Wesentliche Elemente für moderne Websites. Hinzufügen von Schaltflächen, Schiebereglern, Helden, Karten, Bildern… von Greg - SiteOrigin 400K+ ★★★★★★★★★★ 4.9 (134) Vor 6 Tagen 97
5 Otterblöcke – Gutenberg Blöcke, Seitenersteller für Gutenberg Editor & FSE Otterblöcke Erstellen Sie schnell WordPress-Seiten mit mehr als 20 Blöcken, mehr als 100 importfertigen Designs und… von Themeisle 300K+ ★★★★★★★★★★ 4.7 (252) Vor 3 tagen 96
6 Page Builder Gutenberg Blöcke – Coblocks Page Builder Gutenberg Blöcke – Coblocks CoBlocks ist eine Suite von Page Builder WordPress Blöcke für Gutenberg, mit mehr als 10 neuen Blöcken und… Von Godaddy 300K+ ★★★★★★★★★★ 4.2 (109) Vor 9 Monaten 50
7 Blöcke generieren Blöcke generieren Eine kleine Sammlung leichter WordPress-Blöcke, die fast alles erreichen können. von Tom 200K+ ★★★★★★★★★★ 4.9 (122) Vor 3 Wochen 87
8 Layout-Rasterblock Layout-Rasterblock Ein Gutenberg Containerblock, mit dem Sie Elemente konsistent über ein globales Raster ausrichten können. von Automattic 200K+ ★★★★★★★★★★ 4.7 (13) Vor 3 Jahren 43
9 Stapelbar – Page Builder Gutenberg Blöcke Stapelbar – Page Builder Gutenberg Blöcke Der komplette Website-Builder für den Blockeditor WordPress. Bauen Sie professionelle Websites… von Benjamin Intal 100K+ ★★★★★★★★★★ 4.9 (522) Vor 2 Monaten 77
10 Widget-Optionen – Erweiterte bedingte Sichtbarkeit für Gutenberg Blöcke und klassische Widgets Widget-Optionen Widget-Optionen bieten Ihnen Superkräfte, um die Sidebar-Widgets Ihrer Website und alle… durch Marketingfeuer 100K+ ★★★★★★★★★★ 4.9 (1.5K) Vor 3 Wochen 84

Fragen und Antworten

Headless Block Styles: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Headless Block Styles free?

Yes. Headless Block Styles is free to download and use from the official WordPress.org plugin directory.

Is Headless Block Styles safe to use in 2026?

Headless Block Styles works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 49/100 on our health check.

How many websites use Headless Block Styles?

Headless Block Styles is active on <10 WordPress websites and has been downloaded 312 times since it launched in July 2026. It was downloaded 70 times in the last 30 days.

Does Headless Block Styles work with WordPress 7.1?

Headless Block Styles is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Headless Block Styles need?

Headless Block Styles requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Headless Block Styles last updated?

The latest version, 0.1.0, was released on July 21, 2026 (4 months ago).

Who makes Headless Block Styles?

Headless Block Styles is developed and maintained by fusan.

What are the best alternatives to Headless Block Styles?

The most popular alternatives to Headless Block Styles are Spectra Legacy (1M+ installs), Kadence Blocks (600K+ installs) and Extendify (500K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen