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

@crashtech/torque-ui

v0.1.2

Published

Zero-JavaScript CSS framework: no build, no SCSS, no runtime. Native HTML does the interactivity, one variable re-themes everything, and every state your own script sets is already styled.

Downloads

321

Readme

Description

Torque UI is a CSS framework with no build step, no SCSS and no JavaScript: link one stylesheet and every element, component, layout and utility is ready. Interactivity comes from the platform itself — hidden checkboxes and radios, <details>, the popover attribute, <dialog> — driven by :has(), :checked and cascade layers, so tabs, menus, drawers and modals work without a single script. The whole palette derives from one brand color, nine @layers settle precedence without !important, and WCAG AA contrast, visible focus rings, dark mode, reduced motion and forced colors are the default.

Where the platform stops, the framework stays JS-friendly rather than shipping script. Every state your own code would set is already styled: aria-selected, aria-expanded, aria-busy, aria-invalid, hidden, inert, a data-* attribute or a class all paint the same thing, and value hooks such as --tui-progress-value read themselves from aria-valuenow. A searchable combobox with tags (.tui-combobox), a listbox, a calendar grid, drag-and-drop states and a loading button are all there — you plug in the twenty lines of JavaScript that fit your app, and the docs show the minimal version of each. Sections built this way carry a self-driven JS label.

Experimental. This is version 0.1. Class names and markup contracts may still change between minor versions while the API settles, and a few components lean on CSS features that only Chrome ships today (they degrade rather than break — see Browser Support). Feedback and issues are very welcome.

Installation

There is nothing to install in the package-manager sense. Copy the bundle into your project and link it:

<link rel="stylesheet" href="tui-all.css">

dist/tui-all.css is a single flat file — one @layer declaration followed by nine layer blocks — and the right choice for production. The modular entry point, src/tui.css, @imports every source file into its layer, for developing against the framework or for a bundler that resolves @import and lets you drop modules:

<link rel="stylesheet" href="src/tui.css">

Re-theme everything by overriding one variable:

:root {
  --tui-brand: #e11d48;
}

Tints, semantic tones, surfaces, shadows and every auto-picked foreground follow from it. Each component also exposes its own --tui-<name>-* custom properties with token fallbacks; they are listed on the component's page.

Usage

The documentation lives at torque.dev/ui, one page per topic, each pairing the exact markup with a reference table; its source is the Markdown under docs/. The example pages under examples/ show every component on one page each — run npm start and open http://localhost:8081/examples/.

Getting Started

Foundations

One brand color, a handful of scales, and every component reads them.

Elements

Plain HTML that already looks right, no classes required.

Components

Interactivity from native HTML alone — not a single script ships with it.

Forms

Native controls, restyled; errors only when the user has actually been there.

Interactive

Tabs, menus, dialogs and drawers driven by :checked, popover and dialog — no script.

Layout

Gap, not margins — components carry no outer spacing of their own.

Utilities

Single-purpose classes that win over any component.

Themes

Dark mode, contrast, motion, print — the user preferences honored by default.

docs/comparison.md measures the coverage against Bootstrap, Bulma, Semantic UI, Fluent UI and Tabler and lists what still needs script on your side.

Browser Support

The floor is Chrome 123 / Safari 17.5 / Firefox 128: :has(), @layer, CSS nesting, color-mix(), relative color syntax, light-dark(), :user-invalid, the popover attribute and <details name> are used unconditionally.

Everything newer enhances progressively — the feature sits behind @supports, or the component has a documented soft degradation — so below its own floor a component still works and only loses the enhancement. The main ones:

| Feature | Needs | Below the floor | |---|---|---| | Anchor positioning (popover, tooltip, combobox list, speed dial) | Chrome 125 / Safari 26 | Popovers become a bottom sheet; tooltips sit above their trigger | | commandfor / command="show-modal" (modal) | Chrome 135 / Safari 26 / Firefox 144 | One line of JavaScript calls showModal(); closing, Escape, focus trap and backdrop need nothing | | @starting-style and allow-discrete (entry and exit fades) | Chrome 117 / Safari 17.4 / Firefox 129 | Elements appear and disappear without the fade | | appearance: base-select (rich select, icon options) | Chrome 134 | The native <select> popup | | Typed attr() (values read from aria-valuenow / data-value) | Chrome 133 | Set the custom property directly from your script | | field-sizing: content (auto-growing textarea) | Chrome 123 / Safari 26 | Fixed size with a resize handle | | text-box: trim-both (leading trim) | Chrome 133 / Safari 18.2 / Firefox 154 | Text keeps its half-leading; boxes are a few pixels taller | | interpolate-size, ::scroll-marker, scroll-driven animations, @view-transition | Chrome 131 / 135 / 115 / 126 | Content snaps, dots take over, no progress bar, no page transition |

The full table with every component's floor is on the Browser Support page.

How to Contribute

To start, simply fork the project and install the tooling (the first npm test fetches the Chromium build the tests run in):

npm install
npm start          # serves the repository on http://localhost:8081

Edit the CSS under src/ (one file per component, imported into its layer from src/tui.css), rebuild the bundle and run the checks:

npm run lint:css   # stylelint, logical properties, no !important
npm run build      # regenerates dist/tui-all.css in the entry point's order
npm test           # Playwright: behavior, accessibility, RTL, print, visual and bundle-equivalence suites

Every component has a docs page under docs/, an example on one of the examples/ pages and a test; a change to any of them should carry the other two. Finally, fix and send a pull request.

License

Copyright © 2026- Carlos Silva. See The MIT License for further details.