This directory contains the SCSS files that make up the styling system for the DOME Registry application. The system is designed to provide consistent styling across the application while making it easy to maintain and extend.
- _animations.scss: Contains animation-related styles and keyframes.
- _base.scss: Contains base styles for the application.
- _cursor.scss: Custom cursor styles.
- _flip.scss: Styles for flip animations or effects.
- _mixins.scss: SCSS mixins for reusable style patterns.
- _overflow.scss: Styles for handling overflow content.
- _scrollbar.scss: Custom scrollbar styles.
- _theme.scss: Theme-related styles.
- _validation.scss: Styles for form validation.
- _variables.scss: SCSS variables for consistent styling.
- main.scss: Main stylesheet that can be used to import other stylesheets.
The main entry point for styles is the styles.scss file in the src directory. This file imports the necessary style files from this directory. If you need to add a new style file, you should import it in styles.scss:
@import "styles/your-new-file";The _variables.scss file contains various SCSS variables used throughout the application:
- Color variables (primary, secondary, white, blue, etc.)
- Transparent white color variations
- Navigation dimensions
- Breakpoint variables for responsive design
- Font definitions
Example usage:
.my-element {
color: $primary;
font-family: $font-primary;
}The _mixins.scss file contains reusable style patterns:
responsive-width: Adjusts width based on screen sizeresponsive-padding: Adjusts padding based on screen sizeflex: Shorthand for flex propertiesfont: Shorthand for font propertiesposition-absolute: Shorthand for absolute positioningsize: Sets width and heighttransition: Shorthand for transitions- Media query mixins (
for-desktop,for-mobile, etc.) page-background-with-gradient: Creates a gradient background
Example usage:
.my-element {
@include flex(column, flex-start, center, 10px);
@include responsive-padding(20px, 15px, 10px, 5px);
}When adding new styles, consider the following:
- Use variables from
_variables.scssfor consistent styling - Use mixins from
_mixins.scssfor reusable patterns - Follow the naming convention of prefixing partial files with an underscore
- Import your new file in
styles.scss
- Maintain Consistency: Use the variables and mixins provided to maintain a consistent look and feel.
- Mobile-First Approach: Design for mobile first, then use media queries to adjust for larger screens.
- Component-Specific Styles: Keep component-specific styles in the component's SCSS file.
- Global Styles: Use the files in this directory for global styles that apply across the application.
- Documentation: Document any new variables or mixins you add to make them easier to use by other developers.