Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@honkit/honkit-plugin-fontsettings

Latest version: v7.0.2

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: azu
3,534 Stars
271 Forks
5 Versions
13.6K Downloads
TypeScript Repo language

Scan summary

@honkit/honkit-plugin-fontsettings was last scanned on 28 Nov 2026 at version 7.0.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 7.0.2.
  • Downloads: 13,613 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
7.0.2 LATEST 28 Nov 2026 No rules fired
7.0.1 21 Nov 2026 No rules fired
6.2.6 15 Nov 2026 No rules fired
6.2.5 23 Oct 2026 Not shown
6.2.4 23 Oct 2026 Not shown

No rules fired in 7.0.2

Findings

Findings for v7.0.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 7.0.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@honkit-plugin-fontsettings

@honkit/honkit-plugin-fontsettings is a fork of Gitbook/plugin-fontsettings@2.0.0.

This plugin adds font settings button in the HonKit website.

The feature itself (JavaScript and CSS) is part of the default theme, so that the font settings are applied before the page is shown. This plugin enables it and defines its configuration.

Limitation: custom themes with their own theme.js

The font settings are in gitbook/theme.js and gitbook/style.css of the default theme. A custom theme that ships its own _assets/website/theme.js replaces the default gitbook/theme.js, so a book with such a theme has no font settings button and no gitbook.fontsettings API. Themes that only add CSS or templates, or that add scripts under their own file names, are not affected.

Disable this plugin

This is a default plugin and it can be disabled using a book.json configuration:

{
    plugins: ["-fontsettings"]
}
Configuration

This plugin can be configured in the book.json:

Default configuration is:

{
    "pluginsConfig": {
        "fontsettings": {
            "theme": 'white', // 'sepia', 'night' or 'white',
            "family": 'sans', // 'serif' or 'sans',
            "size": 2         // 1 - 4
        }
    }
}
Plugin API

This plugin exposes the following API to easily allow new themes to manage the plugin behavior.

All API functions are called using the prefix gitbook.fontsettings., for instance gitbook.fontsettings.enlargeFontSize().

Font manipulation
gitbook.fontsettings.enlargeFontSize()

Increases the font size of the document by one. Max value is 4.

gitbook.fontsettings.reduceFontSize()

Decreases the font size of the document by one. Min value is 1.

Font families

Each font family should be described as:

var fontFamily = {
    config: 'sans',  // name of the font family in book.json for your theme
    text: 'Sans',    // display name of the font family in menu
    id: 0            // the id appended to the CSS class for this font-family
};

The text property will be used to display the font-family name in the fontsettings dropdown menu.

The config property allows you to let the users of your theme choose a default font family in their book.json. You will have to handle setting the chosen font family in your theme's frontend JavaScript.

For instance:

// book.json
{
    plugins: ["my-theme"],
    pluginsConfig: {
        "my-theme": {
            "font-family": "sans"
        }
    }
}
// my-theme.js
require('gitbook', function(gitbook) {
    var FONT_FAMILIES = [
        {
            config: 'sans',
            text: 'Sans',
            id: 0
        },
        {
            config: 'serif',
            text: 'Serif',
            id: 1
        }
    ];

    gitbook.events.on('start', function(e, config) {
        // Read configuration
        var themeConfig = config['my-theme'],
            defaultFont = themeConfig['font-family'];

        // Initialize new font families
        gitbook.fontsettings.setFamilies(FONT_FAMILIES);
        // Set to configured font-family
        gitbook.fontsettings.setFamily(defaultFont);
    });
});

The id property lets you define a specific id to use for your CSS rules as explained below.

CSS rules

The CSS class font-family-<id> will be applied to the theme book's root element <div class="book"> when a font family is selected in the menu.

The CSS rules for the font-family can then easily be defined using the parent selector .book.font-family-<id>:

.book.font-family-<id> {
  font-family: 'My Awesome Font';
}
Managing the font families
gitbook.fontsettings.getFamilies()

Returns the currently set font families.

By default, the font families are:

// Default font families
var FAMILIES = [
    {
        config: 'serif',
        text: 'Serif',
        id: 0
    },
    {
        config: 'sans',
        text: 'Sans',
        id: 1
    }
];
gitbook.fontsettings.setFamilies()

Set the new font families configuration, as an array of font family objects, used by the plugin-fontsettings in the form:

var FONT_FAMILIES = [
    {
        config: 'sans',
        text: 'Sans',
        id: 0
    },
    {
        config: 'serif',
        text: 'Serif',
        id: 1
    }
];

gitbook.fontsettings.setFamilies(FONT_FAMILIES);

This will recreate the fontsettings menu to reflect the changes.

gitbook.fontsettings.setFamily()

Takes a font-family config key as an argument and updates the font-family used for this book.

This will basically apply the CSS class with the corresponding family id: .font-family-<id>.

Color themes

Setting and manipulating color themes follow the exact same rules as font families.

Here are the default value for the color themes in the plugin:

// Default themes
var THEMES = [
    {
        config: 'white',
        text: 'White',
        id: 0
    },
    {
        config: 'sepia',
        text: 'Sepia',
        id: 1
    },
    {
        config: 'night',
        text: 'Night',
        id: 2
    }
];
CSS rules

The applied CSS classes for color themes will be in the form: .color-theme-<id>.

Caution: No CSS class for color theme with id: 0 will be applied. Basically, the first color theme corresponds to your default theme's colors.

For instance, using the default color themes:

gitbook.fontsettings.setTheme('night');

will result in the following HTML state for the root element:

<div class="book color-theme-2">

While:

gitbook.fontsettings.setTheme('white');

will reset the HTML state for the root element:

<div class="book">
Managing the color themes
gitbook.fontsettings.getFamilies()

Returns the currently set color themes.

By default, the font families are:

// Default themes
var THEMES = [
    {
        config: 'white',
        text: 'White',
        id: 0
    },
    {
        config: 'sepia',
        text: 'Sepia',
        id: 1
    },
    {
        config: 'night',
        text: 'Night',
        id: 2
    }
];
gitbook.fontsettings.setThemes()

Set the new color themes configuration, as an array of font family objects, used by the plugin-fontsettings in the form:

var COLOR_THEMES = [
    {
        config: 'light',
        text: 'Light',
        id: 0
    },
    {
        config: 'dark',
        text: 'Dark',
        id: 1
    }
];

gitbook.fontsettings.setThemes(COLOR_THEMES);

This will recreate the fontsettings menu to reflect the changes.

gitbook.fontsettings.setTheme()

Takes a color theme config key as an argument and updates the color theme used for this book.

This will basically apply the CSS class with the corresponding theme id: .color-theme-<id>, or remove the applied CSS class if the selected theme id is 0.

License

Apache-2.0 (same as Gitbook/plugin-fontsettings)

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @honkit/honkit-plugin-fontsettings

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229