For the newest piefed release, I worked on a new feature, that allows community admins to choose a “community theme”, which overrides the users theme while they are browsing the specific community. This works for every user on piefed, that has the newest version, it unfortunately won’t show up on lemmy, because they have a completely different theming system.

There are already some cool themes to choose from (the themes, that the users could pick from before), but the idea with this, is that you can create your own themes for your community and propose it to our Codeberg repository. There are so many cool ways, to make your community stand out, I am imagining maybe a swirling background for a balatro community, a theme that makes posts looked like ripped out pages and a custom comic-book hand as a cursor for !nonpolitical_comics@piefed.social or other comic communities, maybe the hercules, or irix theme for retro communities.

I am sure you have many ideas, that are even cooler and I really hope that piefed get’s even more wild and interresting with this update!

(PS: I know that the screenshot is of a lemmy community and that this wouldn’t work, it’s just meant as an example)

  • DeckPacker@piefed.blahaj.zoneOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 天前

    Yeah, unfortunately it will only work for servers, that have the theme in their files, so you would have to propose it to the repo.
    This is mainly because of security concerns, because there are a lot of ways to inject malicious Javascript code into a theme, and we don’t want that federating across piefed.

    • Link@rentadrunk.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 天前

      Any reason the themes can’t just be CSS and no JavaScript? This would prevent the risk.

      • DeckPacker@piefed.blahaj.zoneOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        6 天前

        There are a lot of ways to inject javascript into css aswell. With @import, if you just escape css with </style> and so many more. It would be a herculean task to really sanitize css so that it’s fully safe unfortunately and if we were to make any mistake, that would pose a massive security risk for our users.
        So maybe it’s possible, but I am afraid, that it’s beyond the scope of our project.

    • lumpenproletariat@quokk.au
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 天前

      That’s a fair enough reason. Shame it has to be that way, hope it doesn’t lead to bloat with hundreds/thousands of community themes.