-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
[WIP] Blog: How to style Blazorise components #5626
base: rel-1.6
Are you sure you want to change the base?
Conversation
Need to receive the image for the cover, and need feedback from repo owners before this can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I'd like that a blog post like this focus more on Blazorise components, and what's so special about them.
- What value do we provide to the end user?
- How can they be more productive?
- What special apis do we provide with them?
- Do we solve specific styling problems in interesting or easy ways for the user? For example the common problem when people want to center some content? Or other common styling problems?
The sales pitch for Blazorise and generally component libraries, is that you need to know little about what happens under the hood or how stuff works, and we provide abstractions and apis to make it easy to use. I'd focus on that.
Users of this library want to solve common problems quickly, not learn how to use html/css (although knowing that helps haha)
@ddjerqq Since I believe I'm reviewing one of your PRs for the first time, I just want to make it clear that I don't want to come across as rude or harsh or anything like that.
You're of course free to contest any of the review comments. They are just based on my opinions from personal / professional experience, and it does not mean they are correct or apply here, we can all just friendly discuss about it.
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
Documentation/Blazorise.Docs/Pages/Blog/2024-07-19_HowToStyleBlazoriseComponents/Index.md
Outdated
Show resolved
Hide resolved
@stsrki is it too late to retarget rel-1.6 or will it be fine? |
Are we perhaps loosing too much page with the intro? almost half of the page for the intro and some duplicated info? Also Is it how css works with Blazor or with Blazorise? can we perhaps tie the following bit with the purpose of the blog post? Mentioning how we already provide default styling for these providers, that can be further overriden with the apis/techniques we provide?
|
Here we loose an awesome opportunity to touch on some points about Blazorise theming and how we can quickly AND globally further customize the app, is there nothing we can actually speak about here? |
Insert |
I like the bit about css isolation now, I think it's better explained. I'd almost move it to its own blog article and enhance it a little bit more. It may be a shorter blog but it's concise and straight to the point. Also good for SEO if someone is looking for css isolation in blazor or blazorise or something like that? |
I still think there's little about how you use Blazorise api/tools to style the app, I'd like that @stsrki takes a look for a different pair of eyes over it, I'm not sure I'm giving the best feedback here. After all he's the pro with the blazorise css providers and styling stuff. |
Agree. |
I have targeted Regarding the David comments, I agree with him so there's not much I can add. The blog is getting there just rephrase a few thing according to David and we can publish it. |
I'm sorry for the big delay, I will continue working on this! |
updated giorgi.png picture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we have a lot of utility classes to style elements.
Like:
- TextColor
- TextWeight
- Width
- Height
- Overflow
- etc.
Inline CSS styling can be applied to any Blazor element directly. | ||
|
||
```html|InlineClass | ||
<div style="color: red;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to show more how Blazorise uses style.
<Div Style="color: red;">
```html|BlazoriseCSSExample | ||
<Alert Color="Color.Success" Visible> | ||
<AlertMessage>Well done!</AlertMessage> | ||
<AlertDescription Class="bg-topo">You successfully read this important alert message.</AlertDescription> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is bg-topo
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be bg-red, i will fix it
|
||
### Theming | ||
|
||
Blazorise has support for themes. You can customize Blazorise with your own theme! Change the colors, the typography and much more using themes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give a real example of using theme.
Example of using utilities <Div Width="Width.Px(300)" Height="Height.Is75" TextOverflow="TextOverflow.Wrap" TextColor="TextColor.Muted">
</Div>
|
Added a blog that showcases how to style blazorise components, and goes in depth about how the isolated CSS feature works with blazor
How Has This Been Tested?
Ran the docs server, and checked for visual bugs. Found none.
Types of changes
Checklist:
master
for dev,rel-1.x
for maintenance).