# drublic/css-modal

A modal built with pure CSS, enhanced with JavaScript

Repository: https://github.com/drublic/css-modal
Canonical: https://ross.abutalabs.com/products/css-modal
Homepage: https://drublic.github.io/css-modal
Language: JavaScript
License: MIT
License Family: permissive
Topics: css, css-modal, sass, plugin
Last push: 2022-12-03T13:38:12+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": 5032, "days_push": 1369, "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 1802, forks 200 (observed 2026-08-28T04:05:38.106533+00:00)

## What it is
A library for building modal dialogs out of pure CSS, with optional JavaScript enhancements like ESC-key closing and scroll locking. It is also available as a Sass plugin and is designed to be accessible, responsive, and cross-browser.

## Use cases
- add modals to a website without heavy JavaScript
- create accessible dialog boxes with pure CSS
- responsive modal windows for mobile and desktop
- use modals as a Sass plugin with custom classes
- stackable modal dialogs
- show text, photo galleries, or iframes in a modal

## When to choose
- you want lightweight, CSS-first modals with minimal JavaScript
- accessibility and responsive behavior are priorities
- you use Sass and want to integrate modals into your stylesheets

## When to avoid
- you need a full-featured modern component library with React/Vue bindings
- you require support for very old browsers like IE7
- you need actively developed features - the project sees little recent activity

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, css-framework, plugin-system
- domain: frontend, web-development, web-design, accessibility
- platform: browser, cross-platform
- tags: modal, sass, pure-css, responsive-design, accessible-components, dialog

## Member repositories
- drublic/css-modal (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:38.106533+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:22:02.162488+00:00, confidence not recorded.
  - readme: https://github.com/drublic/css-modal (fetched 2026-08-28T04:05:38.106533+00:00, sha 40e2a9c97a7d)
  - homepage: https://drublic.github.io/css-modal (fetched 2026-08-29T11:01:03.053736+00:00, sha e4a894c094b1)
  - registry_npm: https://registry.npmjs.org/css-modal (fetched 2026-08-29T11:01:03.062847+00:00, sha cc3dc0080cbd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
