Tomato Lab Graphic Standards

Ask hello@tomatolab.org for access.

Roma, the design system, is open to everyone: Using Roma.

Tomato Lab Graphic Standards

Roma / Components

Using Roma in WordPress

Edit this page

How to put the video player, the Human made label and the product gallery on the Tomato Lab shop, which is WordPress and WooCommerce.

tomatolab.org doesn’t load anything from this guide, so nothing here appears on it until the files are copied into the theme. Copy them rather than linking to this site: the shop then keeps working if this site changes, and the files cache with the rest of the theme.

1. Copy three files into the theme

Put them in the tomato-theme folder (a child theme is safest, so theme updates don’t remove them), in a folder called roma:

[tokens.css](/tokens/tokens.css)The colors, spacing and type the components read.
[roma.css](/assets/roma.css)The components. Every class starts with tl-, so it doesn't collide with Bootstrap.
[roma.js](/assets/roma.js)Builds the players and the gallery.

2. Load them (functions.php)

add_action('wp_enqueue_scripts', function () {
  if (!is_product()) return; // product pages only; drop this line to load everywhere
  $dir = get_stylesheet_directory_uri() . '/roma';
  wp_enqueue_style('roma-tokens', $dir . '/tokens.css', [], '1');
  wp_enqueue_style('roma-css', $dir . '/roma.css', ['roma-tokens'], '1');
  wp_enqueue_script('roma-js', $dir . '/roma.js', [], '1', true);
});

Roma’s type is Neue Haas Grotesk from an Adobe Fonts kit; the shop has its own font kit. The players inherit the shop’s font if you leave the Roma font out, which is fine.

3. Add the video to a product

Upload the video to the Media Library (an MP4, H.264, with a poster image) and paste this in a Custom HTML block in the product description, or in a template:

<div class="tl-video" data-title="Tomato Lab" data-provenance="animate">
  <video src="/wp-content/uploads/2026/11/product.mp4"
         poster="/wp-content/uploads/2026/11/product-poster.jpg"
         preload="none" playsinline></video>
</div>

The label is only for footage made by people. Leave out data-provenance for anything else. A Vimeo or YouTube embed can’t take the player or the label, since the picture lives in their frame: it has to be the file.

4. Arrows on the product thumbnails

WooCommerce draws the product gallery itself (a main picture with a strip of thumbnails). To get the arrows and swiping, replace its markup with tl-gallery. The simplest way is a small override of the template woocommerce/single-product/product-image.php in the child theme that prints one child per picture:

<?php
global $product;
$ids = array_merge([$product->get_image_id()], $product->get_gallery_image_ids());
echo '<div class="tl-gallery" aria-label="' . esc_attr($product->get_name()) . '">';
foreach ($ids as $id) {
  echo wp_get_attachment_image($id, 'large', false, ['alt' => get_post_meta($id, '_wp_attachment_image_alt', true)]);
}
echo '</div>';

A video goes in between as a tl-video block, as above. Turn off the theme’s own gallery zoom, slider and lightbox (remove_theme_support('wc-product-gallery-zoom'), -lightbox and -slider) so the two don’t fight. Variation images that swap the main picture need a small script of their own; say if the shop uses them.