Closed Swearengen closed 2 months ago
I add styles by figma for tabs. We can use starlight tab component in markdown like this:
import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="Stars">
Sirius, Vega, Betelgeuse
</TabItem>
<TabItem label="Moons">
Io, Europa, Ganymede
</TabItem>
</Tabs>
Looks mostly correct, but I think there's a difference in bottom padding between the tab title and the underline.
Current state of this PR:
Figma:
Edit: the font weight looks different to the design also
@osslate Spacing should be fixed. I am not sure why font weight looks different, styling is the same as figma.
Looks mostly correct, but I think there's a difference in bottom padding between the tab title and the underline. Current state of this PR: Figma: Edit: the font weight looks different to the design also
@osslate Spacing should be fixed. I am not sure why font weight looks different, styling is the same as figma.
Yes the font looks like its heavier in the pr vs figma
Looks mostly correct, but I think there's a difference in bottom padding between the tab title and the underline. Current state of this PR: Figma: Edit: the font weight looks different to the design also
@osslate Spacing should be fixed. I am not sure why font weight looks different, styling is the same as figma.
Yes the font looks like its heavier in the pr vs figma
css Styles are the same as figma. I am not sure that I see the difference when I run docs locally
Where is this implemented so I can test?
Where is this implemented so I can test?
You can add
import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="Stars">
Sirius, Vega, Betelgeuse
</TabItem>
<TabItem label="Moons">
Io, Europa, Ganymede
</TabItem>
</Tabs>
to markdown, and if you have styling I added on this branch you can see how it looks
The latest updates on your projects. Learn more about Vercel for Git ↗︎