Dynamic offers beautiful themes in both light, dark, or auto themes with the ability to customize the colors and styles to your liking, all through your developer dashboard. Simply go to the design page in your dashboard and toggle from the current list of settings (more customizations will be coming soon). You can toggle between:Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
- Themes
- Light and dark theme
- Your brand color
- Subtle/Bold
Light & Dark Modes
You can manage light and dark mode in three different ways depending on your use case:Using the dashboard
You can set your theme in our Dashboard, under the “Style” heading, where you see the toggle for “Light” or “Dark”.Using DynamicContextProvider
While you can set your theme in our Dashboard, many sites support users switching between light and dark theme and it’s important that our SDK updates to match the theme of the site. You can update whether you want to show the Light or Dark theme to customers by passing a prop to DynamicContextProvider withtheme:
Using CSS directly
The root element of your application (perhapsbody) will have a data-dynamic-theme variable set. You can override this at any time to adjust the theme to light or dark mode. There is also an “auto” value which will adapt to whatever is set in prefers-color-scheme.