Skip to content

Commit

Permalink
Add global styling (#4)
Browse files Browse the repository at this point in the history
* add base global theme

* fix issue with prettier

* add more global styling & refactor

- add inter as default sans font
- extract globals to layout component

* fix prettier lint error

* remove unneeded title prop
  • Loading branch information
err53 authored Sep 27, 2023
1 parent fc83601 commit e150e60
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 85 deletions.
4 changes: 4 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
};
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.documentSelectors": [
"**/*.astro"
],
"prettier.requireConfig": true
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {
"@astrojs/tailwind": "^5.0.0",
"@fontsource-variable/inter": "^5.0.8",
"@types/canvas-confetti": "^1.6.0",
"astro": "^3.0.7",
"astro-critters": "^2.0.11",
Expand All @@ -25,7 +26,8 @@
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-tailwindcss": "^0.5.4"
"prettier-plugin-tailwindcss": "^0.5.4",
"sharp": "^0.32.6"
},
"volta": {
"node": "18.17.1",
Expand Down
Loading

0 comments on commit e150e60

Please sign in to comment.