Components
CSS
Allows adding CSS to the document while securely parsing and escaping it.
NB: While you can add regular CSS with the <style>
tag, it’s recommended to use the CSS
component to ensure that the CSS is properly escaped, most notably when using URLs or other potentially unsafe content.
CSS
Support
Client-side
Server-side
Examples
Preview
Use a simple CSS print property to set the page size.
Load a Google Font
Load a Google Font using the @import
rule.
Layout
You can use the @page
at-rule in CSS to manage all aspects of printed pages. More on this here.