Safe Haskell | None |
---|
Create a .less
file from a .ase
file. For each color in the .ase
the .css
will contain an entry:
color-ase-n
Where n
is an integer based on the order the color was found in the .ase
file.
Documentation
ase2less :: AdobeSwatchExchange -> DocSource
generate a less document from an AdobeSwatchExchange
genColor :: ASEBlock -> State Int DocSource
generate a color rules from an indexed ColorEntry
generates:
fg-color-ase-n bg-color-ase-n border-color-ase-n
Currently only RGB
color is supported. Since CSS only supports
rgb, supporting other colors would require the conversion to RGB
color space. Feel free to send a patch!