-
-
Notifications
You must be signed in to change notification settings - Fork 724
Design styleguide: size and spacing
mariocarabotta edited this page Jul 5, 2023
·
1 revision
As much as possible, size and spacing should be a multiple of 4px. This is obviously not always applicable, but let's look at an example with the primary button.
- its height is 40px, width is variable depending on the icon and label, so it's not applicable.
- in this case the button height dictates vertical spacing (label and icon are be vertically aligned to the container), so we are not able to apply the rule
- we still can decide spacing between the side borders and between icon and label, so we go with a 12px spacing from the borders, and 8px spacing between the icon and the label
As you can see from the example, there are some measures that follow the 4px rule, and some that don't. The ones that don't are dependent on constraints that don't allow us to apply the rule.
Development environment setup
- Pipeline development process
- Bug severity
- Feature template (epic)
- Internationalisation (i18n)
- Dependency updates
Development
- Developer Guidelines
- The process of review, test, merge and deploy
- Making a great commit
- Making a great pull request
- Code Conventions
- Database migrations
- Testing and Rspec Tips
- Automated Testing Gotchas
- Rubocop
- Angular and OFN
- Feature toggles
- Stimulus and Turbo
Testing
- Testing process
- OFN Testing Documentation (Handbooks)
- Continuous Integration
- Parallelized test suite with knapsack
- Karma
Releasing
Specific features
Data and APIs
Instance-specific configuration
External services
Design