Stylus
Metadata
Section titled “Metadata”| Repo | https://github.com/firefox-extensions-declarative/stylus-declarative |
| Extension ID | {7a7a4a92-a2a0-41d1-9fd7-1e92480d612d} |
Building
Section titled “Building”Run pnpm install and then npm run build-firefox.
To create the XPI, run the following:
cd dist-firefox/zip -r ../stylus.xpi .cd ..The XPI will be located at stylus.xpi.
The userstyle’s code.
Type: string
variables
Section titled “variables”The userstyle variables.
Type: Record<string, string>
Options
Section titled “Options”Stylus preferences. See the source code for a full list of preferences.
Type: Record<string, unknown>
Default: {}
styles
Section titled “styles”Array of styles.
Type: Array<Style>
Default: []