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

@bibleio/design

v2.3.0

Published

A React component and Tailwind style library for Bibleio.

Downloads

87

Readme

Banner

Design version 1.5.0 - Library version 2.3.0

UI kit for Bibleio, including React components and Tailwind configuration with color styles.

Built with Radix Primitives, other accessible React primitives, and Tailwind CSS.

Report issues or suggestions in this GitHub repo or in the Discord.

Documentation

See the Figma file for design documentation.

Soon we plan to move docs over to dev.bibleio.com/design/docs.

Installation

Install the module:

# pnpm
pnpm add @bibleio/design
# yarn
yarn add @bibleio/design
# npm
npm install @bibleio/design

Add Tailwind style preset:

// tailwind.config.ts
// Snippet of what to add
import { bibleioTheme } from '@bibleio/design'; // Add import

const config: Config = {
  presets: [bibleioTheme], // Add preset
};

Import main styles in your main layout:

import '@bibleio/design/dist/index.css'; // Import styles

Setup fonts

We use Lora for our main font.

Here are guides to setup fonts based on your framework.

Next.js (plus JetBrains Mono)

Skip to the next section if you don't need JetBrains Mono.

Import Google fonts in layout.tsx:

import { Lora, JetBrains_Mono } from 'next/font/google'; // Import fonts

const lora = Lora({ subsets: ['latin'], variable: '--font-lora' });

const jetBrainsMono = JetBrains_Mono({
  subsets: ['latin'],
  variable: '--font-jetbrains-mono',
});

Set css variables in your main body layout:

<body className="{`${lora.variable}" ${jetBrainsMono.variable}`}></body>

In tailwind.config.ts override the default font theme to add variables:

import defaultTheme from 'tailwindcss/defaultTheme'; // Add default theme import

const config: Config = {
  presets: [bibleioTheme],
  theme: {
    fontFamily: {
      serif: ['var(--font-lora)', ...defaultTheme.fontFamily.serif],
      mono: ['var(--font-jetbrains-mono)', ...defaultTheme.fontFamily.mono],
    },
  },
};

Next.js (just Lora)

Import Google fonts in layout.tsx:

import { Lora } from 'next/font/google'; // Import fonts

const lora = Lora({ subsets: ['latin'] });

Set main font as Lora in your main layout (layout.tsx):

<body className="{`${lora.classname}`}"></body>

Astro / Any other framework that supports Fontsource

Feel free to get rid of JetBrains Mono if you don't plan on using it.

Install Fontsource fonts:

# pnpm
pnpm add @fontsource/lora @fontsource/jetbrains-mono
# yarn
yarn add @fontsource/lora @fontsource/jetbrains-mono
# npm
npm install @fontsource/lora @fontsource/jetbrains-mono

Import in your main layout (Astro as an example):

---
// Layout.astro
import "@fontsource/lora/*";
import "@fontsource/jetbrains-mono/*";
---

No extra Tailwind config is needed for Fontsource.

Tailwind

The spacing system is literal, so p-32 means exactly 32px.

Dark Mode Switcher

We do not provide a dark mode swticher, because this library could be used with any frame work that accepts React, and some of them could result in a FOUC.

Changelog

Look at the releases.

License

All of Bibleio's projects are licensed under the MIT No Attribution license. You can copy, translate, modify, and distribute this resource, without restriction, and without needing to ask permission. Why? For the sake of the gospel (Matt 10:8).

Check out why you should do the same by clicking this: