Publish notes didn't render from the custom CSS

That is to be expected, the CSS files simply modify the html that is being displayed in Joplin. If you need it to match elsewhere will need the same CSS to modify the rendered html in the same way.
It would be good as a feature to allow a CSS to be 'attached' to a published note though.