Download the PHP package strapless/colors without Composer

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

DevIsCoding Colors

SASS color functions and maps used in DevIsCoding components. Can also be used quite effectively in any SASS where one desires an easy way to manage colors.

Formerly known as StrapLess Colors.

Available Color Maps

Inclusion of the 'color-variables' establishes three color maps: $grays, $colors, and $theme-colors.

These color maps can be utilized and manipulated with various included functions.

Available Functions

color($name) - Retrieves a color from the $color map by color name.

theme-color($name) - Retrieves a color from the $theme-colors map by context name.

gray($value) - Retrieves a shade from the $grays map by progression value, 50 - 900.

theme-colors-merge($new-map) - Adds a provided map of key: color to the theme colors map. Any new theme-colors will be added to the existing map. Any key that already exists will be overwritten with your new value.

colors-merge($new-map) - Adds a provided map of key: color to the colors map. Any new colors will be added to the existing map. Any key that already exists will be overwritten with your new value.

grays-merge($new-map) - Adds a provided map of value: color to the grays map. Any gray values will be added to the existing map. Any key that already exists will be overwritten with your new value.

isLight($color-value) - Determines if the given color value is a light color or a dark color. Useful for setting foreground colors that contrast with background colors.

Available Mixins

set-color($name,$color-value) - Adds or sets a color by the name of $name to the colors map with the value $color-value. Any existing color with the same name will be overwritten.

set-theme-color($name,$color-value) - Adds or sets a color by the name of $name to the theme colors map with the value $color-value. Any existing color with the same name will be overwritten.

set-gray($value,$color-value) - Adds or sets a color by the name of $value to the gray shades map with the value $color-value. Any existing color with the same name will be overwritten.

How to Use

To use effectively, you should @import "colors"; BEFORE any variables that set or utilize colors. This will set the base colors and allow you to do the following:

To set a single color, use the mixins like this:

@include set-color(white,#fff);

To update a map of colors, use the functions like this:

$colors: colors-merge((white: #fff, black: #000));

To get a color value, use the functions like this:

.selector { color: color(teal); }


All versions of colors 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 strapless/colors contains the following files

Loading the files please wait ....