Implementation guide · Free PHP source package
Create and Export a PHP Color Palette with Chromaline
Chromaline turns a seed color into five editable colors and exports usable CSS, a standalone palette sheet and an editable JSON project. This guide explains the local server setup and a concrete saved example, including what stays editable after export.
Start the actual PHP application
Download the complete free ZIP from the product page and extract it into a new folder. You need PHP 8.1 or newer with CLI enabled and a modern browser. No database, Composer or npm installation is required. From the extracted folder, run:
php -v
php tests/palette_test.php
php -S 127.0.0.1:8080 -t appKeep that terminal open and visit http://127.0.0.1:8080/. Opening index.php as a file does not run the application. Ctrl-C stops your local server. This loopback setup serves your local session; public hosting, TLS and server operations require your own setup.
The full core is free, including source, five harmonies, locks, pair contrast, copying, exports and JSON reopening. No account or payment is required. Managed integration is separate and is not included.
Generate colors and keep a deliberate anchor
Name your palette and enter a six-digit seed, such as #C16D45. Select a harmony and choose Generate palette. PHP generates five colors; the middle color is the seed unless locked. Generation is deterministic: repeating the same unlocked inputs gives the same result, rather than a fresh random suggestion.
Edit any hex field when you need a specific value. Lock a color to retain it during generation. In the independently checked example, the project named Cedar studio used the split harmony with its first color locked:
Seed: #C16D45 · Mode: split
Colors: #000000 #2B3B82 #C16D45 #8CD9CB #FFFFFF
Locks: true false false false falseThese values come from the actual saved QC project. To reproduce this exact state, enter these five colors and locks, then save your project; a new unlocked generation need not recreate manually edited or locked colors. A generated harmony is a starting point for your design, not a guarantee of brand suitability.
Choose the output that fits your handoff
- Copy a hex code when you need one color.
- Copy CSS or Download CSS when you need reusable tokens. Variable names are fixed as
--color-1through--color-5; assign them to your own interface roles in your site's stylesheet. - Palette sheet downloads a standalone HTML page. Open that file to review and share the five colors and CSS without running PHP.
- Save project downloads JSON for further editing in Chromaline. Use Open project to restore its name, seed, harmony, colors and locks.
Save before closing: there is no autosave or browser storage. The CSS and HTML outputs are handoff files; keep the JSON too if another editor needs to continue the palette. Invalid settings block export until corrected. An invalid imported file preserves the current valid palette.
Check a text/background pair in context
Under Check the contrast, choose the text and background colors you intend to pair. Chromaline calculates relative luminance for opaque sRGB and makes its decision from the unrounded ratio. Its documented AA thresholds are 4.5:1 for normal text and 3:1 for large text.
The checked package produced 21:1 for black on white and 1:1 for identical colors. Those checks establish the observed pair calculation, not an accessibility audit of a whole design. Evaluate the actual text size, surrounding colors, interaction states and component use in your own interface. Chromaline accepts opaque six-digit hex colors; gradients, alpha and image editing are outside its scope.
Understand the local server and download boundaries
Generation sends palette seed, harmony mode, colors and locks to your own PHP server. The application does not persist them, although your server may keep access logs. Project names remain in browser memory and downloaded files. The core loads no external requests, remote fonts or tracking; its optional hosted adapter is separate and is never imported by the app.
The Nishvault product landing page separately offers a consent-controlled anonymous source-download diagnostic. That hosted download mechanism does not turn your local palette exports into tracked actions. This guide itself collects no usage data.
The included license permits personal and commercial project use and finished output sharing, with package resale restricted. Setup documentation is included; personal support, service levels and update schedules are not guaranteed.
Download Chromaline's complete free PHP package and keep your exported sheet, stylesheet and editable JSON together.