InitSilkContext

constructor(config: MutableSilkConfig, stylesheet: SilkStylesheet, theme: MutableSilkTheme)(source)

Parameters

config

A handful of settings which will be used for configuring Silk behavior at startup time.

stylesheet

A handful of methods for registering styles, etc., against Silk's provided stylesheet.

theme

A version of SilkTheme that is still mutable (before it has been frozen, essentially, at startup). Use this if you need to modify site global colors, shapes, typography, and/or styles.