npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vanillaforums/theme-boilerplate

v3.1.4

Published

A boilerplate for Vanillaforums themes

Downloads

27

Readme

Theme Boilerplate

Description

It's a starter's kit to build Vanilla Forums custom themes. It contains all files necessary for a theme with customizable styles.

Getting Started

Node and Yarn are prerequisites to use this tool. Please download and install the latest stable release from the official Node.js download page and yarn.

Notice: It is important that you install Node in a way that does not require you to sudo.

  1. Navigate to your theme folder and add the boilerplate package:
yarn add @vanillaforums/theme-boilerplate
  1. Run the installation command:
yarn run boilerplate-install my-pretty-theme "My Pretty Theme"
  • Replace my-pretty-theme with your theme key. This should be unique and must exactly match the folder name, including capitalization. It should also follow the dashed-lower-case naming convention.
  • Replace My Pretty Theme with your theme name (keep the double quotes). This is the name that appears on the dashboard.
  1. This tool also has a build step, provided by the Vanilla CLI. This step is necessary to generate scripts and stylesheets that run in the browser. Make sure the Vanilla CLI is installed, then run the following command on the theme folder to build:
vanilla build
  1. Your theme is ready to be enabled. On your localhost navigate to Dashboard > Appearance > Themes and enable your theme.

Usage

You might want to start taking a look at src/scss/_variables.scss. There you can find most of the variables you need to customize your theme.

A good starting point is to create variables containing your brand values on the top of the _variables.scss, like colors, font family, sizes, etc. Make sure to use the $theme- namespace to keep things organized.

Once your variables are set, you may start customizing!

To know more about the boilerplate SCSS structure please visit the variables description page. There you can find information about what each variable represents, naming conventions and folder structure.

Essentially you can overwrite whatever you like but be careful! Some variables are heavily inherited and not meant to be overwritten. Doing so may break your layout.

Version

1.1.1 - Updates _variables.scss, make sure you update together with your variable sheet otherwise the build will not run. 1.1.0 - Updated default.master.tpl to solve security vulnerability.

Building Styles / Javascript / Images

The boilerplate frontend assets are built with the Vanilla CLI.