3 values systeme for heritage

This commit is contained in:
Julie Blanc 2026-03-05 19:00:29 +01:00
parent 449f0eda31
commit bc2317ab69
4 changed files with 280 additions and 215 deletions

View file

@ -1,11 +1,13 @@
import { reactive } from 'vue';
// Singleton reactive — TextSettings writes here, ElementPopup reads when disabled
// Initial values match stylesheet.print.css (overwritten by syncFromStore on first mount)
const defaults = reactive({
fontSize: { value: 16, unit: 'px' },
lineHeight: { value: 20, unit: 'px' },
fontSize: { value: 14, unit: 'px' },
lineHeight: { value: 18, unit: 'px' },
fontFamily: 'sans-serif',
color: 'rgb(0, 0, 0)',
_initialized: false,
});
export function useTextDefaults() {