Pre-Development Frontend Setup
Preparing, Cleaning and Configuring the front side of your project.
In this section, we will focus on the initial steps that a frontend developer must take before starting the development process.
We will proceed with the following steps assuming that you have already configured your project environment and have confirmed that everything runs smoothly when executing yarn workspace YOUR_WORKSPACE dev
Let's get started.
Examine the mockup thoroughly: By doing so, you will gain a comprehensive understanding of the
modules
,widgets
, andelements
that need to be retained and identify those that should be removed from the code. This initial analysis will guide you in shaping the project's visual components.Eliminate unnecessary files: Thoroughly review and remove any redundant modules, widgets, and elements. Exercise caution to ensure that you do not delete necessary components or those that may be required in the future, as the mockup may undergo changes. Taking a prudent approach will maintain the project's integrity while streamlining its structure.
Establish your style guide: Identify and export the essential elements that will define the project's visual aspects, including
Colors
(primary, secondary, tertiary, etc.),Typography
,Spacing
,Viewport
configurations,Animations
if available ... and more. Organize these elements systematically to ensure consistency and coherence throughout the project.Tailwind.config Setup: With the essential elements derived from the mockup, proceed to configure your
tailwind.config.js
file. Define color variants, typography settings, and other necessary customizations to align with the project's design requirements. Learn more here: Customizing tailwind.configTheme Essential Primitives: Primitives such as Inputs, Buttons, Links, and others serve as
fundamental building blocks
within your project. By referring to the provided style guide in the mockup or closely examining the mockup itself, apply the appropriate theming to these elements. Ensure that they align with the visual specifications outlined in the style guide, allowing for consistent and cohesive design throughout your project. Learn more by checking: ThemingDevelop Essential Widgets/Modules: With all the required
Elements
prepared, begin by creating the necessary widgets. If the widgets are already available, focus on styling them appropriately. Ensure that you adhere to best practices and incorporate modern functionalities while developing the widgets. The same principles apply when working with modules, ensuring consistency and high-quality implementations throughout your project.Prioritize Performance: Regularly assess bundle size, performance, accessibility, SEO, and best practices. Utilize Bundle Analyzer tools to generate reports and gain insights into any potential increases in bundle size. These measures allow you to make informed decisions and take appropriate actions to optimize performance and ensure a smooth user experience.