1. Go to this page and download the library: Download soapbox/css-colors library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soapbox / css-colors example snippets
" "soapbox/css-colors": "dev-master"
}
'providers' => array(
// ...
'SoapBox\Csscolor\CsscolorServiceProvider'
)
Not
$color = Csscolor::make('3D88C8');
$color->bg['0']; // returns the same colour as entered
$color->bg['+1']; // +1 to +5 and -1 to -5 to return variations of the colour to work with gradiants
$color->fg['0']; // returns a colour that can sit on the foreground of the defined hex value
...