{"id":16346550,"url":"https://github.com/madeleineostoja/laggard","last_synced_at":"2025-08-21T09:09:29.206Z","repository":{"id":42203318,"uuid":"44222277","full_name":"madeleineostoja/laggard","owner":"madeleineostoja","description":"Automatically generate CSS fallbacks for legacy browsers, built on PostCSS","archived":false,"fork":false,"pushed_at":"2022-04-10T16:30:38.000Z","size":85,"stargazers_count":24,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T09:41:28.438Z","etag":null,"topics":["css-fallbacks","legacy-browsers","postcss","postcss-plugins"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madeleineostoja.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-14T03:42:19.000Z","updated_at":"2024-05-05T07:01:44.000Z","dependencies_parsed_at":"2022-08-12T09:20:34.442Z","dependency_job_id":null,"html_url":"https://github.com/madeleineostoja/laggard","commit_stats":null,"previous_names":["seaneking/laggard"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/madeleineostoja/laggard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Flaggard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Flaggard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Flaggard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Flaggard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madeleineostoja","download_url":"https://codeload.github.com/madeleineostoja/laggard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Flaggard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271455356,"owners_count":24762703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css-fallbacks","legacy-browsers","postcss","postcss-plugins"],"created_at":"2024-10-11T00:35:36.885Z","updated_at":"2025-08-21T09:09:29.185Z","avatar_url":"https://github.com/madeleineostoja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laggard\n[![NPM version][npm-badge]][npm-url] [![Downloads][npm-downloads]][npm-url]  [![Build Status][travis-badge]][travis-url]\n\nLaggard automatically generates safe CSS fallbacks for legacy (\u003cIE9) browsers. It's built on [PostCSS][postcss].\n\nLaggard does not transpile future CSS syntax. For that use [cssnext][cssnext]. Laggard also doesn't do destructive transforms that would require you to use a separate stylesheet for legacy browsers. If that's what you're after use [Oldie][oldie]. \n\nUse Laggard if you just want to easily improve legacy support with your current CSS code.\n\n### Contents\n\n- [Install](#install)\n- [Features](#features)\n  - [Opacity fallbacks](#opacity-fallbacks)\n  - [Rem unit fallbacks](#rem-unit-fallbacks)\n  - [Pseudo element conversions](#pseudo-element-conversions)\n  - [RGBA Hex fallbacks](#rgba-hex-fallbacks)\n  - [IE vmin to vm fallbacks](#ie-vmin-to-vm-fallbacks)\n  - [3D transform hack for will-change](#3d-transform-hack-for-will-change)\n- [Usage](#usage)\n- [Options](#options)\n\n## Install\n\nLaggard is available on NPM as `laggard`, install it with NPM or Yarn\n\n\n```sh\n$ yarn add laggard --dev\n```\n\n```sh\n$ npm i laggard --save-dev\n```\n\n## Features\n\n#### Opacity fallbacks\n\n```css\n/* Before */\n.foo {\n  opacity: .5;\n}\n\n/* After */\n.foo {\n  opacity: .5;\n  -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n}\n```\n\n#### Rem unit fallbacks\n\n```css\nhtml {\n  font-size: 16px;\n}\n\n/* Before */\n.foo {\n  font-size: 2rem;\n}\n\n/* After */\n.foo {\n  font-size: 32px;\n  font-size: 2rem;\n}\n```\n\n#### Pseudo element conversions\n\n```css\n/* Before */\n.foo::before {\n  display: block;\n}\n\n/* After */\n.foo:before {\n  display: block;\n}\n```\n\n#### RGBA Hex fallbacks\n```css\n/* Before */\n.foo {\n  background: rgba(153, 221, 153, 0.8);\n}\n\n/* After */\n.foo {\n  background: #99DD99;\n  background: rgba(153, 221, 153, 0.8);\n}\n```\n\n#### IE vmin to vm fallbacks\n```css\n/* Before */\n.foo {\n  width: 50vmin;\n}\n\n/* After */\n.foo {\n  width: 50vm;\n  width: 50vmin;\n}\n```\n\n#### 3D transform hack for will-change\n```css\n/* Before */\n.foo {\n  will-change: transform;\n}\n\n/* After */\n.foo {\n  backface-visibility: hidden;\n  will-change: transform;\n}\n```\n\n## Usage\n\n###### Build tools\n\nUse Laggard as a PostCSS plugin in your build tool of choice.\n\n```js\nconst postcss = require('postcss');\nconst laggard = require('laggard');\n\npostcss([ laggard ])\n```\n\nSee [PostCSS][postcss] docs for examples for your particular environment.\n\n###### CLI\n\nProcess CSS directly on the command line\n\n```sh\n$ laggard src/style.css style.css [options]\n```\n\n###### Stylus\n\nLaggard can be used directly as a Stylus plugin with [PostStylus][poststylus]\n\n```js\nstylus(css).use(poststylus('laggard'))\n```\n\nSee the [PostStylus Docs][poststylus] for more examples for your environment.\n\n## Options\n\nAll features in Laggard can be toggled on or off by passing options on initialization. By default all features are set to `true`.\n\nOption              | Type    | Default | Description                                                     \n------------------- | ------- | ------- | -----------                                                     \n`rgba`              | Boolean | `true`  | Whether to enable RGBA fallbacks\n`opacity`           | Boolean | `true`  | Whether to enable opacity fallbacks\n`pseudo`            | Boolean | `true`  | Whether to enable pseudo element conversion\n`vmin`              | Boolean | `true`  | Whether to enable to enable vmin fallbacks\n`pixrem`            | Boolean | `true`  | Whether to enable whether to enable rem fallbacks\n`willchange`        | Boolean | `true`  | Whether to enable native will-change fallbacks\n`reporter`          | Boolean | `false` | Whether to log errors from plugins\n\n```js\n// Set in build tool, etc.\n.laggard({\n  // options\n})\n```\n\n***\n\nMIT © [Sean King](https://twitter.com/seaneking)\n\n[npm-badge]: https://badge.fury.io/js/laggard.svg\n[npm-url]: https://npmjs.org/package/laggard\n[npm-downloads]: https://img.shields.io/npm/dm/laggard.svg\n[travis-badge]: https://travis-ci.org/seaneking/laggard.svg?branch=master\n[travis-url]: https://travis-ci.org/seaneking/laggard\n[postcss]: https://github.com/postcss/postcss\n[cssnext]: http://cssnext.io/\n[poststylus]: https://github.com/seaneking/poststylus\n[oldie]: https://github.com/jonathantneal/oldie\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeleineostoja%2Flaggard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadeleineostoja%2Flaggard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeleineostoja%2Flaggard/lists"}