Overview & Live Demo
GRATIS (text domain gratis, repository gratis-theme, version 1.0.2) is a Full Site Editing (FSE) WordPress block theme built on theme.json v3 with 1:1 Gutenberg Edit Mode to Published Frontend parity. Try every token, style variation, block style, pattern, and interactive component on the GRATIS Theme Live Demo.
Installation
- Download
gratis-theme-1.0.2.zipfrom the Downloads directory or install via WP-CLI:wp theme install https://github.com/juslintek/gratis-theme/archive/main.zip --activate. - Alternatively, upload the archive under Appearance → Themes → Add New → Upload Theme and click Activate.
- For local development:
git clone git@github.com:juslintek/gratis-theme.git wp-content/themes/gratis-theme.
1:1 Gutenberg Editor Parity
GRATIS registers add_theme_support('editor-styles') and loads assets/css/theme.css, assets/css/components.css, and assets/css/demo-showcase.css in both the iframed Post Editor / Site Editor and the published frontend. All 22 patterns, 18 templates, and 5 template parts use canonical core block markup and normalized theme.json v3 preset tokens (--2-xl through --5-xl) so Gutenberg renders zero “Attempt Block Recovery” prompts.
theme.json v3 Tokens & 4 Style Variations
- 18 Color Palette Tokens & 3 Gradients: Semantic surface, text, border, primary, accent, and status presets (
primary-to-accent,dark-to-primary,subtle). - Fluid Typography & Self-Hosted Fonts:
clamp()scale fromxsto5-xlusing local OFL 1.1Space Grotesk(headings),DM Sans(body), and system monospace with zero Google Fonts CDN requests. - Spacing, Shadows & Radius: 13 spacing presets (
1–32), 6 shadows (xs–2-xl), and 5 border-radius presets. - 4 Global Style Variations (
styles/*.json): Switch between Obsidian Dark (dark.json), Daylight Light (light.json), Emerald Matrix (emerald.json), and Ocean Slate (ocean.json) under Appearance → Editor → Styles.
All 22 Block Patterns (19 Categories)
GRATIS registers 19 pattern categories (gratis-heroes, gratis-sections, gratis-cards, gratis-cta, gratis-features, gratis-pricing, gratis-team, gratis-testimonials, gratis-stats, gratis-faq, gratis-forms, gratis-navigation, gratis-footer, gratis-blog, gratis-portfolio, gratis-woocommerce, gratis-membership, gratis-about, gratis-contact) covering all 22 bundled patterns:
gratis/about-split,gratis/alternating-sections,gratis/blog-grid,gratis/comparison-tablegratis/contact-split,gratis/cta-centered,gratis/faq,gratis/features-gridgratis/hero-bold,gratis/hero-gradient,gratis/hero-minimal,gratis/hero-splitgratis-theme/landing-product,gratis/logo-bar,gratis/membership-gate,gratis/newslettergratis/portfolio-grid,gratis/pricing-cards,gratis/stats-row,gratis/team-cardsgratis/testimonials-grid,gratis/timeline
All 17 Custom Block Styles
core/button:outline,ghost,pill,icon-onlycore/group:card,card-dark,glass,borderedcore/image:rounded,shadow,bordercore/list:check,no-disccore/quote:large,plaincore/separator:thick,dotted
18 Templates & 5 Header/Footer Variants
Templates in templates/*.html cover index, single, page, archive, search, 404, blank, full-width, landing, page-search-page, WooCommerce views, and Gratis CPTs (archive-gratis_doc, single-gratis_doc, archive-gratis_event, archive-gratis_course). Template parts in parts/*.html ship header, header-dark, header-minimal, footer, and footer-minimal.
Live REST Search
Add an instant debounced (200ms) WordPress REST search input anywhere using a Custom HTML block. Results are rendered safely via createElement and textContent with zero jQuery:
<div class="gratis-search-wrap">
<input type="search" class="gratis-search-input" aria-label="Search site" placeholder="Search...">
</div>
Toast & Bell Notifications API
Trigger accessible toast alerts or push items to a .gratis-bell dropdown panel using the global vanilla JS API (~7 KB total frontend JS):
GRATIS.toast("Changes saved cleanly.", "success");
GRATIS.toast("Check contrast settings.", "warning");
GRATIS.notify("New order #1042 received", "info", "/orders/1042");
WooCommerce Integration
GRATIS includes dedicated FSE templates for archive-product, single-product, page-cart, and page-checkout, strips legacy wrapper/breadcrumb duplication in functions.php, and wires WooCommerce added_to_cart events directly into GRATIS.notify().