Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/documentation-framework/templates/html.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<script>
{
try {
let mode = localStorage.getItem('theme-preference');
if (!mode || mode === 'system') {
mode = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
if (mode === 'dark') {
document.documentElement.classList.add('pf-v6-theme-dark');
}
} catch (e) {}
}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="description" content="PatternFly is Red Hat's open source design system. It consists of components, documentation, and code for building enterprise applications at scale.">
Expand All @@ -12,6 +25,7 @@
<link rel="manifest" href="/assets/manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#151515">
<meta name="color-scheme" content="light dark">
<meta name="application-name" content="PatternFly docs">
<%= htmlWebpackPlugin.tags.headTags %>
</head>
Expand Down