settings.js
15 lines
| 1 | /** |
| 2 | * Internal dependencies |
| 3 | */ |
| 4 | /*globals vkBlocksObject */ |
| 5 | import { mergeColors } from '@vkblocks/utils/merge-colors'; |
| 6 | |
| 7 | // AdvancedColorPalette と同等のカラーセットを管理画面でも使う |
| 8 | const defaultColors = vkBlocksObject.colorPalette?.default || []; |
| 9 | const themeColors = vkBlocksObject.colorPalette?.theme || []; |
| 10 | const customColors = vkBlocksObject.colorPalette?.custom || []; |
| 11 | |
| 12 | const vkColorPalette = mergeColors(defaultColors, themeColors, customColors); |
| 13 | |
| 14 | export { vkColorPalette }; |
| 15 |