wsm-fonts

1.0.1 • Public • Published

Webstudio Fonts Module

This module adds custom fonts to web apps built with Webstudio

Webstudio Module Fonts

Testing and Building Module

npm i
npm run test
npm run build

Publish to NPMJS

npm publish

Importing Dependency in Webstudio

Add it to the project, this is compatible with grapesjs as well.

npm i --save wsm-fonts@latest

To import in the editor add the file and include it as a Plugin

import WSMFonts, { WSMFontStyles } from "wsm-fonts"

const editor = grapesjs.init({
    container: "#gjs",
    plugins: [
        WSMFonts
    ],
    canvas: {
        styles: [
            ...WSMFontStyles
        ],
    }
})

/wsm-fonts/

    Package Sidebar

    Install

    npm i wsm-fonts

    Weekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    12.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • gianksp