saturn-css
v0.0.5
Published
Created by Nassime HARMACH, SaturnCSS is a free style library that simplifies the positioning of elements directly from the HTML file.
Downloads
15
Maintainers
Readme
Note.
- The library is compatible with React and Angular applications.
- In the near future, the library will be compatible with all front-end applications.
Installation & Usage
- Installation of the package on your Angular or React project.
npm install saturn-css
- Script execution for install & update.
npm run saturn-css
Description.
This library promotes atomic design, which involves breaking down user interfaces into elementary components called atoms, molecules, organisms, etc...
This approach fosters code reusability, consistency, and maintainability. The design system file provides the necessary basic elements for building these atoms and their associated components by defining their structure and style.
However, when assembling website pages, it may be necessary to adjust certain visual or functional aspects of the components without altering their basic structure. This is where the library comes into play: by providing a set of additional CSS classes, it allows for the rapid application of predefined styles for elements such as margins, spacing, positioning, etc.
The library and the design system work in synergy, offering a comprehensive and modular approach for frontend development, where the atoms defined in the design system serve as a solid foundation to which the library's classes add functionality and styles specific to the usage context.
Documentation : https://saturn-css.3a1d.com/
Operation.
The installation of the package from the root of your Angular or React project via Node Package Manager is mandatory for using the library.
To install the library in your Angular ou React project, execute the second command from the root of your application. Each time you wish to update the library, there is no need to repeat step 1; simply execute the second command.
Details.
- Package installation.
- +1 file package.json
- +1 file README.md
- +1 file script.sh
- +1 file install.js
- +1 file LICENSE
- Executing the script from the command line.
if Angular application :
- Transfer of the file saturn.css to the project folder.
- Creation of a file script.js.
- Execution of the script.js.
- Addition of the absolute path of the file saturn.css in angular.json.
- Permanent deletion of the file script.js.
if React application :
- Transfer of the file saturn.css to the project folder.
- Creation of a file script.js.
- Execution of the script.js.
- Addition of the absolute path of the file saturn.css in main.jsx.
- Permanent deletion of the file script.js.
Credits.
The style library and all installation scripts were developed by Nassime HARMACH and edited by 3A1D. All related code is open source.