
There are many open source frameworks that are released to make theming simpler. One of the problems that themers / front-end developers usually face is the amount of CSS3 features that many want to use, but not all of the different browsers has the capability of getting it working correctly. Therefore, CSS preprocessors like Compass and SASS makes this possible by having predefined mixins, variables, rules and inheritance that are similar to the concepts of Object Oriented Programming.
With the addition of SASS, CSS block styling are treated like functions in programming.
$blogColor = #FFF9E2;
. Isn’t $blogColor easier to remember than the color code?@include mixinName;
Now to actually get these two frameworks working with Drupal or WordPress, here are the steps:
gem install compass
.compass create projectName
compass watch /path/to/your/themes/directory/
. Start adding styles to the .scss files.compass create projectName
alias projectName='compass watch /path/to/your/themes/directory/'
in your .bash_profile so that all you will need to do is type projectName in the command line and it will automatically run compass for that project.
Frances Naty Go, Founder of Goldlilys Media, transforms websites into strategic masterpieces for museums, nonprofits, health & wellness brands, higher education, life sciences, and travel companies. With a Computer Science degree from UC San Diego, she specializes in creating digital experiences that educate, engage, and inspire action. Every website she builds is designed to amplify missions and create meaningful connections. Ready to make your digital presence unforgettable?