Download the PHP package sparrowhawk-labs/pinion-ui without Composer

On this page you can find all versions of the php package sparrowhawk-labs/pinion-ui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pinion-ui

Pinion UI

📖 pinion-ui.dev — full docs, live component playground, theme/tune explorer


Latest Version on Packagist Total Downloads

A Blade UI component library for Laravel built on Tailwind v4 + daisyUI v5 + Alpine.js. Ships 46 ready-to-use components and an 11-preset Tune token system that lets you reshape spacing, radii, and typography with a single attribute swap — without touching component code.

By Sparrowhawk Labs — part of the pinion-* series. Hard-requires sparrowhawk-labs/pinion-icons.

Features

Installation

ui:install adds the required npm dependencies (daisyui ^5, alpinejs ^3, @alpinejs/focus ^3 — needed by <x-sidebar> and any focus-trap UI), wires up resources/css/app.css (single @import of the pinion-ui preset) and resources/js/app.js (Alpine + focus plugin), and with --ai appends a ## pinion-ui (AI agents) block to your project's CLAUDE.md pointing at vendor/sparrowhawk-labs/pinion-ui/AGENTS.md. Drop --ai to skip the AI snippet — you can re-run later, or copy the contents of vendor/sparrowhawk-labs/pinion-ui/CLAUDE_SNIPPET.md into your own AGENTS.md if you prefer that convention.

It also installs a lint-after-edit Claude Code hook: .claude/hooks/lint-blade.php plus a PostToolUse entry in .claude/settings.json. After an agent edits a Blade file, the hook runs ui:lint on it and, on violations, injects them back into the agent's context (via additionalContext) so it fixes them in the same turn — not merely shown to you. Idempotent and self-guarding (a no-op where the script is absent, e.g. a shared symlinked settings.json). Skip with --skip-hooks.

Then build:

