Help me understand card mod themes

So I want to add custom css to a premade theme (catpuccin-mocha for example). I have card mod installed, and lets say I decide to change my theme to another premade, will all my custom css be removed when changing?

What I thought was, if i made a theme yaml with with all the card mod code, it would carry over to any theme I selected.

Is it actually better for me to copy a premade theme’s css into the card mod theme yaml I had constructed? I’m not looking to overhaul everything, only specific cards/entities (I can do it individually, but I figure this would be better to just template).

So in short, are the card mod theme css dynamic and usable with other themes?

Card-mod themes need to be included in your theme yaml. If you change themes to one without card-mod config then yes you will lose that customisation. It’s easy enough to copy the card-mod theme block from one theme to another though.

thank you for clarifying