---
title: Infer dark mode
component: ./InferDarkModeExample.tsx
category: basic
priority: 5
---



---

When the `Tldraw` component's `inferDarkMode` is true, the editor will infer its initial theme based on the user's system preferences, if available. You can toggle the dark mode by pressing `Command + /`.
