@cobalt-ui/plugin-css
Advanced tools
Comparing version 1.7.1 to 1.7.2
# @cobalt-ui/plugin-css | ||
## 1.7.2 | ||
### Patch Changes | ||
- [#192](https://github.com/drwpow/cobalt-ui/pull/192) [`edd33ef5dce51c7b3a1f2d1e9fe78263467b14f8`](https://github.com/drwpow/cobalt-ui/commit/edd33ef5dce51c7b3a1f2d1e9fe78263467b14f8) Thanks [@drwpow](https://github.com/drwpow)! - Fix typography token aliases | ||
## 1.7.1 | ||
@@ -4,0 +10,0 @@ |
@@ -107,5 +107,10 @@ /** | ||
case 'typography': { | ||
for (const [k, v] of Object.entries(value)) { | ||
tokenVals[generateName(`${token.id}-${k}`, token)] = v; | ||
if (value && typeof value === 'object') { | ||
for (const [k, v] of Object.entries(value)) { | ||
tokenVals[generateName(`${token.id}-${k}`, token)] = v; | ||
} | ||
} | ||
else { | ||
tokenVals[ref] = value; | ||
} | ||
break; | ||
@@ -112,0 +117,0 @@ } |
{ | ||
"name": "@cobalt-ui/plugin-css", | ||
"description": "Generate CSS from your design tokens schema (requires @cobalt-ui/cli)", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Drew Powers", |
@@ -120,4 +120,8 @@ import type {BuildResult, ParsedToken, Plugin, ResolvedConfig} from '@cobalt-ui/core'; | ||
case 'typography': { | ||
for (const [k, v] of Object.entries(value)) { | ||
tokenVals[generateName(`${token.id}-${k}`, token)] = v; | ||
if (value && typeof value === 'object') { | ||
for (const [k, v] of Object.entries(value)) { | ||
tokenVals[generateName(`${token.id}-${k}`, token)] = v; | ||
} | ||
} else { | ||
tokenVals[ref] = value; | ||
} | ||
@@ -124,0 +128,0 @@ break; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130104
1788