
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
respec-themeable
Advanced tools
respec-themeable is a JS library that makes it easier to customize ReSpec for writing technical specifications. ReSpec developers are done a good job but there are some minor issues when you try to use it outside of W3C context. respec-themeable provides workarounds for these problems.
specStatusrespecConfig properties<link rel="icon" sizes="any" href="..."> elementYou can view this README file formatted with ReSpec at: https://respec-themeable.github.io
Add the following script tag after your respecConfig declaration script tag:
<script src="https://unpkg.com/respec-themeable" class="remove"></script>
publisherBy default ReSpec uses W3C as an implicit publisher (ie: in background image text). respec-themeable accepts publisher from publisher configuration property.
var respecConfig = {
publisher: "My Company"
}
When no publisher property is set, respec-themeable try to find company in the properties of authors and editors otherwise it falls back to shortName configuration property value.
noPackageIf the HTML document has web manifest link, respec-themeable will use it as source of some default respecConfig properties. Otherwise respec-themeable tries to use the file package.json relative to the HTML document. You can disable package.json usage by setting noPackage to true.
var respecConfig = {
noPackage: true
}
If the HTML document has icon link with sizes="any" attribute and there is no logo in respecConfig then the href from icon link will be used as logo src.
<link rel="icon" sizes="any" href="logo.svg"/>
You can use data URL in the link's href attribute.
subtitleIf there is no subtitle in respecConfig then description property from manifest or package.json will be used as subtitle.
If there is no <title> tag in the HTML document then name property from manifest or package.json will be used as title.
shortNameIf there is no shortName in respecConfig then name property from manifest or package.json will be used as shortName.
--theme-colorThe main theme color can be set using --theme-color CSS variable.
:root {
--theme-color: red;
}
--accent-colorThe accent color can be set using --accent-color CSS variable.
:root {
--accent-color: green;
}
If there is a version property in manifest or package.json then it will be displayed under the subtitle.
If there is a bugs property in manifest or package.json then it will be set with label Issues in the otherLinks configuration property.
If there is a repisotroy.url property in manifest or package.json then it will be set with label Repository in the otherLinks configuration property.
You can use nunjucks, handlebars or mustache in data-format property (with data-include) for template processing external markdown files. Don't forget to provide script tag for selected template engine.
This project is licensed under the MIT License. See the LICENSE for details.
FAQs
Simple theme system for ReSpec
We found that respec-themeable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.