diff --git a/scripts/design-system-contract-baseline.json b/scripts/design-system-contract-baseline.json index 1fd569a8c9..14c5e767e4 100644 --- a/scripts/design-system-contract-baseline.json +++ b/scripts/design-system-contract-baseline.json @@ -1,5 +1,5 @@ { - "rawColorLiterals": 9, + "rawColorLiterals": 2, "literalShadowClasses": 1, - "legacyTapClasses": 28 + "legacyTapClasses": 0 } diff --git a/scripts/design-system-contract-utils.mjs b/scripts/design-system-contract-utils.mjs index 9d4316a27c..ba535249e0 100644 --- a/scripts/design-system-contract-utils.mjs +++ b/scripts/design-system-contract-utils.mjs @@ -24,6 +24,14 @@ export const RAW_COLOR_EXEMPTIONS = [ pattern: /^src\/(?:app\/global-error|components\/route-error-boundary)\.tsx$/, scope: "whole-file", }, + { + // Pre-paint / meta theme-color values: consumed as raw colours by the inline + // pre-hydration theme script and the browser theme-color meta tag, before any + // CSS (and therefore any token) is available, so they cannot be tokenised. + category: "pre-paint theme color", + pattern: /^src\/lib\/theme\.ts$/, + scope: "whole-file", + }, { category: "printable Therapy paper", pattern: /^src\/components\/therapy-compass\/therapy-compass\.css$/, diff --git a/src/components/applications-launcher-page.tsx b/src/components/applications-launcher-page.tsx index 5bc8fb10cc..cf5a004e6c 100644 --- a/src/components/applications-launcher-page.tsx +++ b/src/components/applications-launcher-page.tsx @@ -242,7 +242,7 @@ function ToolSearch({ className, )} > - +