Overview
Web XP uses styled-components for styling, providing a modern CSS-in-JS approach to create authentic Windows XP visual elements. The project features the classic XP color scheme with blue gradients, Tahoma fonts, and pixel-perfect window chrome.Styled-Components Architecture
The project extensively uses styled-components for all UI elements:Key Styled Components
The main styled components are located throughout the codebase:- Window Chrome:
src/WinXP/Windows/index.jsx:155 - Footer/Taskbar:
src/WinXP/Footer/index.jsx:174 - Header Buttons:
src/WinXP/Windows/HeaderButtons.jsx:54 - Desktop Container:
src/WinXP/index.jsx:297
Typography
Primary Font: Tahoma
Windows XP’s signature font is used throughout the interface:Font Configuration
The project uses Noto Sans as a fallback, configured insrc/assets/font.css:1-26:
Windows XP Color Scheme
Window Header Gradients
Focused windows use the iconic blue gradient (src/WinXP/Windows/index.jsx:165-167):
Taskbar Gradient
The taskbar features a distinctive blue gradient (src/WinXP/Footer/index.jsx:176-194):
Customizing Window Chrome
Window Border and Padding
Windows have a 3px padding with blue borders (src/WinXP/Windows/index.jsx:158-162):
Header Buttons
The minimize, maximize, and close buttons use radial gradients (src/WinXP/Windows/HeaderButtons.jsx:76-104):
Window Header
The window title bar styling (src/WinXP/Windows/index.jsx:200-213):
XP-Style Visual Patterns
Border Styles
Classic inset/outset borders for depth:Focus States
Windows show focus through opacity and color changes:Rounded Corners
XP-style subtle rounding:Customization Examples
Changing Window Border Color
Modify theStyledWindow component in src/WinXP/Windows/index.jsx:159:
Adjusting Font Sizes
Update font sizes in the header (src/WinXP/Windows/index.jsx:205):
Customizing Button Colors
Modify button gradients insrc/WinXP/Windows/HeaderButtons.jsx:76-187 to match your color scheme.
Best Practices
- Maintain XP Aesthetics: Keep gradients and rounded corners subtle
- Use Tahoma Font: Essential for authentic Windows XP look
- Preserve Focus States: Always differentiate focused vs unfocused elements
- Test Contrast: Ensure text remains readable with color changes
- Keep Borders Consistent: Use the same border pattern throughout
Related Files
src/WinXP/Windows/index.jsx- Window chrome stylingsrc/WinXP/Footer/index.jsx- Taskbar stylingsrc/WinXP/Windows/HeaderButtons.jsx- Button stylingsrc/assets/font.css- Font definitionssrc/index.css- Global styles
