register_style

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

register_style(spec: StyleSpec) → None[source]

Register a custom preset, making it usable by name in use_style().

Parameters:

spec – The preset to register. Re-registering an existing name replaces it, so a project can ship its own house style.