🌙
Websites

Dark mode: proper dark theme design

03.11.2024
← All articles

Dark mode chosen by 70%+ users. But doing it right means more than inverting.

Base colors

Not pure black (#000) — soft (#0f172a). Not pure white — muted.

WCAG contrast

4.5:1 minimum. Verify with WebAIM.

Buttons

Light mode color may be too bright in dark.

Images

brightness:0.8 filter.

Implementation

prefers-color-scheme + JS toggle. localStorage.

Related articles

🧾 Online Shops and Fiscal Receipts: Virtual Cash Register Requirements 💻 IT Company Website: Strategy for Software Houses, Outsourcing, and Developer Services 🌾 Agriculture and Agribusiness Website: Product Catalog and B2B Sales 🧪 Medical Laboratory Website: Test Catalog, Online Booking, and Results Delivery
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