diff --git a/arches_lingo/media/js/views/root.js b/arches_lingo/media/js/views/root.js index a2bf3495..9b23b5e2 100644 --- a/arches_lingo/media/js/views/root.js +++ b/arches_lingo/media/js/views/root.js @@ -1,5 +1,7 @@ import createVueApplication from 'arches/arches/app/media/js/utils/create-vue-application'; +import { ArchesPreset, DEFAULT_THEME } from '@/arches/themes/default.ts'; +import { definePreset } from '@primevue/themes'; import { createRouter, createWebHistory } from 'vue-router'; import LingoApp from '@/arches_lingo/App.vue'; @@ -10,7 +12,26 @@ const router = createRouter({ routes, }); -createVueApplication(LingoApp).then(vueApp => { +const LingoPreset = definePreset(ArchesPreset, { + components: { + button: { + root: { + label: { + fontWeight: 600, + }, + }, + }, + }, +}); + +const LingoTheme = { + theme: { + ...DEFAULT_THEME, + preset: LingoPreset, + }, +}; + +createVueApplication(LingoApp, LingoTheme).then(vueApp => { vueApp.use(router); vueApp.mount('#lingo-mounting-point'); }); diff --git a/arches_lingo/src/arches_lingo/App.vue b/arches_lingo/src/arches_lingo/App.vue index cc8393f8..ff5231e3 100644 --- a/arches_lingo/src/arches_lingo/App.vue +++ b/arches_lingo/src/arches_lingo/App.vue @@ -71,6 +71,8 @@ router.beforeEach(async (to, _from, next) => { +