Use a UI scoped template
<template>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Water Brush">
</template>
<style>
.nrdb-ui-widget.nrdb-ui-text.water .nrdb-ui-text-label,
.nrdb-ui-widget.nrdb-ui-text.water .nrdb-ui-text-value
{
font-family: "water brush", serif;
font-size: 2em;
}
</style>
[{"id":"c515ca39c34c984d","type":"ui-template","z":"862ec766f2af6f61","group":"","page":"","ui":"22ea43815413e748","name":"","order":0,"width":0,"height":0,"head":"","format":"<template>\n <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Water Brush\">\n</template>\n<style>\n .nrdb-ui-widget.nrdb-ui-text.water .nrdb-ui-text-label,\n .nrdb-ui-widget.nrdb-ui-text.water .nrdb-ui-text-value\n {\n font-family: \"water brush\", serif;\n font-size: 2em;\n }\n</style>","storeOutMessages":true,"passthru":true,"resendOnRefresh":true,"templateScope":"widget:ui","className":"","x":720,"y":880,"wires":[[]]},{"id":"05de879a911124cd","type":"ui-text","z":"862ec766f2af6f61","group":"b1da20a2d7d13012","order":0,"width":0,"height":0,"name":"","label":"I should be using water font","format":"{{msg.payload}}","layout":"row-spread","style":false,"font":"","fontSize":16,"color":"#717171","className":"water","x":740,"y":920,"wires":[]},{"id":"22ea43815413e748","type":"ui-base","name":"base","path":"/dashboard","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"showPageTitle":true,"navigationStyle":"default","titleBarStyle":"default"},{"id":"b1da20a2d7d13012","type":"ui-group","name":"Chart Tests","page":"94b0d43f03c8e17e","width":"12","height":"1","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false"},{"id":"94b0d43f03c8e17e","type":"ui-page","name":"Chart Tests","ui":"22ea43815413e748","path":"/chart-tests","icon":"home","layout":"grid","theme":"c2ff5ba1f92a0f0e","order":9,"className":"","visible":"true","disabled":"false"},{"id":"c2ff5ba1f92a0f0e","type":"ui-theme","name":"Default","colors":{"surface":"#ffffff","primary":"#6771f4","bgPage":"#e5dcdc","groupBg":"#ffffff","groupOutline":"#d39292"},"sizes":{"pagePadding":"6px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"6px","density":"default"}}]