Skip to content

Stylus

Repohttps://github.com/firefox-extensions-declarative/stylus-declarative
Extension ID{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}

Run pnpm install and then npm run build-firefox.
To create the XPI, run the following:

Terminal window
cd dist-firefox/
zip -r ../stylus.xpi .
cd ..

The XPI will be located at stylus.xpi.

The userstyle’s code.
Type: string

The userstyle variables.
Type: Record<string, string>

Stylus preferences. See the source code for a full list of preferences.
Type: Record<string, unknown>
Default: {}

Array of styles.
Type: Array<Style>
Default: []