Skip to content

Commit

Permalink
feat: update light theme to new astrolight (#12)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* fix: update node version to v19

* feat: update light theme to new astrolight
  • Loading branch information
mehalter authored Feb 5, 2024
1 parent 069200e commit e407b76
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 63 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"upgrade": "pnpm dlx @astrojs/upgrade"
},
"devDependencies": {
"@astrojs/tailwind": "^5.0.3",
"@astrojs/tailwind": "^5.1.0",
"@netlify/plugin-lighthouse": "^5.0.0",
"@types/micromodal": "^0.3.4",
"astro": "^4.0.6",
"astro": "^4.3.2",
"astro-icon": "1.0.0-next.2",
"netlify-plugin-checklinks": "^4.1.1",
"netlify-plugin-submit-sitemap": "^0.4.0",
Expand All @@ -28,7 +28,7 @@
"tailwindcss-fluid-type": "^2.0.3"
},
"dependencies": {
"@astrojs/sitemap": "^3.0.3",
"@astrojs/sitemap": "^3.0.5",
"@astrolib/seo": "^0.6.0",
"@fontsource-variable/inter": "^5.0.15",
"@iconify-json/tabler": "^1.1.95",
Expand Down
112 changes: 64 additions & 48 deletions pnpm-lock.yaml

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

24 changes: 12 additions & 12 deletions src/styles/theme.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
:root {
--light-color-primary: #004e61;
--light-color-secondary: #6b2e58;
--light-color-text: #5d3e3c;
--light-color-text-offset: #504444;
--light-color-background: #feeeee;
--light-color-background-offset: #f9dcd1;
--light-color-border: #e7cfca;
--light-color-gradient-from: #004e61;
--light-color-gradient-via: #6b2e58;
--light-color-gradient-to: #842624;
--light-color-primary: #00508a;
--light-color-secondary: #7300b8;
--light-color-text: #1c1c1c;
--light-color-text-offset: #4c5057;
--light-color-background: #f7f8f8;
--light-color-background-offset: #f0f0f1;
--light-color-border: #d4d7d9;
--light-color-gradient-from: #00508a;
--light-color-gradient-via: #7300b8;
--light-color-gradient-to: #9e007c;

--dark-color-primary: #76b6ef;
--dark-color-secondary: #d597e8;
Expand All @@ -22,7 +22,7 @@
--dark-color-gradient-to: #f8919a;
}

[data-theme='light'] {
[data-theme="light"] {
--color-primary: var(--light-color-primary);
--color-secondary: var(--light-color-secondary);
--color-text: var(--light-color-text);
Expand All @@ -35,7 +35,7 @@
--color-gradient-to: var(--light-color-gradient-to);
}

[data-theme='dark'] {
[data-theme="dark"] {
--color-primary: var(--dark-color-primary);
--color-secondary: var(--dark-color-secondary);
--color-text: var(--dark-color-text);
Expand Down

0 comments on commit e407b76

Please sign in to comment.