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);