stylix icon indicating copy to clipboard operation
stylix copied to clipboard

vencord: apply fonts

Open urocylus opened this issue 1 year ago • 2 comments

no mention of fonts in the theme, is it possible to use them in moustache?

urocylus avatar Feb 02 '25 14:02 urocylus

no mention of fonts in the theme, is it possible to use them in moustache?

AFAIK, it is not trivially possible to inject arbitrary values into Moustache files using config.lib.stylix.colors:

config.lib.stylix.colors comes from an external library which doesn't currently provide a way to add custom variables.

-- https://github.com/danth/stylix/pull/223#issuecomment-1902056727

You might want to inline the file and inject strings with Nix:

xdg.configFile."Vencord/themes/stylix.theme.css".text = ''
  base00: ${base00}
  font: ${font}
'';

trueNAHO avatar Feb 08 '25 15:02 trueNAHO

gotchya, will do

urocylus avatar Feb 08 '25 16:02 urocylus