Download the PHP package inlayphp/design without Composer

On this page you can find all versions of the php package inlayphp/design. 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 design

Inlay Design

Packagist PHP

The public design-system façade for Inlay applications.

inlayphp/design gives applications one stable place to choose semantic tokens, generate CSS, and create an application-owned theme class. It builds on the serializable inlay.themes.v1 contract from inlayphp/theme, so existing Theme and panel integrations remain compatible.

Install

The frontend companion is @inlayphp/design:

Presets and fluent themes

Design::base() is the neutral zinc foundation. Design::orbit() is the canonical Inlay operations workspace: a cool-white canvas, light sidebar, restrained purple accent, 44px controls, and readable status roles. Design::default() is the same Orbit preset under the stable default name. Design::highContrast() provides stronger light/dark foreground, border, and status contrast. Design::make('brand') creates an empty contract. named() copies the token maps under a new name; tokens() and darkTokens() merge overrides.

The lower-level Theme class remains supported:

Use Design for new code and keep Theme when maintaining an existing package or panel.

Generate an application theme

The generator creates both the PHP source of truth and a CSS variable file:

Generated files:

The class is intentionally application-owned so domain decisions never leak into the package:

Import the generated CSS from the application's Tailwind/Vite entry point:

The stylesheet contains :root light variables, dark overrides for prefers-color-scheme, and an explicit [data-theme="dark"] mode. Add data-theme="light" to the root shell when an explicit light choice should override the operating-system preference. Pass the theme to a panel with $panel->theme(BrandTheme::make()) and share the same serialized contract with React or Vue.

The frontend façade also re-exports the centralized recipe layer from @inlayphp/ui:

Recipes read the generated semantic variables, so an application can adjust spacing, typography, focus rings, transitions, and component variants through its theme contract instead of copying Tailwind strings.

The command accepts safe relative output paths and an explicit overwrite flag:

Names and paths reject traversal, empty segments, unsafe class characters, and absolute paths. Existing files are never overwritten unless --force is provided.

CSS contract

Design::css() emits deterministic --inlay-{token} custom properties. Null tokens are omitted, booleans are normalized to true/false, and unsafe CSS delimiters are rejected before output. Token names are semantic and lowercase (surface-muted, danger, control-height); avoid component-specific names so community packages can consume the same contract.

Extending the design system

Official and community packages should:

The current package is the first design-system slice. High-contrast presets, icon registries, shared recipes, and the first headless primitive are available behind the same public boundary. @inlayphp/ui-react and @inlayphp/ui-vue provide the renderer-specific Dialog primitive; both use the same @inlayphp/ui recipes and accessibility contract. Additional primitives can be added without changing application-owned theme tokens.

Testing

The package includes generator tests, CSS safety tests, and the matching frontend contract tests.

Related packages


All versions of design with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/console Version ^12.0 || ^13.0
illuminate/filesystem Version ^12.0 || ^13.0
inlayphp/theme Version ^0.3 || dev-main
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 inlayphp/design contains the following files

Loading the files please wait ...