https://github.com/prettier/html-ua-styles
User agent stylesheet defined in the WHATWG HTML specification.
https://github.com/prettier/html-ua-styles
Last synced: 3 months ago
JSON representation
User agent stylesheet defined in the WHATWG HTML specification.
- Host: GitHub
- URL: https://github.com/prettier/html-ua-styles
- Owner: prettier
- License: mit
- Created: 2023-08-30T06:25:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T07:09:44.000Z (3 months ago)
- Last Synced: 2025-03-15T21:27:23.078Z (3 months ago)
- Language: JavaScript
- Size: 3.03 MB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# html-ua-styles
[![Build Status][github_actions_badge]][github_actions_link]
[![Coverage][codecov_badge]][codecov_link]
[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link][github_actions_badge]: https://img.shields.io/github/actions/workflow/status/prettier/html-ua-styles/continuous-integration.yml?style=flat-square
[github_actions_link]: https://github.com/prettier/html-ua-styles/actions?query=branch%3Amain
[codecov_badge]: https://codecov.io/gh/prettier/html-ua-styles/branch/main/graph/badge.svg?token=Cvu6qhcepg
[codecov_link]: https://codecov.io/gh/prettier/html-ua-styles
[license_badge]: https://img.shields.io/npm/l/html-ua-styles.svg?style=flat-square
[license_link]: https://github.com/prettier/html-ua-styles/blob/main/license
[package_version_badge]: https://img.shields.io/npm/v/html-ua-styles.svg?style=flat-square
[package_link]: https://www.npmjs.com/package/html-ua-styles> User agent stylesheet defined in [the WHATWG HTML specification](https://html.spec.whatwg.org/).
## Installation
```sh
yarn add html-ua-styles
```## Usage
```js
import htmlUaStyles from 'html-ua-styles';console.log(htmlUaStyles);
/* =>
[
{
type: 'Styles',
selectors: [ ... ],
styles: [ ... ]
},
...
]
*/
```---
Inspired by [`html-styles`](https://github.com/marionebl/html-styles)