PyBlade/ui
Menu⌄
DocsComponentsTheme script

Theme script

Applies the saved light or dark mode before the page paints. Goes in <head>.

1 file

Installation

pyblade-ui add theme-script

Usage

The tag <pb-ui.theme-script> is available in all your templates.

<pb-ui.theme-script />