Theme Development Process #1934
Replies: 1 comment 3 replies
-
Now, I don't know what most people do, but I'll tell you what I do: option 3 (living dangerously 😂). I've never tried the other two. I usually pick an existing theme whose layout is closest to what I've designed in Penpot, and create all kinds of theme overrides to match the styling. I never work from blank because That said, my latest project requires a standalone custom theme, so I've been making changes directly to the theme files in the site's input folder, and renamed the theme (I've started slowly documenting that process here for myself).
Earlier in my theme customization days, I found this tutorial helpful (note: some of the content is outdated): https://github.com/SimonPadbury/Publii-Bootstrap-Starter/tree/master/TUTORIALS |
Beta Was this translation helpful? Give feedback.
-
Say I want to develop a new new theme based on "Blank", as suggested in the developer documentation. It looks like the first step is to name the theme in config.json, and also to rename the "blank.lang.json" file to match the new theme name. I was wondering what a good process for making changes to the new theme is. From what I can see, and from peeking at the Publii source code, when a new theme is "installed" on a site and the site is rendered, the files are copied down and the style.css file is automatically generated. It looks like the system leaves the theme files alone until the next time the theme is "installed" (even if the version number isn't bumped).
So the options seem to be:
What do most people do? Also, are there any guides on the development process itself? I found lots of documention on the elements that go into a theme, but not so much on the process of developing and deploying a theme. It _looks like a deployed theme is just an archive of the same theme files that would be kept in GIT, including the auto-generated style.css file, but I didn't find that documented anywhere (which is not to say it doesn't exist).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions