color-schemelight-dark()
(see color-scheme: only light, which prevents browsers with an automatic
dark mode from recoloring your application. To enable automatic theme switching based on system settings, add the
.scheme-light-dark CSS class to the <html> element or any HTML element. This applies the selected theme to all child
elements. For pages or sections that support one theme only, use .scheme-only-light or .scheme-only-dark.load method.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Porsche Design System</title>
<script src="PATH/TO/PACKAGE/@porsche-design-system/components-js/index.js"></script>
</head>
<body>
<script type="text/javascript">
porscheDesignSystem.load({ prefix: 'sample-prefix' });
</script>
<sample-prefix-p-heading size="2xl">Some heading</sample-prefix-p-heading>
</body>
</html>
