Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

A CSS Preprocessor for PHP

Its fast and easy

Example

Mixins need to go on top. You can add default mixins in PHP.

@bg-white
background:#fff
@co-white
color:#fff
// comment
/* other comment */*box-sizing: border-box
::root--main-var:#fff
.container
.classcolor:--main-var
:hover, .haha@co-white
// convert to @media (max-width: 150px)
<150px
color: red

Usage

require_once( __DIR__. '/engine.php' );
$engine = new MagmaCSS\Engine( __DIR__. '/tmp/', true );
// add mixins
$engine->addMixin( 'default', 'string: or-map' );
$file = $engine->go( __DIR__. 'css/test.mgcss' );
$absoluteFilePath = __DIR__. '/tmp/'. $file;

Default Mixins

Link

About

A CSS Preprocessor for PHP

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages