Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@pantheon-systems/wordpress-kit

Package Overview
Dependencies
Maintainers
6
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pantheon-systems/wordpress-kit

Pantheon Decoupled Kit's WordPress Kit

latest
Source
npmnpm
Version
3.1.3
Version published
Maintainers
6
Created
Source

Pantheon Systems WordPress Kit

Utilities to help simplify the process of sourcing data from a WordPress backend for a Front-End Site hosted on Pantheon.

Installation

To install this package to use in your application:

npm install @pantheon-systems/wordpress-kit

Usage

Modules can be imported or required from the @pantheon-systems/wordpress-kit package.

GraphQLClientFactory

  • Import the module in your JavaScript application:
    import { GraphQLClientFactory } from '@pantheon-systems/wordpress-kit';
    
  • Create an instance of the client and specify your API:
    const client = new GraphQLClientFactory(
    	'my.wordpressbackend.com/wp/graphql',
    ).create();
    

TailwindcssPlugin

  • Import the plugin to your tailwind.config.js file
    const { tailwindcssPlugin } = require('@pantheon-systems/wordpress-kit');
    
  • Add the plugin to your plugins array:
    /** @type {import('@pantheon-systems/wordpress-kit').TailwindcssConfig} */
    module.exports = {
      content: [ ... ],
      theme: { ... },
      plugins: [tailwindcssPlugin],
    };
    
  • (Optional) Extend the plugin or override the theme. See Extending the Default Theme for more information.

API Reference

To see the API reference, visit our docs site

Contributing

Please see the Contributing guide in our monorepo for more information on contributing to the project.

FAQs

Package last updated on 14 Dec 2023

Did you know?

Socket

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.

Install

Related posts