Safe Haskell | None |
---|
Create a .css
file from a .ase
file. For each color in the .ase
the .css
will contain three entries:
fg-color-ase-n bg-color-ase-n border-color-ase-n
Where n
is an integer based on the order the color was found in the .ase
file.
- ase2css :: AdobeSwatchExchange -> StyleSheet
- genBlock :: ASEBlock -> State Int [RuleSet]
Documentation
ase2css :: AdobeSwatchExchange -> StyleSheetSource
generate a StyleSheet
from an AdobeSwatchExchange
genBlock :: ASEBlock -> State Int [RuleSet]Source
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!
genColor :: (Int, ASEBlock) -> (Int, [RuleSet])