🎨 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

ButtonLight Mode ColorDark Mode ColorIcon LibraryPurpose
arXiv#b31b1b#ff6b6bAcademiconsPreprint server
DOI#FFB81C#FFD700AcademiconsOfficial DOI (NEW!)
Code#5cb85c#5cb85cFont AwesomeGitHub repo
BibTeX#6b62d2#b8b0ffCustomCitation 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

  1. Line 24: Changed DOI icon from fa fa-file-pdf-o to ai ai-doi
  2. Lines 199-220: Added dark mode styles for arXiv button
  3. Lines 222-244: Updated DOI button colors to golden yellow + added dark mode styles
  4. 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

  1. Official DOI Branding: Uses the official DOI icon and colors
  2. Better Dark Mode UX: Optimized colors for both light and dark preferences
  3. Improved Contrast: Different shades ensure readability in all conditions
  4. Professional Look: Golden DOI icon adds prestige to publications
  5. 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)