For anyone else experiencing this same or similar issue, Mendix support helped me out by telling me that in the main.scss file in my custom module I must explicitly import the mixin and exclusion variables. In my case it was:
@import "../../../theme/web/exclusion-variables";
@import "../../../themesource/atlas_core/web/core/base/mixins/buttons";
Hopefully this helps other along the way.