diff --git a/docs/en/reference/default-theme-config.md b/docs/en/reference/default-theme-config.md index 4a43153893cd..de5ebffdb473 100644 --- a/docs/en/reference/default-theme-config.md +++ b/docs/en/reference/default-theme-config.md @@ -252,6 +252,7 @@ interface SocialLink { } type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -261,6 +262,7 @@ type SocialLinkIcon = | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string } diff --git a/docs/es/reference/default-theme-config.md b/docs/es/reference/default-theme-config.md index 72cebed7005b..ff3ed82406bb 100644 --- a/docs/es/reference/default-theme-config.md +++ b/docs/es/reference/default-theme-config.md @@ -239,6 +239,7 @@ interface SocialLink { } type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -248,6 +249,7 @@ type SocialLinkIcon = | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string } diff --git a/docs/ko/reference/default-theme-config.md b/docs/ko/reference/default-theme-config.md index c57c56ef07e3..d46f6fc332b6 100644 --- a/docs/ko/reference/default-theme-config.md +++ b/docs/ko/reference/default-theme-config.md @@ -239,6 +239,7 @@ interface SocialLink { } type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -248,6 +249,7 @@ type SocialLinkIcon = | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string } diff --git a/docs/pt/reference/default-theme-config.md b/docs/pt/reference/default-theme-config.md index 417cbc30a67a..2b8577518187 100644 --- a/docs/pt/reference/default-theme-config.md +++ b/docs/pt/reference/default-theme-config.md @@ -239,6 +239,7 @@ interface SocialLink { } type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -248,6 +249,7 @@ type SocialLinkIcon = | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string } diff --git a/docs/ru/reference/default-theme-config.md b/docs/ru/reference/default-theme-config.md index 265d17f19166..b4746d5c4a1c 100644 --- a/docs/ru/reference/default-theme-config.md +++ b/docs/ru/reference/default-theme-config.md @@ -239,6 +239,7 @@ interface SocialLink { } type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -248,6 +249,7 @@ type SocialLinkIcon = | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string } diff --git a/docs/zh/reference/default-theme-config.md b/docs/zh/reference/default-theme-config.md index a7028f1694b8..7c22a1173e0d 100644 --- a/docs/zh/reference/default-theme-config.md +++ b/docs/zh/reference/default-theme-config.md @@ -239,6 +239,7 @@ interface SocialLink { } type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -248,6 +249,7 @@ type SocialLinkIcon = | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string } diff --git a/src/client/theme-default/styles/icons.css b/src/client/theme-default/styles/icons.css index b5612d1f8192..54349f017034 100644 --- a/src/client/theme-default/styles/icons.css +++ b/src/client/theme-default/styles/icons.css @@ -89,7 +89,10 @@ --vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E"); } -/* social icons - used under CC0 1.0 from https://simpleicons.org/ */ +/* social icons - used under CC0 1.0 from https://simpleicons.org/ -- website icon used under ISC from https://lucide.dev/ */ +.vpi-social-bluesky { + --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z'/%3E%3C/svg%3E"); +} .vpi-social-discord { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E"); } @@ -118,6 +121,9 @@ .vpi-social-x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E"); } +.vpi-social-website { + --icon: url("%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-globe'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); +} .vpi-social-youtube { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E"); } diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index 37be5babd03c..440949e1e83b 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -334,6 +334,7 @@ export namespace DefaultTheme { } export type SocialLinkIcon = + | 'bluesky' | 'discord' | 'facebook' | 'github' @@ -343,6 +344,7 @@ export namespace DefaultTheme { | 'npm' | 'slack' | 'twitter' + | 'website' | 'x' | 'youtube' | { svg: string }