-
-
Notifications
You must be signed in to change notification settings - Fork 97
UI Development Guideline
VRMS using Sass for styling UI components.
Sass is a stylesheet language that’s compiled to CSS. It allows you to use variables, nested rules, mixins, functions, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized and makes it easy to share design within and across projects.
Inside the client-mvp-04 directory, you can find sass folder:

The sass folder contains .scss files regarding the MVP UI.

Open folders inside sass-new-ui directory:

Individual sass files are imported to the _main.scss file, which is imported to the 'App.scss'. Styles are processed into a single stylesheet that defines all the styles used in the app.
-
_reset-local.scssremoves built-in browser styling for specific elements -
_normalize.scssprovides cross-browser consistency in the default styling of HTML elements
This directory holds _colors, _typography, _elements .scss files
-
_colors.scssstores color variables (based on the style guide) that should be used throughout styles -
_typography.scssstores typography variables (based on the style guide) that should be used throughout styles -
_elements.scssstores variables for elements (based on the style guide) that should be used throughout styles
This directory holds _fonts, _base, _mixins, _keyframes .scss files.
-
_fonts.scsscontains fonts with @font-face rules allow custom fonts to be loaded on the app -
_base.scsscontains base global styles for all app -
_mixins.scssstores any mixins (style snippets) that will be used over and over -
_keyframes.scssstores any keyframes or animations for the app
This directory contains any generic styles for elements in the app. Each file inside the directory should have selectors or classes, no ids for selectors.
-
_buttons.scssstores any styles for buttons
This directory should contain an individual .scss file for each React component. At the moment this directory is empty.
This directory should contain an individual .scss file for each page that requires custom styles. At the moment this directory is empty.
Please, use all superpowers of the sass preprocessor to optimize and organize styles for VRMS application.
Use variables, nested rules, mixins, inheritance, operators, etc.
To learn it check the sass-introduction section.