2
0

_typography.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. body {
  2. -webkit-font-smoothing: antialiased; // Do not remove!
  3. font-family: theme('fontFamily.sans');
  4. font-size: 85%;
  5. line-height: 1.5em;
  6. color: theme('colors.text-context');
  7. }
  8. h1,
  9. h2,
  10. h3,
  11. h4,
  12. h5,
  13. h6 {
  14. font-weight: normal;
  15. line-height: theme('lineHeight.tight');
  16. color: theme('colors.text-label');
  17. }
  18. h1 {
  19. font-size: 1.5em;
  20. font-weight: 700;
  21. }
  22. h2 {
  23. font-size: 1.3em;
  24. font-weight: 600;
  25. }
  26. p {
  27. margin-top: 0;
  28. }
  29. a {
  30. color: theme('colors.text-link-default');
  31. text-decoration: none;
  32. &:hover {
  33. color: theme('colors.text-link-hover');
  34. }
  35. }
  36. code {
  37. box-shadow: inset 0 0 4px 0 theme('colors.black-20');
  38. background-color: theme('colors.surface-page');
  39. color: theme('colors.text-context');
  40. font-family: theme('fontFamily.mono');
  41. padding: 2px 5px;
  42. }
  43. kbd {
  44. border-radius: 3px;
  45. font-family: theme('fontFamily.sans');
  46. border: 1px solid currentColor;
  47. border-color: theme('colors.black-20');
  48. color: theme('colors.text-meta');
  49. padding: 0.3em 0.5em;
  50. }
  51. pre {
  52. font-family: theme('fontFamily.mono');
  53. }
  54. dl,
  55. dt,
  56. dd {
  57. padding: 0;
  58. margin: 0;
  59. }
  60. dl {
  61. margin-top: 1em;
  62. }
  63. dt {
  64. color: theme('colors.text-meta');
  65. font-size: 0.9em;
  66. }
  67. dd {
  68. margin-bottom: 1em;
  69. }