How to get css attributes values from mytheme.scss

Is possible to read css attributes programmatically?

like this

.v-table-row, .v-table-row-odd {
height: 25px;
}

something like

getCSSAttribute(“.v-table-row.height”);

The problem is, some components have height and width, based on selected Theme, so if we want to
change the Theme, now we must to change this values using properties and
would be great this happen dynamically based on the current Theme.

Thanks

If the calcualtion is a math. formula, based on a value on a selected theme and it’s same formula, then I guess you can create an scss instead of a css, and compile the time on the fly, instead of calculating the dynamic value programatically ?

Otherwise, you can check this:

https://vaadin.com/wiki/-/wiki/Main/Dynamically+injecting+CSS

I think you can just add new values, cannot get the current value of a css attribute