Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_Fabric.Typography.scss 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
  2. //
  3. // Office UI Fabric
  4. // --------------------------------------------------
  5. // Typographic mixins arranged with appropriate size and family combinations.
  6. @import 'Fabric.Typography.Variables';
  7. // Super Styles (LIMITED USE)
  8. // Weights: Light
  9. @mixin ms-font-su {
  10. color: $ms-color-neutralPrimary;
  11. font-family: $ms-font-family-light;
  12. font-size: $ms-font-size-su;
  13. font-weight: normal;
  14. }
  15. // No touch class for Super
  16. // Extra-Extra-Large
  17. // Allowed weights: Light, SemiLight
  18. @mixin ms-font-xxl {
  19. color: $ms-color-neutralPrimary;
  20. font-family: $ms-font-family-light;
  21. font-size: $ms-font-size-xxl;
  22. font-weight: normal;
  23. }
  24. // Extra-Large Styles
  25. // Allowed weights: Light, SemiLight
  26. @mixin ms-font-xl {
  27. color: $ms-color-neutralPrimary;
  28. font-family: $ms-font-family-light;
  29. font-size: $ms-font-size-xl;
  30. font-weight: normal;
  31. }
  32. // Large Styles
  33. // Allowed weights: SemiLight, Regular, Semibold
  34. @mixin ms-font-l {
  35. color: $ms-color-neutralPrimary;
  36. font-family: $ms-font-family-semilight;
  37. font-size: $ms-font-size-l;
  38. font-weight: normal;
  39. }
  40. // Medium Plus Styles
  41. // Allowed weights: SemiLight, Regular, Semibold
  42. @mixin ms-font-m-plus {
  43. color: $ms-color-neutralPrimary;
  44. font-family: $ms-font-family-regular;
  45. font-size: $ms-font-size-m-plus;
  46. font-weight: normal;
  47. }
  48. // Medium Styles
  49. // Allowed weights: SemiLight, Regular, Semibold
  50. @mixin ms-font-m {
  51. color: $ms-color-neutralPrimary;
  52. font-family: $ms-font-family-regular;
  53. font-size: $ms-font-size-m;
  54. font-weight: normal;
  55. }
  56. // Small Plus Styles
  57. // Allowed weights: SemiLight, Regular, Semibold
  58. @mixin ms-font-s-plus {
  59. color: $ms-color-neutralPrimary;
  60. font-family: $ms-font-family-regular;
  61. font-size: $ms-font-size-s-plus;
  62. font-weight: normal;
  63. }
  64. // Small Styles
  65. // Allowed weights: SemiLight, Regular, Semibold
  66. @mixin ms-font-s {
  67. color: $ms-color-neutralPrimary;
  68. font-family: $ms-font-family-regular;
  69. font-size: $ms-font-size-s;
  70. font-weight: normal;
  71. }
  72. // XS Styles
  73. // Allowed weights: SemiLight, Regular, Semibold
  74. @mixin ms-font-xs {
  75. color: $ms-color-neutralPrimary;
  76. font-family: $ms-font-family-regular;
  77. font-size: $ms-font-size-xs;
  78. font-weight: normal;
  79. }
  80. // Micro Styles (LIMITED USE)
  81. // Weights: Semibold
  82. @mixin ms-font-mi {
  83. color: $ms-color-neutralPrimary;
  84. font-family: $ms-font-family-semibold;
  85. font-size: $ms-font-size-mi;
  86. font-weight: normal;
  87. }
  88. //== Helper classes & mixins
  89. //
  90. // Helper mixins to override default type values
  91. // Font weights
  92. @mixin ms-fontWeight-light{
  93. font-family: $ms-font-family-light;
  94. }
  95. @mixin ms-fontWeight-semilight{
  96. font-family: $ms-font-family-semilight;
  97. }
  98. @mixin ms-fontWeight-regular {
  99. font-family: $ms-font-family-regular;
  100. }
  101. @mixin ms-fontWeight-semibold {
  102. font-family: $ms-font-family-semibold;
  103. }
  104. // Font sizes
  105. @mixin ms-fontSize-su {
  106. font-size: $ms-font-size-su;
  107. }
  108. @mixin ms-fontSize-xxl {
  109. font-size: $ms-font-size-xxl;
  110. }
  111. @mixin ms-fontSize-xl {
  112. font-size: $ms-font-size-xl;
  113. }
  114. @mixin ms-fontSize-l {
  115. font-size: $ms-font-size-l;
  116. }
  117. @mixin ms-fontSize-mPlus {
  118. font-size: $ms-font-size-m-plus;
  119. }
  120. @mixin ms-fontSize-m {
  121. font-size: $ms-font-size-m;
  122. }
  123. @mixin ms-fontSize-sPlus {
  124. font-size: $ms-font-size-s-plus;
  125. }
  126. @mixin ms-fontSize-s {
  127. font-size: $ms-font-size-s;
  128. }
  129. @mixin ms-fontSize-xs {
  130. font-size: $ms-font-size-xs;
  131. }
  132. @mixin ms-fontSize-mi {
  133. font-size: $ms-font-size-mi;
  134. }
  135. // Theme colors
  136. @mixin ms-fontColor-themeDarker {
  137. color: $ms-color-themeDarker;
  138. }
  139. @mixin ms-fontColor-themeDark {
  140. color: $ms-color-themeDark;
  141. }
  142. @mixin ms-fontColor-themeDarkAlt {
  143. color: $ms-color-themeDarkAlt;
  144. }
  145. @mixin ms-fontColor-themePrimary {
  146. color: $ms-color-themePrimary;
  147. }
  148. @mixin ms-fontColor-themeSecondary {
  149. color: $ms-color-themeSecondary;
  150. }
  151. @mixin ms-fontColor-themeTertiary {
  152. color: $ms-color-themeTertiary;
  153. }
  154. @mixin ms-fontColor-themeLight {
  155. color: $ms-color-themeLight;
  156. }
  157. @mixin ms-fontColor-themeLighter {
  158. color: $ms-color-themeLighter;
  159. }
  160. @mixin ms-fontColor-themeLighterAlt {
  161. color: $ms-color-themeLighterAlt;
  162. }
  163. // Neutral colors
  164. @mixin ms-fontColor-black {
  165. color: $ms-color-black;
  166. }
  167. @mixin ms-fontColor-neutralDark {
  168. color: $ms-color-neutralDark;
  169. }
  170. @mixin ms-fontColor-neutralPrimary {
  171. color: $ms-color-neutralPrimary;
  172. }
  173. @mixin ms-fontColor-neutralSecondary {
  174. color: $ms-color-neutralSecondary;
  175. }
  176. @mixin ms-fontColor-neutralSecondaryAlt {
  177. color: $ms-color-neutralSecondaryAlt;
  178. }
  179. @mixin ms-fontColor-neutralTertiary {
  180. color: $ms-color-neutralTertiary;
  181. }
  182. @mixin ms-fontColor-neutralTertiaryAlt {
  183. color: $ms-color-neutralTertiaryAlt;
  184. }
  185. @mixin ms-fontColor-neutralLight {
  186. color: $ms-color-neutralLight;
  187. }
  188. @mixin ms-fontColor-neutralLighter {
  189. color: $ms-color-neutralLighter;
  190. }
  191. @mixin ms-fontColor-neutralLighterAlt {
  192. color: $ms-color-neutralLighterAlt;
  193. }
  194. @mixin ms-fontColor-white {
  195. color: $ms-color-white;
  196. }
  197. // Brand and accent colors
  198. @mixin ms-fontColor-yellow {
  199. color: $ms-color-yellow;
  200. }
  201. @mixin ms-fontColor-yellowLight {
  202. color: $ms-color-yellowLight;
  203. }
  204. @mixin ms-fontColor-orange {
  205. color: $ms-color-orange;
  206. }
  207. @mixin ms-fontColor-orangeLighter {
  208. color: $ms-color-orangeLighter;
  209. }
  210. @mixin ms-fontColor-orangeLight {
  211. color: $ms-color-orangeLight;
  212. }
  213. @mixin ms-fontColor-redDark {
  214. color: $ms-color-redDark;
  215. }
  216. @mixin ms-fontColor-red {
  217. color: $ms-color-red;
  218. }
  219. @mixin ms-fontColor-magentaDark {
  220. color: $ms-color-magentaDark;
  221. }
  222. @mixin ms-fontColor-magenta {
  223. color: $ms-color-magenta;
  224. }
  225. @mixin ms-fontColor-magentaLight {
  226. color: $ms-color-magentaLight;
  227. }
  228. @mixin ms-fontColor-purpleDark {
  229. color: $ms-color-purpleDark;
  230. }
  231. @mixin ms-fontColor-purple {
  232. color: $ms-color-purple;
  233. }
  234. @mixin ms-fontColor-purpleLight {
  235. color: $ms-color-purpleLight;
  236. }
  237. @mixin ms-fontColor-blueDark {
  238. color: $ms-color-blueDark;
  239. }
  240. @mixin ms-fontColor-blueMid {
  241. color: $ms-color-blueMid;
  242. }
  243. @mixin ms-fontColor-blue {
  244. color: $ms-color-blue;
  245. }
  246. @mixin ms-fontColor-blueLight {
  247. color: $ms-color-blueLight;
  248. }
  249. @mixin ms-fontColor-tealDark {
  250. color: $ms-color-tealDark;
  251. }
  252. @mixin ms-fontColor-teal {
  253. color: $ms-color-teal;
  254. }
  255. @mixin ms-fontColor-tealLight {
  256. color: $ms-color-tealLight;
  257. }
  258. @mixin ms-fontColor-greenDark {
  259. color: $ms-color-greenDark;
  260. }
  261. @mixin ms-fontColor-green {
  262. color: $ms-color-green;
  263. }
  264. @mixin ms-fontColor-greenLight {
  265. color: $ms-color-greenLight;
  266. }
  267. // Utility colors
  268. @mixin ms-fontColor-error {
  269. color: $ms-color-error;
  270. }
  271. @mixin ms-fontColor-alert {
  272. color: $ms-color-alert;
  273. }
  274. @mixin ms-fontColor-info {
  275. color: $ms-color-info;
  276. }
  277. @mixin ms-fontColor-success {
  278. color: $ms-color-success;
  279. }