Skip to content

Commit

Permalink
feat(indiekit): add theme_color and background_color to web app manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 14, 2024
1 parent 5322184 commit b1ffaf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/indiekit/lib/controllers/manifest.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getBackgroundColor, getThemeColor } from "@indiekit/frontend";
import { getShortcuts } from "../shortcuts.js";

export const get = async (request, response) => {
Expand Down Expand Up @@ -29,6 +30,8 @@ export const get = async (request, response) => {
},
],
shortcuts: getShortcuts(application, response),
theme_color: getThemeColor(application.themeColor),
background_color: getBackgroundColor(application.themeColor),
...(application.shareEndpoint && {
share_target: {
action: application.shareEndpoint,
Expand Down

0 comments on commit b1ffaf5

Please sign in to comment.