---
title: COLOR_MODE_SCRIPT
description: >-
  Inline `<head>` script. Pins the stored mode on <html> before first paint so
  dark readers never see a light flash. Without a stored mode the OS decides
  through `color-scheme: light dark`.
updated_at: '2026-10-29T02:28:30+01:00'
created_at: '2026-09-25T10:30:03+02:00'
symbol:
  kind: variable
  name: COLOR_MODE_SCRIPT
  signatures:
    - 'const COLOR_MODE_SCRIPT: string'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/color-mode.ts#L11
---

# COLOR_MODE_SCRIPT
