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

@risemaxi/sentra

v0.0.21

Published

The Design tokens for The Rise Design System 3.0

Readme

Sentra

The Design tokens for The Rise Design System 3.0

Getting Started

To install:

bun install @risemaxi/sentra

Then,

in your tailwind.config.js, add it as a preset:

import sentra from "@risemaxi/sentra";

module.exports = {
  presets: [sentra],
};

Usage

<View className="text-body-large bg-black-to-white text-white-to-black py-xs px-xl rounded-lg">Hello, world!</View>

Colors

Sentra includes the color token from the design system. To add more colors include it in the extend property in your tailwind.config.js. To add dark theme variant of a color token, add a darkColors property in the extend property.

import sentra from "@risemaxi/sentra";
/** @type {import('tailwindcss').Config} */
export default {
  presets: [sentra],
  content: ["./src/**/*.ts", "./README.md"],
  darkMode: "class",
  theme: {
    extend: {
      colors: {
        "green-to-blue": "#0f0",
      },
      darkColors: {
        "green-to-blue": "#00f",
      },
    },
  },
};

In React Native where styles are not inherited and you don't have access to the currentColor keyword in CSS. You can use the text-var-[color] utility to make the color available to the children. The children can then style based on that.

Example:

<View className="text-var-grey-50-700">
  <SVG className="fill-var" />
  <Text className="text-var">I'm Grey!</Text>
</View>

Typography

Sentra includes the RDS typography. It does this by stripping off the font details (family, size, weight, style) and duplicate identifiers on the token.

For example, Body/Worksans/L/Large 16 Medium token becomes text-body-large after because we've stripped off the Worksans (font family), L (duplicate identifier), 16 (font size), medium (font weight).

Alt-Body/Tomato/Large/Large 16 Medium Slanted becomes text-alt-body-large.

To specify the font weight for a typography variant, use the forward slash modifier to include the font family. For example Alt-Body/Tomato/Large/Large 16 Medium becomes text-alt-body-large/medium.

And for slanted/italicised variants, use the italic utility.

Alt-Body/Tomato/Large/Large 16 Slanted Semibold would be represented as "text-alt-body-large/semibold italic".

Note that the typography uses Tomato Grotesk for the headline, display and alt-body tokens and Work Sans for the alt-headline and other body typography. You need to have these set up in your project or configure the font family of the typography as described below.

To change the default font families for the typography, add a typography field to your theme.extend, then include the bodyFont, headingFont, altBodyFont and altHeadingFont fields with the font family to use.

import sentra from "@risemaxi/sentra";
/** @type {import('tailwindcss').Config} */
export default {
  presets: [sentra],
  content: ["./src/**/*.ts"],
  darkMode: "class",
  theme: {
    extend: {
      typography: {
        bodyFont: '"Work Sans"',
        headingFont: '"Clash Grotesk"',
        altBodyFont: '"Work Sans"',
        altHeadingFont: '"Roboto"',
      },
    },
  },
};