---
title: 'Theming good practice'
url: 'https://getgrav.org/forum/plugins/theming-good-practice-t9064'
markdown: 'https://getgrav.org/forum/plugins/theming-good-practice-t9064.md'
date: '2026-06-21'
description: "Hi, what is best practice regarding plugin themeing? Currently I'm trying to combine/integrate the events plugin and future2021 theme. Unfortunately the events"
---

[Plugins](https://getgrav.org/forum/plugins)

#  Theming good practice 

 [plugin](https://getgrav.org/forum/tag/plugin) [plugins](https://getgrav.org/forum/tag/plugins) [theme](https://getgrav.org/forum/tag/theme)

  Started by M 4 years ago · 3 replies · 1319 views    

 [4 years ago](https://getgrav.org/forum/plugins/theming-good-practice-t9064#post-36269 "Permalink") 

Hi,

what is best practice regarding plugin themeing?

Currently I'm trying to combine/integrate the [events plugin](https://github.com/pikim/grav-plugin-events) and [future2021 theme](https://github.com/pmoreno-rodriguez/grav-theme-future2021). Unfortunately the events plugin has much styling information in [scss/events.scss](https://github.com/pikim/grav-plugin-events/blob/master/scss/events.scss) and is optimized for the Quark theme. In the past I manually compiled scss files to css on sassmeister.com, but this doesn't work here (any more?).

So, how should one divide functionality and style so that the plugin can be used and styled with multiple themes? And how to deal with scss files? Is there a way to automate scss compilation on the Grav instance or must it happen on the development environment?

 [4 years ago](https://getgrav.org/forum/plugins/theming-good-practice-t9064#post-36270 "Permalink") 

To make one style for multiple themes would be a bad practice. You'd still need to do separate styles for different themes. And I think Grav only supports this way.

As for SCSS compiler, I don't believe Grav can do this out of the box. You probably could write some plugin, but IMO better to set up you dev environment to compile to CSS

 [4 years ago](https://getgrav.org/forum/plugins/theming-good-practice-t9064#post-36271 "Permalink") 

@myscha, A plugin developer will never know the theme that will be used, which means only a single generic style can be provided by the plugin.

It's up to the theme user, or theme developer when the theme requires a plugin, to adapt the style of the plugin to fit with the style of the theme.

As explained in <https://learn.getgrav.org/17/themes/customization>, one can add css to a themes *custom.css* file (when available), or, to prevent possible future loss of changes, use [theme inheritance](https://learn.getgrav.org/17/themes/customization#theme-inheritance) and update the scss/css of the child theme.

> In the past I manually compiled scss files to css on [sassmeister.com](http://sassmeister.com/), but this doesn’t work here (any more?).

The site seems to be working fine. However, I would prefer to integrate a sass compiler into my dev workflow as @Karmalakas suggested.

 [4 years ago](https://getgrav.org/forum/plugins/theming-good-practice-t9064#post-36272 "Permalink") 

Thanks for your suggestions. So, as conclusion: it's fine to include the styling for a specific theme inside the plugin. And then, copy and adapt that styling for other themes.

sassmeister.com itself works fine, but it has a problem with neat, which is used in the linked scss file. In the meantime I managed to replace neat functions with plain statements. Seems to make sense, as neat is deprecated.

[Log in](https://getgrav.org/login?return=%2Fforum%2Fplugins%2Ftheming-good-practice-t9064) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Conflict with updated Form plugin and Add Page By Form](https://getgrav.org/forum/plugins/conflict-with-updated-form-plugin-and-add-page-by-form-t9480)    [Plugins](https://getgrav.org/forum/plugins) · by DrPen, 3 weeks ago |  | 2 | 280 | [3 weeks ago](https://getgrav.org/forum/plugins/conflict-with-updated-form-plugin-and-add-page-by-form-t9480 "by DrPen") |
| [grav-mcp update\_page sends lang in the body instead of the query string, so non-default languages are never updated](https://getgrav.org/forum/plugins/grav-mcp-update-page-sends-lang-in-the-body-instead-of-the-query-string-so-non-default-languages-are-never-updated-t9469)    [Plugins](https://getgrav.org/forum/plugins) · by renedebaaij, 4 weeks ago |  | 1 | 260 | [3 weeks ago](https://getgrav.org/forum/plugins/grav-mcp-update-page-sends-lang-in-the-body-instead-of-the-query-string-so-non-default-languages-are-never-updated-t9469 "by Andy Miller") |
| [Tools / Scheduler some jobs not running.](https://getgrav.org/forum/plugins/tools-scheduler-some-jobs-not-running-t9471)    [Plugins](https://getgrav.org/forum/plugins) · by Thomas, 4 weeks ago |  | 1 | 274 | [4 weeks ago](https://getgrav.org/forum/plugins/tools-scheduler-some-jobs-not-running-t9471 "by Thomas") |
| [How to clone a flex object in twig](https://getgrav.org/forum/plugins/how-to-clone-a-flex-object-in-twig-t9438)    [Plugins](https://getgrav.org/forum/plugins) · by complanar, 1 month ago |  | 6 | 592 | [1 month ago](https://getgrav.org/forum/plugins/how-to-clone-a-flex-object-in-twig-t9438 "by complanar") |
| [Integration of GRAV articles into my principal website](https://getgrav.org/forum/plugins/integration-of-grav-articles-into-my-principal-website-t9440)    [Plugins](https://getgrav.org/forum/plugins) · by BenLaKnet, 1 month ago |  | 1 | 495 | [1 month ago](https://getgrav.org/forum/plugins/integration-of-grav-articles-into-my-principal-website-t9440 "by BenLaKnet") |
