-
-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i18n(fr): add
resources/themes
and update resources/plugins
& `gu…
…ides/css-and-tailwind` (#2919)
- Loading branch information
Showing
3 changed files
with
78 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
title: Thèmes | ||
description: Modifiez l'apparence visuelle de votre documentation avec un thème communautaire pour Starlight | ||
tableOfContents: false | ||
sidebar: | ||
order: 1 | ||
head: | ||
- tag: style | ||
content: | | ||
body { --sl-content-width: 66.75rem; } | ||
--- | ||
|
||
import ThemeGrid from '~/components/theme-grid.astro'; | ||
|
||
Un thème est un module d'extension Starlight qui modifie l'apparence visuelle d'un site avec du [CSS personnalisé](/fr/guides/css-and-tailwind/), des [redéfinitions de composants](/fr/guides/overriding-components/), ou d'autres nouvelles fonctionnalités. | ||
|
||
### Thèmes communautaires | ||
|
||
Installez un thème créé par la communauté pour personnaliser rapidement l'apparence de votre site. | ||
|
||
<ThemeGrid | ||
labels={{ | ||
/** Accessible label for the theme toggle. */ | ||
legend: 'Aperçu', | ||
/** Accessible label for the dark color scheme variant. */ | ||
dark: 'Sombre', | ||
/** Accessible label for the light color scheme variant. */ | ||
light: 'Clair', | ||
}} | ||
themes={[ | ||
{ | ||
title: 'Starlight Rapide', | ||
description: | ||
'Thème Starlight inspiré du thème Vitesse pour Visual Studio Code.', | ||
href: 'https://starlight-theme-rapide.vercel.app/', | ||
previews: { light: 'rapide-light.png', dark: 'rapide-dark.png' }, | ||
}, | ||
{ | ||
title: 'Starlight Obsidian Theme', | ||
description: | ||
"Thème Starlight inspiré par le style des sites d'Obsidian Publish.", | ||
href: 'https://fevol.github.io/starlight-theme-obsidian/', | ||
previews: { light: 'obsidian-light.png', dark: 'obsidian-dark.png' }, | ||
}, | ||
{ | ||
title: 'Catppuccin for Starlight', | ||
description: 'Thème apaisant aux couleurs pastel pour Starlight.', | ||
href: 'https://catppuccin-starlight.otterlord.dev/', | ||
previews: { light: 'catppuccin-light.png', dark: 'catppuccin-dark.png' }, | ||
}, | ||
{ | ||
title: 'Ion', | ||
description: 'Un thème élégant et moderne pour Starlight.', | ||
href: 'https://louisescher.github.io/starlight-ion-theme/', | ||
previews: { light: 'ion-light.png', dark: 'ion-dark.png' }, | ||
}, | ||
{ | ||
title: 'Starlight Black', | ||
description: 'Thème Starlight inspiré par la doc de shadcn.', | ||
href: 'https://starlight-theme-black.vercel.app/', | ||
previews: { light: 'black-light.png', dark: 'black-dark.png' }, | ||
}, | ||
{ | ||
title: 'Starlight Flexoki', | ||
description: | ||
'Un thème chaleureux et convivial basé sur la palette de couleurs Flexoki.', | ||
href: 'https://delucis.github.io/starlight-theme-flexoki/', | ||
previews: { light: 'flexoki-light.png', dark: 'flexoki-dark.png' }, | ||
}, | ||
]} | ||
/> | ||
|
||
:::tip[Ajoutez le vôtre !] | ||
Avez-vous construit un thème pour Starlight ? | ||
[Ouvrez une PR](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md#themes) ajoutant votre thème à cette page ! | ||
::: |