defaults values title

This commit is contained in:
Julie Blanc 2026-03-09 14:56:09 +01:00
parent 3dd1f032f9
commit 9c58edb425
5 changed files with 121 additions and 45 deletions

View file

@ -44,8 +44,53 @@ export const ELEMENT_DEFAULTS = Object.freeze({
});
export const HEADING_DEFAULTS = Object.freeze({
h5: Object.freeze({
fontSize: Object.freeze({ value: 16, unit: 'px' }),
fontWeight: 'bold',
margin: Object.freeze({
top: Object.freeze({ value: 20, unit: 'px' }),
bottom: Object.freeze({ value: 10, unit: 'px' }),
}),
}),
h4: Object.freeze({
fontSize: Object.freeze({ value: 20, unit: 'px' }),
fontWeight: 'bold',
margin: Object.freeze({
bottom: Object.freeze({ value: 30, unit: 'px' }),
}),
background: '#dedede',
textAlign: 'center',
}),
h3: Object.freeze({
fontSize: Object.freeze({ value: 20, unit: 'px' }),
fontWeight: 'bold',
margin: Object.freeze({
top: Object.freeze({ value: 30, unit: 'px' }),
bottom: Object.freeze({ value: 20, unit: 'px' }),
}),
borderWidth: Object.freeze({ value: 2, unit: 'px' }),
borderStyle: 'dotted',
borderColor: '#000000',
}),
h2: Object.freeze({
fontSize: Object.freeze({ value: 38, unit: 'px' }),
fontWeight: 'bold',
margin: Object.freeze({
top: Object.freeze({ value: 36, unit: 'px' }),
}),
borderWidth: Object.freeze({ value: 2, unit: 'px' }),
borderStyle: 'solid',
borderColor: '#000000',
padding: Object.freeze({
top: Object.freeze({ value: 20, unit: 'px' }),
right: Object.freeze({ value: 20, unit: 'px' }),
bottom: Object.freeze({ value: 20, unit: 'px' }),
left: Object.freeze({ value: 20, unit: 'px' }),
}),
}),
h1: Object.freeze({
fontSize: Object.freeze({ value: 38, unit: 'px' }),
fontWeight: 'bold',
lineHeight: Object.freeze({ value: 38, unit: 'px' }),
background: 'rgba(255, 255, 255, 0.521)',
padding: Object.freeze({
@ -61,6 +106,26 @@ export const HEADING_DEFAULTS = Object.freeze({
}),
});
export const PARAGRAPH_CLASS_DEFAULTS = Object.freeze({
author: Object.freeze({
fontSize: Object.freeze({ value: 24, unit: 'px' }),
fontWeight: 'bold',
background: 'rgba(255, 255, 255, 0.521)',
padding: Object.freeze({
top: Object.freeze({ value: 10, unit: 'px' }),
right: Object.freeze({ value: 20, unit: 'px' }),
bottom: Object.freeze({ value: 10, unit: 'px' }),
left: Object.freeze({ value: 20, unit: 'px' }),
}),
margin: Object.freeze({
top: Object.freeze({ value: 20, unit: 'px' }),
right: Object.freeze({ value: 0, unit: 'px' }),
bottom: Object.freeze({ value: 0, unit: 'px' }),
left: Object.freeze({ value: 0, unit: 'px' }),
}),
}),
});
export const INLINE_DEFAULTS = Object.freeze({
em: Object.freeze({ fontStyle: 'italic' }),
i: Object.freeze({ fontStyle: 'italic' }),