sketch/options

Defines Options to setup the runtime of sketch. The Options could right now be a style node injected in the DOM, or on a CSSStyleSheet, adopted directly on the document.

Types

pub opaque type Options

Internal use.

pub opaque type StyleSheet

Functions

pub fn document() -> Options

document cannot be used on server.

pub fn node() -> Options
pub fn shadow(root: ShadowRoot) -> Options

shadow cannot be used on server.

pub fn stylesheet_to_string(stylesheet: StyleSheet) -> String

Internal function, can be used if you need to go from a StyleSheet to a String in case you’re building on top of sketch. Used in FFI at the moment.

Search Document