Make top-level Sidebar Items subtle like nested Sidebar Items #2908
Replies: 1 comment 1 reply
-
Thanks for starting this discussion, trueberryless! 🙌 Just sharing an image of your jump-start example, and using it as a jump start. I'm noticing that it maybe feels odd to have the group headings larger than the stand alone items, I think? Maybe just bold, but same size would be enough? I know you're not proposing perfect CSS, but that was the first thing I noticed. If a page is important enough to be a top level, stand-alone page, then it feels weird for it to be smaller than a group heading, I think. In fact, when Group 2 is collapsed below, it makes me think that the top level links underneath it (before Group 3) are actually its sub pages: |
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.32.0
What is your idea?
Currently, top-level items in the Starlight Sidebar are pretty bold and large, like you can see here.
I personally think that those items should be designed more subtle and smaller like the other items inside groups. And as Chris mentioned in Discord this design choice was made very efficient. Now that Starlight has gained more popularity, I think it's time to address this "design artifact".
Write down below what you think could be improved, share ideas or just upvote if you agree with the suggestion!
If you wanna temporarily change the design in your project without waiting for this discussion, take this CSS with you:
Reference: https://github.com/trueberryless-org/starlight-subtle-top-level-items/blob/603537096a4a8ced917b05a2d70b0799e8e6ef58/starlight/src/styles/subtle-top-level-items.css#L1-L16
Why is this feature necessary?
Make all top-level items / items without groups / unnested items more subtle, cleaner and/or smaller.
Do you have examples of this feature in other projects?
I created an example website so everybody can view the suggestion in different browsers, on different screen sizes etc.:
https://starlight-subtle-top-level-items.trueberryless.org/
Participation
Beta Was this translation helpful? Give feedback.
All reactions