Jump to content
RaquelO

How can I apply colors from the W3.CSS Flat UI theme to text?

Recommended Posts

I've been trying to apply the pomegranate color from the W3.CSS Flat UI theme to text, but it doesn't work. I've tried w3-text-pomegranate and w3-text-flat-pomegranate. Is it possible to apply theme colors to text using the class method?

Edited by RaquelO
clarity and correction

Share this post


Link to post
Share on other sites

That class applies background-color, and color of.

.w3-flat-pomegranate {color:#fff; background-color:#c0392b;}

So you have to create your own custom class to apply color: #c0392b; and background-color: to go with it.

Share this post


Link to post
Share on other sites

I wouldn't use those class colors, i consider them a bad idea, i would use a general colour class colorstyle1, colorstyle2 etc then i could change that general color class to whatever style colour i want, instead of removing every w3-red and changing to w3-blue on every element using it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...