PHP code example of toastnz / colourpalettes
1. Go to this page and download the library: Download toastnz/colourpalettes 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/ */
toastnz / colourpalettes example snippets
yml
---
Name: colours
After: colourpalettes
---
Toast\ColourPalettes\Models\Colour:
colour_groups:
- Products
- Buttons
default_colours:
- primary: null
- secondary: null
- white: 'ffffff'
- black: '000000'
- off-white: null
- off-black: null
contrast_colours:
- on-dark: '#ffffff'
- on-light: '#000000'