Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Feb 23, 2024
1 parent 29631e7 commit 6befb68
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,18 @@ Available theme properties:
- warning
- anchor

If :code:`dark` is set to None (the default), we use the setting from Jupyter Lab, VS Code or Google Colab.
In Jupyter notebook classic, or other unrecognized systems we always use the light theme.
When running in `Solara server <https://github.com/widgetti/solara/>`_, dark mode is
determined by how the `Solara server <https://solara.dev/docs/understanding/solara-server>`_ is configured.

In all cases, the `dark_effective` attribute can be used to know if the dark theme is used.

.. code-block:: python
if v.theme.dark_effective:
...
Summary
-------

Expand Down

0 comments on commit 6befb68

Please sign in to comment.