# rtfeldman/elm-css

Typed CSS in Elm.

Repository: https://github.com/rtfeldman/elm-css
Canonical: https://ross.abutalabs.com/products/elm-css
Homepage: https://package.elm-lang.org/packages/rtfeldman/elm-css/latest
Language: Elm
License: BSD-3-Clause
License Family: permissive
Last push: 2024-04-01T22:10:10+00:00

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

## Adoption (not part of the score)
Stars 1256, forks 198 (observed 2026-08-28T04:04:08.962475+00:00)

## What it is
elm-css is an Elm library for defining CSS with typed, composable functions instead of raw stylesheets. It provides locally scoped styles, reusable style mixins, and styled HTML elements that compile to real CSS.

## Use cases
- write type-safe CSS in Elm applications
- create locally scoped styles without class name collisions
- define reusable style mixins and themed components
- style Elm HTML views inline with hover states
- avoid runtime CSS parsing by generating styles at compile time

## When to choose
- you are building an Elm frontend and want compile-time-checked styling
- you need scoped CSS with reusable, composable style definitions
- you prefer styling colocated with Elm view code over separate stylesheets

## When to avoid
- your project does not use Elm
- you want a complete departure from CSS semantics, in which case elm-ui may fit better
- you need a framework-agnostic styling solution for non-Elm codebases

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ui-components, templating
- domain: frontend, web-development, web-design
- platform: browser, cross-platform
- tags: elm, typed-css, css-in-code, styling, scoped-styles, web-server

## Member repositories
- rtfeldman/elm-css (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.962475+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-30T05:07:17.565390+00:00, confidence not recorded.
  - readme: https://github.com/rtfeldman/elm-css (fetched 2026-08-28T04:04:08.962475+00:00, sha 433dfdfcfc17)
  - homepage: https://package.elm-lang.org/packages/rtfeldman/elm-css/latest (fetched 2026-08-29T12:17:35.653466+00:00, sha 520b21a9033a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
