Skip to content

CLASSIE is the best friend of LASS - providing utilities and missing bits for SCSS to LASS conversion

License

Notifications You must be signed in to change notification settings

egao1980/classie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classie - Lassie is the best friend of LASS - utility and functions for translating SCSS to LASS

Usage

CLASSIE is intended to be loaded and used in background providing LASS SCSS-like functions.

(ql:quickload :classie)

CLASSIE provides basic arithmetic operations for values of various CSS related units of measure (in, pt, px) and aims to properly handle percent values. Additionally several utility functions are available:

  • (:let …)* - similar to existing :let but works as CL (let* …)
  • (values &rest args) - resolves and joins arguments to form CSS values list;
  • (:include path) - includes external LASS file
  • Color manipulation functions: (darken …), (lighten …), (fade-in …), (fade-out …) and (mix …) - see the corresponding SCSS functions
  • (ceil …) - ceiling numbers that rounds 49.5% to 50%
  • (ceiling …) - ceiling numbers that rounds 49.5% to 100% (as (ceiling 0.495) is 1.0)
CL-USER> (lass:compile-and-write '(a :background (ceil (* 0.85 "16px"))))
"a{
  background: 14.00px;
}"
CL-USER> (lass:compile-and-write '(a :height (ceil (* 0.85 "16px"))))
"a{
    height: 14.00px;
}"
CL-USER> (lass:compile-and-write '(div :width (+ 2in (ceil (* 85% "800px")))))
"div{
     width: 9.08in;
}"
CL-USER> (lass:compile-and-write '(div :background (darken "#fff" 20%)))
"div{
    background: #CCCCCC;
}"

CLASSIE provides ASDF resource type classie which allows to generate CSS file on system load. Main difference to LASS is the support for (:include …) directive.

Installation

CLASSIE is available at http://ultralisp.org repository.

(ql:quickload :classie)

Author

  • Nikolai Matiushev (egao1980@gmail.com)

Copyright

Copyright (c) 2020 Nikolai Matiushev (egao1980@gmail.com)

License

Licensed under the MIT License.

About

CLASSIE is the best friend of LASS - providing utilities and missing bits for SCSS to LASS conversion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published