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

scripture-styles

v1.6.0

Published

SASS and CSS styles for API.Bible Scripture Output

Downloads

88

Readme

Overview

This repo contains base style sheets intented to be used on scripture content return from API.Bible. For examples of all the styles and formatting used, see examples.

All the HTML content returned from API.Bible uses classnames that follow USX styles.

Usage

To use this package directly in your app, install with NPM.

npm install --save scripture-styles

Then import into your index file.

import "scripture-styles/dist/css/scripture-styles.css";

Wherever you display scripture content from API.Bible on your site, just make sure it's wrapped in a div with class="scripture-styles".

<div class="scripture-styles">
  {apiBibleResponse.data.content}
</div>


## CDN

If you prefer to reference this directly from the CDN add the following to your page.

```html
<link
  rel="stylesheet"
  href="https://assets.api.bible/css/scripture-styles.css"
/>

Source Order

We've worked hard to make sure that the scripture styles do not collide with other styles on your site. That being said, it's important that it comes last in the source order whether that is last in a Sass import or last when linking to the CSS file.

Choose an Output Style

We've chose to use :nested as the style for the main css file. It's nice and easy to read. We've used :compressed on the minified css file. If you want to go straight into production just grab the minifed version.

If you need to rebuild the css you can run.


npm run build

Or individually:

nested

npm run build-nested

compressed

npm run build-nested

gzip

npm run gzip

Preview Tool

First add your API.Bible key to previewer/.env. See .env.sample for format. If you need a key, you can Sign Up Here.

Then, to run the preview tool

cd previewer
npm install
npm start

New stories can be added to stories/stories.js.