Adding the class btn-flat to the surrounding a tag works. That gives the icon the same css classes as the other header icons.
<script type="text/discourse-plugin" version="0.4">
api.decorateWidget('header-icons:before', helper => {
return helper.h('li.header-dropdown-toggle', [
helper.h('a.icon.btn-flat#latest-button', {
href:'https://uskojarukous.fi/latest',
title: 'Uusimmat'
}, helper.h('i.fa.fa-bolt.d-icon.latest-button-icon')),
]);
});
</script>