PluginProbe
The Innovative Form Builder – IvyForms / 1.1
The Innovative Form Builder – IvyForms v1.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / constants / defaultFormStyles.ts

defaultFormStyles.ts in The Innovative Form Builder – IvyForms 1.1, at frontend/src/constants/defaultFormStyles.ts

55 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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