|
| 1 | +const LIGHT_BACKGROUND = '#ffffff'; |
| 2 | +const INHERIT = 'inherit'; |
| 3 | +const LIGHT_THEME = { |
| 4 | + fontFamily: "'Helvetica Neue', Arial, sans-serif", |
| 5 | + fontSize: '14px', |
| 6 | + |
| 7 | + background: LIGHT_BACKGROUND, |
| 8 | + backgroundHover: '#f6f6f7', |
| 9 | + foreground: '#2b2233', |
| 10 | + border: '1.5px solid rgba(41, 35, 47, 0.13)', |
| 11 | + boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)', |
| 12 | + |
| 13 | + success: '#268d75', |
| 14 | + error: '#df3338', |
| 15 | + |
| 16 | + submitBackground: 'rgba(88, 74, 192, 1)', |
| 17 | + submitBackgroundHover: 'rgba(108, 95, 199, 1)', |
| 18 | + submitBorder: 'rgba(108, 95, 199, 1)', |
| 19 | + submitForeground: LIGHT_BACKGROUND, |
| 20 | + |
| 21 | + cancelBackground: 'transparent', |
| 22 | + cancelBackgroundHover: 'var(--background-hover)', |
| 23 | + cancelBorder: 'var(--border)', |
| 24 | + cancelForeground: 'var(--foreground)', |
| 25 | + |
| 26 | + inputBackground: INHERIT, |
| 27 | + inputForeground: INHERIT, |
| 28 | + inputBorder: 'var(--border)', |
| 29 | + inputBorderFocus: 'rgba(108, 95, 199, 1)', |
| 30 | +}; |
| 31 | + |
| 32 | +export const DEFAULT_THEME = { |
| 33 | + light: LIGHT_THEME, |
| 34 | + dark: { |
| 35 | + ...LIGHT_THEME, |
| 36 | + |
| 37 | + background: '#29232f', |
| 38 | + backgroundHover: '#352f3b', |
| 39 | + foreground: '#ebe6ef', |
| 40 | + border: '1.5px solid rgba(235, 230, 239, 0.15)', |
| 41 | + |
| 42 | + success: '#2da98c', |
| 43 | + error: '#f55459', |
| 44 | + }, |
| 45 | +}; |
| 46 | + |
| 47 | +export const ACTOR_LABEL = 'Report a Bug'; |
| 48 | +export const CANCEL_BUTTON_LABEL = 'Cancel'; |
| 49 | +export const SUBMIT_BUTTON_LABEL = 'Send Bug Report'; |
| 50 | +export const FORM_TITLE = 'Report a Bug'; |
| 51 | +export const EMAIL_PLACEHOLDER = '[email protected]'; |
| 52 | +export const EMAIL_LABEL = 'Email'; |
| 53 | +export const MESSAGE_PLACEHOLDER = "What's the bug? What did you expect?"; |
| 54 | +export const MESSAGE_LABEL = 'Description'; |
| 55 | +export const NAME_PLACEHOLDER = 'Your Name'; |
| 56 | +export const NAME_LABEL = 'Name'; |
| 57 | +export const SUCCESS_MESSAGE_TEXT = 'Thank you for your report!'; |
0 commit comments