book/quarto/assets/styles/README.md
This directory contains the sophisticated styling system for the Harvard Machine Learning Systems textbook, designed to embody academic excellence and Harvard's prestigious standards.
This styling system prioritizes sophistication, readability, and academic gravitas over flashy web design. Every element is carefully crafted to support serious academic study while maintaining visual elegance.
The stylesheet is meticulously organized into 20 logical sections for easy maintenance:
1. Color Palette & Design Tokens - All colors and design constants
2. Typography System - Font families, sizes, line heights
3. Spacing & Layout System - Consistent spacing scale
4. Shadows & Elevation - Subtle depth and hierarchy
5. Component Tokens - Shared component variables
6. Foundational Styles - Base HTML elements
7. Typography Hierarchy - Heading system (h1-h6)
8. Links & Navigation - Link behaviors and styles
9. Code & Syntax Highlighting - Academic code presentation
10. Academic Callouts & Alerts - Sophisticated information boxes
11. Academic Tables - Professional data presentation
12. Figures & Images - Academic figure formatting
13. Mathematical Content - Equation and formula styling
14. Lists & Enumeration - Academic list formatting
15. Quotations & Citations - Scholarly reference styling
16. Navigation & Sidebar - Book navigation interface
17. Responsive Design - Multi-device optimization
18. Print Styles - Academic print formatting
19. Accessibility Enhancements - WCAG compliance
20. Utility Classes - Helper classes
Five distinct academic callout types with refined styling:
Each callout features:
The textbook navigation is configured with sophisticated organization:
This organization allows students to focus on academic content while providing easy access to practical lab exercises when needed.
h1: 2.75rem // Chapter titles - command attention
h2: 2.25rem // Major sections - clear organization
h3: 1.75rem // Subsections - readable hierarchy
h4: 1.5rem // Minor headings - subtle emphasis
h5: 1.25rem // Small headings - minimal prominence
h6: 1.125rem // Inline headings - text-level emphasis
xs: 0.25rem // Tight spacing
sm: 0.5rem // Small spacing
md: 1rem // Base spacing
lg: 1.5rem // Large spacing
xl: 2rem // Extra large spacing
xxl: 3rem // Section spacing
xxxl: 4rem // Chapter spacing
This styling system meets Harvard University's expectations for:
ā Academic Excellence: Sophisticated, scholarly presentation ā Brand Consistency: Appropriate use of Harvard identity ā Professional Quality: Publication-ready design standards ā Accessibility: Universal design principles ā Responsive Design: Modern multi-device support ā Print Quality: Academic publication standards
The stylesheet integrates seamlessly with Quarto's academic publishing pipeline:
format:
html:
theme: assets/styles/style.scss
quarto preview for developmentWhen enhancing the styling system:
This styling system represents a commitment to academic excellence, ensuring that the Harvard ML Systems textbook maintains the highest standards of scholarly presentation while embracing modern web technologies.