Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@stet-css/vite

Latest version: v0.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: miles0930
0 Stars
0 Forks
3 Versions
291 Downloads
TypeScript Repo language

Scan summary

@stet-css/vite was last scanned on 27 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 291 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 27 Nov 2026 No rules fired
0.1.0 17 Nov 2026 No rules fired
0.0.0-stage 17 Nov 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@stet-css/vite

Vite plugin for StetCSS.

Installation

npm install @stet-css/vite

Usage

import stetCSS from '@stet-css/vite'

/** @type {import('vite').UserConfig} */
const config = {
  plugins: [
    stetCSS()
  ]
}

export default config

Import the default stylesheet from the CSS entry your app already loads:

@import '@stet-css/core';

The build writes the rules for the classes in your source into that stylesheet. The plugin only builds static CSS: it adds no runtime script and no hidden attribute to your HTML. If your HTML has a hand-written hidden on <html> for runtime rendering, remove it: the plugin never removes it, so the page would stay blank.

Client types

Add the client type reference when TypeScript source files import StetCSS virtual manifest, emittedGlobals, or generated CSS modules:

/// <reference types="vite/client" />
/// <reference types="@stet-css/integration/client" />

StetCSS imports

Import the generated stylesheet from a source stylesheet.

@import '@stet-css/core';

Classes come from the project's own source files, plus @source files, minus @source not files, plus @safelist, minus @blocklist, so templates that only a server build compiles, such as Astro pages, get their rules. The plugin does not collect classes from Vite's module graph, so classes that appear only in node_modules, outside the Vite root, or only in code another plugin generates need @source or @safelist; for example, src/style.css adds a component library with @source "../node_modules/my-ui/dist"; (paths are relative to the stylesheet). In dev, the plugin updates the CSS when a file it reads is added, changed or removed; a new file under an @source pattern outside the Vite root is picked up after the next change to a watched file or a restart.

Source stylesheets that import @stet-css/core keep all of their native CSS, the same as any other CSS file, and the import inserts generated StetCSS.

Runtime input imports

The plugin exposes canonical project-level runtime input modules:

import manifest from 'virtual:stet-css-manifest'
import emittedGlobals from 'virtual:stet-css-emitted-globals'

Use these virtual modules when application code should receive the same manifest graph and emittedGlobals global CSS state that the plugin discovered from the project CSS entry. The plugin never loads the runtime itself: to run it, import @stet-css/runtime and pass it both modules, as examples/lit does.

Options

stetCSS({
  adapters: [{
    name: 'markdown-attributes',
    test: /\.md$/,
    async extract({ content }) {
      // `{.fg:red .bold}` attribute lists
      return [...content.matchAll(/\{\.([^}]*)\}/g)].flatMap((match) => match[1].split(/\s+\.?/))
    }
  }]
})
Option Type Default Description
adapters SourceAdapter[] [] Custom source adapters. For each file the class set reads, the first adapter whose test matches extracts its classes, custom ones before the built-in ones.

adapters is the only option. Any other key throws and names adapters; a removed key such as mode, injectRuntime or scanner names its replacement, and class rules (@safelist, @blocklist, @source, @source not) go in the CSS entry. An adapter sees the files the class set reads: the project's source files and the entry's @source files.

See examples/vite for a full project setup.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @stet-css/vite

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229