-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/cleanup global css styles #1191
Changes from all commits
d2da1d3
56209c6
5c540f4
b110e56
eef0f41
c0e6e52
8526308
621c290
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ module.exports = { | |
extend: { | ||
colors: { | ||
black: "#040404", | ||
twitter: "var(--twitter-clr)", | ||
github: "var(--github-clr)", | ||
twitter: "#282828", | ||
github: "#f17f06", | ||
}, | ||
backgroundImage: { | ||
discord: "var(--discord-clr)", | ||
youtube: "var(--youtube-clr)", | ||
discord: "linear-gradient(to bottom, #4b83fb, #734df8)", | ||
youtube: "linear-gradient(to top, #6d0202 22%, #c90000 61%)", | ||
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider extracting gradient values for better maintainability. While moving away from CSS variables aligns with the PR objectives, hardcoding complex gradient values directly in the config file might make future updates challenging. Consider creating a separate constants file for these values: // constants/theme.js
export const gradients = {
discord: "linear-gradient(to bottom, #4b83fb, #734df8)",
youtube: "linear-gradient(to top, #6d0202 22%, #c90000 61%)"
}; Then import and use them in the config: +const { gradients } = require('./constants/theme');
module.exports = {
// ...
backgroundImage: {
- discord: "linear-gradient(to bottom, #4b83fb, #734df8)",
- youtube: "linear-gradient(to top, #6d0202 22%, #c90000 61%)",
+ discord: gradients.discord,
+ youtube: gradients.youtube,
}, This approach would:
|
||
}, | ||
}, | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider reducing style pattern duplication.
The hover/focus pattern is repeated across all social media objects. Consider extracting this to a utility function or constant.
Also applies to: 28-28, 34-34, 40-40