Styles Module

Load styles file

Description:
Load a CSS file and add a link as type stylesheet to the main document.

{
    "type": "styles",
    "action": "load_file",
    "args": {
        "id": "my-style",
        "file": "/styles/my-style.css"
    }
}

Unload styles file

Description:
If you’ve finished working with a file that’s been loaded and wish to remove it, employ the unload_file action.

{
    "type": "styles",
    "action": "unload_file",
    "args": {
        "id": "my-style"
    }
}