Skip to content

Customize

alireza-selldone edited this page Nov 28, 2026 · 1 revision

Customize

Workbench's design lives in its own components and style sheets. Selldone's commerce logic underneath (basket, bill, checkout, variants, orders, payment) stays untouched. After any change in the code, or a new photo in skins/workbench/photos/: build and upload a new version (Build and Upload) and put it live (Go Live). A change in your shop's data (a title, a product photo, a delivery window, an article) needs no release: it shows on the next visit.

The name and the wordmark

The wordmark is your shop's title, read live. components/ly/LyLogo.vue draws it in Saira Condensed in capitals (the skin's wordmark: case upper, weight 800, no sub line; components/ly/ly-wordmark.ts applies it); a long title steps the size down so it never leaves the header. The header (components/ly/shell/LyHeader.vue) sets it beside the bolt mark, a lightning bolt on a square in the action colour, with Workbench's line "Tools · spec sheets · parts" under it (hidden below 1100 px); the footer repeats the mark, the name and the line. The footer's name, the copyright, the page titles and the messages use the same title. Rename the shop in Selldone and the Layout follows.

components/kalio/kalio-brand.ts: BRAND.name = null keeps the shop's title. A string there replaces it everywhere the storefront names the shop.

The mark (the browser tab's icon and the shop's avatar on order messages) is drawn from the title's first letter: markFor() in the same file for the tab (a cream capital in Saira Condensed on a dark circle), and components/ly/ui/LyMark.vue (the letter on the family's dark) for the messages; the account draws the shopper's own letter the same way. It is inline, so there is no image file to replace; change those two to change it.

The colours, dark or light

One file: components/ly/ly-theme.settings.ts. See Theme and colours. Do not edit the palettes in components/ly/ly-theme.ts, the family maths in components/ly/ly-family.ts or the tokens in style/ly-skin.gen.scss for a merchant's theme.

Type, tokens and words

