Freeframe

Documentation

Bincrest

v1.0.0Updated Dec 5, 2026A dark, industrial SaaS website for inventory software, with a live multi-channel stock board in the hero.

Overview#

Bincrest is a website for an inventory software company, built as a WordPress block theme. The fictional Bincrest, Inc. makes inventory and stock management software that keeps one stock count for independent shops that sell in a storefront, an online shop, on marketplaces and wholesale. It is based at 1021 Third Street SE in Cedar Rapids, Iowa, and works in Central time (America/Chicago). The theme has a home page whose hero is a live multi-channel stock board with a saved watchlist, a product tour (stock allocation, a bin label maker, purchase orders, scanning, low-stock alerts, a reorder point calculator and report charts), pricing with a monthly or yearly switch, a plan estimator, a comparison table and billing questions, customer stories filtered by shop type, a searchable integrations directory with a detail dialog, a dated product updates log with a subscribe form, a company page with the team, office and open roles, a demo booking form with a Central-time slot picker and a 404 page. It is version 1.0.0 (see template.json and style.css), works with WordPress 7.1 and PHP 7.4 or newer, and is the WordPress version of the HTML template of the same name. See it live at freeframe.dev/templates/bincrest.

Headings, copy, lists, cards, quotes, plan cards, buttons, the billing questions and the open roles are core WordPress blocks arranged in block patterns, so you edit them in the block editor without touching code. The parts that are worked out in the browser (the stock board, the reorder calculator, the bin label maker, the plan estimator, the comparison table, the customer story list, the integrations directory and dialog, the updates log and its subscribe form, the support hours note and the demo booking form) work as in the HTML version: they are Custom HTML blocks driven by assets/js/main.js, which reads Bincrest's content from assets/js/data.js. The drawings and charts are Custom HTML blocks with inline SVG. Colors and fonts are design tokens in theme.json: change them in Appearance > Editor > Styles and the whole site follows. Every upcoming date is worked out in Central time from rules rather than fixed dates, so the demo never goes stale.

The look is dark and industrial, borrowed from a stockroom: a warm near-black page, hairline grids, cream shelf tags with a punched hole, bin-location eyebrows like A-01, corner crop marks and one bright signal-red accent. Headings are set in Bai Jamjuree, body text in Gantari and numbers, SKUs and bin codes in Kode Mono. The site is dark only.

Quick start#

Requirements: WordPress 7.1 or newer and PHP 7.4 or newer. No plugins are needed.

  1. Download bincrest.zip from freeframe.dev/templates/bincrest (the WordPress tab).
  2. In your WordPress admin go to Appearance > Themes > Add New Theme > Upload Theme, choose the zip and click Install Now, then Activate. The theme is listed as Freeframe Bincrest.
  3. Go to Appearance > Bincrest setup and click Create the demo pages. This creates the Home, Product, Pricing, Customers, Integrations, Product updates, Company and Book a demo pages from the theme's page patterns, sets Home as the front page (Settings > Reading) and creates the header menu. Pages that already exist with the same slug are left alone, so it is safe to click it again.
  4. Visit your site. Edit any page in Pages, and the header, footer and templates in Appearance > Editor.

You can also try the theme without installing anything: the Try it in WordPress button on freeframe.dev opens it in WordPress Playground (WordPress running in your browser) with the demo pages already set up.

To work on the theme's files locally you need Node.js 24 and pnpm; WordPress itself runs in WordPress Playground, so there is no PHP, web server or database to install:

sh
pnpm install
pnpm dev     # builds the CSS, then starts WordPress with the theme at http://127.0.0.1:9400

pnpm dev signs you in as admin (password password) and creates the demo pages. The site is rebuilt from scratch every time you start it; your edits to theme files are live, edits made in the WordPress admin are not kept.

Pages#

Each page is a page pattern (in Patterns > Bincrest pages) made of section patterns. Every section is also offered on its own in the block inserter under Patterns > Bincrest.

