# esmcss

> Import .css.ts/.css.js functions & focused css helper classes from ES Modules using esbuild

Latest version **0.2.15** (published 2026-03-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install esmcss
pnpm add esmcss
yarn add esmcss
bun add esmcss
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.15 |
| Published | 2026-03-14 |
| First published | 2023-12-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brian Takita |
| Maintainers | btakita |
| Keywords | css, esm, esbuild |

## Links

- npm: https://www.npmjs.com/package/esmcss
- Repository: https://github.com/esmfile/esmcss
- Homepage: https://github.com/esmfile/esmcss#readme
- Issues: https://github.com/esmfile/esmcss/issues
- npm.io page: https://npm.io/package/esmcss

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.2.15 (latest) — 2026-03-14
- 0.2.14 — 2026-03-04
- 0.2.13 — 2024-08-31
- 0.2.12 — 2024-07-02
- 0.2.11 — 2024-06-10
- 0.2.10 — 2024-05-25
- 0.2.9 — 2024-05-17
- 0.2.8 — 2024-05-14
- 0.2.7 — 2024-05-07
- 0.2.6 — 2024-05-07
- 0.2.5 — 2024-03-20
- 0.2.4 — 2024-03-15
- 0.2.3 — 2024-03-05
- 0.2.2 — 2024-02-19
- 0.2.1 — 2024-02-19
- … 12 more at https://npm.io/package/esmcss/versions

## README

# esmcss
Import .css.ts/.css.js functions &amp; focused css helper classes from ES Modules using esbuild

## install

[//]: @formatter:off
```
npm i -D esmcss
```
[//]: @formatter:on

## usage

Build file

[//]: @formatter:off
```ts
import { build } from 'esbuild'
import { esmcss_esbuild_plugin_ } from 'esmcss'
await build({
  entryPoints: [/* source code entry point */],
  plugins: [esmcss_esbuild_plugin_()]
})
```
[//]: @formatter:on

Component file

[//]: @formatter:off
```ts
import './component.css.js'
// ... Component definition
```
[//]: @formatter:on

component.css.ts

[//]: @formatter:off
```ts
export default ()=>`
.my_component {
  color: green;
}
`
```
[//]: @formatter:on

---
_Source: https://npm.io/package/esmcss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
