# typicode/mistcss

Create visual components for React without JavaScript or TypeScript.  Leverage native HTML and CSS. It's an alternative to CSS-in-JS and CSS modules.

Repository: https://github.com/typicode/mistcss
Canonical: https://ross.abutalabs.com/products/mistcss
Language: JavaScript
License: MIT
License Family: permissive
Topics: css, css-in-js, next, nextjs, react, remix, remix-run, styling
Last push: 2026-02-13T11:39:35+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 40, longevity 65
- inputs: {"age_days": 920, "days_push": 201, "days_rel": 636, "gap_med": 6, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1639, forks 58 (observed 2026-08-28T04:05:15.214781+00:00)

## What it is
MistCSS is a styling tool that lets you create reusable React visual components using only native HTML data-attributes and CSS, with no JavaScript or TypeScript component code. It generates TypeScript declaration files from your CSS to provide type safety and autocomplete while producing zero runtime overhead.

## Use cases
- style react components without css-in-js
- create reusable button and input components with pure css
- get typescript autocomplete for css data attributes
- reduce javascript bundle size from styling code
- replace css modules with zero-runtime styling
- use native css nesting for component variants

## When to choose
- you want zero-runtime styling with no javascript component wrappers
- you prefer writing plain html and css over styled-components or css modules
- you want type safety for component props without writing typescript
- bundle size and debugging simplicity matter more than complex styling logic

## When to avoid
- you need complex component logic, state, or event handling inside styled components
- your project relies heavily on dynamic runtime theming or javascript-driven styles
- you need broad browser support for css nesting in older environments

## Facets
- artifact type: library
- maturity: active
- function: css-framework, ui-components, frontend-framework
- domain: web-development, frontend, web-design
- platform: -
- tags: css-in-js-alternative, zero-runtime, data-attributes, type-safety, react, nextjs, remix, nodejs, web-server

## Member repositories
- typicode/mistcss (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:15.214781+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-30T03:46:31.917331+00:00, confidence not recorded.
  - readme: https://github.com/typicode/mistcss (fetched 2026-08-28T04:05:15.214781+00:00, sha b99f127e418a)
  - registry_npm: https://registry.npmjs.org/mistcss (fetched 2026-08-29T11:19:48.050037+00:00, sha a2af094ceece)
- Data as of 2026-08-30T08:39:29.467469+00:00.
