Skip to content

Commit b9a3855

Browse files
committed
css-prefers-color-scheme v10.0.0
1 parent 7769a9c commit b9a3855

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

.github/bin/generate-docs/readme.mjs

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ function headerText() {
5757
if (process.env.MINIMAL) {
5858
return `# <humanReadableName> [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
5959
60-
\`\`\`bash
61-
npm install <packageName> --save-dev
62-
\`\`\``;
60+
\`npm install <packageName> --save-dev\``;
6361
}
6462

6563
return `# <humanReadableName> [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]

plugins/css-has-pseudo/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# PostCSS Has Pseudo [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
22

3-
```bash
4-
npm install css-has-pseudo --save-dev
5-
```
3+
`npm install css-has-pseudo --save-dev`
64

75
[PostCSS Has Pseudo] lets you style elements relative to other elements in CSS, following the [Selectors Level 4] specification.
86

plugins/css-prefers-color-scheme/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changes to Prefers Color Scheme
22

3-
### Unreleased (major)
3+
### 10.0.0
4+
5+
_August 3, 2024_
46

57
- Updated: Support for Node v18+ (major).
68

plugins/css-prefers-color-scheme/README.md

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Prefers Color Scheme [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
22

3-
[<img alt="npm version" src="https://img.shields.io/npm/v/css-prefers-color-scheme.svg" height="20">][npm-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]<br><br>[<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/prefers-color-scheme-query.svg" height="20">][css-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/prefers-color-scheme-query.svg" height="20">][css-url]
4-
5-
```bash
6-
npm install css-prefers-color-scheme --save-dev
7-
```
3+
`npm install css-prefers-color-scheme --save-dev`
84

95
[Prefers Color Scheme] lets you use light and dark color schemes in all browsers, following the [Media Queries] specification.
106

@@ -77,16 +73,7 @@ postcss([
7773
]).process(YOUR_CSS /*, processOptions */);
7874
```
7975

80-
[Prefers Color Scheme] runs in all Node environments, with special
81-
instructions for:
8276

83-
- [Node](INSTALL.md#node)
84-
- [PostCSS CLI](INSTALL.md#postcss-cli)
85-
- [PostCSS Load Config](INSTALL.md#postcss-load-config)
86-
- [Webpack](INSTALL.md#webpack)
87-
- [Next.js](INSTALL.md#nextjs)
88-
- [Gulp](INSTALL.md#gulp)
89-
- [Grunt](INSTALL.md#grunt)
9077

9178
## Options
9279

@@ -146,12 +133,12 @@ or
146133

147134
```html
148135
<!-- When using a CDN url you will have to manually update the version number -->
149-
<script src="https://unpkg.com/css-prefers-color-scheme@9.0.1/dist/browser-global.js"></script>
136+
<script src="https://unpkg.com/css-prefers-color-scheme@10.0.0/dist/browser-global.js"></script>
150137
<script>prefersColorSchemeInit()</script>
151138
```
152139

153140
> [!TIP]
154-
> Please use a versioned url, like this : `https://unpkg.com/css-prefers-color-scheme@9.0.1/dist/browser-global.js`
141+
> Please use a versioned url, like this : `https://unpkg.com/css-prefers-color-scheme@10.0.0/dist/browser-global.js`
155142
> Without the version, you might unexpectedly get a new major version of the library with breaking changes.
156143
157144
[Prefers Color Scheme] works in all major browsers, including Safari 6+ and
@@ -225,7 +212,7 @@ const prefersColorScheme = prefersColorSchemeInit('light', { debug: true });
225212
```
226213

227214
```html
228-
<script src="https://unpkg.com/css-prefers-color-scheme@9.0.1/dist/browser-global.js"></script>
215+
<script src="https://unpkg.com/css-prefers-color-scheme@10.0.0/dist/browser-global.js"></script>
229216
<script>prefersColorSchemeInit('light', { debug: true })</script>
230217
```
231218

plugins/css-prefers-color-scheme/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "css-prefers-color-scheme",
33
"description": "Use light and dark color schemes in all browsers",
4-
"version": "9.0.1",
4+
"version": "10.0.0",
55
"contributors": [
66
{
77
"name": "Antonio Laguna",

0 commit comments

Comments
 (0)