Overview
The Appearance Settings page (/configuracion/apariencia) allows users to personalize the visual presentation of Luis IT Repair, including:
- Light/dark theme modes
- Accent color selection
- Font customization for tickets and PDFs
- Density and spacing preferences
- Accessibility options
- Regional formatting
localStorage and apply immediately without page refresh.
Theme and Visual Mode
Theme Mode
Visual theme:
claro: Light theme with white/light backgroundsoscuro: Dark theme with dark backgrounds
- Background colors
- Text colors
- Component borders and shadows
- Form inputs and buttons
- Light mode:
body.ui-theme-light - Dark mode:
body.ui-theme-dark
Accent Colors
Primary accent color for UI elements:
azul: Blue (#2563eb)verde: Green (#16a34a)turquesa: Turquoise/Teal (#0d9488)naranja: Orange (#ea580c)
Color Palette
CSS Variables
The system applies accent colors via CSS custom properties:Font Configuration
Ticket Font
Font for printed receipts:
mono: Monospaced (“Courier New”, monospace) - Traditional ticket styleui: UI-readable (“Segoe UI”, Arial, sans-serif)compacta: Compact (Arial, Helvetica, sans-serif)
- Thermal printer output
- Screen preview of tickets
- Ticket PDFs
PDF Font
Font for PDF generation:
helvetica: Clean, professional sans-serifcourier: Monospaced, typewriter styletimes: Serif font for formal documents
- Invoices
- Service reports
- Export documents
Layout Preferences
Visual Density
UI spacing and padding:
normal: Standard spacingcompacta: Reduced spacing for more content on screen
Border Radius
Roundness of UI elements:
cuadrado: 8px - Minimal roundingsuave: 12px - Moderate rounding (default)redondeado: 16px - Maximum rounding
- Buttons
- Cards
- Input fields
- Modals and dialogs
Accessibility
Font Scale
Base font size multiplier:
pequeno: 0.95 - Smaller textnormal: 1.0 - Standard sizegrande: 1.06 - Larger text for improved readability
Contrast Mode
Color contrast level:
normal: Standard contrast ratiosalto: Enhanced contrast for accessibility (WCAG AAA)
Animations
Enable or disable UI animations and transitions.Disable for:
- Reduced motion preferences
- Performance on low-end devices
- Accessibility (vestibular disorders)
Regional Settings
Language
Interface language:
es-MX: Español (Mexico)en-US: English (United States)
document.documentElement.lang for:
- Screen readers
- Browser translation
- Regional formatting
Date Format
Date display format:
dd/mm/aaaa: Day/Month/Year (Mexican standard)mm/dd/aaaa: Month/Day/Year (US standard)aaaa-mm-dd: ISO 8601 (YYYY-MM-DD)
Configuration Storage
Settings are stored per-user in localStorage:An anonymous fallback key is also maintained (
app_apariencia_config_v2_anon) for pre-authentication settings.Service Integration
Reading Configuration
Saving Configuration
Applying Configuration
- Sets CSS custom properties on
:root - Adds/removes body classes
- Sets
document.documentElement.lang - Dispatches
app:appearance-changedevent
Listening for Changes
Live Preview
The configuration page includes a live preview card that demonstrates:- Current accent color
- Theme mode (light/dark)
- Ticket font style
- PDF font selection
- Button styling
Reset to Defaults
Click the Restablecer button to reset all appearance settings to defaults:Feature Highlights
The appearance system supports:Per-User Themes
Each user can have their own visual preferences
Light/Dark Mode
Automatic application of theme across all components
Custom Branding
Logo and accent colors by branch/location
Regional Formats
Currency and date formatting per locale
Keyboard Shortcuts
Accessibility support with keyboard navigation
Role-Based Themes
Different visual profiles for cashier/tech/admin
Best Practices
Test in Both Themes
Test in Both Themes
Always test your workflows in both light and dark modes to ensure readability.
Use High Contrast for Accessibility
Use High Contrast for Accessibility
Enable high contrast mode if users have visual impairments or work in bright environments.
Disable Animations for Performance
Disable Animations for Performance
On older devices or when experiencing lag, disable animations for better performance.
Monospace Fonts for Tickets
Monospace Fonts for Tickets
Keep
ticketFont as mono for best thermal printer compatibility.Consistent Branding
Consistent Branding
Choose one accent color and stick with it for brand consistency across your business.
Troubleshooting
Theme Not Applying
Theme Not Applying
Check that
applyAparienciaConfig() is called on app initialization:Settings Not Persisting
Settings Not Persisting
Verify localStorage is enabled:
Colors Not Updating
Colors Not Updating
Hard refresh the page (Ctrl+Shift+R) to clear cached CSS.
Font Not Changing
Font Not Changing
Ensure the font family is installed on the system for ticket printing. For web display, fonts should work immediately.
Next Steps
POS Settings
Configure IVA, billing, and receipts
Firebase Setup
Set up backend infrastructure
