Ethos Styles
These are Ethos's main styles.
Note: These are foundational styles, and should be edited sparingly. You can still add styles to Moonbeam and OrCA in the stylesheets
directories.
Stardust Development Guide
-
Building Stardust Locally:
Troubleshooting:
- You may need to install sass.
- If you're using a VPN, you may need to re-run
docker-machine-nfs [MACHINE-NAME]
-
Develop new elements in Moonbeam
Goal: Create elements available for use in current and future Moonbeam UI.
Develop new elements for Moonbeam in moonbeam/app/assets/stylesheets/components/_rf-for-gem.scss
.
- Prefix new styles with
.rf-
- Make sure new styles are BEM-ified
-
Port new elements to Stardust repo:
Goal: Add styles to Stardust and demonstrate their intended use.
Involved files:
-
Update GEM
Follow these instructions to update the GEM version.
In order for changes to show up in Moonbeam you may need to:
docker rm -f $(docker ps -a|grep -v moonbeam_db|grep -v CONTAINER|awk '{print $1}')
docker start moonbeam_db
flotilla up moonbeam
- Force a recompiling of the scss elements by editing
application.scss
(for example, add body {background-color: yellow;}
and save).
-
Update Moonbeam
Goal: Styles are sourced solely from Stardust GEM.
Remove redundant code from:
- Outdated Moonbeam stylehseets
_rf-for-gem.scss
To edit gem
To develop this gem locally:
-
Clone this repo to your computer.
-
Replace gem name with gem file path in Gemfile:
# gem "ethosstyles"
gem "ethosstyles", :path => "/usr/ethosstyles"
-
Add directory to docker-compose.yml
under volumes within web:
web:
...
volumes:
...
- ../ethosstyles:/usr/ethosstyles
-
You may need to rebuild moonbeam.
flotilla rebuild moonbeam
Process
Review any changes on Moonbeam and OrCA before pushing to prod.
Dependencies
Stardust uses the .scss icon files from Font Awesome 5.6.3