# linkedin/css-blocks

High performance, maintainable stylesheets.

Repository: https://github.com/linkedin/css-blocks
Canonical: https://ross.abutalabs.com/products/css-blocks
Homepage: http://css-blocks.com/
Language: TypeScript
License: BSD-2-Clause
License Family: permissive
Topics: css, css-modules, sass
Last push: 2023-05-20T21:00:08+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3429, "days_push": 1201, "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 6290, forks 154 (observed 2026-08-28T04:09:41.381159+00:00)

## What it is
CSS Blocks is a component-oriented CSS authoring system from LinkedIn that compiles to highly optimized stylesheets using build-time static analysis of templates. It provides scoped styles, one CSS file per component, object-oriented block inheritance, and project-wide dead code elimination with a tiny runtime.

## Use cases
- write scoped component styles for a design system
- optimize CSS by eliminating unused styles at build time
- catch CSS errors at build time instead of runtime
- compose styles across components with inheritance
- reduce stylesheet size for a large web app

## When to choose
- building a design system or component library with maintainable scoped CSS
- you want statically analyzable styles with build-time error checking
- stylesheet performance and dead code elimination are priorities

## When to avoid
- you need a modern actively maintained tool - development has stalled since 2023
- your stack uses frameworks without CSS Blocks integrations
- you prefer runtime CSS-in-JS or utility-first approaches

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, build-tool, templating
- domain: frontend, web-development, web-design
- platform: cross-platform
- tags: css-optimization, scoped-styles, design-systems, static-analysis, dead-code-elimination, component-styles, nodejs, web-server

## Member repositories
- linkedin/css-blocks (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:41.381159+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-29T17:46:18.226903+00:00, confidence not recorded.
  - readme: https://github.com/linkedin/css-blocks (fetched 2026-08-28T04:09:41.381159+00:00, sha 9260d98c8d7e)
  - homepage: http://css-blocks.com/ (fetched 2026-08-29T08:43:07.568197+00:00, sha 715bc896ce36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
