Download the PHP package su-sws/decanter without Composer

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

Decanter

Version: 8 (beta)

Changelog: UPGRADE.md

Description

Decanter is a web design and development system for Stanford University. Version 8 is a CSS-first preset for Tailwind CSS v4: you import plain CSS and get the Stanford Identity color palette, typography scales, spacing system, components, utilities, and custom variants on top of core Tailwind.

Demo

The test page in this repository (static/index.html) demonstrates the custom Decanter features. Run it locally with npm install && npm run dev.

Documentation

Installation

You first need to install Tailwind CSS v4. See the Tailwind CSS website for your framework's recommended installation method.

For example, for use with Next.js v16, install Tailwind CSS v4, @tailwindcss/postcss and Decanter (beta release) as dev dependencies:

In your project's main CSS file:

There is no need to add a separate @import 'tailwindcss', or your output will contain the preflight reset twice. Build with any Tailwind v4 integration (@tailwindcss/cli, @tailwindcss/vite, or @tailwindcss/postcss).

Entry points

Import Contents
decanter Everything, including full base styles and the default 62.5% root font size
decanter/minimal Same sizing mode, without element-level base opinions such as link colors
decanter/base16 Everything, but leaves the HTML root font size unchanged
decanter/base16/minimal The base16 sizing mode with minimal base styles
decanter/forms Opt-in form classes + the bundled @tailwindcss/forms reset (requires one of the four main entries above)
decanter/colors Stanford color palette only — standalone, works on stock Tailwind
decanter/src/* Any individual source file, for à-la-carte composition

Both sizing modes keep Decanter-owned numeric utilities, tokens, and fixed component dimensions at the same rendered pixel sizes in rem units: p-16 is 16px and text-18 is 18px at standard browser settings. Choose a base16 entry when Tailwind core or another library expects the browser's usual 16px rem basis. See Getting Started for details.

Fonts

Decanter provides font-family utilities (font-sans, font-serif, font-stanford) but does not bundle or load the font files — how fonts are loaded is framework-specific, so that's left to you. Load only the families you use; if one isn't loaded, its class falls back gracefully down the stack.

See Loading the fonts for which families and weights to load and copy-paste examples (<link>, @import, self-hosting, and framework tooling), plus the @font-face snippet for the Stanford wordmark font used by .logo.

Icons

Decanter does not include any icon assets. We recommend the heroicons package — Hero Icons are created by the Tailwind CSS team, open source, and usable as SVG or JSX.

Accessibility

WCAG Conformance 2.0 AA Badge

This project conforms to level AA WCAG 2.0 standards as required by the university's accessibility policy. For more information on the policy please visit: https://www.stanford.edu/accessibility.


All versions of decanter with dependencies

PHP Build Version
Package Version
No informations.
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 su-sws/decanter contains the following files

Loading the files please wait ...