Page Slug Page pattern Sections (pattern files in patterns/)
Home / page-home.php home-hero (stock board and activity feed), shop-logos, features, home-sync, home-quotes, home-cta
Product /product/ page-product.php product-hero, product-sync (#sync), product-bins (#bins, bin label maker), purchase-orders (#purchase-orders), scanning (#scanning), alerts (#alerts), reorder-calculator (#reorder), reports (#reports), product-cta
Pricing /pricing/ page-pricing.php pricing-plans (billing switch and four plans), plan-estimator (#estimate), compare-plans (#compare), billing-faq (#faq)
Customers /customers/ page-customers.php customers-hero, stories (filters and the list from CASES), customers-cta
Integrations /integrations/ page-integrations.php integrations-hero, directory (from INTEGRATIONS), api, integration-dialog
Product updates /updates/ page-updates.php updates-hero (subscribe form), updates-log (from UPDATES)
Company /company/ page-company.php company-hero, story, values, team, office (support hours note), roles (#roles)
Book a demo /demo/ page-demo.php demo-booking
404 any missing URL templates/404.html 404

WordPress posts use templates/single.html; the blog, archives and search results use templates/index.html, templates/archive.html and templates/search.html.

Project structure#

freeframe-bincrest/
  style.css                 theme header (name, version, requirements, license); no styles
  theme.json                design tokens: palette, fonts, font sizes, spacing, layout widths, button
  functions.php             loads the files in inc/
  inc/setup.php             stylesheet and scripts (with the script's strings and page URLs), editor
                            styles, theme color, meta descriptions and favicon, page titles,
                            pattern categories
  inc/icons.php             registers assets/icons/*.svg for the Icon block
  inc/icon-labels.php       the icons' names shown in the editor
  inc/block-styles.php      button block styles
  inc/site-setup.php        Appearance > Bincrest setup: creates the demo pages and the menu
  templates/                page.html (pages), page-with-title.html, single.html, index.html,
                            archive.html, search.html, 404.html
  parts/                    header.html and footer.html (they show the header and footer patterns)
  patterns/                 every section and page (PHP files with block markup)
  assets/css/theme.css      the compiled stylesheet (do not edit: built from src/)
  assets/css/editor.css     the same for the block editor (generated by src/editor-css.mjs)
  assets/js/data.js         Bincrest's content (window.BINCREST): SKUS, ORDER_SCRIPT, PLANS, CASES,
                            INTEGRATIONS, UPDATES, DEMO_TIMES and more
  assets/js/main.js         every interaction (the HTML version's script plus a WordPress adapter)
  assets/icons/             the icons used by Icon blocks (outline SVG paths)
  assets/img/               logo.svg, favicon.svg and the social image
  assets/fonts/             Bai Jamjuree, Gantari and Kode Mono, with their licenses
  src/theme.css             the Tailwind CSS source of assets/css/theme.css
  src/icons.css             icons drawn before or after text with CSS (generated)
  src/editor-css.mjs        writes assets/css/editor.css after each build
  languages/                freeframe-bincrest.pot, the template for translations
  blueprint.json            WordPress Playground setup used by `pnpm dev`
  screenshot.png            the picture shown in Appearance > Themes
  package.json              the CSS build and the local WordPress (Node.js tooling)
  readme.txt, README.md, DOCS.md, CHANGELOG.md, LICENSE.txt

Customizing#

Brand and colors#

The palette is in theme.json (settings.color.palette) and shows in Appearance > Editor > Styles > Colors. The stylesheet maps every Tailwind color to these presets (--color-signal: var(--wp--preset--color--signal) in src/theme.css), so changing Signal in Styles changes every button, link and focus outline that uses signal.

Color Value Used for
Ink #121110 Page background
Panel / Panel 2 #1a1917 / #23211e Cards and tables / table heads, tracks
Line / Line strong #2e2b27 / #6b655c Hairlines / inputs and chart axes
Bone, Dust, Ash #efe9df, #c3bcb1, #948d82 Text: headings and body, secondary, captions
Signal / Signal strong #ff4d2e / #ff6f55 Buttons, focus outlines, links / hover
Signal soft / Signal line #2c1611 / #5e2516 Tinted backgrounds and borders behind the accent
Tag / Tag ink #ede4cf / #1c1a17 Cream shelf tags and pressed filters, with dark text
OK, Low (and Soft) #6fd39b, #f0c04f Stock status chips and bars

Button text on the accent uses Tag ink, so keep the accent light enough for dark text. The logo (assets/img/logo.svg), favicon.svg, og-image.svg, the integration and product marks in data.js and a few drawings use #ff4d2e directly; search for it if you change the accent completely.

The repeated pieces are classes in src/theme.css: .panel, .gridlines, .ticks (corner crop marks), .tag (a shelf tag), .binmark (the A-01 eyebrow), .h-display, .h-section, .lead, .link, .chip and the status tones (.st-ok, .st-low...), .seg, .filter-btn, .slot and the form fields (.field, .field-label, .field-error, .field-hint). Add them to any block under Advanced > Additional CSS class(es).

Typography#

Three families are bundled in assets/fonts/ and declared in theme.json (no requests to Google), the same files Google Fonts serves to the HTML version:

  • Bai Jamjuree (font-display, headings and the logo; 500, 600 and 700).
  • Gantari (font-sans, the body font; 400 to 600, and italic 400).
  • Kode Mono (font-mono, prices, counts, SKUs, bin codes and eyebrows; 400 to 600). It draws its zero with a slash; that is the font's design.

Swap a family in Styles > Typography, or add your own fontFace files to theme.json.

Content#

Page copy (headings, paragraphs, the feature cards, the quotes, the plan cards, the billing questions, the team, the values and the open roles) is in the pages: edit it in the block editor. Everything the script renders lives in assets/js/data.js on window.BINCREST, as in the HTML version:

Constant What it holds
COMPANY Name, timeZone (America/Chicago), phone, email and supportHours (07:00 to 19:00, Central)
ART Small drawn products (48×48 SVG) used on the board, labels and customer stories
CHANNELS The four sales channels: store, web, market, wholesale
BOARD Stock board settings: shop name, tickMs: 2400, leadTicks: 6, first order and PO numbers, ordersToday: 31, open purchase orders
SKUS Board items: sku, name, art, bin, onHand, reorderAt, restock and units sold today per channel
ORDER_SCRIPT, FEED_START The 20 orders the board plays in a loop; the activity feed shown before the first order
REORDER_DEFAULTS, REORDER_LIMITS Reorder calculator example values and allowed ranges
BIN_ZONES, BIN_LIMITS, BIN_DEFAULT Bin label maker zones, highest aisle (24) and shelf (8), starting label
PLANS, ANNUAL_DISCOUNT, TRIAL_DAYS, ESTIMATE_LIMITS, DEFAULT_PRICING Pricing
SHOP_TYPES, CASES Customer story filters and stories
INT_CATEGORIES, INTEGRATIONS Integration categories and directory entries
UPDATE_TAGS, UPDATES Update types and the product updates log (fixed past dates)
DEMO_TIMES, DEMO_DAYS, DEMO_LENGTH_MIN, CLOSED_DAYS Demo slot picker

Example: add an integration. Give it a unique id, an existing category (a key of INT_CATEGORIES), a tile color and a mark drawn in white inside a 40×40 box:

js
{ id: 'tallyhook', name: 'Tallyhook', category: 'data', bg: '#4a5a2b', setup: '2 minutes', direction: 'One-way out',
  blurb: 'Send a stock snapshot to your bookkeeper every Friday.',
  syncs: ['On hand and value by location', 'Items below their reorder point'],
  mark: '<rect x="11" y="11" width="18" height="18" rx="2" fill="none" stroke="#fff" stroke-width="2.6"/>' }

Category counts, search and the detail dialog pick it up automatically. The filter buttons and the "19 integrations" line in the directory pattern are the text shown before the script runs; update them if you want them exact.

Example: add a customer story to CASES with type set to a key of SHOP_TYPES. Each of the two metrics draws a before-and-after bar; add unit: '%' or unit: '$k' to format the numbers. The home page logo row and quotes are blocks in the shop-logos and home-quotes patterns; edit them there if you change customers.

The plan cards, the comparison table and the billing questions on the pricing page are written in the patterns. If you change a plan in PLANS, update the card and the table rows to match. The estimator's "Book a demo with this estimate" link goes to the Book a demo page: the script turns the HTML file name demo.html into your WordPress page URL with freeframe_bincrest_page_urls() in inc/setup.php. Edit data.js in a child theme (see Child themes) so an update doesn't overwrite it.

Images and artwork#

All artwork is SVG drawn for this template; there are no photos. The header and footer logo is an Image block (assets/img/logo.svg) next to the name: select it and Replace to use your own. The feature icons, the shop marks, the sync diagram, the scanning shelf, the report charts, the team avatars, the office map and the 404 shelf are Custom HTML blocks with inline SVG; replace a block with an Image block (keep roughly the same aspect ratio: team avatars and product tiles are square) when you have real pictures. The product drawings and integration marks are drawn by the script from ART and the mark strings in data.js.

The social image is assets/img/og-image.png (1200 x 630, source og-image.svg); the favicon assets/img/favicon.svg is used until you set a Site Icon in Settings > General.

The header and footer are template parts (parts/header.html, parts/footer.html) showing the header and footer patterns. Edit them in Appearance > Editor > Patterns > Header / Footer.

The header has two Navigation blocks showing the same menu: the desktop one (from 1024 px) and the one in the phone menu. Edit the menu once in Appearance > Editor > Navigation (the setup creates "Main menu": Product, Pricing, Customers, Integrations, Updates and Company). WordPress marks the current page's link with aria-current="page" (drawn as a signal-red bar under it, and in red in the phone menu). The "Book a demo" buttons in the header and the phone menu are Button blocks. A Navigation block that doesn't point at a menu shows the most recently created one; to pin a menu, select the Navigation block and choose it in the block settings, for both blocks.

The footer's link columns are List blocks: click a link to change it, press Enter to add one. The copyright year is written by PHP and kept current by the script. The address, phone number and email appear in the footer and on the company and demo pages; search for them when you change them.

The site is dark only: inc/setup.php prints color-scheme: dark and the theme color #121110, so form controls, scroll bars and the browser bar match.

Features#

Live stock board#

Home page (home-hero pattern), section 5 of main.js (initBoard, with the numbers in boardState and boardTick). The board shows the shop in BOARD.shop with the eight SKUS. Every BOARD.tickMs (2.4 seconds) the next order in ORDER_SCRIPT arrives: it takes units off the shelf and counts toward its channel's total.

  • Low stock: an item is low when on hand is at or below its reorderAt. The row turns amber and a purchase order is drafted for restock units, numbered from BOARD.firstPo.
  • Receiving: a drafted purchase order arrives BOARD.leadTicks (6) orders later and adds restock units. Purchase orders open at load are in BOARD.openPos, with their age in orders.
  • Controls: "Play"/"Pause", "Next order" (one order, announced to screen readers) and the filters "All", "Low stock" and "Watching". The board starts paused with reduced motion, and rests while it is scrolled off screen or the tab is hidden.
  • Watchlist: the star on each row adds the item to the watchlist (aria-pressed), saved as bincrest:watchlist.

With the starting data: 280 units on hand, 31 orders today, 1 SKU low (the gravel tire, 9 on hand with a reorder point of 10) and 1 open purchase order (PO-1047). Channel totals: Storefront 21, Online shop 16, Marketplace 14, Wholesale 18. After five clicks on "Next order": 283 units, 36 orders, still 1 SKU low and 1 open purchase order, with "PO-1048 drafted" (30 × Insulated bottle, 24 oz) at the top of the feed.

To show your own items, edit SKUS and ORDER_SCRIPT (every sku and channel must exist). A script that sells more than it restocks will run items out; the board then shows "Out" until the purchase order arrives.

Reorder point calculator#

Product page #reorder (reorder-calculator pattern), section 6 (reorderMath, initReorder). Five inputs: average daily sales, supplier lead time in days, safety stock in units, days each order covers and the supplier's case pack.

Reorder point   = ceil(daily sales × lead time + safety stock)
Suggested order = ceil(daily sales × days of cover ÷ case pack) × case pack
Safety in days  = safety stock ÷ daily sales
Daily Lead Safety Cover Pack Reorder point Suggested order
3.5 10 12 30 6 (default) 47 108 (18 cases of 6, about 4.4 weeks)
2 14 5 30 12 33 60 (5 cases of 12)
0 14 5 30 12 5 0 ("No sales, no order")

Out-of-range values (REORDER_LIMITS) mark the field invalid with a message and dim the results. "Reset to the example" restores REORDER_DEFAULTS.

Bin label maker#

Product page #bins (product-bins pattern), section 7 (initBinLabel). Choose an item, a zone from BIN_ZONES, an aisle (1 to 24) and a shelf (1 to 8); the label shows a Zone-Aisle-Shelf code. The default is B-07-3; Zone W, aisle 12, shelf 5 gives W-12-5 and "Wholesale cage, aisle 12, shelf 5". The bars on the label are drawn from the code for the picture (barsFor) and are not a scannable barcode.

Pricing and plan estimator#

Pricing page, section 8 (initPricing). Monthly prices are in PLANS (Stockroom $50, Shopfloor $125, Multistore $275, Warehouse custom). Yearly billing takes ANNUAL_DISCOUNT (20%) off: $40, $100 and $220. The plan cards are Group blocks marked with ffd-plan-card--<id> classes, and the prices in them follow the billing switch. The free trial line shows today plus TRIAL_DAYS (14).

The estimator takes SKUs, locations and sales channels and recommends the first plan whose limits fit, with the reason the plan before it doesn't:

SKUs / locations / channels Billing Result
1,800 / 2 / 3 (default) Yearly Shopfloor, $100 a month, $1,200 billed yearly, saves $300; "Stockroom tops out at 1,000 SKUs."
1,800 / 2 / 3 Monthly Shopfloor, $125 a month, $1,500 a year
400 / 1 / 2 Yearly Stockroom, $40 a month, $480 a year
400 / 1 / 3 Yearly Shopfloor, $100; "Stockroom connects 2 sales channels."
12,000 / 4 / 5 Yearly Multistore, $220 a month, $2,640 a year, saves $660
30,000 / any / any Any Warehouse, Custom

The estimate is saved (bincrest:pricing). URL parameters override it: ?billing=monthly|annual, ?skus=1–200000, ?locations=1–99, ?channels=1–12. The page writes only billing back to the address bar. "Book a demo with this estimate" links to /demo/?plan=<id>&skus=<n>.

The billing questions are an Accordion block with the class ff-faq (the "+" after each question is drawn by the theme); the open roles on the company page are an Accordion block with the class ff-roles. Add, remove or reorder items in the editor; each question is a heading button with aria-expanded that shows or hides its answer.

Customer stories#

Customers page (stories pattern), section 9 (initCustomers). Shop type buttons filter CASES; the URL keeps the choice as ?type= (a key of SHOP_TYPES: bike, beverage, outdoor, gifts, apparel). Each type has 2 of the 10 stories. Unknown values show all stories.

Integrations directory#

Integrations page (directory pattern), section 10 (initIntegrations). Search matches the name, description, category and what syncs; category buttons show counts. Searching "label" finds 3. The URL keeps ?category= and ?q=. Each card opens a native <dialog> (the integration-dialog pattern) with the setup time, direction and what syncs; Escape or "Close" returns focus to the card.

Product updates#

Updates page (updates-hero and updates-log patterns), section 11 (initUpdates, initSubscribe). UPDATES are listed newest first and grouped by month; filter buttons (All 14, New 7, Improved 4, Fixed 3) keep the choice as ?tag=new|improved|fixed. Updates keep their real past dates. The subscribe form checks the email address.

Support hours note#

Company (office pattern) and Book a demo pages, section 12 (initSupportStatus). Using COMPANY.supportHours and Central time, it reads "Support is open now, until 7:00 p.m. Central." on business days from 7:00 a.m. to 7:00 p.m., and otherwise "Support opens today/tomorrow/Monday at 7:00 a.m. Central.", skipping weekends and federal holidays.

Demo slot picker#

Book a demo page (demo-booking pattern), section 14 (demoDays, initDemo). Days are the next DEMO_DAYS (5) business days strictly after today in Central time: never today, never a Saturday or Sunday, a US federal holiday or a date in CLOSED_DAYS. Each day offers DEMO_TIMES (9:00, 10:00 and 11:00 a.m., 1:00, 2:00, 3:00 and 4:00 p.m. Central). Some times show as taken by a fixed pattern per date (slotTaken), and every day keeps at least three open. Below the slots, a note gives the first time in the visitor's own zone when it isn't Central.

Examples: on Saturday, December 5, 2026 the days are Monday, December 7 to Friday, December 11. On Wednesday, December 23, 2026 they are December 24, 28, 29, 30 and 31 (Christmas Day is skipped).

Day and time buttons use aria-pressed; each day button tells screen readers how many times are open, and picking a time is announced.

The menu button (#menu-toggle) opens the phone menu with aria-expanded; Escape closes it and returns focus. Sections with reveal fade in once as they scroll into view; with reduced motion they show immediately, the board starts paused and its count animations are off.

Keeping the demo current#

Nothing dated goes stale. Everything "upcoming" is computed from today in Central time (COMPANY.timeZone):

Content Rule Switch
Demo days Next 5 business days after today, skipping weekends, federal holidays and CLOSED_DAYS DEMO_DAYS, DEMO_TIMES, CLOSED_DAYS
Trial end date Today plus 14 days TRIAL_DAYS
Support note Open now, or the next business day's opening time COMPANY.supportHours
Copyright year Current year written by PHP, filled again by the script

Federal holidays are worked out for any year by rule (federalHolidays in section 3 of main.js); a holiday on a Saturday is observed the Friday before, one on a Sunday the Monday after. Product updates, the company timeline and customer "since" years keep their fixed past dates. For reviews and screenshots, ?now=YYYY-MM-DDTHH:MM (read as Central time) pretends it is another moment, for example /demo/?now=2026-12-23T10:00; turn it off with ALLOW_NOW_PARAM = false at the top of main.js.

Block styles#

In the block settings' Styles panel:

Block Styles
Button Fill (default, the signal-red button), Line (outlined), Shelf tag (cream)

The class is-small on a Button block makes it the smaller size. The arrow after button text is drawn with CSS (icon-after-arrow-right, from src/icons.css).

Forms#

All forms validate in the browser with inline messages linked by aria-describedby, focus the first problem and then show a success panel. A message clears as soon as the field is fixed. No form sends anything until you connect it.

Form Page Checks Success
Demo request (data-demo-form) Book a demo A day and time, first and last name, email format, shop name, type of shop, SKU range, at least one sales channel "Thanks, {name}. Your demo request is in.", the time in Central, a reference like BC-4821, email, channels and next steps
Subscribe (data-subscribe-form) Product updates Email format "You’re on the list."

The Book a demo page reads ?plan=stockroom|shopfloor|multistore|warehouse to show "From your estimate: the Shopfloor plan." and ?skus= to preselect the SKU range. The optional message counts characters up to 600. The chosen slot is sent in the hidden slot field as YYYY-MM-DDTHH:MM in Central time, and the plan in the hidden plan field.

To connect a form service such as Formspree, add the request inside setupForm in assets/js/main.js (section 13, in a child theme), where it calls onSuccess, and show the success panel only when the service answers OK:

js
fetch('https://formspree.io/f/your-id', { method: 'POST', body: new FormData(form), headers: { Accept: 'application/json' } })
  .then(function (r) { if (r.ok) { /* run the existing success code */ } else { /* show an error */ } });

You can also replace a form's Custom HTML block with a form plugin's block; add the classes field-label, field and btn-signal to its labels, fields and button so it matches.

Saved data (localStorage)#

All storage goes through safeStorage in main.js, which falls back to memory when localStorage is blocked (private modes, sandboxed frames), so the features keep working for the visit.

Key Shape Validation
bincrest:watchlist ["CF-LNT-204", "CF-TIR-650"] Only SKUs that exist in SKUS, without repeats
bincrest:pricing { "billing": "annual", "skus": 1800, "locations": 2, "channels": 3 } billing must be monthly or annual; each number a whole number inside ESTIMATE_LIMITS

These are the HTML version's keys. Clear the watchlist by unstarring items, or remove either key from the browser's developer tools (Application > Local Storage).

SEO and sharing#

Page titles come from WordPress: the page title, a vertical bar and the site name (for example "Pricing: plans by SKUs and locations | Bincrest"); the home page shows "Bincrest: inventory management for shops that sell everywhere", built from the site title and tagline (Settings > General) by freeframe_bincrest_front_title(), and the Company page's title stands alone. The theme prints the HTML version's meta description on the demo pages (freeframe_bincrest_page_description() in inc/setup.php, by page slug); edit them there, or let an SEO plugin such as Yoast SEO, Rank Math or The SEO Framework take over. The theme doesn't output Open Graph tags: give your SEO plugin assets/img/og-image.png (or your own 1200 x 630 image) as the default social image. WordPress already generates a sitemap at /wp-sitemap.xml.

Accessibility#

Built in: a skip link to the main content (added by WordPress, styled by the theme), landmarks (header, labeled navigation, main, footer), one h1 per page, sections labeled by their headings, visible signal-red focus outlines, AA contrast on the dark surfaces, board changes, filter results and calculator resets announced in a polite live region (#live-region), filters, the billing switch, watch stars and slot buttons with aria-pressed, Accordion blocks with aria-expanded, a native <dialog> for integrations, form errors linked with aria-describedby, a comparison table that scrolls sideways inside a focusable region on small screens, charts with a text description, and reduced-motion support.

When you edit: keep one Heading 1 per page, give images alt text (or mark them decorative), label every field you add, and keep the text labels on the board's status chips.

Building and deploying#

You only need this if you change the theme's files. The stylesheet assets/css/theme.css is compiled with Tailwind CSS from src/theme.css and the classes used in patterns/, parts/, templates/, inc/ and assets/js/:

sh
pnpm install
pnpm build   # compile assets/css/theme.css and assets/css/editor.css
pnpm watch   # recompile assets/css/theme.css on every change (run pnpm build before you commit)

Run pnpm build after adding a utility class to a pattern, template or the script's markup, otherwise the class has no style; keep each class name whole in the script (not built from pieces). Classes you type in the editor's Additional CSS class(es) field are only styled if the stylesheet already contains them.

To deploy, zip the theme folder (named freeframe-bincrest, without node_modules/) and upload it in Appearance > Themes, or copy the folder to wp-content/themes/ on your server. Use HTTPS, and connect the forms before you go live.

Translations#

The theme is translation-ready with the text domain freeframe-bincrest. All text in patterns, templates and PHP goes through WordPress's translation functions; the script's own labels and messages (validation errors, the menu button, the board controls) are translated in PHP (freeframe_bincrest_script_strings() in inc/setup.php). Sentences the script builds from pieces (dates, counts, prices, announcements) are written in English in main.js; translate them there. Bincrest's content in assets/js/data.js is edited there directly. Create a translation with Loco Translate, or with WP-CLI and Poedit:

sh
wp i18n make-pot wp-content/themes/freeframe-bincrest wp-content/themes/freeframe-bincrest/languages/freeframe-bincrest.pot

Save freeframe-bincrest-es_ES.mo (for example) in wp-content/languages/themes/ or in the theme's languages/ folder. Page content created by Bincrest setup is copied into your pages in the site's language at that moment; translate it in the editor like any other content.

Child themes#

Use a child theme for changes you want to keep when Bincrest is updated (your items, plans, stories and integrations in particular). Create wp-content/themes/bincrest-child/style.css:

css
/*
Theme Name: Bincrest Child
Template: freeframe-bincrest
*/

Templates, parts, patterns and theme.json in the child theme override the parent's files of the same name. To use your own data.js, replace the parent's data script (freeframe-bincrest-data) under the same handle in the child's functions.php:

add_action( 'wp_enqueue_scripts', function () {
	wp_deregister_script( 'freeframe-bincrest-data' );
	wp_register_script( 'freeframe-bincrest-data', get_stylesheet_directory_uri() . '/data.js', array(), '1.0', array( 'in_footer' => true, 'strategy' => 'defer' ) );
}, 25 );

Do the same for assets/js/main.js (handle freeframe-bincrest), keeping the inline window.freeframeBincrest strings and URLs. The parent's stylesheet only contains the classes the parent uses: if your child theme uses new utility classes, compile a stylesheet for the child (copy package.json and src/theme.css, point the @source lines at the child's folders) and enqueue it.

Troubleshooting#

  • The pages look unstyled or new classes do nothing. The stylesheet only contains classes it found when it was built. Run pnpm build after editing patterns, then reload.
  • "This block contains unexpected or invalid content". A pattern or page was edited by hand with markup that doesn't match the block. Click Attempt recovery, or re-insert the section from Patterns > Bincrest.
  • The board doesn't move. It starts paused when the system asks for reduced motion, and rests while scrolled off screen or in a background tab. Click "Play" or "Next order".
  • The pricing estimate isn't the default. It's saved in bincrest:pricing, and URL parameters override it. Remove the key or open the pricing page without parameters.
  • A demo day is missing or dates look a day off. Days skip weekends, federal holidays and CLOSED_DAYS, and are computed in Central time; change COMPANY.timeZone in data.js for another home zone. Check for a leftover ?now= in the URL.
  • "Book a demo with this estimate" goes to the wrong page. The script links to /demo/. If you renamed the page, change its URL in freeframe_bincrest_page_urls() in inc/setup.php.
  • A form says it's sent but nothing arrives. The demo forms are not connected; see Forms.
  • Bincrest setup says the pages exist, but they are empty. It never overwrites existing pages. Delete (and empty the trash of) the pages with those slugs, or open each page and insert its page pattern from Patterns > Bincrest pages.

License#

Split license: the PHP code and block markup are licensed under the GNU GPL, version 2 or later, and the CSS, JavaScript, images and design under the Freeframe Commercial License (unlimited sites for you and your clients; no resale or redistribution as a theme). The full terms, with your licensee details, are in LICENSE.txt and at https://freeframe.dev/license#commercial. Third-party components keep their own licenses. Fonts: Bai Jamjuree, Gantari and Kode Mono are licensed under the SIL Open Font License 1.1 (OFL.txt in each folder of assets/fonts/). Bincrest, its customers, integrations, suppliers and people are fictional.

Search documentation

Search the guides and every template's documentation