forked from laysense/laysite
12 lines
530 B
PHP
12 lines
530 B
PHP
<?php
|
|
use App\Content\DesignLibrary;
|
|
use App\Content\View;
|
|
|
|
$previewKeys = ['accent', 'ink', 'muted', 'paper', 'white', 'line', 'accent-deep', 'accent-light', 'button-ink'];
|
|
?>
|
|
<svg class="palette-swatches" viewBox="0 0 133 14" aria-hidden="true" focusable="false">
|
|
<?php foreach ($previewKeys as $index => $key): ?>
|
|
<circle cx="<?= 7 + 15 * $index ?>" cy="7" r="6" data-color-key="<?= View::escape($key) ?>" fill="<?= View::escape($colors[$key] ?? DesignLibrary::COLORS[$key][1]) ?>"/>
|
|
<?php endforeach ?>
|
|
</svg>
|