Skip to content

Set Theme ‚Äč

This method allows to change Slithe theme dynamically.

typescript
import { setTheme } from 'slithe';
import primer from '@slithe/primer';

setTheme('light', primer);