esm-styles 0.3.1 → 0.3.2

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.
package/doc/ai-guide.md CHANGED
@@ -172,6 +172,8 @@ export default {
172
172
  // Use variable references - gets converted to var(--color-primary)
173
173
  backgroundColor: $theme.color.primary,
174
174
  color: $theme.color.textOnPrimary,
175
+ // in case of concatenation, use .var property, otherwise it will be [object Object]
176
+ border: `1px solid ${$theme.color.primary.var}`,
175
177
  },
176
178
  }
177
179
  ```
@@ -549,6 +549,7 @@ export default {
549
549
  button: {
550
550
  backgroundColor: $theme.surface.primary,
551
551
  color: $theme.text.primary
552
+ border: `1px solid ${$theme.color.primary.var}` // in case of concatenation, use .var property of variable reference object
552
553
  }
553
554
  }
554
555
  ```
@@ -649,4 +649,4 @@ button {
649
649
  The supporting modules provide:
650
650
 
651
651
  - Autocomplete for available variables in most code editors
652
- - The ability to see the actual values for each theme
652
+ - The ability to see the actual values for each theme or device
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esm-styles",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "A library for working with ESM styles",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",