CSS preset (handled by ui:install, here's what it adds)

Do not add your own @plugin "daisyui"; line (remove it if an earlier setup added one — ui:install does this for you). The preset loads daisyUI with themes: false plus a full component exclude list: daisyUI color token utilities stay fully available (bg-primary, text-base-content, data-theme), but daisyUI component classes (.btn, .card, .alert, …) and daisyUI's built-in themes (light, dark, dracula, …) are not generated — the pinion-ui lineup (45 originals × light/dark + reactive) is the only theme source. A standalone full plugin would silently re-enable every daisyUI component class and theme.

Why a preset? Pinion UI's Compose layer keeps class strings inside PHP (e.g. bg-primary text-primary-content peer-checked:border-primary/70). Tailwind v4's default scan only sees *.blade.php / *.js, so without the preset's @source rules those classes are silently dropped from the build. The preset's @source paths resolve from the preset file's own location — add a new component in the package and consumer apps keep working, no app.css re-edit needed.

Linting the class vocabulary

Because excluded daisyUI component classes (.btn, .card, …) compile to nothing — a silent no-op — and fixed/hex colors quietly ignore data-theme, the package ships a linter that catches both in your Blade:

It flags excluded daisyUI component classes and fixed/hex colors, while leaving plain Tailwind, daisyUI semantic colors, tune classes/tokens, and the daisyUI parts pinion-ui keeps (progress, timeline, range, …) untouched. Suppress a deliberate exception with a pinion-lint-ignore comment on the line (or the line above). ui:install already wires it into a Claude Code PostToolUse hook (above); add it to CI or a pre-commit hook too so the design boundary is enforced, not just documented.

Layout

Both attributes fall back to their defaults when omitted — a root without data-tune renders exactly as data-tune="default" (since v0.10.11) — but declare them explicitly so the theme × tune choice is visible at the cascade root (ui:lint nudges you to).

Quick start

Components are registered as anonymous components (no prefix needed) for the common case. The fully-qualified <x-pn::button> form is also available if you need to disambiguate.

The three style layers

Layer Attribute / Prop Controls Examples
Theme data-theme Color palette pinion, pinion-dark, monokai, payments-dark (55 original light/dark pairs — see AGENTS.md for the catalog)
Tune data-tune Shape, spacing, font, component sizing default, tech, editorial, soft
Component Blade props Variant, size, behavior variant="primary", size="lg", dismissible

Theme and Tune are fully orthogonal — any combination works.

Tune presets

Tune Shape Font (heading / body) Sizing Character
default standard radius Inter + Noto Sans JP standard Neutral, all-purpose
minimal small radius, no shadow Inter + Noto Sans JP airy spacing, smaller text Quiet, restrained
sharp no radius, hairline shadow Instrument Sans + Noto Sans JP slightly tighter Geometric, precise
soft large radius, soft-blur shadow Quicksand / Nunito + Zen Maru Gothic slightly larger Soft, rounded, warm
plush extra-large box radius, two-layer soft shadow + top highlight Fredoka / Nunito + M PLUS Rounded 1c slightly larger, heavier headings Clay-like, plump, friendly
corporate small radius, flat IBM Plex Sans + BIZ UDPGothic compact Solid, business
tech micro-radius, no shadow JetBrains Mono / IBM Plex Sans + M PLUS 1 Code compact Dev console, dense
brutal hard square, thick borders, hard-offset shadow Space Grotesk / Space Mono + M PLUS 1p slightly larger Raw, impactful
editorial standard radius, hairline shadow Playfair Display / Source Serif 4 + BIZ UDPMincho larger type scale, roomy Refined, serif
luxury generous radius, pill CTA, soft shadow Hanken Grotesk / Inter + Noto Sans JP standard Thin display, premium
pixel no radius, thick borders, hard-offset shadow PixelMplus10 + DotGothic16 / Press Start 2P big leading, discrete text ladder Dot-matrix arcade
draft wobble radius, drafty line Patrick Hand + Yomogi roomy leading Excalidraw hand-drawn
proto capsule tiles (24px), pill fields, square selectors, hairline, flat Doto 600 (dot-matrix, h1–h3) + IBM Plex Sans JP 200 / Inter + Noto Sans JP, DM Mono airy, larger type scale Nothing-OS: LED-matrix display over a hairline Japanese face

Each preset writes CSS custom properties across four categories:

Loading the fonts (per-tune, not all-in)

Tunes reference font families; only PixelMplus10 (the pixel tune's Japanese pixel font) is bundled — as woff2 with a Google-Fonts-style unicode-range split, so a page that paints only latin text costs ~7KB and the full-glyph file (~200KB, JIS level 1+2 intact) loads lazily the moment CJK text renders. Every other family is expected from Google Fonts, and you should load only the families for the tunes you actually use: the all-tunes link is ~2MB of CSS, 96% of it CJK families your app may never render.

src/resources/tune-fonts.json is the machine-readable map (kept in sync with tune-core.css by the golden harness). Recipe:

  1. Collect tunes[<your tunes>], look each family up in families.
  2. Skip selfHosted (bundled) and fallbackOnly (resilience-only) entries.
  3. Join the css2 values into https://fonts.googleapis.com/css2?family=…&family=…&display=swap — one <link> for cjk: false families, and a second one for cjk: true families loaded lazily (media="print" onload="this.media='all'" + <noscript> fallback), so multi-hundred-KB CJK font CSS never blocks first paint.

CSS entry points: tune.css = fonts + tokens (the historical single import, what the preset uses); tune-core.css = tokens only (zero font assets in your build); tune-fonts.css = the PixelMplus @font-face set alone.

Components

47 components organised into 7 groups. See reference/components/index.md for the full API reference (props, slots, examples) per component.

Form (15)

button, button-group, input, textarea, select, checkbox, radio, radio-group, toggle, file-upload, rating, range-slider, input-number, input-group, pin-input

Data display (12)

card, badge, avatar, avatar-group, accordion, collapse, divider, kbd, table-scroll, timeline, stat, indicator

Feedback (5)

alert, progress, skeleton, spinner, notification-system

Navigation (7)

tabs, menu-item, dropdown, breadcrumb, sidebar, pagination, pagination-simple

Overlay (3)

modal, tooltip, popover

Section (1)

section.hero

Process (1)

stepper

Theme / Tune (1)

theme-switcher

Most components share a Compose layer (src/Compose/*Composer.php) that centralises variant / size / state class composition — making behaviour testable and easy to extend. A handful of simple components (button, alert, card, badge, avatar, menu-item, section.hero, theme-switcher) compose their classes inline in the Blade file.

Pairs with Pinion Icons

pinion-ui hard-requires sparrowhawk-labs/pinion-icons — install it once, then use <x-i> anywhere alongside pinion-ui components:

7,404 Solar icons across 6 variants, plus Fluent Emoji and Pixelarticons via virtual variants — no extra setup required.

Pinion series

Pinion UI is part of the Sparrowhawk Labs pinion-* series — Laravel UI plugins built around a shared design language. A pinion is a primary flight feather: the stroke that lets a hawk steer.

Versioning

Semantic versioning with BC discipline — see SEMVER.md. TL;DR while in 0.x: patches are safe to bump, minors may flip defaults (always called out in the release notes), and breaking removals only happen at minor or major boundaries — never in a patch.

License

MIT — see LICENSE.

Credits


All versions of pinion-ui with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
sparrowhawk-labs/pinion-icons Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sparrowhawk-labs/pinion-ui contains the following files

Loading the files please wait ...