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

@oracle/ojet-theme-cli

v21.0.0

Published

Oracle JET Theme CLI

Downloads

70

Readme

Oracle JET Theme CLI (@oracle/ojet-theme-cli)

A CLI tool for generating CSS variables via vanilla-extract from type-safe token files for Oracle JET Core Pack.

Features

  • Token-driven, type-safe color palettes for light and dark schemes
  • Generates CSS variables with stable names

Requirements

  • Node >= 18

Quick start

Install

  • Global install (recommended):
    npm i -g @oracle/ojet-theme-cli
    # or
    yarn global add @oracle/ojet-theme-cli

Usage

  1. Initialize a token file (from any directory)
  • Full template (commented examples) or blank template
  • Use --force to overwrite an existing file
# Full template (default)
ojet-theme-cli init -o tokens.ts
# Explicitly choose full template
ojet-theme-cli init --full -o tokens.ts
# Blank template
ojet-theme-cli init --blank -o tokens.ts
# Overwrite if file exists
ojet-theme-cli init -o src/theme/tokens.ts --force
  1. Edit your token file
  • After running init, be sure to open tokens.ts and fill in some values for your theme tokens. Your token file must export a tokens object of type ThemeTokens.
  • Example (partial):
// tokens.ts
export const tokens: ThemeTokens = {
  palette: {
    light: {
      brand: {
        '100': '34,126,158',
        '110': '14,114,149'
      }
    },
    dark: {
      neutral: {
        '0': '0,0,0',
        '200': '255,255,255'
      }
    }
  }
};
  1. Generate CSS from tokens (from any directory after install)
  • If the file is empty or contains only comments, the generate step will fail.
ojet-theme-cli generate -i tokens.ts -o theme.css
# with custom paths
ojet-theme-cli generate -i src/theme/tokens.ts -o public/theme.css

What gets generated

  • Variables are created with a stable prefix ("oj-c-") and path-based names
  • Selectors:
    • Light: :root, .oj-c-colorscheme-light
    • Dark: .oj-color-invert, .oj-c-colorscheme-dark
  • This will produce an override CSS file to be used alongside the base theme CSS file. Due to CSS specificity, your declarations must be loaded after the JET declarations for them to take effect.

Notes on dependencies

  • You can run ojet-theme-cli from any directory (global usage supported).
  • To get TypeScript typings while editing your token file, you'll need to locally install @oracle/ojet-theme-cli within your project. The CLI can still compile regardless.