PHPackages                             localgovdrupal/localgov\_microsites\_base - 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. localgovdrupal/localgov\_microsites\_base

ActiveDrupal-theme

localgovdrupal/localgov\_microsites\_base
=========================================

The base theme for LocalGov Drupal Microsites.

3.0.0(8mo ago)012.5k↓100%3[19 issues](https://github.com/localgovdrupal/localgov_microsites_base/issues)[1 PRs](https://github.com/localgovdrupal/localgov_microsites_base/pulls)1GPL-2.0-or-laterCSSCI passing

Since Apr 22Pushed 5mo ago6 watchersCompare

[ Source](https://github.com/localgovdrupal/localgov_microsites_base)[ Packagist](https://packagist.org/packages/localgovdrupal/localgov_microsites_base)[ Docs](https://github.com/localgovdrupal/localgov_microsites_base)[ RSS](/packages/localgovdrupal-localgov-microsites-base/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (182)Used By (1)

LocalGov Microsites Base
========================

[](#localgov-microsites-base)

A sub-theme of LocalGov Base. Please read the README there also.

Customising the appearance through the UI
-----------------------------------------

[](#customising-the-appearance-through-the-ui)

A *Microsite Admin* has the permission to set a number of css variables through the UI. These override the default variables set in /css/variables.css

Creating a sub-theme of LocalGov Microsites Base
------------------------------------------------

[](#creating-a-sub-theme-of-localgov-microsites-base)

We recommend creating a sub-theme of LocalGov Microsites Base in order to create a custom theme for one or more of your microsites. A *Microsite controller* is able to install and set a new theme for a microsite.

Quick overview
--------------

[](#quick-overview)

1. Create a new sub-theme of LocalGov Microsite Base (see below)
2. Copy the variables you need from localgov\_microsites\_base/css/variables.css and set the default branding colours, fonts etc
3. Enable this theme, using the "Enable" button only, **not** the "Enable and set as default" button. After this, you can then hit the "Set as default" button. This 2-step process is needed to ensure all the blocks from the default theme get transition to the same block regions in your new theme.

Sub-theme
---------

[](#sub-theme)

To create a sub-theme, you simply need to run the sub-theme creation script that is in the `/scripts` directory, like so:

```
  cd web/themes/contrib/localgov_microsites_base/
  bash scripts/create_subtheme.sh
```

You need to enter two items when creating a sub-theme:

1. The name of the theme, this can be anything and can include spaces, e.g. Super Council
2. The machine name for the theme, this must start with a letter and use only lowercase letters and underscores, e.g. super\_council

Custom Styles
-------------

[](#custom-styles)

Hopefully most of the custom styles you will need are set via CSS custom properties in the `/css/variables.css` file in your sub-theme.

This is where you set your colours, fonts, spacing, etc. Then you "apply" these variables where needed, like so:

```
  :root {
    /* Set/Override Variables */
    --color-accent: red;
    --spacing-largest: 5rem;

    /* Apply Variables */
    --color-link: var(--color-accent);
    --breadcrumbs-background-color: var(--color-accent);
    --section-spacing-vertical-header: var(--spacing-largest);
  }
```

If you need to add any CSS overides, you can create custom CSS files for these and then a library/libraries to attach them to your components.

Maintainers
-----------

[](#maintainers)

This project is currently maintained by:

- Mark Conroy
- Maria Young

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance70

Regular maintenance activity

Popularity25

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~35 days

Recently: every ~51 days

Total

33

Last Release

171d ago

Major Versions

1.x-dev → 2.0.0-beta12022-12-06

2.0.9 → 3.x-dev2025-08-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd550678a915c9a6d451d08851556a1c866f8cc7c0e3f864b498a45d4d930577?d=identicon)[stephen-cox](/maintainers/stephen-cox)

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

![](https://www.gravatar.com/avatar/848d88262b2f9d984d12b55bd4a2e2f0e1d3c7abe9c63fc5cc13ecbab75cd19e?d=identicon)[ekes](/maintainers/ekes)

![](https://www.gravatar.com/avatar/135fe190210b35fbde2ecd82d36b7babd12202595e4c5a705b57c9dc9c0eea6b?d=identicon)[markconroy](/maintainers/markconroy)

---

Top Contributors

[![markconroy](https://avatars.githubusercontent.com/u/2183332?v=4)](https://github.com/markconroy "markconroy (163 commits)")[![msayoung](https://avatars.githubusercontent.com/u/3852805?v=4)](https://github.com/msayoung "msayoung (124 commits)")[![finnlewis](https://avatars.githubusercontent.com/u/326588?v=4)](https://github.com/finnlewis "finnlewis (32 commits)")[![stephen-cox](https://avatars.githubusercontent.com/u/7189914?v=4)](https://github.com/stephen-cox "stephen-cox (31 commits)")[![ekes](https://avatars.githubusercontent.com/u/237186?v=4)](https://github.com/ekes "ekes (13 commits)")[![cjstevens78](https://avatars.githubusercontent.com/u/11304107?v=4)](https://github.com/cjstevens78 "cjstevens78 (6 commits)")[![kiwimind](https://avatars.githubusercontent.com/u/114639?v=4)](https://github.com/kiwimind "kiwimind (4 commits)")[![Adnan-cds](https://avatars.githubusercontent.com/u/50206849?v=4)](https://github.com/Adnan-cds "Adnan-cds (2 commits)")[![AWearring](https://avatars.githubusercontent.com/u/95761929?v=4)](https://github.com/AWearring "AWearring (2 commits)")[![dedavidson](https://avatars.githubusercontent.com/u/5949449?v=4)](https://github.com/dedavidson "dedavidson (1 commits)")[![millnut](https://avatars.githubusercontent.com/u/8024370?v=4)](https://github.com/millnut "millnut (1 commits)")[![anthonylindsay](https://avatars.githubusercontent.com/u/3294888?v=4)](https://github.com/anthonylindsay "anthonylindsay (1 commits)")[![rupertj](https://avatars.githubusercontent.com/u/326243?v=4)](https://github.com/rupertj "rupertj (1 commits)")[![chriswales95](https://avatars.githubusercontent.com/u/43383145?v=4)](https://github.com/chriswales95 "chriswales95 (1 commits)")

### Embed Badge

![Health badge](/badges/localgovdrupal-localgov-microsites-base/health.svg)

```
[![Health](https://phpackages.com/badges/localgovdrupal-localgov-microsites-base/health.svg)](https://phpackages.com/packages/localgovdrupal-localgov-microsites-base)
```

###  Alternatives

[govcms/govcms

GovCMS Drupal Distribution

18997.1k3](/packages/govcms-govcms)[localgovdrupal/localgov

LocalGovDrupal distribution

100110.9k2](/packages/localgovdrupal-localgov)[voidagency/vactory_starter_kit

Vactory is a custom Drupal profile which is developed and released by VOID Agency.

1019.7k](/packages/voidagency-vactory-starter-kit)

PHPackages © 2026

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