VARZ Builder

Описание

Write almost any amount of responsive HTML without adding, generating or compiling a single line of CSS.

VARZ Builder is a visual page builder for the VARZ CSS framework. Every style — for every screen size and every state — is a CSS variable right in the element’s style attribute:

style="--d:grid; --gtc:1fr 1fr; --gtc-m:1fr; --hov-bgc:#eee"

One small framework file (about 7 KB gzipped) understands all of them, so a page with a thousand styled elements loads the same stylesheet as an empty one:

  • ⚡ No CSS generated per page, per post or per element — nothing to compile, cache, purge or regenerate
  • 🧩 No post meta, no custom tables — the markup itself is the single source of truth
  • 📦 Portable HTML — it works anywhere the framework is loaded: another site, a block, a template

✨ Features

  • 🎨 Visual builder — «Edit with VARZ» in the post list, the admin bar and the block editor. Drag and drop elements, a style editor for every CSS property with breakpoints (desktop, tablet, mobile) and states (hover, focus, …), background images from the Media Library, overlays, shadows.
  • ⭐ Icon element — 118 icons and your own, searchable, with looks (plain, circle, square, outline); size, color and background from the style editor.
  • 🖱️ Interactive elements powered by varz.js — tabs, accordions, popups, side panels, slider, gallery with lightbox, click-to-play video.
  • 🧱 VARZ blocks for the block editor — section (background overlay with filters and blend modes), container, grid, column, heading, text, buttons, image, tabs, accordion, slider, gallery. A round trip between the builder and the blocks.
  • 📐 Patterns — ready sections, including a simple contact form.
  • 🎛️ Site-wide design tokens — colors, typography, fonts, buttons and form fields in one place, shared with the VARZ theme.
  • 🔗 Menu item icons (optional) — an icon for each menu item, shown in every menu: 118 built-in icons and your own (pasted SVG code, cleaned to plain shapes).
  • 🌍 Translation ready.

🛠️ Works with any theme

  • VARZ theme — the builder uses the theme’s colors, tokens and its copy of the framework.
  • Other themes — a «VARZ full width» page template (the theme’s header and footer, the content at the full width; classic and block themes). VARZ colors stay light on the theme’s light background (filter varz_builder_color_scheme: '' follows the visitor’s system, 'dark').
  • Framework assets manager (themes without the framework) — one bundled build loads: 5 or 3 breakpoints, with or without the reset, plain (--p) or prefixed (--vz-p) names, on VARZ pages only or on every page. With the VARZ theme the names follow its choice in Customizer > WordPress styles & scripts.

🧹 Extras

  • VARZ > Settings > Clean up (each off by default, front end only) — emoji, jQuery Migrate, generator tags, RSD, shortlink, REST API and oEmbed links, feed links, Dashicons for visitors; with other themes also the block styles.
  • VARZ > Variable names — converts saved content between plain and prefixed names (preview first, a revision for every converted item).

📚 Links

External services

The plugin connects to these services only when a user acts on the matching feature:

  • VARZ starter sites (cdn.varz.dev) — the list of starter sites and their packages for VARZ > Starter sites. The list (index.json) and its screenshots are requested when an administrator clicks Show starter sites on VARZ > Starter sites (remembered in that browser afterwards); a package (a zip file with pages, settings and images) is downloaded when the administrator imports that starter site. No personal data is sent — only the request itself (WordPress adds the site address to the User-Agent header of server requests). Packages can also be uploaded from a file, without the service. Terms of use, privacy policy.
  • WordPress.org plugin directory (api.wordpress.org, downloads.wordpress.org) — when an administrator imports a starter site that uses plugins and keeps Install the plugins on, those plugins are looked up and installed from WordPress.org, as on the Plugins > Add New screen. Privacy policy.
  • Bunny Fonts (fonts.bunny.net) or Google Fonts (fonts.googleapis.com, fonts.gstatic.com) — only with a theme other than VARZ, and only when web fonts are chosen in the design tokens: the font stylesheet is loaded on the site’s pages, so visitors’ browsers request the fonts from the chosen service (their IP address and browser details reach it). With the VARZ theme the fonts are self-hosted and no request is made. Bunny Fonts: terms, privacy. Google Fonts: terms, privacy.

Source code

The plugin’s own scripts and styles are unminified (assets/js, assets/css). The bundled VARZ framework comes minified (assets/vendor): the readable VARZ.js sources are in assets/vendor/src, and the readable (unminified) CSS builds and scripts of the framework are at github.com/exstheme/varz.

Third-party resources

Скриншоты

Блоки

Этот плагин предоставляет 10 блоков.

  • VARZ content
  • VARZ posts
  • VARZ button
  • VARZ image
  • VARZ tabs
  • VARZ tab
  • VARZ accordion
  • VARZ accordion item
  • VARZ slider
  • VARZ gallery

Установка

  1. In your admin panel, go to Plugins > Add New, search for VARZ Builder, click Install Now, then Activate.
  2. Go to VARZ > Settings to choose the post types and user roles that can use the builder.
  3. Open any page and click Edit with VARZ.

To install from a file instead: Plugins > Add New > Upload Plugin, choose the plugin’s .zip file, then Install Now and Activate.

Часто задаваемые вопросы

Does the plugin generate CSS for my pages? Is it fast?

No CSS is generated — ever. Builder pages and VARZ blocks keep every style in the element’s own style attribute (style="--p:24px; --p-s:12px"), and one small framework file reads them all: about 7 KB gzipped, the same file for every page, cached by the browser after the first visit. There are no per-page or per-block stylesheets, no CSS files written to the uploads folder, nothing to compile, purge or regenerate after an update, and no extra database queries for styles. The only other CSS is a short list of your design tokens (colors, fonts, buttons) as CSS variables — the same on every page. A page with ten elements and a page with a thousand load the same CSS.

Who can use the builder?

Administrators always; other roles (by default editors) can be allowed in VARZ > Settings, for the post types chosen there. For users without the unfiltered_html capability WordPress filters the saved markup as usual: VARZ styles are kept, scripts, forms and embeds are removed.

What happens to my pages if I deactivate the plugin?

The content stays plain HTML with inline styles, so it still renders with the VARZ theme, which includes the framework. With other themes the framework stylesheet comes from the plugin; without it the VARZ variables have no effect.

How do I show menu item icons in my theme’s own menus?

Enable Menu item icons in VARZ > Settings and pick the icons in Appearance > Menus. They show in every menu printed with wp_nav_menu(). Themes that build menus themselves can use the varz_menu_item_icon filter. Own icons: paste their SVG code under Custom icons in VARZ > Settings; developers can also use the varz_builder_icon_shapes filter.

Does the plugin collect any data?

No, it does not track visitors. Web fonts chosen in the design tokens: with the VARZ theme they are self-hosted by the theme; with other themes the font stylesheet is loaded from the font service you picked (fonts.bunny.net or fonts.googleapis.com), so visitors’ browsers connect to it.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«VARZ Builder» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «VARZ Builder» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.0

  • Initial release.