PHPackages                             pug-php/pug-filter-stylus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pug-php/pug-filter-stylus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pug-php/pug-filter-stylus
=========================

Render stylus code as compiled CSS in a style tag

2.1.0(8y ago)590.4k↓30%1MITPHP

Since Jun 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pug-php/pug-filter-stylus)[ Packagist](https://packagist.org/packages/pug-php/pug-filter-stylus)[ RSS](/packages/pug-php-pug-filter-stylus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (1)

pug-filter-stylus
=================

[](#pug-filter-stylus)

[![Latest Stable Version](https://camo.githubusercontent.com/886d7ece86a006c2e719a7e4b6be6bd37c2d1b6dd67dcfa498dd1bb4990291a5/68747470733a2f2f706f7365722e707567782e6f72672f7075672d7068702f7075672d66696c7465722d7374796c75732f762f737461626c652e706e67)](https://packagist.org/packages/pug-php/pug-filter-stylus)[![Build Status](https://camo.githubusercontent.com/d57897dab63951a41692cb6e071a9a5310fe90a42df7c88381b53f5ac5d2a757/68747470733a2f2f7472617669732d63692e6f72672f7075672d7068702f7075672d66696c7465722d7374796c75732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pug-php/pug-filter-stylus)[![Code Climate](https://camo.githubusercontent.com/070c580813fdf6db545dfae39a11b7bebcd597e3532372eb9bc5c967764a79c5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d66696c7465722d7374796c75732f6261646765732f6770612e737667)](https://codeclimate.com/github/pug-php/pug-filter-stylus)[![Test Coverage](https://camo.githubusercontent.com/06036771fe1153900f8bc1b6ffe8524b98ccefdab947f0ee45eb45d511958f5e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d66696c7465722d7374796c75732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/pug-php/pug-filter-stylus/coverage)[![StyleCI](https://camo.githubusercontent.com/b4d58d0457e4e42459dd99f574acb042f1287116b59de5639dd1f050ef8baf6a/68747470733a2f2f7374796c6563692e696f2f7265706f732f36313831313936312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/61811961)

This template:

```
//- set from php controller
- $prev = $color

//- set in the pug template
- $color = 'red'

head
  :stylus
    prev = yellow
    p
      color #{color}
      a
        color #{prev}
      em
        color prev
body
  p
    | I'm
    =color
    |  but my links are
    a=prev
    |  and my quotes are
    em=prev
```

with data like this:

```
$pug = new Pug();
$pug->render('template.pug', array(
    'color' => 'red',
));
```

will be rendered like this:

```

    p {
      color: red;
    }
    p a {
      color: yellow;
    }
    p em {
      color: yellow;
    }

    I'm red but my links are yellow and my quotes are yellow

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~155 days

Total

4

Last Release

3149d ago

Major Versions

1.1.0 → 2.0.02016-07-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/df90c422f521bf26355c3e185a59fe7afb35531af56244dfaec03ee1d0ca6f24?d=identicon)[kylekatarn](/maintainers/kylekatarn)

---

Top Contributors

[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (31 commits)")

---

Tags

extensionfilterphppugstylus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pug-php-pug-filter-stylus/health.svg)

```
[![Health](https://phpackages.com/badges/pug-php-pug-filter-stylus/health.svg)](https://phpackages.com/packages/pug-php-pug-filter-stylus)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
