Linux 软件免费装
Banner图

Blicks

开发者 blicks
更新时间 2026年9月17日 03:20
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

blocks gutenberg full site editing design system

下载

1.0.0

详情介绍:

Blicks adds a set of blocks for building page layouts in the block editor — sections, boxes, stacks, grids, headings, text, buttons, images, icons, spacers, and dividers. All blocks share one design system. Instead of a fixed colour or font size baked into each block, Blicks reads your active theme's theme.json and uses those settings in the block controls and in the front-end CSS. Change a value once and it applies everywhere. Works with your theme Blicks tokens (--blicks-*) map to WordPress preset variables (--wp--preset--*, --wp--custom--*). Colours, type scale, and spacing come from whatever theme is active, not a separate default set. Built for block themes and full site editing. Output Token values become utility classes. Custom values become CSS custom properties on the element, and per-instance rules — pseudo-elements, container queries, keyframes — are collected into one stylesheet rather than repeated on every block. What's included

安装:

  1. Upload the plugin files to /wp-content/plugins/blicks/, or install it through the WordPress Plugins screen.
  2. Activate Blicks from the Plugins screen.
  3. Open the block editor and insert blocks from the Blicks category.
  4. Optional: visit Blicks → Design System to adjust tokens, type roles, and breakpoints.

屏幕截图:

  • Theme Settings in the editor. The colours, type scale and spacing come from the active theme's theme.json, so they are the same values the front end uses.
  • Block controls, split across three tabs: Settings for what the block is, Style for every property at each breakpoint and state, and Advanced for visibility and custom attributes.

升级注意事项:

1.0.0 First public release.

常见问题:

Does Blicks work with my theme?

It's built for block themes and full site editing, where it reads your theme.json directly. It also runs on classic themes, but falls back to its own default token values since there's no theme.json to read.

What happens to my data if I delete the plugin?

By default, nothing is removed — your tokens, themes, animations, and settings survive a delete and reinstall. If you want Blicks to clean up after itself, set On uninstall to "Delete all Blicks data" in Blicks → Settings before deleting the plugin.

Can I add my own CSS, JavaScript, or PHP through Blicks?

No. There is no stylesheet field, no script field, and no snippet runner. Blicks never evaluates anything you type, and you cannot write a CSS rule, a selector, or an at-rule anywhere in it. Two places do accept typed input, and both are described below. Some controls take a typed value rather than offering a picker — a length like 800px, a transform like translateX(10px), a shape like polygon(0 0, 100% 0, 100% 100%). Each of those is the value of one named property that the control itself chooses; you cannot write the property, a selector, or a rule. Every value is validated whole against a closed list of permitted characters and CSS functions before it is used, so a value cannot end its own declaration or start another one. Anything that does not validate is dropped. The custom animation editor (Blicks → Design System → Animations, administrators only) works the same way. Each keyframe step is a form row: you pick a property from a fixed list of animatable properties (opacity, transform, color and similar), and type its value, which is validated exactly as above. You cannot name any other property, write a selector, or add an at-rule; Blicks generates the @keyframes rule and its name itself.

Can I paste in HTML from somewhere else?

Yes. Import HTML in the editor's options (⋮) menu opens a one-way importer: you paste a block of markup, Blicks maps each element to the closest Blicks block, and inserts the result into the post. It reads each element's inline style attribute only — not <style> blocks, not stylesheets, not <script>. A declaration is kept only where its property matches an existing Blicks control that takes a plain value; it then becomes an ordinary block attribute, validated exactly like any value you would have typed into that control yourself. Everything else — every property with no matching control, and every structured control that would need reshaping — is dropped, and the import report names each one so nothing is silently discarded. The pasted text itself is never stored and never rendered. No pasted CSS reaches the front end unvalidated, and pasted <script> is parsed as text, never executed.

Does Blicks let me use my own images as backgrounds?

Yes, via the media library. Background image URLs are restricted to your own site's uploads or an ordinary http(s) address; javascript: and data: URLs are rejected.

更新日志:

1.0.0