Constructor
new Theme(name, css)
Create a Theme instance.
You should use Theme.fromCSS unless there is some particular reason.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
The name of theme. |
css |
string
|
The content of CSS. |
Members
height :string
Slide height. It requires the absolute unit supported in CSS.
Type:
-
string
(readonly) heightPixel :number
The converted height into pixel.
Type:
-
number
width :string
Slide width. It requires the absolute unit supported in CSS.
Type:
-
string
(readonly) widthPixel :number
The converted width into pixel.
Type:
-
number
Methods
(static) fromCSS(cssString, optsopt)
Create a Theme instance from Marpit theme CSS.
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
cssString |
string
|
The string of Marpit theme CSS. It requires
|
|||||||||
opts |
Object
|
<optional> |
|