WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@musjj
Copy link
Contributor

@musjj musjj commented Sep 28, 2025

Expose a set of read-only attributes containing the chosen Catppuccin color palette.

Example usage:

{ config, ... }:
{
  my-color = config.catppuccin.palette.colors.base.hex;
}

This will help eliminate IFD for modules that require access to the color palette for various reasons. Users who wants to add personal touches/customizations to their themes will also benefit from this.

The workflow for the palette generation is meant to be run manually (via workflow_dispatch), because I don't think it needs frequent/regular updates. But I can change that if necessary.

I'm not confident with how the files are organized, but I've decided to create a separate file for the palette types because it got a bit long. Also, there might be a way to automatically generate the Nix types from the TypeScript types, but it's written manually by hand for now.

Fix: #734
Ref: #392

@musjj musjj mentioned this pull request Sep 28, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose color pallete as attributes

1 participant