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

@nousantx/tenoxui-image-generator-config

v0.2.0

Published

The bundled TenoxUI configuration of code-to-image generator

Downloads

3

Readme

Code-to-Image app

Generate image from html DOM.

Style Guide

Add your first object

Adding simple red square box by adding class names like this:

<div class="box-200px bg-red-500"></div>

The box- is the shorthand for css properties width and height, and 200px is the value for both of them.

Shorthands

Under properties.js, you can add class name prefix or shorthand for css properties or variables to make it easier to writing your style.

Example:

const property = {
  bg: 'backgroundColor', // => background-color: {value};
  text: 'color', // => color: {value};
  box: ['width', 'height'], // => width: {value}; height: {value};
  'my-var': '--my-var-color', // => --my-var-color: {value};
  gradient: {
    property: 'backgroundImage',
    value: 'linear-gradient(to right, {0}, blue)'
    // => background-image: linear-gradient(to right, {value}, blue)
  }
}

Usage:

<div class="bg-black"></div>
<div class="text-white"></div>
<div class="box-200px bg-red"></div>
<div class="my-var-blue text-$my-var-color"></div>
<div class="box-200px gradient-red"></div>

Without shorthands, your class names will looks like this:

<div class="[background-color]-black"></div>
<div class="[color]-white"></div>
<div class="[width,height]-200px [background-color]-red"></div>
<div class="[--my-var-color]-blue [color]-$my-var-color"></div>
<div class="[width,height]-200px [background-image]-[linear-gradient(to_right,_red,_blue)]"></div>

Aliases

In values.js file, you can add value aliases.

Example:

const values = {
  full: '100%',
  'my-size': 'calc(20px + 2rem)',
  'its-not-red': 'blue',
  'my-bg': 'linear-gradient(to right, red, blue)'
}

Usage:

<div class="[width]-full"></div>
<div class="bg-its-not-red"></div>
<div class="box-my-size bg-red"></div>
<div class="box-200px bg-my-bg"></div>

Creating Utility-first & Utility-class

In classes.js file, you can define your utility classes easily.

Example:

import { merge, transformClasses } from '@nousantx/someutils'

// will transformed into utility-first based
const utilityClasses = transformClasses({
  center: {
    display: 'flex',
    justifyContent: 'center',
    alignItems: 'center'
    /*
     * .center {
     *   display: flex;
     *   justify-content: center;
     *   align-items: center;
     * }
     */
  },
  border: {
    '--border-color': 'currentColor',
    borderWidth: '1px',
    borderStyle: 'solid',
    borderColor: 'var(--border-color)'
    /*
     * .border {
     *   --border-color: currentColor;
     *   border-width: 1px;
     *   border-style: 1px;
     *   border-color: var(--border-color);
     * }
     */
  }
})

const utilityFirst = {
  display: {
    flex: 'flex', // .flex { display: flex }
    iflex: 'inline-flex' // .iflex { display: inline-flex }
    // ...
  },
  fontSize: {
    'text-xs': '12px',
    'text-2xl': '4rem'
    // ...
  },
  fontWeight: {
    'font-medium': '500',
    'font-normal': '400'
    // ...
  },
  // You can also stacking the class name to make it similar to regular css.
  // Example: We already define `text-2xl` to set the font-size, and now lets add the lineHeight as well.
  lineHeight: {
    'text-2xl': '1.2' // .text-2xl { font-size: 4rem; line-height: 1.2; }
  }
}

// merge the classes with custom merge function
const classes = merge(utilityFirst, utilityClasses)

Usage:

<div class="box-200px center border text-2xl">Hello</div>
<div class="iflex text-sm font-medium"></div>

And you can actually apply the prefixes as well. Example:

<div class="box-200px text-2xl hover:center focus:border">Hello</div>
<div class="flex hover:iflex text-sm hover:text-2xl font-medium hover:font-normal"></div>

Adding Colors

Under color.js file, you can modify or add the colors you want, but make sure the color is neutral (not too light or dark).

The color you included will generated as 11 shades color (50, 100, ..., 950). So, you dont have to worry aboud finding good color shades yourself.

Usage:

const color = {
  red: '#fbe0e0', // too light
  red: '#3a0404', // too dark
  red: '#e44949', // nice

  primary: '#3e8aea', // not too light or dark
  // other color name
  'my-awesome-color': '#af49e4'
}

You can access the color value by using it in the class name like this:

{properties}-{colorName}-{shade}

Example:

<div class="text-primary-950 bg-primary-50"></div>
<div class="bg-red-500"></div>
<div class="bg-my-awesome-color-300"></div>

Adding Global Styles

Under global.js file, you can add styles for custom selector from string.

You can define the styles like this:

({selector}): {styles};

Example:

const globals = `
  (body): bg-neutral-100 m-0;
  (.wrapper): w-mx-1200px mx-auto p-1rem;
  (.wrapper .title): fs-2.5rem fw-600;
`

NOTE: The defined styles will later included into <html> tag's child attribute, this is tenoxui attributify feature to give styles for child elements. And if you put the string inside <html> tag, the styles is accessible to all elements.

Example:

<html child="(body): bg-red;">
  ...
</html>