{"_id":"@code-sugar/slidev-theme-portrait","_rev":"5-ffb2f76b58af891684205542aff90f3d","name":"@code-sugar/slidev-theme-portrait","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.0":{"name":"@code-sugar/slidev-theme-portrait","version":"0.0.0","keywords":["slidev-theme","slidev"],"_id":"@code-sugar/slidev-theme-portrait@0.0.0","maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"dist":{"shasum":"e5b25c04de58aa2c3329e9cca7ca5d39f26078d0","tarball":"https://registry.npmjs.org/@code-sugar/slidev-theme-portrait/-/slidev-theme-portrait-0.0.0.tgz","fileCount":12,"integrity":"sha512-p6eAbjL6MSgcrqXMLRaJy0tF7f09BvuUVv7PxLOr8pdVYdGiKuN7fyDygwZb70QhcJC9UqcxnplIZPVm5y2OeA==","signatures":[{"sig":"MEYCIQDDNaPB5CSu2rjlqG5NtNO3HcdQWRW00fllOmmqKBzbPAIhAOVCtN1Ens5yjQrauzq+L5H5s8KopDZLsvM79cBcZ0bN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8011},"type":"module","slidev":{"defaults":{"fonts":{"mono":"Fira Code","sans":"Nunito Sans"},"layout":"portrait","codeCopy":false,"aspectRatio":"9/16"},"colorSchema":"both"},"engines":{"node":">=18.0.0","slidev":">=0.48.0"},"gitHead":"579f7a19630b666e719d47c964d794328f77750b","scripts":{"dev":"slidev example.md --open","build":"slidev build example.md","export":"slidev export example.md","release":"npm publish --registry https://registry.npmjs.org --access public","screenshot":"slidev export example.md --format png"},"_npmUser":{"name":"whouu","email":"whouu336699@gmail.com"},"_npmVersion":"10.7.0","description":"[![NPM version](https://img.shields.io/npm/v/slidev-theme-portrait?color=3AB9D4&label=)](https://www.npmjs.com/package/@code-sugar/slidev-theme-portrait)","directories":{},"_nodeVersion":"18.20.3","dependencies":{"@slidev/types":"^51.0.2"},"_hasShrinkwrap":false,"devDependencies":{"@slidev/cli":"^51.0.2"},"_npmOperationalInternal":{"tmp":"tmp/slidev-theme-portrait_0.0.0_1737532753439_0.6349057537670895","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@code-sugar/slidev-theme-portrait","version":"0.0.1","keywords":["slidev-theme","slidev"],"_id":"@code-sugar/slidev-theme-portrait@0.0.1","maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"dist":{"shasum":"7f27ba42c5817e73f70ebfa6d73d4fc09db1d730","tarball":"https://registry.npmjs.org/@code-sugar/slidev-theme-portrait/-/slidev-theme-portrait-0.0.1.tgz","fileCount":12,"integrity":"sha512-UOUWQ2BlaE1aOUmMQnsPeJmEYqqQqRH76S+1/I/7sVYA4zxPb1KnQV1Odp4v7CVo0K2L8iX+GadJUyVrwPX3ew==","signatures":[{"sig":"MEYCIQDrEeV/cChWneyqQIj7xK8DKIFmh7xiBBQJ6IqnA/L8CQIhAITUXpk7ERp6YK2Aj272jX2h7diL+0BxwEh85YtDTSOp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8038},"type":"module","slidev":{"defaults":{"fonts":{"mono":"Fira Code","sans":"Nunito Sans"},"layout":"portrait","codeCopy":false,"aspectRatio":"9/16"},"colorSchema":"both"},"engines":{"node":">=18.0.0","slidev":">=0.48.0"},"gitHead":"cfac0d97076a8803cd95dd4cbd91fbd7e13efd1d","scripts":{"dev":"slidev example.md --open","build":"slidev build example.md","export":"slidev export example.md","release":"npm publish --registry https://registry.npmjs.org --access public","screenshot":"slidev export example.md --format png"},"_npmUser":{"name":"whouu","email":"whouu336699@gmail.com"},"_npmVersion":"10.7.0","description":"[![NPM version](https://img.shields.io/npm/v/@code-sugar/slidev-theme-portrait?color=3AB9D4&label=)](https://www.npmjs.com/package/@code-sugar/slidev-theme-portrait)","directories":{},"_nodeVersion":"18.20.3","dependencies":{"@slidev/types":"^51.0.2"},"_hasShrinkwrap":false,"devDependencies":{"@slidev/cli":"^51.0.2"},"_npmOperationalInternal":{"tmp":"tmp/slidev-theme-portrait_0.0.1_1737532891163_0.07554415727037544","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@code-sugar/slidev-theme-portrait","version":"0.0.2","keywords":["slidev-theme","slidev"],"author":{"name":"Lei Zhang"},"license":"MIT","_id":"@code-sugar/slidev-theme-portrait@0.0.2","maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"homepage":"https://github.com/PassionZale/slidev-theme-portrait#readme","bugs":{"url":"https://github.com/PassionZale/slidev-theme-portrait/issues"},"dist":{"shasum":"654a680f86692312e8c83daa3af6422fefe76c39","tarball":"https://registry.npmjs.org/@code-sugar/slidev-theme-portrait/-/slidev-theme-portrait-0.0.2.tgz","fileCount":12,"integrity":"sha512-CtcfzqHq3y0743W5urkQdpL+Bhrcyp1LtDJZLwxqIEQwYtMphu16IOJa9N5Al20FPAIxghDRNMFkJ8QbAXwWng==","signatures":[{"sig":"MEUCIAmmBdNiktDLOoCCWuwx0hdGbH1gHu3Mcapr7XG2oEsUAiEA6AxxeYWERY9Rw3OP+n2hBvo+oCpw7nbjALpPFmAq+5A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8551},"type":"module","email":"whouu@qq.com","slidev":{"defaults":{"fonts":{"mono":"Fira Code","sans":"Nunito Sans"},"layout":"portrait","codeCopy":false,"aspectRatio":"9/16"},"colorSchema":"both"},"engines":{"node":">=18.0.0","slidev":">=0.48.0"},"gitHead":"9a45fe3d71f92d1fd3e28d2f099ccec9fff60a9f","scripts":{"dev":"slidev example.md --open","build":"slidev build example.md","export":"slidev export example.md","release":"npm publish --registry https://registry.npmjs.org --access public","screenshot":"slidev export example.md --format png"},"_npmUser":{"name":"whouu","email":"whouu336699@gmail.com"},"repository":{"url":"git+https://github.com/PassionZale/slidev-theme-portrait.git","type":"git"},"_npmVersion":"10.7.0","description":"A slide portrait theme for record portrait video.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"@slidev/types":"^51.0.2"},"_hasShrinkwrap":false,"devDependencies":{"@slidev/cli":"^51.0.2"},"_npmOperationalInternal":{"tmp":"tmp/slidev-theme-portrait_0.0.2_1737533365170_0.8061187053823948","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@code-sugar/slidev-theme-portrait","version":"0.0.3","keywords":["slidev-theme","slidev"],"author":{"name":"Lei Zhang"},"license":"MIT","_id":"@code-sugar/slidev-theme-portrait@0.0.3","maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"homepage":"https://github.com/PassionZale/slidev-theme-portrait#readme","bugs":{"url":"https://github.com/PassionZale/slidev-theme-portrait/issues"},"dist":{"shasum":"33e199b6085af0743cb2a50264e81f32c539b9af","tarball":"https://registry.npmjs.org/@code-sugar/slidev-theme-portrait/-/slidev-theme-portrait-0.0.3.tgz","fileCount":13,"integrity":"sha512-hvyfH2f9AlaMITNROcYR66k6CMB+UL2V7Ug3Q6XYeBMG0MengFKPpMcknkFb+LT4+1yYLQwDtBAZ5Bk4MOpW+Q==","signatures":[{"sig":"MEYCIQDmIWj5etX+uwZUGc3eM9ApAPssNhP4dMMV0yT7jQSIwgIhAJe+6qid2zCQENZQXNM+7TY66SHv0JW2nBFP7h3qId0D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10768},"type":"module","email":"whouu@qq.com","slidev":{"defaults":{"fonts":{"mono":"Fira Code","sans":"Nunito Sans"},"codeCopy":false,"aspectRatio":"9/16","canvasWidth":720},"colorSchema":"both"},"engines":{"node":">=18.0.0","slidev":">=0.48.0"},"gitHead":"fc8c24337a024bc277ea72ea4a32bcd8b6da528f","scripts":{"dev":"slidev example.md --open","build":"slidev build example.md","export":"slidev export example.md","release":"npm publish --registry https://registry.npmjs.org --access public","screenshot":"slidev export example.md --format png"},"_npmUser":{"name":"whouu","email":"whouu336699@gmail.com"},"repository":{"url":"git+https://github.com/PassionZale/slidev-theme-portrait.git","type":"git"},"_npmVersion":"10.7.0","description":"A slide portrait theme for record portrait video.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"@slidev/types":"^51.0.2"},"_hasShrinkwrap":false,"devDependencies":{"@slidev/cli":"^51.0.2"},"_npmOperationalInternal":{"tmp":"tmp/slidev-theme-portrait_0.0.3_1739180217939_0.8772803588239011","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@code-sugar/slidev-theme-portrait","version":"0.0.4","keywords":["slidev-theme","slidev"],"author":{"name":"Lei Zhang"},"license":"MIT","_id":"@code-sugar/slidev-theme-portrait@0.0.4","maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"homepage":"https://github.com/PassionZale/slidev-theme-portrait#readme","bugs":{"url":"https://github.com/PassionZale/slidev-theme-portrait/issues"},"dist":{"shasum":"8635b10da4af6e29e4ec2e53d22a1cf6ae2614fb","tarball":"https://registry.npmjs.org/@code-sugar/slidev-theme-portrait/-/slidev-theme-portrait-0.0.4.tgz","fileCount":13,"integrity":"sha512-FrM0hwj9HylhNySsabFOufx8gmWDgQzaScvKlE7dVvC4Z40hY9AcsdHHafLBD//iA2dn62l3jYjT63ZHPmkdoA==","signatures":[{"sig":"MEUCIFjvwnif72KI4TVXdWhaEFIX264of3xmHJsxqoSMVu3GAiEAijAL0SSD8T+5zC/TNNtFBxm3yVGGqHO6NkT/n9yJWnc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13193},"type":"module","email":"whouu@qq.com","slidev":{"defaults":{"fonts":{"mono":"Fira Code","sans":"Nunito Sans"},"codeCopy":false,"aspectRatio":"9/16","canvasWidth":720},"colorSchema":"both"},"engines":{"node":">=18.0.0","slidev":">=0.48.0"},"gitHead":"f9b8b328fe89e1782231709cead87b39b05c0c48","scripts":{"dev":"slidev example.md --open","build":"slidev build example.md","export":"slidev export example.md","release":"npm publish --registry https://registry.npmjs.org --access public","screenshot":"slidev export example.md --format png"},"_npmUser":{"name":"whouu","email":"whouu336699@gmail.com"},"repository":{"url":"git+https://github.com/PassionZale/slidev-theme-portrait.git","type":"git"},"_npmVersion":"10.7.0","description":"A slide portrait theme for record portrait video.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"@slidev/types":"^51.0.2"},"_hasShrinkwrap":false,"devDependencies":{"@slidev/cli":"^51.0.2"},"_npmOperationalInternal":{"tmp":"tmp/slidev-theme-portrait_0.0.4_1739258867191_0.6490178057644294","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@code-sugar/slidev-theme-portrait","version":"0.0.5","type":"module","description":"A slide portrait theme for record portrait video.","author":{"name":"Lei Zhang"},"email":"whouu@qq.com","license":"MIT","homepage":"https://github.com/PassionZale/slidev-theme-portrait#readme","repository":{"type":"git","url":"git+https://github.com/PassionZale/slidev-theme-portrait.git"},"bugs":{"url":"https://github.com/PassionZale/slidev-theme-portrait/issues"},"keywords":["slidev-theme","slidev"],"engines":{"node":">=18.0.0","slidev":">=0.48.0"},"scripts":{"build":"slidev build example.md","dev":"slidev example.md --open","export":"slidev export example.md","screenshot":"slidev export example.md --dark --format png","release":"npm publish --registry https://registry.npmjs.org --access public"},"dependencies":{"@slidev/types":"^51.0.2"},"devDependencies":{"@slidev/cli":"^51.0.2","playwright-chromium":"^1.50.1"},"slidev":{"colorSchema":"both","defaults":{"aspectRatio":"9/16","canvasWidth":720,"codeCopy":false,"fonts":{"sans":"Nunito Sans","mono":"Fira Code"}}},"_id":"@code-sugar/slidev-theme-portrait@0.0.5","gitHead":"cd7241be206f322d28afaec5cc893b950ad78561","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"integrity":"sha512-sezPTYf5NlZegWN6tGZY8USjLjGASTwwSiaIRwchBGBOzC5BCio2XgW1fJfDRrbtJGUipJJVmf2+NC8ZwAEHMg==","shasum":"86b51ffc655d509a50d3eef45dfac0d56f8e96ef","tarball":"https://registry.npmjs.org/@code-sugar/slidev-theme-portrait/-/slidev-theme-portrait-0.0.5.tgz","fileCount":13,"unpackedSize":13288,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDaLEJ8lJHMHNmR5Skgs875tY4vcnpzJmODXmW3GsFe0AIhAP9yD6RtjhPDzjkkRfB1T8Qll+/Sx8IERrFMSQLTtkcb"}]},"_npmUser":{"name":"whouu","email":"whouu336699@gmail.com"},"directories":{},"maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/slidev-theme-portrait_0.0.5_1739259366194_0.5252726733812778"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-22T07:59:13.359Z","modified":"2025-02-11T07:36:06.627Z","0.0.0":"2025-01-22T07:59:13.609Z","0.0.1":"2025-01-22T08:01:31.335Z","0.0.2":"2025-01-22T08:09:25.320Z","0.0.3":"2025-02-10T09:36:58.124Z","0.0.4":"2025-02-11T07:27:47.384Z","0.0.5":"2025-02-11T07:36:06.360Z"},"bugs":{"url":"https://github.com/PassionZale/slidev-theme-portrait/issues"},"author":{"name":"Lei Zhang"},"license":"MIT","homepage":"https://github.com/PassionZale/slidev-theme-portrait#readme","keywords":["slidev-theme","slidev"],"repository":{"type":"git","url":"git+https://github.com/PassionZale/slidev-theme-portrait.git"},"description":"A slide portrait theme for record portrait video.","maintainers":[{"name":"whouu","email":"whouu336699@gmail.com"}],"readme":"# slidev-theme-portrait\n\n[![NPM version](https://img.shields.io/npm/v/@code-sugar/slidev-theme-portrait?color=3AB9D4&label=)](https://www.npmjs.com/package/@code-sugar/slidev-theme-portrait)\n\n一个用于录制纵向视频的 Slidev 主题。\n\n> [!WARNING]\n> 此主题仍在开发中。\n\n## 在线预览\n\n[在线示例](https://slidev-theme-portrait.lovchun.com)\n\n## 视频指南\n\n> TODO:\n\n## 安装\n\n在 `slides.md` 中添加主题配置，启动 Slidev 后，它会自动提示你安装主题。\n\n<pre><code>---\ntheme: <b>@code-sugar/slidev-theme-portrait</b>\n---</code></pre>\n\n更多关于如何使用主题的信息，请参阅 [如何使用主题](https://sli.dev/guide/theme-addon#use-theme)。\n\n## 配置\n\n此主题重写了以下配置：\n\n```json5\n{\n  slidev: {\n    // 主题支持亮色和暗色两种模式\n    colorSchema: \"both\",\n    defaults: {\n      // 默认比例（纵向）\n      aspectRatio: \"9/16\",\n      // 默认宽度\n      canvasWidth: 720,\n      // 禁用代码复制\n      codeCopy: false,\n      fonts: {\n        sans: \"Nunito Sans\",\n        // 代码字体使用 Fira Code\n        mono: \"Fira Code\",\n      },\n    },\n  },\n}\n```\n\n## 辅助线\n\n> [!WARNING]\n> 演讲者模式下不可用。\n\n增加了 Guidelines (辅助线) 功能，便于在 OBS 中标识录制窗口的裁剪区块，避免成片出现黑边。\n\n**在正式开始录制时，你应该关闭辅助线。**\n\n### 快捷键\n\n按 <kbd>l</kbd> 键显示或隐藏辅助线。\n\n### 右键菜单\n\n<kbd>Toggle Guidelines</kbd> - 显示或隐藏辅助线。\n\n## Shiki\n\n此主题重写了以下 shiki 配置：\n\n```ts\nimport type { ShikiSetupReturn } from \"@slidev/types\";\nimport { defineShikiSetup } from \"@slidev/types\";\n\nexport default defineShikiSetup((): ShikiSetupReturn => {\n  return {\n    themes: {\n      // 亮色主题下使用 \"github-light\"\n      light: \"github-light\",\n      // 暗色主题下使用 \"dracula\"\n      dark: \"dracula\",\n    },\n  };\n});\n```\n\n## 变量\n\n此主题重写了以下根变量：\n\n```css\n:root {\n  /* 增大代码块的字体大小 */\n  --slidev-code-font-size: 16px;\n  /* 增大代码块的字体行高 */\n  --slidev-code-line-height: 22px;\n  /** 明亮模式下代码块的边框颜色 */\n  --slidev-code-border: rgba(51, 51, 51, 0.15);\n  /** 为代码块增加圆角 */\n  --slidev-code-radius: 6px;\n  /** 增大代码块的内边距 */\n  --slidev-code-padding: 10px;\n  /** shiki 明亮和暗黑模式下的字体颜色和背景色 */\n  --shiki-light: #24292e;\n  --shiki-dark: #e1e4e8;\n  --shiki-light-bg: #fff;\n  --shiki-dark-bg: #24292e;\n}\n\nhtml.dark {\n  /** 暗黑模式下代码块的边框颜色 */\n  --slidev-code-border: rgba(204, 204, 204, 0.15);\n}\n\n/** 为代码块增加边框 */\n.slidev-code {\n  border: 1px solid var(--slidev-code-border);\n}\n\n/** 为代码块增加 Mac 风格的 Window Control 按钮 */\n.slidev-code::before {\n  content: \"\";\n  display: block;\n  background-size: 40px;\n  margin-bottom: calc(2 * var(--slidev-code-padding));\n  border-radius: 50%;\n  background: #ff0800 no-repeat 10px 10px;\n  width: 12px;\n  height: 12px;\n  -webkit-box-shadow:\n    20px 0 #fdbc40,\n    40px 0 #35cd4b;\n  box-shadow:\n    20px 0 #fdbc40,\n    40px 0 #35cd4b;\n}\n```\n\n## 布局\n\n此主题提供了以下布局：\n\n<pre><code>---\ntheme: <b>@code-sugar/slidev-theme-portrait</b>\ndefaults:\n&emsp;&emsp;layout: <b>portrait</b>\n---</code></pre>\n\n推荐使用**暗黑模式**进行录制，因为竖屏在手机上播放，为了兼容非全屏时的“黑边”，此主题将背景设置为纯黑色。\n\n```css\n/** 暗黑模式下背景为纯黑色 */\nhtml.dark .slidev-layout.portrait {\n  background-color: #000;\n}\n```\n\n## 组件\n\n此主题提供了以下组件：\n\n> TODO:\n","readmeFilename":"README.md"}