postcss-custom-properties
Advanced tools
Comparing version
# Changes to PostCSS Custom Properties | ||
### 13.1.2 (February 7, 2023) | ||
- Do not apply fallback values when these contain unresolvable custom properties. | ||
### 13.1.1 (January 28, 2023) | ||
@@ -4,0 +8,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { Root } from 'postcss'; | ||
import type { Root } from 'postcss'; | ||
import valuesParser from 'postcss-value-parser'; | ||
export default function getCustomPropertiesFromRoot(root: Root): Map<string, valuesParser.ParsedValue>; |
{ | ||
"name": "postcss-custom-properties", | ||
"description": "Use Custom Properties Queries in CSS", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -56,6 +56,7 @@ # PostCSS Custom Properties [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS] | ||
**Note:** This plugin only processes variables that are defined in the `:root` or `html` selector. | ||
**Note:** | ||
- Only processes variables that were defined in the `:root` or `html` selector. | ||
- Locally defined variables will be used as fallbacks only within the same rule, but not elsewhere. | ||
- Fallback values in `var()` will be used if the variable was not defined in the `:root` or `html` selector. | ||
Locally defined custom properties will be used as fallbacks only within the same rule, but not elsewhere. | ||
## Usage | ||
@@ -62,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35269
11.83%15
15.38%82
22.39%156
0.65%