Changing font size on UI for Entities card

any suggestion on how to change the font size on the Entities card? I tried the card-mode plugin but no luck. I have downloaded the card-mod.js file to a local folder /root/addons
and added the url to resources

is there any other way to do it?

sample Entity card config:

entities:
  - entity: switch.dining_light
    name: Dining Light
  - entity: switch.study_light
    name: Study Light
  - entity: switch.garage_light
    name: Garage light
  - entity: switch.garage_entrance
    name: Garage Entrance light
show_header_toggle: false
title: Switches
type: entities

running latest version of HA on raspberry pi with the homeassistant image

entities:
  - entity: switch.dining_light
    name: Dining Light
  - entity: switch.study_light
    name: Study Light
  - entity: switch.garage_light
    name: Garage light
  - entity: switch.garage_entrance
    name: Garage Entrance light
show_header_toggle: false
style: |
  ha-card {
    color: red;
  }
title: Switches
type: entities

error message i am getting with card-mod is

Expected a value of type `undefined` for `style` but received `"ha-card {\n color: red;\n}\n"`.