Approach to Classes
๐น Utility
A utility class is created for a specific combination of CSS properties, which can be applied to elements across the project. Utility classes use dashes โ-โ only.
Updating a utility class will update all instances in the project that use the utility class. It is โglobalโ by nature.
๐ Global
A global class is intended for use across the entire project. It is a further classification of the purpose of a class. Utility classes & custom classes can be global classes. A global class can use โ-โ or โ_โ
Updating a utility class will update all instances in the project that use the utility class. It is โglobalโ by nature.
๐ Custom
A custom class created for a specific and identifiable component, page, grouping of elements, or single element. Custom classes use an underscore โ_โ to define the โcustom folder nameโ.
Better for maintaining a project as itโs more flexible to changes. Avoid over-stacking classes and making site-wide mistakes.
๐ Combo
A combo class is a variant of a base class. It inherits styles from the base class and adds more styles on top of it. Use the prefix โis-โ to define a combo class.
Useful for adding additional styles for a specific instance.
โ๏ธ Importance of meaningful namesโจ
Class names should say what they do.
โ Give classes meaningful names.
โ Do not use abreviations.
Heading Classes
Heading 1
Heading 1
Heading 2
Heading 2
Heading 3
Heading 3
Heading 4
Heading 4
Heading 5
Heading 5
Heading 6
Heading 6
Text Classes
โ๏ธ Text Size
๐จ Text Color
๐ ฐ๏ธ Text Weight
๐งญ Text Alignment
๐ก Additional Styles
Rich Text (HTML tags)
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
โThis is โBlock Quoteโ, lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.โ
Ordered list
- Item 1
- Item 2
- Item 3
Unordered list
- Item A
- Item B
- Item C
Bold text
Emphasis
Superscript
Subscript
Color Classes
๐ง Background Color
โ Border Color
Layout Classes
๐๏ธ Section
Use (section_[name] for custom or section-global) + padding-section-* inside each section to change their vertical padding.
๐ Container
โฅ Margin + Padding
๐ Grid
๐ช Flex
Use flex-[direction] + flex-[alignment] to change their alignment
๐ค Gap
โ Width
Use width-[%] + width-[tablet/mobile]-[%] to customize a specific width for tablet or mobile
Note: Tablet, Mobile (L) and Mobile will inherit Desktop width % if none of the mobile/tablet-width-[%] classes are applied.
โ Tablet Specific Width
โ Mobile Specific Width
๐ฐ Spacer
๐น Other Utility Layout Classes
โ Border
โ Border Radius
Image Classes
๐ Aspect Ratios






๐ก๏ธ Shapes & Cropping



๐บ Sizing



Global Component Classes
๐ Buttons
๐น Other Utility Classes


