mirror of
https://github.com/tabler/tabler.git
synced 2026-08-10 13:22:22 +04:00
Refactor colorpicker to use dynamic color values from site.colors
This commit is contained in:
@@ -19,18 +19,9 @@
|
||||
{% if format %}format: "{{ format }}",{% endif %}
|
||||
{% if include['swatches-only'] %}swatchesOnly: true,{% endif %}
|
||||
swatches: [
|
||||
"#066fd1",
|
||||
"#45aaf2",
|
||||
"#6574cd",
|
||||
"#a55eea",
|
||||
"#f66d9b",
|
||||
"#fa4654",
|
||||
"#fd9644",
|
||||
"#f1c40f",
|
||||
"#7bd235",
|
||||
"#5eba00",
|
||||
"#2bcbba",
|
||||
"#17a2b8",
|
||||
{% for color in site.colors %}
|
||||
"{{ color[1].hex }}",
|
||||
{% endfor %}
|
||||
],
|
||||
}))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user