Every space-style block on a Tool Page is indexed with the space-style tag, and their CSS is applied to the client, ordered by priority. Blocks on other pages aren’t applied or indexed. See Reference/Theming/Space Style for how to write them.

Like space-lua blocks, space-style blocks configure SilverBullet rather than hold content, so you can’t attach tags to them. Commenting a block out turns it off.

Attributes

  • ref: the page the block is on and its position, as page@pos.
  • style: the CSS text of the block.
  • priority: the number from a /* priority: <n> */ comment in the block, if any.
  • range: [start, end] offsets of the block’s code within its page.

Example query, listing every style block in this space:

${query[[from index.objects("space-style") select {ref=ref, priority=priority}]]}

Loading SilverBullet…