Starlight 內建圖示
Starlight 內含超過 200 個內建圖示,可透過 <Icon> 元件使用——無需額外安裝。starlight-plugin-icons 外掛已在主題中設定完成,因此這些圖示可在任何內容儲存庫中使用。
使用 Icon 元件
Section titled “使用 Icon 元件”匯入元件並傳入圖示名稱:
import { Icon } from '@astrojs/starlight/components';
<Icon name="star" /><Icon name="rocket" size="2rem" color="var(--sl-color-accent)" /><Icon name="seti:python" label="Python file" />| 屬性 | 類型 | 預設值 | 說明 |
|---|---|---|---|
name | string | — | 必填。 下方表格中的圖示名稱。 |
label | string | — | 為螢幕閱讀器提供的無障礙標籤。適用於具有含義的圖示;裝飾性圖示可省略。 |
size | string | "1em" | 套用於寬度和高度的 CSS 尺寸值。 |
color | string | "currentColor" | CSS 顏色值。 |
class | string | — | 額外的 CSS 類別。 |
up-caret
down-caret
right-caret
left-caret
up-arrow
down-arrow
right-arrow
left-arrow
UI 與介面圖示
Section titled “UI 與介面圖示”bars
translate
pencil
pen
document
add-document
setting
external
download
cloud-download
moon
sun
laptop
open-book
information
magnifier
forward-slash
close
error
warning
approve-check-circle
approve-check
rocket
star
puzzle
list-format
random
comment
comment-alt
heart
社群與社交圖示
Section titled “社群與社交圖示”github
gitlab
bitbucket
codePen
farcaster
discord
gitter
twitter
x.com
mastodon
codeberg
youtube
threads
linkedin
twitch
azureDevOps
microsoftTeams
instagram
stackOverflow
telegram
rss
facebook
email
phone
reddit
patreon
signal
slack
matrix
hackerOne
openCollective
blueSky
discourse
zulip
pinterest
tiktok
技術與框架圖示
Section titled “技術與框架圖示”astro
starlight
node
npm
pnpm
bun
deno
biome
mdx
alpine
pkl
jsr
nostr
cloudflare
vercel
netlify
apple
linux
homebrew
nix
backstage
confluence
jira
storybook
sourcehut
substack
編輯器與瀏覽器
Section titled “編輯器與瀏覽器”vscode
jetbrains
zed
vim
figma
sketch
chrome
edge
firefox
safari
Seti 檔案圖示
Section titled “Seti 檔案圖示”Seti 圖示使用 seti: 前綴,專為檔案類型表示而設計。它們可在 <Icon> 元件和 <FileTree> 元件中使用。
<Icon name="seti:typescript" /><Icon name="seti:docker" />seti:javascript
seti:typescript
seti:python
seti:rust
seti:go
seti:java
seti:c
seti:cpp
seti:c-sharp
seti:f-sharp
seti:ruby
seti:php
seti:swift
seti:kotlin
seti:dart
seti:scala
seti:haskell
seti:elixir
seti:clojure
seti:lua
seti:perl
seti:R
seti:julia
seti:nim
seti:zig
seti:d
seti:crystal
seti:ocaml
seti:haxe
seti:powershell
seti:shell
seti:prolog
seti:purescript
seti:elm
seti:vala
seti:asm
seti:cu
seti:wasm
網頁與標記語言
Section titled “網頁與標記語言”seti:html
seti:css
seti:sass
seti:stylus
seti:json
seti:xml
seti:yml
seti:markdown
seti:csv
seti:graphql
seti:svg
seti:tex
seti:react
seti:vue
seti:svelte
seti:spring
seti:rescript
seti:jade
seti:pug
seti:haml
seti:mustache
seti:nunjucks
seti:jinja
seti:twig
seti:liquid
seti:smarty
seti:slim
seti:coldfusion
DevOps 與建置工具
Section titled “DevOps 與建置工具”seti:docker
seti:terraform
seti:git
seti:github
seti:gitlab
seti:jenkins
seti:npm
seti:yarn
seti:webpack
seti:rollup
seti:vite
seti:gulp
seti:grunt
seti:gradle
seti:maven
seti:sbt
seti:makefile
seti:bazel
seti:babel
seti:eslint
seti:stylelint
seti:prisma
seti:firebase
seti:heroku
seti:puppet
seti:pipeline
檔案類型與其他
Section titled “檔案類型與其他”seti:folder
seti:default
seti:config
seti:tsconfig
seti:lock
seti:license
seti:todo
seti:ignored
seti:db
seti:notebook
seti:image
seti:svg
seti:pdf
seti:font
seti:video
seti:audio
seti:zip
seti:word
seti:xls
seti:windows
seti:sublime
seti:illustrator
seti:photoshop
seti:favicon
seti:code-search
seti:info
seti:clock