PHPackages                             hypejunction/elgg-scss - 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. hypejunction/elgg-scss

AbandonedArchivedElgg-plugin[Utility &amp; Helpers](/categories/utility)

hypejunction/elgg-scss
======================

Runtime compilation of SCSS files

011PHP

Since Nov 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hypeJunction/ABANDONED-elgg-scss)[ Packagist](https://packagist.org/packages/hypejunction/elgg-scss)[ RSS](/packages/hypejunction-elgg-scss/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

**ABANDONED** SCSS Compiler for Elgg
====================================

[](#abandoned-scss-compiler-for-elgg)

[![Elgg 2.3](https://camo.githubusercontent.com/8452daaef3ea7320843e9a5473e44a80e23ec99b34525f2c9bbf8c83ccad0cd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8452daaef3ea7320843e9a5473e44a80e23ec99b34525f2c9bbf8c83ccad0cd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

After a lot of struggling, I have abandoned the idea of trying to compile SCSS server-side. There are too many pitfalls and things can go seriously wrong. Use command line tools and serve compiled CSS from disk rather than trying to compiled it at runtime.

Features
--------

[](#features)

- Allows you to use `.scss` files directly in the view system
- Resolves and compiles import paths on the fly (no need for ruby or npm)

Usage
-----

[](#usage)

You can extend any `.css` file with `.scss`

```
// custom.scss
@import "variables"; // this view is already included and can be extended by other plugins
@import "custom2"; // you can import any other .scss view
@import "external/partial"; // this can be a view residing in another plugin and named as external/_partial.scss
```

```
elgg_extend_view('_variables.scss', '_my_variables.scss');
elgg_extend_view('elgg.css', 'custom.scss');
```

Optionally, you can use `'vars','scss'` hook to set global scss variables.

Conventions
-----------

[](#conventions)

- Prefix your partial scss sheets with an underscore to ensure they are not needlessly compiled, e.g. `_reusable.scss`
- You can use `scss` syntax in your `css` files. This might come handy when you want to overwrite a core css view. It is also easier to work with `.css` files as they are treated as simplecache resources by default.
- The compiler seems to have trouble with full sheets located outside of the root. If you notice that compiler is complaining, add a view to the root and import your files located elsewhere, e.g. if your sheet is importing partials and located in `/views/default/my-theme/elements/sheet.scss`, it may not compile. Add a prefixed sheet to `/views/default/my-theme.sheet.scss` and add `@import "my-theme/elements/sheet";`

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (8 commits)")

### Embed Badge

![Health badge](/badges/hypejunction-elgg-scss/health.svg)

```
[![Health](https://phpackages.com/badges/hypejunction-elgg-scss/health.svg)](https://phpackages.com/packages/hypejunction-elgg-scss)
```

PHPackages © 2026

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