π¨ DOI Icon & Dark Mode Color Update - Summary
π¨ DOI Icon & Dark Mode Color Update - Summary
β¨ Updates Completed
1. β DOI Symbol Changed to Official Yellow Icon
- Previous: PDF icon (
fa fa-file-pdf-o) in blue - New: Official DOI icon (
ai ai-doi) in golden yellow - Result: Professional, recognizable DOI branding with official Academicons symbol
Color Details:
- Light Mode:
#FFB81C(Official DOI gold) with 12% opacity background - Dark Mode:
#FFD700(Brighter gold for visibility) with 15% opacity background
2. β arXiv Button - Different Shades for Light/Dark Mode
Now has context-aware coloring for optimal contrast and visibility!
Light Mode:
- Color:
#b31b1b(Official arXiv red - dark shade) - Background:
rgba(179, 27, 27, 0.12)(12% opacity) - Hover:
rgba(179, 27, 27, 0.2)(20% opacity)
Dark Mode:
- Color:
#ff6b6b(Brighter red for dark backgrounds) - Background:
rgba(220, 53, 53, 0.15)(15% opacity) - Hover:
rgba(220, 53, 53, 0.25)(25% opacity)
3. β BibTeX Button - Different Shades for Light/Dark Mode
Optimized for readability in both light and dark color schemes!
Light Mode:
- Color:
#6b62d2(Deep purple - traditional) - Background:
rgba(107, 98, 210, 0.12)(12% opacity) - Hover:
rgba(107, 98, 210, 0.2)(20% opacity)
Dark Mode:
- Color:
#b8b0ff(Lighter purple/lavender for dark backgrounds) - Background:
rgba(147, 138, 255, 0.15)(15% opacity) - Hover:
rgba(147, 138, 255, 0.25)(25% opacity)
π¨ Updated Button Color Palette
| Button | Light Mode Color | Dark Mode Color | Icon Library | Purpose |
|---|---|---|---|---|
| arXiv | #b31b1b | #ff6b6b | Academicons | Preprint server |
| DOI | #FFB81C | #FFD700 | Academicons | Official DOI (NEW!) |
| Code | #5cb85c | #5cb85c | Font Awesome | GitHub repo |
| BibTeX | #6b62d2 | #b8b0ff | Custom | Citation management |
π± Responsive Design (Unchanged)
The responsive behavior remains the same:
- Desktop (>900px): Image left, content right, buttons horizontal
- Tablet (768-900px): Image top, content bottom, buttons horizontal
- Mobile (<768px): Full stack, buttons vertical
π Dark Mode Implementation
Uses CSS @media (prefers-color-scheme: dark) for automatic theme detection:
- β Respects userβs OS dark mode preference
- β No manual configuration needed
- β Automatic color adjustment for visibility
- β Professional appearance in both modes
π Technical Changes
File Modified
_includes/publication_card.html
Changes Made
- Line 24: Changed DOI icon from
fa fa-file-pdf-otoai ai-doi - Lines 199-220: Added dark mode styles for arXiv button
- Lines 222-244: Updated DOI button colors to golden yellow + added dark mode styles
- Lines 267-290: Added dark mode styles for BibTeX button
Lines of Code
- Original: 390 lines
- Updated: 435 lines (+45 lines for dark mode styles)
π§ͺ Testing Checklist
- β Light mode - arXiv button shows dark red
- β Light mode - DOI button shows golden yellow
- β Light mode - BibTeX button shows purple
- β Dark mode - arXiv button shows bright red
- β Dark mode - DOI button shows bright yellow/gold
- β Dark mode - BibTeX button shows light purple/lavender
- β Hover effects work on all buttons
- β Icons display correctly (Academicons loaded)
- β Site builds without errors
- β All functionality intact (links, copy button, dropdown)
π Visual Comparison
Before
arXiv: Dark Red (#b31b1b) - Light & Dark mode
PDF: Blue (#428bca) - Light & Dark mode
Code: Green (#5cb85c) - Light & Dark mode
BibTeX: Purple (#6b62d2) - Light & Dark mode
After
arXiv: Dark Red (#b31b1b) in Light Mode β Bright Red (#ff6b6b) in Dark Mode β¨
DOI: Golden Yellow (#FFB81C in Light, #FFD700 in Dark) - Official Icon! β¨
Code: Green (#5cb85c) - Light & Dark mode (unchanged)
BibTeX: Purple (#6b62d2) in Light Mode β Light Purple (#b8b0ff) in Dark Mode β¨
π― Benefits
- Official DOI Branding: Uses the official DOI icon and colors
- Better Dark Mode UX: Optimized colors for both light and dark preferences
- Improved Contrast: Different shades ensure readability in all conditions
- Professional Look: Golden DOI icon adds prestige to publications
- Auto-Adapting: No user configuration needed, detects OS theme automatically
π No Breaking Changes
All changes are backwards compatible:
- β Existing publications work without modification
- β All buttons still function identically
- β Copy-to-clipboard still works
- β Responsive design unchanged
- β Layout and spacing unchanged
π Documentation
For more information:
- QUICK_START.md - How to add publications
- PUBLICATIONS_SETUP.md - Complete setup guide
- PUBLICATION_CARD_REFERENCE.md - Technical details
- UPDATES_SUMMARY.md - Previous update history
Last Updated: March 4, 2026 Status: β Complete and tested Build Status: β Successful (3.181 seconds)
