Skip to content

Commit

Permalink
INFRA12 - Define a budget for Accessibility score in Lighthouse check (
Browse files Browse the repository at this point in the history
…#147)

* INFRA12 - Define a budget for Accessibility score in Lighthouse check

* Updated the theme to add contrast

* lighthouse-ci 11
  • Loading branch information
gregoriopalama authored Mar 28, 2024
1 parent 32701c3 commit 1215a2b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- run: pnpm run preview & npx wait-on http://localhost:4321
- name: Run Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v10
uses: treosh/lighthouse-ci-action@v11
with:
urls: |
http://localhost:4321
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lighthouse/lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"settings": {
"configPath": "./.github/workflows/lighthouse/lighthouse-config.cjs"
}
},
"assert": {
"assertions": {
"categories:accessibility": ["error", {"minScore": 1}]
}
}
}
}
12 changes: 11 additions & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
plugins: [require("@tailwindcss/typography"), require("daisyui")],
daisyui: {
themes: ["dark"],
themes: [
{
hedwig: {
...require("daisyui/src/theming/themes")["dark"],
"primary": "#000000",
"secondary": "#FFF",
"neutral": "#FFF",
"base-content": "#FFF"
},
},
],
},
};

0 comments on commit 1215a2b

Please sign in to comment.