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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tint-ui-core

v0.3.0

Published

The main package for generating and installing dependencies for the `tint-ui-core` library. It is intended for development use and is recommended for developers working with Tint UI.

Readme

tint-ui-core

The main package for generating and installing dependencies for the tint-ui-core library. It is intended for development use and is recommended for developers working with Tint UI.

Tint UI uses Tailwind CSS for styling and Radix UI for some interactive components.

Installation

npm install --save-dev `tint-ui-core`

Usage

Tint UI provides three basic commands:

  • init: Initializes the tint-ui setup in your project, generating necessary configuration files and installing dependencies.
  • add: Adds a new component or feature to your project.
  • create: Creates a new project or component structure based on templates.

Commands

init

npx tint-ui init

This command sets up the Tint UI environment, including theme configuration, component registration, and necessary dependencies.

add

npx tint-ui add

Displays a list of built-in components for selection. Selected components install necessary dependencies and links in the theme component.

create

npx tint-ui create <component-name>

Creates a new component structure based on predefined templates.

Main configuration file

File: components.json

This file is automatically generated with the tint-ui init command. However, if initialization fails or you need to configure everything manually, you can create the file yourself. You will also need to configure tsconfig.json for component references like @/components or another alias, and set up basic configurations in the Tailwind config and global.css.

{
	"mode": "sass",
	"ts": true,
	"tailwind": {
		"config": "tailwind.config.ts",
		"css": "app/globals.css",
		"baseColor": "blue",
		"cssVariables": true,
		"prefix": ""
	},
	"path": {
		"app": "app/layout.tsx"
	},
	"aliases": {
		"components": "@/components"
	}
}

Manual Integration

Although the ThemeContextProvider component in @/components/theme is generated automatically, you need to manually integrate it into your application's App or Layout.

Integration Example

For Next.js applications, add the provider to your root layout:

import type { Metadata } from "next";
import type { ReactNode } from "react";
import { ThemeContextProvider } from "@/components/theme";
import { getGlobalState } from "@/lib/some-function";
import "./globals.css";

export const metadata: Metadata = {
	title: "Next App",
};

export default async function Layout({ children }: Readonly<{ children: ReactNode }>) {
	const state = await getGlobalState();
	const options = {
		state,
		language: "en",
		lexicon: {},
	};
	return (
		<html>
			<body>
				<ThemeContextProvider options={options}>{children}</ThemeContextProvider>
			</body>
		</html>
	);
}

Note

While Tint UI is not mandatory after initial setup, it is recommended for development to ensure consistency and ease of use.

License

MIT