# postcss/postcss-import

PostCSS plugin to inline at-import rules content

Repository: https://github.com/postcss/postcss-import
Canonical: https://ross.abutalabs.com/products/postcss-import
Language: JavaScript
License: MIT
License Family: permissive
Topics: postcss, npm, css, modules, postcss-plugin
Last push: 2026-08-14T19:09:02+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 4418, "days_push": 19, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1411, forks 116 (observed 2026-08-28T04:04:38.947243+00:00)

## What it is
A PostCSS plugin that inlines the content of CSS @import rules, resolving files from local paths, node_modules, or web_modules. It deduplicates imports and lets downstream PostCSS plugins process the stylesheet as a single file.

## Use cases
- inline css @import rules into a single stylesheet
- bundle css files with postcss
- import css from node_modules
- deduplicate css imports in build pipeline
- process multi-file css as one ast for postcss plugins

## When to choose
- you use PostCSS and want @import inlining before other plugins run
- you need to consume CSS from node_modules or web_modules
- you want spec-compliant @import handling with duplicate skipping

## When to avoid
- you need glob imports without an extension plugin
- you need to import remote URLs natively (use postcss-import-url)
- your build tool already bundles CSS imports (e.g. webpack, Vite)

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, middleware
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: css, postcss-plugin, at-import, css-modules, bundler-utility, nodejs

## Member repositories
- postcss/postcss-import (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.947243+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:25.441475+00:00, confidence not recorded.
  - readme: https://github.com/postcss/postcss-import (fetched 2026-08-28T04:04:38.947243+00:00, sha 85ac29b920f4)
  - registry_npm: https://registry.npmjs.org/postcss-import (fetched 2026-08-29T11:51:45.279679+00:00, sha 6b6ae72b7c32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
