@cobalt-ui/plugin-css
Advanced tools
Comparing version 0.4.1 to 0.4.2
# @cobalt-ui/plugin-css | ||
## 0.4.2 | ||
### Patch Changes | ||
- 93668b9: Fix gradient generation | ||
## 0.4.1 | ||
@@ -4,0 +10,0 @@ |
@@ -198,3 +198,3 @@ import color from 'better-color-tools'; | ||
function transformGradient(value) { | ||
return value.map((g) => `${color} ${g.position * 100}`).join(', '); | ||
return value.map((g) => `${g.color} ${g.position * 100}%`).join(', '); | ||
} | ||
@@ -201,0 +201,0 @@ /** transform typography */ |
{ | ||
"name": "@cobalt-ui/plugin-css", | ||
"description": "Generate CSS from your design tokens schema (requires @cobalt-ui/cli)", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Drew Powers", |
@@ -236,3 +236,3 @@ import type { | ||
function transformGradient(value: ParsedGradientToken['value']): string { | ||
return value.map((g: GradientStop) => `${color} ${g.position * 100}`).join(', '); | ||
return value.map((g: GradientStop) => `${g.color} ${g.position * 100}%`).join(', '); | ||
} | ||
@@ -239,0 +239,0 @@ /** transform typography */ |
@@ -28,3 +28,10 @@ { | ||
} | ||
}, | ||
"gradient": { | ||
"type": "gradient", | ||
"value": [ | ||
{ "color": "#218bff", "position": 0 }, | ||
{ "color": "#e85aad", "position": 1 } | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
55052
749