🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Headless Block Styles icon
Mantido Testado até 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.

Instalações ativas<10Novo
Downloads · 30d70▲ +11.1% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde49/100Justo
Downloads de todos os tempos312Since Jul 2026
Suporte resolvido—Sem tópicos recentes
RequerWP 6.1Php 7.4+
Downloads · 7d16▼ -38.5% week over week
Nosso veredicto

Use com cautela

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.

  • Base de usuários pequenas (<10 instalações ativas)
  • Muito poucos comentários até agora

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

135Aug 31Oct 14Nov 28
Ontem1
Média diária (1y)2
Dia de pico33Jul 21, 2026
Últimos 12 meses311

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Headless Block Styles stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
blocos >100 10,000 Melhores plugins de blocos →
decoupled #36 157 Best decoupled plugins →
Gutenberg >100 8,517 Os melhores plugins de Gutenberg →
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

Descrição

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.

Descanse 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.

Filtros

  • 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

Instalação

  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.

Log de Changes

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.

Registro de change completo em WordPress.org →

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Headless Block Styles alternatives

Plugins de todos os blocos →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Spectra Legacy – Blocos Gutenberg Spectra Legacy – Blocos Gutenberg Gutenberg Blocos para sites Spectra existentes. Mantido, estável e totalmente suportado —… por brainstorm force 1M+ ★★★★★★★★★★ 4.7 (1.9K) 2 semanas atrás 87
2 Blocos de Kadence — Kit de ferramentas do Construtor de páginas para Gutenberg Editor Blocos de Kadence — Kit de ferramentas do Construtor de páginas para Gutenberg Editor 20+ Gutenberg Blocos com opções infinitas, permitindo uma eficiência de alto nível para… por Nexcess 600K+ ★★★★★★★★★★ 4.8 (337) 5 dias atrás 90
3 Extender Extender Os melhores WordPress Modelos, Padrão e Biblioteca de Layout com mais de 1.000 designs criados para o… por Extender 500K+ ★★★★★★★★★★ 4.7 (10) 3 dias atrás 76
4 Pacote de widgets do SiteOrigin Pacote de widgets do SiteOrigin Elementos essenciais para sites modernos. Adicione botões, controles deslizantes, heróis, mapas, imagens… Por Greg - SiteOrigin 400K+ ★★★★★★★★★★ 4.9 (134) 6 dias atrás 97
5 Blocos de lontra – Gutenberg Blocos, Construtor de Páginas para Gutenberg Editor e FSE Blocos de lontra Crie rapidamente WordPress páginas com mais de 20 blocos, mais de 100 designs prontos para importar e avançados… por Themeisle 300K+ ★★★★★★★★★★ 4.7 (252) 3 dias atrás 96
6 Construtor de páginas Gutenberg blocos – coblocks Construtor de páginas Gutenberg blocos – coblocks Coblocks é um conjunto de construtores de páginas WordPress blocos para Gutenberg, com mais de 10 blocos e… por GoDaddy 300K+ ★★★★★★★★★★ 4.2 (109) 9 meses atrás 50
7 Gera blocos Gera blocos Uma pequena coleção de blocos leves WordPress que podem realizar quase tudo. por Tom 200K+ ★★★★★★★★★★ 4.9 (122) 3 semanas atrás 87
8 Bloco de grade de layout Bloco de grade de layout Um bloco de contêiner Gutenberg para permitir que você alinhe itens de forma consistente em uma grade global. por Automattic 200K+ ★★★★★★★★★★ 4.7 (13) 3 anos atrás 43
9 Empilhável – Construtor de Páginas Gutenberg Blocos Empilhável – Construtor de Páginas Gutenberg Blocos O construtor de sites completo para o editor de bloco WordPress. Crie sites profissionais… Por Benjamin Intal 100K+ ★★★★★★★★★★ 4.9 (522) 2 meses atrás 77
10 Opções de widgets – visibilidade condicional avançada para Gutenberg blocos e widgets clássicos Opções de widget Opções de widgets oferecem super poderes para controlar os widgets da barra lateral do seu site e todos os… Por marketing de fogo 100K+ ★★★★★★★★★★ 4.9 (1.5K) 3 semanas atrás 84

FAQ

Headless Block Styles: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: 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).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir