🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Headless Block Styles icon
Maintained Tested up to 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.

Active installs<10New
Downloads · 30d73▲ +40.4% vs prev. 30d
Rating—0 reviews
Health score49/100Fair
All-time downloads312Since Jul 2026
Support resolved—No recent threads
RequiresWP 6.1PHP 7.4+
Downloads · 7d14▼ -26.3% week over week
Our verdict

Use with caution

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.

  • Small user base (<10 active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

135Sep 4Oct 18Dec 2
Yesterday3
Daily average (1y)2
Peak day33Jul 21, 2026
Last 12 months319

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Headless Block Styles stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
blocks >100 10,000 Best blocks plugins →
decoupled #35 157 Best decoupled plugins →
gutenberg >100 8,556 Best gutenberg plugins →
headless #75 610 Best headless plugins →
rest-api >100 10,000 Best rest-api plugins →

About Headless Block Styles

From the official readme · v0.1.0

Description

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.

Changelog

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.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Headless Block Styles alternatives

All blocks plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Spectra Legacy – Gutenberg Blocks Spectra Legacy – Gutenberg Blocks Gutenberg blocks for existing Spectra websites. Maintained, stable, and fully supported —… by Brainstorm Force 1M+ ★★★★★★★★★★ 4.7 (1.9K) 2 weeks ago 85
2 Kadence Blocks — Page Builder Toolkit for Gutenberg Editor Kadence Blocks — Page Builder Toolkit for Gutenberg Editor 20+ Gutenberg Blocks with endless options, enabling top-notch efficiency for… by Nexcess 600K+ ★★★★★★★★★★ 4.8 (337) 1 week ago 91
3 Extendify Extendify The best WordPress templates, pattern, and layout library with 1,000+ designs built for the… by Extendify 500K+ ★★★★★★★★★★ 4.7 (10) 3 days ago 76
4 SiteOrigin Widgets Bundle SiteOrigin Widgets Bundle Essential elements for modern websites. Add buttons, sliders, heroes, maps, images… by Greg - SiteOrigin 400K+ ★★★★★★★★★★ 4.9 (134) 1 week ago 97
5 Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE Otter Blocks Quickly create WordPress pages with 20+ blocks, 100+ ready-to-import designs, and advanced… by Themeisle 300K+ ★★★★★★★★★★ 4.7 (252) 2 days ago 96
6 Page Builder Gutenberg Blocks – CoBlocks Page Builder Gutenberg Blocks – CoBlocks CoBlocks is a suite of page builder WordPress blocks for Gutenberg, with 10+ new blocks and… by GoDaddy 300K+ ★★★★★★★★★★ 4.2 (109) 9 months ago 50
7 GenerateBlocks GenerateBlocks A small collection of lightweight WordPress blocks that can accomplish nearly anything. by Tom 200K+ ★★★★★★★★★★ 4.9 (122) 3 weeks ago 85
8 Layout Grid Block Layout Grid Block A Gutenberg container block to let you align items consistently across a global grid. by Automattic 200K+ ★★★★★★★★★★ 4.7 (13) 3 years ago 43
9 Stackable – Page Builder Gutenberg Blocks & Patterns Stackable – Page Builder Gutenberg Blocks & Patterns Build stunning websites with 42 custom blocks, 100+ free patterns, and a 375 design… by Benjamin Intal 100K+ ★★★★★★★★★★ 4.9 (522) 2 days ago 81
10 Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets Widget Options Widget Options gives you super powers to control your site’s sidebar widgets and all… by Marketing Fire 100K+ ★★★★★★★★★★ 4.9 (1.5K) 3 weeks ago 91

FAQ

Headless Block Styles: quick answers

Straight answers, pulled from live WordPress.org data.

Source: 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 73 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).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open