# typestyle/typestyle

Making CSS Typesafe 🌹

Repository: https://github.com/typestyle/typestyle
Canonical: https://ross.abutalabs.com/products/typestyle
Homepage: https://typestyle.github.io
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, css, typestyle, css-in-js
Last push: 2023-06-24T04:03:06+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": 3611, "days_push": 1166, "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 3060, forks 87 (observed 2026-08-28T04:07:41.140346+00:00)

## What it is
TypeStyle is a small CSS-in-JS library that lets you write type-safe CSS as TypeScript objects, generating class names without any build tooling or AST transforms. It works with any frontend framework and supports pseudo classes, animations, media queries, and server-side rendering.

## Use cases
- write type-safe css in typescript
- css in js without webpack config
- generate css class names from style objects
- use styles with react or angular
- server side rendered styled components

## When to choose
- you want a tiny, zero-config CSS-in-JS solution with strong TypeScript autocomplete
- your project avoids custom build transforms or module loaders
- you need framework-agnostic styling

## When to avoid
- you prefer modern CSS-in-JS alternatives with larger ecosystems like Emotion or styled-components
- you want plain CSS files or CSS modules
- you need a library under active development - releases have slowed

## Facets
- artifact type: library
- maturity: maintenance
- function: css-framework, ui-components, ssr
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: css-in-js, typescript, type-safety, zero-config, framework-agnostic, nodejs

## Member repositories
- typestyle/typestyle (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:41.140346+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-30T07:28:26.561201+00:00, confidence not recorded.
  - readme: https://github.com/typestyle/typestyle (fetched 2026-08-28T04:07:41.140346+00:00, sha bdc3086c615f)
  - homepage: https://typestyle.github.io (fetched 2026-08-29T09:43:58.401330+00:00, sha 2366e47f3e3e)
  - registry_npm: https://registry.npmjs.org/typestyle (fetched 2026-08-29T09:43:58.410300+00:00, sha 07076fd422f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
