[GH-ISSUE #1386] Allow to put css in the config file #3226

Closed
opened 2026-05-22 23:54:55 +01:00 by JakeStanger · 4 comments
Owner

Originally created by @lypwig on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1386

Similarly to #1385, sometimes a small amount of css is required for a specific module and it can be convenient to put the style directly in the module:

  - type: custom
    style: |
      .item {
        background: red
      }
    bar: ...
Originally created by @lypwig on GitHub (Feb 17, 2026). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1386 Similarly to #1385, sometimes a small amount of css is required for a specific module and it can be convenient to put the style directly in the module: ```yml - type: custom style: | .item { background: red } bar: ... ```
Author
Owner

@imnotpoz commented on GitHub (Feb 17, 2026):

This can already be achieved in the main css file, e.g. https://github.com/JakeStanger/ironbar/wiki/battery#styling

Each module has its own class selectors you can use to theme them separately

<!-- gh-comment-id:3917673148 --> @imnotpoz commented on GitHub (Feb 17, 2026): This can already be achieved in the main css file, e.g. https://github.com/JakeStanger/ironbar/wiki/battery#styling Each module has its own class selectors you can use to theme them separately
Author
Owner

@lypwig commented on GitHub (Feb 17, 2026):

I know I can customize the modules in the css file (and I love it!). :)

This suggestion is more about putting the css directly in the config file itself, where the module is defined.

This also allows to put all the required resources in one file, which is greet to share modules (related discussion: #1384).

<!-- gh-comment-id:3917697121 --> @lypwig commented on GitHub (Feb 17, 2026): I know I can customize the modules in the css file (and I love it!). :) This suggestion is more about putting the css directly in the config file itself, where the module is defined. This also allows to put all the required resources in one file, which is greet to share modules (related discussion: #1384).
Author
Owner

@lypwig commented on GitHub (Feb 19, 2026):

I think all this stuff represents a considerable amount of work and might be out of scope of this project, sorry for the inconvenience. Feel free to reopen if necessary.

<!-- gh-comment-id:3930383406 --> @lypwig commented on GitHub (Feb 19, 2026): I think all this stuff represents a considerable amount of work and might be out of scope of this project, sorry for the inconvenience. Feel free to reopen if necessary.
Author
Owner

@JakeStanger commented on GitHub (Feb 19, 2026):

I don't want to add support for languages inside the configuration other than small script snippets. CSS files can be imported from the main stylesheet if you want a modular system.

<!-- gh-comment-id:3930515047 --> @JakeStanger commented on GitHub (Feb 19, 2026): I don't want to add support for languages inside the configuration other than small script snippets. CSS files can be imported from the main stylesheet if you want a modular system.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#3226
No description provided.