v0.0.2
Demos (demo panel, opens in a new tab)

Typography

Text is set in Public Sans and code and numbers in DM Mono; component body text is 14px (text-sm).

Public Sans · DM Mono zubazar/ui · free (MIT)

Headings

Headings: view
BLADE

h1–h6 take only their color and a slight negative letter spacing; set the size with text-* and the weight with font-*.

blade
<div class="space-y-4">
    <p class="text-4xl font-bold tracking-tight">Monthly sales · 4xl / 40px</p>
    <p class="text-3xl font-bold tracking-tight">Monthly sales · 3xl / 32px</p>
    <h1 class="text-2xl font-semibold">Page title · 2xl / 26px</h1>
    <h2 class="text-xl font-semibold">Section title · xl / 21px</h2>
    <h3 class="text-lg font-semibold">Subsection · lg / 18px</h3>
    <h4 class="text-base font-semibold">Card title (large) · base / 16px</h4>
    <h5 class="text-sm font-semibold">Card title · sm / 14px</h5>
    <h6 class="text-xs font-semibold tracking-wide text-muted uppercase">Section label · xs / 12px</h6>
</div>
PropValues
text-*2xl (page) | xl (section) | lg | base | sm (card)
font-*semibold (headings) | bold (large numbers and display text)

Text sizes

Text sizes: view
BLADE

Each text-* size comes with its own line height, so no leading-* is needed.

blade
<div class="space-y-3">
    <p class="text-base">Lead text (base / 16px). The panel lets teams manage orders, follow shipments and track reports.</p>
    <p class="text-sm">Body text (sm / 14px). Tables, forms and card content use this size.</p>
    <p class="text-xs text-muted">Help text (xs / 12px). Descriptions below fields.</p>
    <p class="text-2xs font-semibold tracking-wider text-muted uppercase">Small label (2xs / 11px)</p>
</div>
PropValues
text-*2xs | xs | sm | base | lg | xl | 2xl | 3xl | 4xl

Weights

Weights: view
BLADE

Body text uses font-normal, prominent values and labels font-medium, headings font-semibold and large numbers font-bold.

blade
<div class="space-y-1 text-lg">
    <p class="font-normal">Regular 400 · Customer record</p>
    <p class="font-medium">Medium 500 · Customer record</p>
    <p class="font-semibold">Semibold 600 · Customer record</p>
    <p class="font-bold">Bold 700 · Customer record</p>
</div>
PropValues
font-*normal | medium | semibold | bold

Numbers and code

Numbers and code: view
BLADE

Use tabular-nums for digits stacked in columns and font-mono for values such as codes and order numbers.

blade
<div class="space-y-2">
    <p class="text-2xl font-semibold tabular-nums">1,248 · 3,106 · 96</p>
    <p class="font-mono text-sm">ORD-1042 · 2026-10-07</p>
    <p class="text-sm">Inline <code class="rounded-sm bg-sunken px-1.5 py-0.5 text-[0.85em] text-ink">zb:table</code>, a <a href="#" class="font-medium text-primary-ink hover:underline">link</a>, <strong>bold</strong> and <em>italic</em>.</p>
</div>
PropValues
tabular-numsEqual-width digits
font-monoDM Mono

Changing the font

CSS

To change the font, set --zb-font-sans, --zb-font-mono, --zb-font-display (headings) or --zb-font-brand again in your app's CSS.

css
/* resources/css/app.css, after the @import lines */
@layer base {
    :root, [data-theme] {
        --zb-font-brand: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    }
}
PropValues
--zb-font-sans · --zb-font-mono · --zb-font-display · --zb-font-brandFont family values

Props

The values the component takes. What are props and slots?

PropTypeDefaultDescription
font-sans—Public SansAll text
font-mono—DM Monocode, kbd, pre, numeric labels
font-brand—Public SansBrand name next to the logo
text-2xs—11px / 16pxSmall uppercase labels, table headers
text-xs—12px / 18pxHelp text, badges
text-sm—14px / 22pxBody text, forms and tables
text-base—16px / 24pxLead text, large card titles
text-lg—18px / 26pxSubsection titles
text-xl—21px / 28pxSection titles
text-2xl—26px / 34pxPage titles
text-3xl—32px / 40pxDisplay headings
text-4xl—40px / 48pxLarge display headings

Installation

The fonts are downloaded at build time by the fonts setting in vite.config.js; add @zubazarFonts to the layout's head slot. Details: Fonts.

blade
{{-- In the head slot of the zb:layout.* components --}}
<zb:slot:head>
    @zubazarFonts(['public-sans', 'dm-mono'])
    @vite(['resources/css/app.css', 'resources/js/app.js'])
</zb:slot:head>

Advanced

1 example

Brand type

Brand type: view
BLADE

In layouts, the app name next to the logo is set with font-brand. It defaults to Public Sans; if your app uses a separate font for its brand name, change only --zb-font-brand.

blade
<span class="font-brand text-[15px] font-bold tracking-tight text-ink">Acme</span>
PropValues
font-brandBrand type family (default: Public Sans)

Developer notes

Events, hooks and details
  • Both fonts are under the SIL Open Font License.
  • Heading tags take the text-ink color and -0.011em letter spacing by themselves; the size mapping in the example is used throughout the panel.
  • Table, form and card content uses text-sm, field descriptions text-xs, and small uppercase labels such as table headers text-2xs.
  • The recommended font load includes these four weights of Public Sans.
  • The code, kbd and pre tags use DM Mono by themselves.
  • A color theme can bring its own font too.
Zubazar UI · ZubazarDesigned for people.