@salty-css/webpack weekly downloads statistics
By salty-css · npm · Webpack plugins
Vite plugin for Salty CSS
@salty-css/webpack has 1,330 recorded weekly downloads on npm, an increase of 1300% over the past 30 days, ranking #1994 of 3,247 tracked listings.
About @salty-css/webpack
Salty CSS — CSS-in-JS that compiles away
Salty CSS is a build-time, type-safe CSS-in-JS library. You author styles in .css.ts files; the compiler emits real CSS, your runtime ships zero styling logic.
Get started · API index · Docs · Discord · GitHub · NPM
Features
- Build-time compilation — no runtime style injection, no FOUC, no client bundle cost.
- Framework support — Next.js (App + Pages, React Server Components, Webpack & Turbopack), React + Vite, React + Webpack, Astro.
- Type safety — TypeScript-first authoring, generated token types, an ESLint plugin.
- Design tokens & theming — static, responsive (media-bound), and conditional (data-attribute / class-bound) variables in one place.
- Templates — reusable style bundles with their own variants.
- Modifiers — custom value transformers (
'space:3'→'12px') defined in config. - Variants, compound variants, anyOf variants, default variants out of the box.
Get started
npx salty-css init
init detects your framework, installs the right packages, creates salty.config.ts, and wires the bundler plugin. Per-framework setup:
- Next.js → salty-css.dev/docs/installation —
withSaltyCss(nextConfig)innext.config.ts. Auto-detects Webpack vs Turbopack; React Server Components supported. - React + Vite → salty-css.dev/docs/installation —
saltyPlugin(__dirname)invite.config.ts. - Astro → salty-css.dev/docs/installation —
saltyIntegration()inastro.config.mjs.
React + Webpack (without Next.js) is also supported via @salty-css/webpack.
CLI
| Command | Alias | What it does |
|---|---|---|
npx salty-css init [directory] | — | Detect framework, install packages, create salty.config.ts, wire the plugin. |
npx salty-css generate [filePath] | g | Scaffold a new Salty component file. Flags: --name, --className, --tag. |
npx salty-css build [directory] | b | Compile *.css.ts files into saltygen/index.css. Not needed when the bundler plugin is running. Flags: --watch, --mode. |
npx salty-css update [version] | up | Update all @salty-css/* packages. Defaults to latest. Flags: --dir, --yes. |
npx salty-css --version | — | Print CLI version. |
Full reference: salty-css.dev/docs/cli.
Good to know
- File extensions matter.
styled,className,keyframes, and everydefineX(...)call must live in a file ending.css.ts,.css.tsx,.salty.ts,.styles.ts, or.styled.ts. The compiler ignores everything else. - Extending non-Salty components is fine —
styled(NextLink, { ... })— as long as the wrapped component forwardsclassNameto a DOM element. - Async values & functions are allowed (
base: { color: async () => 'red' }), but heavy imports inside*.css.tsslow the build. - React Server Components are supported via
@salty-css/next— no'use client'needed for styled output.
ESLint
Salty CSS ships a small ESLint plugin and matching shareable config. Two rules, both error by default, both autofixable, both scoped to Salty files (.css.ts, .css.tsx, .salty.ts, .styles.ts, .styled.ts):
@salty-css/core/must-be-exported— everystyled,className,keyframes, anddefineX*call must be exported; the compiler ignores anything else.@salty-css/core/no-variants-in-base—variantsmust be a sibling ofbase, not nested inside it.
npm i -D @salty-css/eslint-plugin-core @salty-css/eslint-config-core
Flat config (ESLint 9+):
// eslint.config.mjs
import saltyConfig from '@salty-css/eslint-config-core/flat';
export default [saltyConfig];
Legacy (.eslintrc):
module.exports = { extends: ['@salty-css/eslint-config-core'] };
Full reference → salty-css.dev/docs/eslint.
API index…
Description from the npm listing.
- salty-css
- css-in-js
- webpack
- webpack-plugin
- webpack-loader
- css
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Webpack plugins plugins
All 20 @salty-css/webpack alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@salty-css/webpack. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.