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 🙏

© 2026 – Pkg Stats / Ryan Hefner

afrikit

v0.0.8

Published

Afrinvest Design System

Downloads

7

Readme

Afrikit Tailwind CSS Configuration

This package provides a custom Tailwind CSS configuration with an extended color palette, custom spacing, and additional utilities.

Usage

To use this configuration in your Tailwind CSS project, follow these steps:

  1. Install this package in your project:
npm i afrikit
  1. In your tailwind.config.js file, import and spread the custom config:
const customConfig = require('@afrinvest/afrikit');

module.exports = {
  ...customConfig,
  // You can override or extend the custom config here
  theme: {
    ...customConfig.theme,
    // Add your own theme customizations
  },
  // Add your own plugins or extend the existing ones
  plugins: [
    ...customConfig.plugins,
    // Your additional plugins
  ],
}

Features

Extended Color Palette

This config includes an extensive color palette with light and dark variants, as well as alpha (transparent) versions. Colors are organized into categories such as accent, neutral, success, error, warning, and info.

Example usage:

<div class="bg-accent-9 text-neutral-12">
  Accent background with neutral text
</div>

Dark Mode

This configuration supports dark mode out of the box. It uses Tailwind's dark mode feature, which can be triggered by adding a dark class to the html or body tag, or by using the prefers-color-scheme media query.

Example usage:

<div class="bg-white dark:bg-neutral-900 text-black dark:text-white">
    This div will have a white background and black text in light mode,
    and a dark background with white text in dark mode.
</div>

Custom Spacing

The config provides a custom spacing scale, including additional sizes beyond Tailwind's defaults.

Example usage:

<div class="p-md mb-xl">
  Custom padding and margin
</div>

Typography

Custom font sizes and line heights are included, with descriptive names for different text styles.

Example usage:

<h2 class="text-h2">Heading 2</h2>
<p class="text-body1">Body text</p>

Border Radius

Extended border radius options are available, including maximum values for each size.

Example usage:

<div class="rounded-md-max">
  Rounded corners with maximum medium radius
</div>

Shadows

<div class="shadow-md">
    Medium shadow
</div>

Customization

You can further customize the configuration by extending or overriding values in your own tailwind.config.js file. Refer to the Tailwind CSS documentation for more information on customization.

Setting up with React Native Expo and NativeWind

To use this custom Tailwind configuration with React Native Expo and NativeWind, follow these steps:

  1. Create a new Expo project (if you haven't already):
npx create-expo-app MyApp
cd MyApp
  1. Install NativeWind and its dependencies:
npm install nativewind
npm install --dev tailwindcss
  1. Install this custom Tailwind config package:
npm install @your-org/custom-tailwind-config
  1. Create a tailwind.config.js file in your project root and add the following content:
const customConfig = require('@afrinvest/afrikit');

/** @type {import('tailwindcss').Config} */
module.exports = {
  ...customConfig,
  content: [
    "./App.{js,jsx,ts,tsx}",
    "./screens/**/*.{js,jsx,ts,tsx}",
    "./components/**/*.{js,jsx,ts,tsx}"
  ],
  theme: {
    ...customConfig.theme,
    // Add any additional theme customizations here
  },
  plugins: [
    ...customConfig.plugins,
    // Add any additional plugins here
  ],
}
  1. Create a babel.config.js file in your project root (or modify the existing one) with the following content:
module.exports = function(api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: ["nativewind/babel"],
  };
};
  1. Now you can use Tailwind CSS classes in your React Native components, leveraging the custom configuration provided by this package. Remember to use the className prop instead of style when applying Tailwind classes to your components.

Example usage:

<View className="bg-neutral-100 dark:bg-neutral-900 p-md">
  <Text className="text-body1 text-accent-11 dark:text-accent-dark-11">
    This text uses custom colors and typography from the configuration.
  </Text>
</View>