mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-24 16:36:46 +00:00
23 lines
599 B
JavaScript
23 lines
599 B
JavaScript
import { resolveColor } from '@baserow/modules/core/utils/colors'
|
|
import { ThemeConfigBlockType } from '@baserow/modules/builder/themeConfigBlockTypes'
|
|
import form from '@baserow/modules/core/mixins/form'
|
|
|
|
export default {
|
|
inject: ['workspace', 'builder', 'page', 'mode'],
|
|
mixins: [form],
|
|
computed: {
|
|
themeConfigBlocks() {
|
|
return this.$registry.getOrderedList('themeConfigBlock')
|
|
},
|
|
colorVariables() {
|
|
return ThemeConfigBlockType.getAllColorVariables(
|
|
this.themeConfigBlocks,
|
|
this.builder.theme
|
|
)
|
|
},
|
|
},
|
|
methods: {
|
|
resolveColor,
|
|
},
|
|
}
|