What Where
Fonts (Saira Condensed for headings, the wordmark and prices; IBM Plex Sans for text and buttons; IBM Plex Mono for the specifications, the kickers, the section numbers and the service strip; Material Symbols Rounded only for Selldone's own parts and the shared pieces; an Arabic face only when Arabic is picked) components/kalio/kalio-fonts.ts, from the skin's fonts
Icons (inline line icons, one stroke width; Workbench adds the list, print, cart, grid, bolt, battery, layers, wrench, returns and order icons) components/ly/ly-icons.ts, drawn by LyIcon.vue. The base's line drawings in the same file are not part of Workbench's look: its photo slots set no drawing (art: "none" in the skin) and style/ly/wb-pages.css hides the faint ones behind the sections. Where the base draws one inline (the empty cart, About's three panels, Contact's cards), Workbench draws a tool under the same name instead: the end of ly-icons.ts maps croissant, cupcake, cake, whisk, tart, macaron and cookie to its wrench, battery, box, bolt, truck, cash and order icons, four times larger
Type and shape tokens, and the brand palette's colours for the first paint (light in :root, dark in html.ly-dark), all generated from the skin style/ly-skin.gen.scss, every name --ly-…
Every colour after the first paint: the grounds, plates, lines, words, the dark service strip and footer of the palette on the page components/ly/ly-family.ts, written inline on <html>
"Cart" (the skin's basket word) instead of the base's "bag", in the Layout's English words and in Selldone's own English strings components/ly/ly-words.ts (basketize(), withSkinWords()), components/kalio/kalio-brand.ts (bagWords())
Workbench's own words (every one through t("wb.…", "English")) the components (the English is at the call site); the Arabic in the skin's words.ar (skins/workbench/skin.json); the base's ly.… words in components/kalio/i18n/ly.en.ts and ly.ar.ts, with the skin's words.en on top (see Languages)

Photos

Picture Where it comes from
Products on every card, the spec table, the home's sections, the search suggestions, the product page and the cart each product's main photo, set on a white plate (a light neutral one in dark mode); more photos make the product page's gallery
Departments on the home's rail, in the Departments menu and in the phone menu the department's own image in Selldone (its category picture), else its best seller's photo
A collection's photo on the About page (its panels) skins/workbench/photos/col-<slug of its title>.webp when the Layout has it (the repository ships none), else its best sellers as cut-outs
The photo slots: the hero (wide and square), the battery and delivery promos, About skins/workbench/photos/<slot>.webp when the Layout has it, else the slot's fallback (below)
The field notes and each post each article's cover image
Contact, and the Pickup point page a static map of the shop's location (on the Pickup point page, the pickup point's own; Selldone's map service: the dark style in dark mode, the street style in light) with the pin

Product pictures are changed in the Selldone dashboard, not in the code. The ground matters: the Layout sets every product on a white plate (a light neutral one in dark mode, the default), so a transparent cut-out reads in both modes, a photo with a coloured ground shows as a square, and a white ground shows as a lighter square in dark mode. See Shop Requirements.

The repository's 5 photos (the five slots) were made for Toolino. Photos generated with Magnific (Freepik) for Toolino under the owner's Premium plan.

The photo slots

Slot File in skins/workbench/photos/ Size Without the file
The hero (the full width; its words sit on the photo's dark left side, under a shade) hero.webp 2400 × 1029 the family's darkest band behind the hero's words, a little shorter
The hero on a phone (560 px and narrower; it sits above the words) hero-sq.webp 900 × 900 the wide hero.webp, cropped (it is used only together with hero.webp)
The battery promo ("Batteries matched to your platform"; only when a product names a Tool Platform) promo-battery.webp 1280 × 720 the promo is left out
The delivery promo ("How delivery works", with the shop's door delivery line) promo-delivery.webp 1280 × 720 the promo is left out; without both promos the section hides
About (the top of the About page) about.webp 1440 × 960 up to five best sellers, mixed across the departments, spread as cut-outs
Each collection's photo (the About page's panels) col-<slug>.webp 1040 × 780 its best sellers as cut-outs

<slug> is made from the collection's title: lower case, & as "and", every other run of signs a hyphen ("Board & Card Games" → board-and-card-games). The collection's address name in Selldone is tried too. The repository ships no collection photos: Workbench shows each department by its own image, and a collection whose title and address name match no file shows its best sellers on the About page. To add a photo:

  1. Make it at the exact size, as WebP, with the exact name. No words, logos or price tags on it, and no product cut by the edge. Where the Layout's words sit over the photo (the hero's left side, the promos' top start corner), leave that part dark, calm and plain. In Arabic the hero's photo is mirrored, so its words sit on the other side.
  2. Put it in skins/workbench/photos/. components/ly/ly-photos.ts lists the files that exist at build time, so nothing else changes; node scripts/skin-apply.mjs warns about a file whose size or name matches no slot.
  3. Build and release a new version, and check that the file count stays at 300 or fewer.

To drop a photo, delete its file and release: the slot shows its fallback. A slot never shows a caption, a file name or a size, with or without its file.

Sections and pages

What Where
Header (the dark service strip with door delivery, pickup and pay on delivery, Track order, Delivery and returns and the language and currency pill; the bolt mark and the wordmark, Departments and its mega menu of spec values, the search with its department scope and suggestions, compare, saved tools, the account and the cart with its count and total; the spec strip; the phone menu and the language sheet) components/ly/shell/LyHeader.vue; the strip's values and each department's filters come from components/ly/workbench/wb.ts
Cart drawer (the lines, the receipt, Checkout and View cart, Often added) components/ly/shell/LyBagDrawer.vue
Footer (the bolt mark, the shop's name and its line, every delivery way and cash on delivery; Departments, Shop and Help; the Theme row; the legal row) components/ly/shell/LyFooter.vue
Wordmark components/ly/LyLogo.vue, with the skin's wordmark (components/ly/ly-wordmark.ts)
Home (Workbench: the full-photo hero, the department rail, the battery platforms, price drops, kit or bare tool, side by side, the two spec rows, the photo promos, the brands, the field notes; each under a numbered head) components/ly/home/LyHome.vue and components/ly/workbench/home/ (one component per section, the shared reads in wb-home.ts, the head in WbShead.vue; the order is the skin's home), inside pages/products/StorefrontPageProducts.vue
Photo slots components/ly/ly-photos.ts (slotPhoto(), collectionPhoto()); the hero and the promos read their slot directly, About uses components/ly/LyPhoto.vue with LyCuts.vue for its fallback
Shared data and layers (the departments and catalogue read once, the shop's facts, one layer open at a time) components/ly/ly.ts
Workbench's reads of the catalogue (brands, SKUs, kit or bare tool, the battery platforms, the batteries that fit, a department's filters, key specs, the spec strip, price bands, the delivery ways' short lines) components/ly/workbench/wb.ts
Shared pieces (the spec card in its three shapes: grid, lead and mini; the add box; the base's title band, modal, empty state, sample label, icon lines and the shop's mark) components/ly/ui/ (LyCard.vue, LyPt.vue, LyModal.vue, LyEmpty.vue, LySampleTag.vue, LyIcLine.vue, LyMark.vue), components/ly/LyAdd.vue
Listings (a department, search, price drops, a brand, the kits, the bare tools, every tool; the breadcrumb and head, the department chips, the filter bar of dropdowns, the sort, the spec table or the cards; search's field notes) components/ly/shop/LyListing.vue, inside pages/products/StorefrontPageProducts.vue
Product page (the breadcrumb, the gallery, the brand, SKU and name, the buy box with How to get it, options, the add box, Compare and Save; the kit note; the spec sheet; the lettered sections: against similar tools, batteries that fit, overview and the box, reviews; More in ; the buy bar) pages/product/StorefrontPageProduct.vue, components/ly/product/ (LyProductOverview.vue, LyPdAdd.vue, LyProductTabs.vue, pd.ts)
Brands, Pickup point, Delivery and returns (the routes brands, pickup-point and help/delivery) components/ly/workbench/pages/ (WbBrandsPage.vue, WbPickupPage.vue, WbDeliveryPage.vue), added in router/StorefrontRouter.ts
Compare components/ly/compare/LyCompare.vue, pages/comparison/
Cart page and checkout (the lines, How it reaches you, the receipt, step pills, Contact, Delivery and its windows, address or pickup point, Billing, note) pages/basket/cart/StorefrontPageBasketCart.vue (Selldone's script, the Layout's markup), components/ly/buy/ly-cart.ts, LyLineQb.vue
Delivery ways and the delivery sheet pages/basket/cart/SCartShippingOptions.vue, components/ly/buy/LyShipSheet.vue
Address sheet and payment window components/kalio/checkout/KalioAddressSheet.vue and Selldone's window, dressed by style/ly-sd.scss
Order page (title band, progress, products, payment, receiver, chat) pages/basket/order/ (and physical/dashbaord/), components/ly/order/ (LyOrderPay.vue, LyOrderReceiver.vue, LyOrderChat.vue, od.ts)
Account (Overview, Orders, Addresses, Profile) components/kalio/account/ (KalioAccountShell.vue, KalioAccountHome.vue, KalioOrdersBoard.vue, kalio-account.ts), pages/user/
Sign-in sheet components/kalio/shell/KalioSignIn.vue
Field notes (the journal) and a post pages/blog/list/StorefrontPageBlogsList.vue, pages/blog/view/StorefrontPageBlogsView.vue, the dated rows in components/ly/workbench/WbNoteRows.vue, components/ly/read/LyPost.vue
About, Terms, Privacy, Contact, FAQ (with the sample text and its label) pages/official/, pages/faq/StorefrontPageFaq.vue, components/ly/read/ (LyLegal.vue, LyMap.vue, rd.ts)
404 pages/errors/404/StorefrontPageError404.vue

Every page's markup is the Layout's own: Workbench's for the header, footer, cards, home, listings, product page, field notes, Brands, Pickup point and Delivery and returns, and the base's, in Workbench's dress, for the rest. The scripts underneath are Selldone's and the Kalio base's (cart, checkout, order, account, sign-in, compare). A shop with its own custom header or footer code in Selldone keeps Selldone's header or footer (layouts/StorefrontLayout.vue).

Styles

File Holds
style/ly-skin.gen.scss Workbench's tokens (--ly-…): type, the shape scale (--ly-r-pn 6 px for panels, --ly-r-in 4 px for inner parts, 50 % for round things), and the brand palette's colours of both modes for the first paint (:root light, html.ly-dark dark).
components/ly/ly-family.ts not a style sheet, but it writes every colour of the palette on the page inline on <html> after the first paint; the theme switcher writes only the action colour (--ly-act, -deep, -on, -text) and Vuetify's primary on top.
style/ly/base.css, pages.css, look.css; style/ly/variants.css the base's look (the first Layout's mockup stylesheets, now the base's own source): every rule scoped to the Layout's own markup (:is(.ly, .ly *)), custom properties --ly-…, dark mode html.ly-dark, keyframes ly-*; the section variants in variants.css. Change them in the base (layout-base) so every Layout gets the fix; a Layout's own touch goes in its own files below.
style/ly-layout.scss the base's shell and pages for a Layout: Selldone's and Vuetify's parts inside the pages mapped onto the same shape scale, and the places where the Vue markup differs from the mockup's.
style/ly/wb.css, style/ly/wb-pages.css Workbench's own look, loaded last: wb.css the service strip, header, spec strip, mega menu, phone menu, footer and the spec cards; wb-pages.css the section heads, the home's sections, the listing and its spec table, the product page, the field notes, Brands, Pickup point and Delivery and returns, and the base's pages in Workbench's dress. Change Workbench's look here.
style/ly-sd.scss the parts Workbench borrows, in its dress: Kalio's address sheet (map on or off), Selldone's payment window, the scrim under the sheets
style/storefront.scss and the shared kalio-*.scss / bakini-*.scss it loads the Kalio base's skin for Selldone's own components; their --bk-act* colours follow the palette, so Vuetify's primary follows it too

All of them are loaded from StorefrontApp.vue: storefront.scss first, then ly-theme.scss, ly-skin.gen.scss, the base's base.css, pages.css and look.css, ly-sd.scss, ly-layout.scss, variants.css, and Workbench's wb.css and wb-pages.css last. Every Layout component wraps its markup in an element with the class ly, so these rules never touch Selldone's or Vuetify's parts outside it.

Languages

Every word Workbench writes goes through t("key", "English") (components/kalio/i18n/kalio-i18n.ts). The English is the second argument at the call site; the dictionaries are files beside it:

File Holds
components/kalio/i18n/base/<code>.ts the shared Kalio words (the cart, checkout, account, compare, theme…), the same in every Kalio-family Layout
components/kalio/i18n/ly.<code>.ts the base's Layout words: ly.*
components/kalio/i18n/bakini.<code>.ts the bakini.* words the shared Kalio and Bakini code still uses
components/kalio/i18n/lang-<code>.ts merges the three, with the skin's words on top; loaded only when a visitor picks that language
components/kalio/i18n/index.ts EN (English, bundled) and LOADERS, the list of other languages Workbench knows
skins/workbench/skin.json "words" the skin's own words: words.en changes base words for a tool shop (the cart, tools, the pickup point), words.ar is the Arabic of those and of every Workbench wb.* word (their English is at the call site); node scripts/skin-apply.mjs writes them into components/ly/skin.gen.ts

Workbench ships English and Arabic (ar, right to left: the whole page mirrors). The visitor picks one from the language and currency pill in the service strip (the phone menu's "Language & currency" row); the list is the shop's own languages (Selldone dashboard › Shop › Languages).

On the dev server only, localStorage["workbench-dev-languages"] = "ar" offers Arabic in your own browser even when the shop sells in English only, so you can see the Arabic pages before you switch the language on in the shop. The production build ignores it.

To change a word: edit the English at the call site, and the same key's value in ly.en.ts and in each ly.<code>.ts (a bakini.* word lives in bakini.en.ts and bakini.<code>.ts; a shared Kalio word, one without a prefix such as theme.title, in base/en.ts and base/<code>.ts). A Workbench wb.* word has its English at the call site and its Arabic in the skin's words.ar; a word the skin changes is changed in the skin's words, then node scripts/skin-apply.mjs.

To add a language your shop offers:

  1. Copy ly.en.ts to ly.<code>.ts and bakini.en.ts to bakini.<code>.ts, translate every value, and add Workbench's wb.* words to ly.<code>.ts (their English is at each call site, their Arabic in the skin's words.ar; keep {n}, {shop} and the other {…} words; plural keys end in .one / .other, and a language with more forms adds .zero, .two, .few, .many).
  2. Translate base/en.ts into base/<code>.ts the same way.
  3. Copy lang-ar.ts to lang-<code>.ts and change its three imports.
  4. Add one line to LOADERS in index.ts, next to ar: () => import("./lang-ar").
  5. Build and check every page in that language. A word still in English is a string that is not wrapped in t() yet, or a wb.… word missing from ly.<code>.ts: wrap it with a new wb.… key and add it there.

The words the shop writes (product names, departments, brands, units, pros, spec keys and values, articles) are the shop's data: translate them in the Selldone dashboard.

Right to left, Workbench keeps these rules:

  • logical CSS everywhere (margin-inline, inset-inline, padding-inline, text-align: start, logical corner radii), so the page mirrors: the hero's photo is mirrored with its words on the right, and the shades on the hero and the promos flip; the theme row's arrow keys follow the direction;
  • only the parts that slide with translateX (the drawer, the menu, centred toasts) keep physical directions;
  • the shop's own words (names, departments, brands, spec values, addresses) sit in <bdi>, so each keeps its own direction inside a translated sentence; phone numbers, SKUs, the saving (−n%) and the pill's EN · USD stay left to right;
  • an Arabic face (Noto Sans Arabic) is loaded only when Arabic is picked.

Rules the design keeps

  • One colour family. Every colour on the page comes from the palette's hue, plus white and the family's near-black: the page and its soft tint bands, the plates, the lines, the words, the dark service strip and footer, the chips and the map pin. A palette or a custom colour re-tints the whole page, never just the buttons. Two tint bands never sit side by side. Every colour is a token.
  • One action colour. Hi-vis orange (or your palette) for every button, chosen state and link.
  • One shape language. A circle for round things, 6 px for panels, cards and photos, 4 px for inner parts; square only where a band meets the window's edge; never sharp and round on neighbouring parts. Selldone's own sheets, windows and chips are mapped onto the same scale.
  • Flat. Buttons without shadows; hover changes the colour only; no line under any word or icon. The one exception: links inside a post's own text are underlined, so a reader can see them.
  • Rings inside the box. Every selection ring and card edge is an inset shadow, never an outline; a focus ring keeps the control's shape, and a field has one inset ring.
  • Products on plates. The shop's product photos sit on a white plate (a light neutral one in dark mode), contained, never cropped; a transparent cut-out reads in both modes.
  • Corners off words. The saving (−n%) sits in the plate's top corner, where there are no words.
  • Photos carry no words. The photo files have no text; where the Layout's own words sit over a photo, they sit on its dark, calm side under a shade, elsewhere beside or under the photo.
  • A click opens, a second click closes. Departments, the menus and the sheets open on a click and close on a second click, Esc, a click outside or a page change, one layer at a time; a filter dropdown closes on a second click, Esc or a click outside.
  • Moving parts can stop. A listing's new results fade up, without motion when the visitor asks for less.
  • Cart, not bag. In the Layout's English words and in Selldone's own English strings (the skin's basket word).
  • Honest words. No invented history, awards, names, counts or reviews; counts only of what the shop really has (the tools a listing shows, the departments a brand covers); sample pages say they are samples; "every item" only when every product has the same saving; Kit or Bare tool only from the product's own spec rows; the batteries that fit only from the batteries' own "Tool Platform"; delivery lines and windows only from the shop's own delivery ways; opening hours only from the pickup note or the shop's hours; deal clocks only to a deal's real end date; no score without reviews; no options without real variants; "not taking payment" when there is no payment method; no timers or stock warnings that are not the shop's own; no fact drawn before the shop's details have loaded.
  • Live data. Nothing names a product, brand, price, department, delivery way or opening hour; another shop gets its own.

Clone this wiki locally