Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Latest commit

 

History

History
21 lines (19 loc) · 1.11 KB

File metadata and controls

21 lines (19 loc) · 1.11 KB

Variables

SCSS mixins for standard colors, design breaking points and other global style constants.

Base Spacings

Note: The constants from this section are defined mostly for documentation purposes. Although SCSS allows to really encode layout spacings as mathematical expressions using these constants; it is not practical, as results in less readable SCSS code and demands one to calculate the resulting values in head to check whether the numbers match the design specifications (which usually give the final numbers). Thus, for border radii and spacings prefer to put the final numbers directly into your SCSS code.

  • $base-unit5px — All layout spacings in Topcoder designs are multiples of this value.
  • $corner-radius2px — All corner radii (border-radius CSS prop) in Topcoder designs are multiples of this value.

Colors

LIVE DEMO of mixins for the standard color pallete being used in Topcoder designs. Always use these color mixins instead of hard-coding HEX color codes into your SCSS code.