@warp-ds/uno
Advanced tools
Comparing version 1.0.0-alpha.49 to 1.0.0-alpha.50
{ | ||
"name": "@warp-ds/uno", | ||
"repository": "git@github.com:warp-ds/drive.git", | ||
"version": "1.0.0-alpha.49", | ||
"version": "1.0.0-alpha.50", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "exports": { |
import { directionMap, handler as h } from '#utils'; | ||
export const semanticRules = [ | ||
[/^s-bg$/, () => ({ 'background-color': h.semanticToken('background') })], | ||
[/^s-bg-(.+)$/, ([, cssvar]) => ({ 'background-color': h.semanticToken(`background-${cssvar}`) })], | ||
[/^s-text$/, () => ({ color: h.semanticToken('text') })], | ||
[/^s-text-(.+)$/, ([, cssvar]) => ({ color: h.semanticToken(`text-${cssvar}`) })], | ||
[/^s-icon$/, () => ({ color: h.semanticToken('icon') })], | ||
[/^s-icon-(.+)$/, ([, cssvar]) => ({ color: h.semanticToken(`icon-${cssvar}`) })], | ||
[/^s-border$/, ([, cssvar]) => ({ 'border-color': h.semanticToken('border') })], | ||
[/^s-border-(.+)$/, ([, cssvar]) => ({ 'border-color': h.semanticToken(`border-${cssvar}`) })], | ||
[/^s-border-([lrtbxy])$/, ([, direction]) => directionMap[direction]?.map( | ||
(dir) => [`border${dir}-color`, h.semanticToken('border')], | ||
)], | ||
[/^s-border-([lrtbxy])-(.+)$/, ([, direction, cssvar]) => directionMap[direction]?.map( | ||
@@ -9,0 +16,0 @@ (dir) => [`border${dir}-color`, h.semanticToken(`border-${cssvar}`)], |
Sorry, the diff of this file is too big to display
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
191045
5057