Step 2: Introduce palette pipeline, generators, and multi-scheme support (base16/base24/semantic)#2290
Open
make-42 wants to merge 6 commits into
Open
Conversation
tinty: move from the haskell generator to tinty as a first step tinty: move from the haskell generator to tinty as a first step tinty: move from the haskell generator to tinty as a first step tinty: move from the haskell generator to tinty as a first step
philocalyst
reviewed
Apr 24, 2026
make-42
commented
Apr 24, 2026
Contributor
Author
make-42
left a comment
There was a problem hiding this comment.
alright, thanks @philocalyst for your comments! I fixed it up!
Contributor
Author
|
Btw this is now a step forward compared to the code from the matugen PR feature wise |
Contributor
Author
Contributor
Author
|
with the first config behaving exactly like the code from the matugen PR |
philocalyst
approved these changes
Apr 24, 2026
6e9c524 to
f5b733a
Compare
f5b733a to
422e8e4
Compare
0xda157
requested changes
Apr 30, 2026
…se nix module system instead of imports
Contributor
Author
|
alright, i took what you said into account and added extra documentation to configuration.md |
4e20103 to
e1e2a2b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


The code for this PR is written off the tip of this PR: #2289
This PR replaces the
base16Scheme-centric pipeline with a more general palette system supporting:Changes
introduces stylix.palette.generators.{base16, base24, semantic}
includes tinty + matugen implementations
introduces mappingFunction
includes initial semantic2base16 mapping
stylix.palette.manual.{base16, base24, semantic}
manual/generator -> merge -> mappingFunction -> override -> base16 consumption (this will later be changed to allow for themes to be written for different schemes and user preferences making it possible to choose what schemes are consumed in order of priority for available schemes by theme module)
There probably needs to be documentation written for this...
This is a direct solution to step 2 outlined in the matugen PR.
It's still lacking how to handle consumption of non base16 schemes but I'm waiting on your input for that.
Here's what the testbeds that are now using matugen (semantic) then mapped to base16 look like: