You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The old Marp app has $size global directive to change slide size, but it omitted in Marpit framework by restriction of inline SVG slide for realizing zero-JS slide.
In the position of theme author, it means does not need to worry about responsive design. So it would become easy to create theme with less effort. (We also have an opinion that the other slide framework has few community themes because it's hard to care responsive layout on the Web)
Marp Core is also following this way of thinking. Our official themes only provide 16:9 slide, is the standard size in PowerPoint and Keynote.
Currently we are recommending to use new theme with @import 'base-theme' + custom section size, but it's bit complex and have some unsupported Marp integrations: VS Code, React, Vue.
#90 suggests to provide 4:3 slide as the variation of built-in theme but we could not accept because it denys our position that theme author does not need to worry responsive size. Marp Core's theme support should select whether theme author allowed custom size.
Idea
Get back size global directive from the old Marp app.
Theme author has to permit pre-defined custom size in Marp Core's theme metadata, so don't have to worry collapsed design by unexpected size.
Sounds great!
Current problem is that it is hard to include a theme css for some environment such as Web client.
If marp-core had the feature to configure 4:3 as a directive, we can describe it as a document property. It is very nice.
Background
The old Marp app has
$size
global directive to change slide size, but it omitted in Marpit framework by restriction of inline SVG slide for realizing zero-JS slide.In the position of theme author, it means does not need to worry about responsive design. So it would become easy to create theme with less effort. (We also have an opinion that the other slide framework has few community themes because it's hard to care responsive layout on the Web)
Marp Core is also following this way of thinking. Our official themes only provide 16:9 slide, is the standard size in PowerPoint and Keynote.
Feedback
On the other hand, we have recieved many feedbacks that want to change slide size. (marp-team/marpit#163, marp-team/marp-vscode#43, #90)
Currently we are recommending to use new theme with
@import 'base-theme'
+ customsection
size, but it's bit complex and have some unsupported Marp integrations: VS Code, React, Vue.#90 suggests to provide 4:3 slide as the variation of built-in theme but we could not accept because it denys our position that theme author does not need to worry responsive size. Marp Core's theme support should select whether theme author allowed custom size.
Idea
Get back
size
global directive from the old Marp app.Theme author has to permit pre-defined custom size in Marp Core's theme metadata, so don't have to worry collapsed design by unexpected size.
Usage
ToDo
size
global directive to Marp Core by using Marpit's custom directive support@size 4:3 960px 720px
size
global directive can only use pre-defined size in@size
meta.The text was updated successfully, but these errors were encountered: