PHP Classes

CSS2LESS: Convert CSS into programmable CSS with LESS syntax

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 795 All time: 4,304 This week: 54Up
Version License PHP version Categories
css2less 0.1MIT/X Consortium ...5HTML, PHP 5
Description 

Author

This class can convert CSS into programmable CSS with LESS (Leaner CSS) syntax.

It can parse a given CSS style sheet and extract certain common property constant values to turn them into variables in the converted output using LESS .

Currently it turns the CSS properties into LESS variables: color, width, height, font-family and font-size.

Innovation Award
PHP Programming Innovation award nominee
July 2012
Number 3


Prize: One copy of RadPHP XE2
LESS is a language that is used to create CSS style sheets using programming constructs like variables to define common property values.

This class can transform a regular CSS file into a file with LESS syntax.

It help the starting effort to migrate development based from on static CSS to dynamic style sheets using the LESS syntax.

Manuel Lemos
Picture of Tom Schaefer
  Performance   Level  
Name: Tom Schaefer is available for providing paid consulting. Contact Tom Schaefer .
Classes: 39 packages by
Country: Germany Germany
Age: ???
All time rank: 1088 in Germany Germany
Week rank: 227 Down10 in Germany Germany Down
Innovation award
Innovation award
Nominee: 9x

Winner: 1x

  Files folder image Files (3)  
File Role Description
Plain text file class.css2less.php Class class
Plain text file class.css2less.v02.php Class Some minor enhancements
Accessible without login Plain text file sample.php Example simple example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:795
This week:0
All time:4,304
This week:54Up
User Comments (1)