Skip to content

Allow users to pass in additional options #24

@jneug

Description

@jneug

It would be nice to allow arbitrary options to be passed to #show-module that are available to themes in #style-args.options. This would allow themes to define custom options beyond the ones Tidy offers for further customization of the output. For example, a theme could allow users to pass in a primary color, that changes the style of the output.

I see two possible implementations:

  1. #show-module collects any unknown named arguments into #style-args.options.
  2. #show-module accepts a new parameter theme-options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-for-typesRequires user-defined types to be available in Typst

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions