@t3b/hub-ui
v0.3.0
Published
The3Beez apps' look, built from the3beez-design-system (D-053): its tokens and app components as one stylesheet, its POS set as a second one for a counter, plus the logo. Installed by every app; never copied by hand.
Readme
@t3b/hub-ui
The3Beez apps' look, as one package (D-053, WORKFLOWS §12). Its source is the design system,
the3beez-design-system (DESIGN.md): css/app.css is generated from the design system's tokens
and components (in the order its components.css gives, without the till's parts) and stamped with
the version and commit it came from. Every app installs it; a colour, font or component typed into
an app is a defect.
npm install @t3b/hub-ui// app/layout.tsx (Next.js)
import "@t3b/hub-ui/css/app.css";- A counter (the till, A-501) also loads the design system's POS set, after app.css:
import "@t3b/hub-ui/css/pos.css";- the sell screen, tiles, ticket, payment, receipt and shift parts. No other app needs it. - Fonts load from the Kuwait theme on Shopify's CDN (
https://kw.the3beez.com/cdn/shop/t/24/…), as the design system rules; allow that origin in the app's CSPfont-src. No font files ship here. - Theme: light by default; dark when an ancestor (normally
<html>) hasdata-theme="dark". - Direction: logical properties throughout; set
diron<html>. - Logo:
<span class="brand-mark" role="img" aria-label="The3Beez"></span>— one colour that follows the theme (a mask ofbrand/logo.svg);brand/logo.pngfor places without CSS (email). - Components are the design system's classes — the app shell (
.app,.app-side,.side-list,.app-top,.app-main),.page-head,.section-head,.btn(-primary,-secondary,-ghost,-accent,-danger,-link),.field/.input/.select-wrap/.switch,.card,.stat,.badge(-success,-warning,-danger,-muted),.table-wrap/.table,.tabs,.alert,.kv,.modal,.drawer,.otp… — see DESIGN.md §4 and itssections/examples. The apps' additions are listed insrc/apps.css(not published; built into app.css).
Rebuilding after the design system changes
npm run -w @t3b/hub-ui sync -- "C:\Users\doofl\Claude\Projects\the3beez-design-system"The script refuses a design system with uncommitted changes (the stamp must name what was built).
Then bump the version, run the Hub's tests (they fail if app.css was edited by hand), open a PR,
and publish with the hand-run workflow (OWNER-SETUP §N).
