@plumeria/eslint-plugin 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -161,9 +161,11 @@ function buildColorMixPattern() {
161
161
  }
162
162
 
163
163
  const colorMixString = buildColorMixPattern();
164
+ const lightDarkValue = `${colorValue}|${colorMixString}|${varString}`;
165
+ const lightDarkString = `light-dark\\((?:${lightDarkValue}),\\s*(?:${lightDarkValue})\\)`;
164
166
 
165
167
  const colorRegex = new RegExp(
166
- `^(${colorValue}|${colorMixString}|${varString})$`,
168
+ `^(${colorValue}|${colorMixString}|${lightDarkString}|${varString})$`,
167
169
  );
168
170
  const colorSource = colorRegex.source.slice(1, -1);
169
171
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plumeria/eslint-plugin",
3
- "version": "0.2.0",
4
- "description": "Zero-runtime CSS in JS - Compile at build-time. No runtime overhead.",
3
+ "version": "0.2.1",
4
+ "description": "Zero-runtime, expressive CSS-in-JS library for TypeScript.",
5
5
  "repository": "github:zss-in-js/plumeria",
6
6
  "license": "MIT",
7
7
  "keywords": [