Semantic-ui: Changing Site Theme is not possible

Created on 7 Oct 2017  路  5Comments  路  Source: Semantic-Org/Semantic-UI

Hi, I use semantic for my vue project. Changing Site theme to something else is not possible, meanwhile changing theme for each element is possible. What's wrong with my setup?

Node: 8.6.0

Usage Question

Most helpful comment

@ylto site doesn鈥檛 change a theme for all components. When you change a component鈥檚 theme, you change a theme only for that component, so changing it for site won鈥檛 affect the button component鈥攐nly site鈥攁nd site is a component like any other that sets global things like typography, colors, and so on.

Also, please keep in mind that a theme might be existing only for a set of components, for example, if you look at pulsar and open elements category, you鈥檒l see that pulsar has got a theme only for the loader component, so it鈥檚 pointless to use pulsar for the button component. And that鈥檚 how you figure out if a theme has got styles for a component.

Closing the issue as resolved, but please feel free to post here if you have more questions.

All 5 comments

Hi @ylto, what are you changing it to?

@Banandrew material, amazon, github, etc. all of them didnt work. Does it has to do with my node version?

@ylto No. I can鈥檛 reproduce, the theme changes are applied correctly. The changes are subtle, are you sure you鈥檙e not missing anything? For instance, material theme changes the font from Lato to Roboto:
https://github.com/Semantic-Org/Semantic-UI/blob/796d2f66e26ae5bb76c604fe6a36914ad3d2fe2a/src/themes/material/globals/site.variables#L10
Could you please change the site鈥檚 theme to material and check if the font was changed using the developer tools?

@Banandrew It changed! But the button still in default theme. Can't it change to material too? The theme is set globally afterall.

selection_066

@ylto site doesn鈥檛 change a theme for all components. When you change a component鈥檚 theme, you change a theme only for that component, so changing it for site won鈥檛 affect the button component鈥攐nly site鈥攁nd site is a component like any other that sets global things like typography, colors, and so on.

Also, please keep in mind that a theme might be existing only for a set of components, for example, if you look at pulsar and open elements category, you鈥檒l see that pulsar has got a theme only for the loader component, so it鈥檚 pointless to use pulsar for the button component. And that鈥檚 how you figure out if a theme has got styles for a component.

Closing the issue as resolved, but please feel free to post here if you have more questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

zhaoyao91 picture zhaoyao91  路  3Comments

kntmrkm picture kntmrkm  路  3Comments

mixerp picture mixerp  路  3Comments

vinhtq picture vinhtq  路  3Comments