syntax-highlighting icon indicating copy to clipboard operation
syntax-highlighting copied to clipboard

Atelier "Savanna light" for CudaText

Open dajare opened this issue 6 months ago • 2 comments

Hi - I thought I should let you know I have made an attempt to "port" the Savanna light theme for CudaText: https://github.com/dajare/cudatext-savanna-theme

It is pretty rough-and-ready, but it works for me :-). I would love to know if it is possible to automate conversion of the Atelier themes for CudaText, but I did this one manually, and I'm sure I missed some assignments.

Anyway, thanks for your "palettes"!

dajare avatar Jul 08 '25 16:07 dajare

Hi @dajare that's awesome!

Yes it is possible to automate conversions for all Base16 themes with a tool called Base16-Builder , which is not maintained anymore but does still work. Alternatively there is a builder in PHP made by the creator of base16 Chris Kempson. (BTW If you have a PHP server running locally it's also possible to create your own templates in PHP syntax and output them with Curl, but this is far more involved).

For an example how this can be done with Base16-Builder, look at the repository for VSCode and look in the io.sh file for the input > output syntax for how theme files can be created in batch with this tool.

# file has to be made executable with chmod +x
./io.sh

For dark variants of Atelier Schemes, maybe look if someone already did a theme of Solarized (or any of the other Base16 schemes) for CudaText and use that as a starting point to kickstart the templates db/templates/theme-syntax/dark.ejs and the db/templates/theme-ui/dark.ejs.

Input-output from the commandline would work something like this (when having Base16-Builder globally installed on your machine):

base16-builder --scheme "db/schemes/atelier-savanna.yml" --template "db/templates/theme-syntax/light.ejs" > "themes/atelier-savanna (light).cuda-theme-syntax"
base16-builder --scheme "db/schemes/atelier-savanna.yml" --template "db/templates/theme-ui/light.ejs" > "themes/atelier-savanna (light).cuda-theme-ui"
base16-builder --scheme "db/schemes/atelier-savanna.yml" --template "db/templates/theme-syntax/dark.ejs" > "themes/atelier-savanna (dark).cuda-theme-syntax"
base16-builder --scheme "db/schemes/atelier-savanna.yml" --template "db/templates/theme-ui/dark.ejs" > "themes/atelier-savanna (dark).cuda-theme-ui"

Making templates is also a manual process that requires a dedicated effort upfront, but pays out in the end. Good luck with this and let me know if you have any questions.

P.S. If you look in a scheme file in the VSCode repo you will see there is an extra variable called base0G that is not in the original repo. The color value of this variable is about 5% darker then base00 and came in as a solution for the ui. This was a solution for wanting to make the user interface darker then the darkest background-color base-00 ... if you know what I mean ..., having just 16 colours values can also be too limiting.

atelierbram avatar Jul 09 '25 15:07 atelierbram

Wow - thanks for that very full and informative reply: I never expected a response like that when "thinking out loud" about automating conversion! I will follow up your suggestions, and let you know now I get on. Very grateful! :pray:

dajare avatar Jul 10 '25 09:07 dajare