Skip to content
Open
Show file tree
Hide file tree
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
36 changes: 36 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ jobs:
name: build-assets
path: public/build

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install frontend dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install chromium --with-deps

- name: Build tests environment
run: composer build

Expand Down Expand Up @@ -237,6 +249,18 @@ jobs:
name: build-assets
path: public/build

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install frontend dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install chromium --with-deps

- name: Build tests environment
run: composer build

Expand Down Expand Up @@ -319,6 +343,18 @@ jobs:
name: build-assets
path: public/build

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install frontend dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install chromium --with-deps

- name: Build tests environment
run: composer build

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/vendor
/.phpunit.xml
/.phpunit.result.cache
/tests/Browser/Screenshots
Thumbs.db

/.mcp.json
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"laravel/pint": "^1.24",
"orchestra/testbench": "^10.0|^11.0",
"pestphp/pest": "^4.3",
"pestphp/pest-plugin-browser": "^4.3",
"pestphp/pest-plugin-laravel": "^4.0",
"pestphp/pest-plugin-livewire": "*",
"pestphp/pest-plugin-type-coverage": "^4.0",
Expand Down
14 changes: 14 additions & 0 deletions database/migrations/2026_07_14_000001_add_theme_mode_setting.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

use Spatie\LaravelSettings\Migrations\SettingsMigration;

return new class extends SettingsMigration
{
/**
* Run the migrations.
*/
public function up(): void
{
rescue(fn () => $this->migrator->add('theme.theme_mode', 'auto'));
}
};
92 changes: 49 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@tailwindcss/vite": "^4.3.1",
"alpinejs": "^3.13.3",
"laravel-vite-plugin": "^3.1",
"playwright": "^1.59.1",
"prettier": "^3.0.1",
"prettier-plugin-blade": "^2.0.0",
"prettier-plugin-tailwindcss": "^0.6.14",
Expand Down
2 changes: 2 additions & 0 deletions public/build/assets/cachet-B4qUnEhq.css

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions public/build/assets/cachet-DHCAi8ZN.js

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/assets/cachet-a-zLhQZI.css

This file was deleted.

5 changes: 5 additions & 0 deletions public/build/assets/cachet-mqHuR0D8.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions public/build/assets/metrics-0rXi1BiZ.js

This file was deleted.

7 changes: 7 additions & 0 deletions public/build/assets/metrics-osy1O_b8.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resources/css/cachet.css": {
"file": "assets/cachet-a-zLhQZI.css",
"file": "assets/cachet-B4qUnEhq.css",
"name": "cachet",
"names": [
"cachet.css"
Expand All @@ -18,7 +18,7 @@
"isEntry": true
},
"resources/js/cachet.js": {
"file": "assets/cachet-DHCAi8ZN.js",
"file": "assets/cachet-mqHuR0D8.js",
"name": "cachet",
"src": "resources/js/cachet.js",
"isEntry": true,
Expand All @@ -27,7 +27,7 @@
]
},
"resources/js/metrics.js": {
"file": "assets/metrics-0rXi1BiZ.js",
"file": "assets/metrics-osy1O_b8.js",
"name": "metrics",
"src": "resources/js/metrics.js",
"isDynamicEntry": true
Expand Down
18 changes: 18 additions & 0 deletions resources/css/cachet.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@
@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';

/*
Dark mode is class-based so viewers can override their system preference.
The `.dark` and `.light` classes are managed on `<html>`: rendered by the
server when a theme is forced, otherwise applied by the theme switcher.
The media query branch keeps system dark mode working without JavaScript.
*/
@custom-variant dark {
&:where(.dark, .dark *) {
@slot;
}

@media (prefers-color-scheme: dark) {
&:where(:not(.light, .light *)) {
@slot;
}
}
}

@theme {
--color-primary-50: #e6f7ed;
--color-primary-100: #c1edce;
Expand Down
Loading
Loading