# HTML Styles and CSS classes

**URL:** <https://community.weweb.io/t/html-styles-and-css-classes/9629>\
**Category:** Ask us anything\
**Tags:** custom-css, performance\
**Created:** [July 9, 2024, 5:24pm UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629 "2024-07-09T17:24:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![borisdonchev](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@borisdonchev](https://community.weweb.io/u/borisdonchev)\
**Post date:** [July 9, 2024, 5:24pm UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629/1 "2024-07-09T17:24:48Z")

</div>

Hello weweb community,

I have an issue regarding the usage of Weweb classes.

Problem 1:  
Weweb seems to generate HTML styles for every element off the bat. I can’t seem to find a way to circumvent this.  
**This bloats the HTML code IMO unnecessarily with repeated and / or unused styles, which reduces the performance of the app.**

Problem 2:  
Through the usage of Weweb classes, the only thing that I seem to be achieving is that I can implement the styling easier. I cannot find any CSS code that is generated and any class that is applied to the element  
I was hoping that this will solve the issue, but this doesn’t seem to be the case.

What I want is to reduce the usage of duplicated HTML styles and start using CSS styles.

**Am I missing something? Is there any solution to this?**

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 10, 2024, 1:03pm UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629/2 "2024-07-10T13:03:43Z")

</div>

Hi @borisdonchev 🙂  
Yes, that’s the state of the classes in WeWeb at the moment. But this will be improved in the future !  
Other than performance, how is your experience using classes in WeWeb?

---

<div class="post-metadata">

**Author:** ![borisdonchev](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@borisdonchev](https://community.weweb.io/u/borisdonchev)\
**Post date:** [July 15, 2024, 8:30am UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629/3 "2024-07-15T08:30:18Z")

</div>

Hi @jptrinh  
Thank you for the info! Do you have a planned release date for this feature? Or something rough? This bloats our HTML quite a bit and is a source of some headaches for us.

And also - is there a way to reduce the amount of generated styles for an element?

As for the Weweb classes - we are not using them. Using the GUI to style elements is fairly simple and the added benefit of the weweb classes is not big enough for us.

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 15, 2024, 9:14pm UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629/4 "2024-07-15T21:14:48Z")

</div>

In the coming months or so!  
The only thing I can think of, is not defining unnecessary properties. For instance, make sure to reset the properties (you can identify that a value is set when the property name has a grey highlight) instead of setting it manually to the default value.

---

<div class="post-metadata">

**Author:** ![borisdonchev](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@borisdonchev](https://community.weweb.io/u/borisdonchev)\
**Post date:** [September 10, 2024, 6:08am UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629/5 "2024-09-10T06:08:38Z")

</div>

Hey! Has there been any development regarding this?

---

<div class="post-metadata">

**Author:** ![borisdonchev](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@borisdonchev](https://community.weweb.io/u/borisdonchev)\
**Post date:** [December 9, 2024, 9:55am UTC](https://community.weweb.io/t/html-styles-and-css-classes/9629/6 "2024-12-09T09:55:20Z")

</div>

Hey! Has there been any development regarding this?
