Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t find a way to change font size or background colour #408

Open
ic-dev21 opened this issue Dec 10, 2023 · 4 comments
Open

Can’t find a way to change font size or background colour #408

ic-dev21 opened this issue Dec 10, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ic-dev21
Copy link

Describe the bug
I tried to use compact mode but everything is off center and no settings seem to work.

I’d like the card background to turn orange when heating.

To Reproduce
Copy the compact example

Expected behavior
I’d like smaller fonts and things to be lined up correctly

image

# The least ammount of code possible to reproduce my error

type: custom:simple-thermostat
style: |
  ha-card {
    --st-font-size-xl: 20px;
    --st-font-size-m: 16px;
    --st-font-size-title: 16px;
    --st-font-size-sensors: 26px;
    --st-spacing: 0px;
    --st-mode-active-background: 
  }
entity: climate.thermostat_cuisine
layout:
  step: row 0
  mode:
    headings: false
    names: false
    icons: false
    labels: false
header: true
control: false

Screenshots
Always include a screenshot

Browser

  • OS: iOs
  • Browser: app
  • Simple Thermostat version from browser console: latest
  • Home Assistant version: latest
@ic-dev21 ic-dev21 added the bug Something isn't working label Dec 10, 2023
@ic-dev21
Copy link
Author

Was able to fix the alignment but still need help with mode based background colour

@mcvicthor
Copy link

I just noticed that my fonts exploded in recent weeks for the card (possibly since an update to card-mod?) and no font settings would work so I tried using this format for the style successfully

      type: custom:simple-thermostat
      entity: climate.itc_gym
      card_mod:
        style: |
          ha-card {
            --st-font-size-xl: 20px;
            --st-font-size-m: 14px;
          }
      layout:
        step: row
      step_size: 1
      hide:
        temperature: true
        state: true
      header: false
      control: false

@titis14
Copy link

titis14 commented Jan 1, 2024

Hi, same problem with me, all my css code is no longer taken into account.
firefox_2024-01-01_16-59-24

@titis14
Copy link

titis14 commented Jan 1, 2024

I just noticed that my fonts exploded in recent weeks for the card (possibly since an update to card-mod?) and no font settings would work so I tried using this format for the style successfully

      type: custom:simple-thermostat
      entity: climate.itc_gym
      card_mod:
        style: |
          ha-card {
            --st-font-size-xl: 20px;
            --st-font-size-m: 14px;
          }
      layout:
        step: row
      step_size: 1
      hide:
        temperature: true
        state: true
      header: false
      control: false

Thanks with card_mod added in the code it's good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants