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

Adding ability to add custom style #58

Open
nicoladefranceschi opened this issue Nov 19, 2021 · 0 comments
Open

Adding ability to add custom style #58

nicoladefranceschi opened this issue Nov 19, 2021 · 0 comments

Comments

@nicoladefranceschi
Copy link

I would like to have the ability to add custom CSS for some small fixes.

In src/main.js

 static get styles() {
    return [
      sharedStyle,
      style,
    ];
  }

it would be nice to also have the ability to have a custom config "style" attributes where the user can add the wanted css
For instance, I'd like to change the size of the target and current temperature, but there could be many changes that are all easy with just some css

Perhaps a simple changes like this would suffice:

 static get styles() {
    const array = [
      sharedStyle,
      style,
    ];
    if(this.config.customStyle){
        array.push(this.config.customStyle)
    }
    return array;
  }

Let me know
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant