| 1 |
import type { FormStyleSettings, StyleTheme } from '@/types/form-style' |
| 2 |
import defaultFormStylesJson from '../../../backend/resources/defaultFormStyles.json' |
| 3 |
|
| 4 |
/** |
| 5 |
* Default form style settings |
| 6 |
* |
| 7 |
* These defaults provide a clean, accessible design out of the box |
| 8 |
* and serve as the reset point for the "Reset to Default" functionality. |
| 9 |
* Imported from backend/resources/defaultFormStyles.json (shared with PHP TemplateDefaults). |
| 10 |
*/ |
| 11 |
export const DEFAULT_FORM_STYLES: FormStyleSettings = defaultFormStylesJson as FormStyleSettings |
| 12 |
|
| 13 |
/** |
| 14 |
* Available themes |
| 15 |
*/ |
| 16 |
export const AVAILABLE_THEMES: StyleTheme[] = [ |
| 17 |
{ |
| 18 |
id: 'ivy-default', |
| 19 |
name: 'Ivy (Default)', |
| 20 |
isDefault: true, |
| 21 |
settings: DEFAULT_FORM_STYLES, |
| 22 |
}, |
| 23 |
] |
| 24 |
|
| 25 |
// TODO Font options for later |
| 26 |
|
| 27 |
/** |
| 28 |
* Font family options for the style controls |
| 29 |
*/ |
| 30 |
export const FONT_FAMILY_OPTIONS = [ |
| 31 |
{ value: 'inherit', label: 'Theme Default' }, |
| 32 |
{ value: 'Arial, sans-serif', label: 'Arial' }, |
| 33 |
{ value: 'Helvetica, sans-serif', label: 'Helvetica' }, |
| 34 |
{ value: '"Times New Roman", serif', label: 'Times New Roman' }, |
| 35 |
{ value: 'Georgia, serif', label: 'Georgia' }, |
| 36 |
{ value: '"Courier New", monospace', label: 'Courier New' }, |
| 37 |
{ value: 'Verdana, sans-serif', label: 'Verdana' }, |
| 38 |
{ value: 'Tahoma, sans-serif', label: 'Tahoma' }, |
| 39 |
{ value: '"Trebuchet MS", sans-serif', label: 'Trebuchet MS' }, |
| 40 |
{ value: 'Roboto, sans-serif', label: 'Roboto' }, |
| 41 |
{ value: '"Open Sans", sans-serif', label: 'Open Sans' }, |
| 42 |
] |
| 43 |
|
| 44 |
/** |
| 45 |
* Font weight options |
| 46 |
*/ |
| 47 |
export const FONT_WEIGHT_OPTIONS = [ |
| 48 |
{ value: '300', label: 'Light (300)' }, |
| 49 |
{ value: '400', label: 'Regular (400)' }, |
| 50 |
{ value: '500', label: 'Medium (500)' }, |
| 51 |
{ value: '600', label: 'Semi Bold (600)' }, |
| 52 |
{ value: '700', label: 'Bold (700)' }, |
| 53 |
{ value: '800', label: 'Extra Bold (800)' }, |
| 54 |
] |
| 55 |
|