fix: add colors to the templates and main page cards #4497
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request focuses on updating the color scheme for the frontend components by introducing new swatch colors and refactoring the way colors are applied to various components. The most important changes include adding new color variables, updating the utility functions to use these new colors, and refactoring the components to utilize the new swatch colors.
Introduction of new swatch colors:
src/frontend/src/style/index.css
: Added new color variables for swatch colors such asneon-fuschia
,digital-orchid
,plasma-purple
,electric-blue
,holo-frost
,terminal-green
, andcosmic-void
.src/frontend/tailwind.config.mjs
: Included the new swatch color variables in the Tailwind configuration.Refactoring utility functions:
src/frontend/src/utils/styleUtils.ts
: Added a newswatchColors
array to store the new swatch color classes.Updating components to use new swatch colors:
src/frontend/src/modals/templatesModal/components/TemplateCardComponent/index.tsx
: Refactored theTemplateCardComponent
to use the newswatchColors
array instead offlowGradients
for background colors. [1] [2] [3]src/frontend/src/pages/MainPage/components/grid/index.tsx
: Updated theGridComponent
to apply swatch colors to its elements. [1] [2] [3]src/frontend/src/pages/MainPage/components/list/index.tsx
: Modified theListComponent
to use the new swatch colors for its elements. [1] [2] [3]