Skip to content

Commit fefc6b4

Browse files
committed
Pass custom css to frontend
1 parent 72a4838 commit fefc6b4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

resources/views/components/cachet.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
--{{ $key }}-dark: {{ $value[1] }};
2828
@endforeach
2929
}
30+
31+
{!! $cachet_css !!}
3032
</style>
3133
</head>
3234
<body class="flex min-h-screen flex-col items-stretch antialiased">

src/View/Components/Cachet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function render(): View|Closure|string
3333
return view('cachet::components.cachet', [
3434
'title' => $this->title,
3535
'cachet_header' => $this->customizationSettings->header,
36+
'cachet_css' => $this->customizationSettings->stylesheet,
3637
'cachet_footer' => $this->customizationSettings->footer,
3738
'refresh_rate' => $this->appSettings->refresh_rate,
3839
]);

0 commit comments

Comments
 (0)