variables.sass 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // 1. Initial variables
  2. // Colors
  3. $black: #111 !default
  4. $grey-darker: #222324 !default
  5. $grey-dark: #69707a !default
  6. $grey: #aeb1b5 !default
  7. $grey-light: #d3d6db !default
  8. $grey-lighter: #f5f7fa !default
  9. $white: #fff !default
  10. $blue: #039BE5 !default
  11. $green: #7CB342 !default
  12. $orange: #FB8C00 !default
  13. $purple: #673AB7 !default
  14. $red: #E53935 !default
  15. $turquoise: #00ACC1 !default
  16. $yellow: #fce473 !default
  17. // Typography
  18. $family-monospace: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  19. $family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  20. $size-1: 48px !default
  21. $size-2: 40px !default
  22. $size-3: 28px !default
  23. $size-4: 24px !default
  24. $size-5: 18px !default
  25. $size-6: 14px !default
  26. $size-7: 11px !default
  27. $weight-normal: 400 !default
  28. $weight-bold: 700 !default
  29. $weight-title-normal: 300 !default
  30. $weight-title-bold: 500 !default
  31. // Breakpoints
  32. $tablet: 769px !default
  33. $desktop: 980px !default
  34. $widescreen: 1180px !default
  35. // Dimensions
  36. $column-gap: 20px !default
  37. $nav-height: 50px !default
  38. // Miscellaneous
  39. $easing: ease-out !default
  40. $radius-small: 2px !default
  41. $radius: 3px !default
  42. $radius-large: 5px !default
  43. $speed: 86ms !default
  44. // 2. Primary colors
  45. $primary: $turquoise !default
  46. $info: $blue !default
  47. $success: $green !default
  48. $warning: $orange !default
  49. $danger: $red !default
  50. $light: $grey-lighter !default
  51. $dark: $grey-dark !default
  52. $text: $grey-dark !default
  53. // 3. Generated variables
  54. // Invert colors
  55. $primary-invert: findColorInvert($primary) !default
  56. $info-invert: findColorInvert($info) !default
  57. $success-invert: findColorInvert($success) !default
  58. $warning-invert: findColorInvert($warning) !default
  59. $danger-invert: findColorInvert($danger) !default
  60. $light-invert: $dark !default
  61. $dark-invert: $light !default
  62. // General colors
  63. $body-background: $grey-lighter !default
  64. $background: $grey-lighter !default
  65. $border: $grey-light !default
  66. $border-hover: $grey !default
  67. // Text colors
  68. $text-invert: findColorInvert($text) !default
  69. $text-light: $grey !default
  70. $text-strong: $grey-darker !default
  71. // Code colors
  72. $code: $red !default
  73. $code-background: $background !default
  74. $pre: $text !default
  75. $pre-background: $background !default
  76. // Link colors
  77. $link: $primary !default
  78. $link-invert: $primary-invert !default
  79. $link-visited: $purple !default
  80. $link-hover: $grey-darker !default
  81. $link-hover-background: $grey-lighter !default
  82. $link-hover-border: $grey-darker !default
  83. $link-active: $grey-darker !default
  84. $link-active-border: $grey-darker !default
  85. // Control colors
  86. $control: $text-strong !default
  87. $control-background: $text-invert !default
  88. $control-border: $border !default
  89. $control-hover: $link-hover !default
  90. $control-hover-border: $border-hover !default
  91. $control-active: $link !default
  92. $control-active-background: $link !default
  93. $control-active-background-invert: $link-invert !default
  94. $control-active-border: $link !default
  95. // Typography
  96. $family-primary: $family-sans-serif !default
  97. $family-code: $family-monospace !default
  98. $size-small: $size-7 !default
  99. $size-normal: $size-6 !default
  100. $size-medium: $size-5 !default
  101. $size-large: $size-3 !default
  102. $size-huge: $size-1 !default
  103. // 4. Lists and maps
  104. $colors: (white: ($white, $black), black: ($black, $white), light: ($light, $light-invert), dark: ($dark, $dark-invert), primary: ($primary, $primary-invert), info: ($info, $info-invert), success: ($success, $success-invert), warning: ($warning, $warning-invert), danger: ($danger, $danger-invert)) !default
  105. $sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 !default