-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Colored text #1885
Comments
+1 |
I understand the desire but I dont plan on adding colored text. I recommend just using css. |
I think this is one place semantic is lacking behind other frameworks. There needs to be some utility classes that we can use to apply common styles to any element without having to write custom css. Styles that have the same meaning no matter what component you apply time to. Some examples are common text color classes, text alignment, font weight classes, etc. I am sure we could think of a few more if need be. I find myself having to extend semantic to support these since I find them extremely useful since I write less css on a daily basis with them. I would urge you to reconsider your position on this. How do you plan to complete with bootstrap and foundation without at least having feature parity with them? These seem like no brainer bare minimum necessities to me. |
+1 |
👍 colored text is surely a need. Why wouldn't you consider adding it @jlukic ? Would you merge if somebody make a pr? |
please add some color |
+1 |
2 similar comments
+1 |
+1 |
👍 |
1 similar comment
+1 |
@jlukic I think it's useful so that colors match the theme's / Less colors. Sure, someone could make their own classes, but not having to worry about future color changes is +:100: Please re-consider. |
+1 |
+1. It's very annoying. Why is it possible to create a blue button and not a blue text ?? |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1...I find the need for this all the time and it is annoying to have to manage my own custom CSS just to match colors available in other Semantic-UI components. |
+1 |
2 similar comments
+1 |
+1 |
+1 :) |
poor. just ridiculous! |
+1 |
2 similar comments
+1 |
+1 |
+1 please reconsider |
+1 |
1 similar comment
+1 |
Hey chaps, the best method to support a feature request is to use the reactions (there's a thumbs up in the first post - click on it and show your affection). Posting +1 only lowers the chances of it being implemented as it annoys everyone that's watching the project. (~1k guys so far receive an email everytime someone posts a +1) Thanks a lot. |
Does anyone know if there's already a fork with this feature? |
One could add the following in @text-colors: blue, green, orange, pink, purple, red, teal, yellow, black, grey, white;
.text {
.-(@i: length(@text-colors)) when (@i > 0) {
@c: extract(@text-colors, @i);
&.@{c} { color: @@c }
.-((@i - 1));
}.-;
} Which would generate: .text.white {
color: #FFFFFF;
}
.text.grey {
color: #CCCCCC;
}
.text.black {
color: #1B1C1D;
}
.text.yellow {
color: #F2C61F;
}
.text.teal {
color: #00B5AD;
}
.text.red {
color: #D95C5C;
}
.text.purple {
color: #564F8A;
}
.text.pink {
color: #D9499A;
}
.text.orange {
color: #E07B53;
}
.text.green {
color: #5BBD72;
}
.text.blue {
color: #3B83C0;
} And could be used as: <span class="red text">I am red!</span> |
here is a SASS version of the great LESS function that @kamalkhan provided above. after using this I'm kind of leaning towards SemanticUI not providing text colors like this in their build--however since it's such a common use case, it would be great to have a section of the SemanticUI site that had SASS/LESS "recipes" like this where users could add-on as needed:
so, the SASS version is much shorter and easier to understand than the LESS version in my opinion...but I don't want to ruffle feathers :-) 💯 |
I tried UI today and i'ts incredible it doesn't have text colors for span etc... +1 |
Mildly related to this. Is there already a variable with the standard Semantic UI colours in it that we can use when iterating? I couldn't find one myself and wondered why there is so much repetition in the SASS already due to this. |
@brendon The color names in |
Thanks @kamalkhan, I should be correct and say LESS rather than SASS :) I see that the actual colours are defined in Semantic UI (e.g. @blue etc...) but there isn't a list of the colours in a variable (like you provide above) to make it easier to write an extension that iterates over the standard colours in Semantic UI. I guess they're not going to change any time soon, but if they did, this would make things a bit quicker to adjust. |
Hey, @kamalkhan, nice initiative, but I think it would be best to implement it as [class*="red text"] instead of .red.text That way you could do something like: I could be terribly mistaken, though. It has happened before. |
+1 |
1 similar comment
+1 |
+1 "D |
Rather than the +1's, use the reactions feature as per: #1885 (comment) Saves on having to read unnecessary issue emails with |
<sarcasm> |
I can't understand why headers / colored headers are component while colored content / text / paragraph / whatever-you-call-it is not. |
in SASS you can map the colors if you want to change them:
|
@rothattack I think most people here know how to generate classes with sass. As most people know how to implement a modal. But they still use this library. Also: Color schema is part of this library. Why would you want to generate a theme outside and keep it sync manually? You see the point? :) |
+1 |
Arbitrarily ignoring rational requests like a petty dictator is a great way to encourage people to start a community-based fork. Great work on the project @jlukic but the casual dismissal of legitimate requests without so much as a nod is going to alienate you, bud. |
You cant argue on a level of total ignorance: #1885 (comment)
Specifically the highlighted part in quote is the core problem. It makes it look like that: #1885 (comment) @jlukic: Please, if you have real concerns implementing it or let others implement it, which bother you, share them with the community. The reaction on this issue is great enough, so its worth giving it a proper reply after over 2 years of its existence. |
How to get colored text ex
class="ui blue text"
The text was updated successfully, but these errors were encountered: