Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

146 Zeilen
3.6 KiB

  1. @font-face {
  2. font-family: 'Encode Sans';
  3. font-stretch: semi-expanded;
  4. font-weight: 400;
  5. src:
  6. local('Encode Sans Semi Expanded'),
  7. local('Encode Sans');
  8. }
  9. @font-face {
  10. font-family: 'Encode Sans';
  11. font-stretch: semi-expanded;
  12. font-weight: 700;
  13. src:
  14. local('Encode Sans Semi Expanded Bold'),
  15. local('Encode Sans Semi Expanded'),
  16. local('Encode Sans');
  17. }
  18. @font-face {
  19. font-family: 'Encode Sans';
  20. font-stretch: condensed;
  21. font-weight: 100;
  22. src:
  23. local('Encode Sans Condensed Thin'),
  24. local('Encode Sans Condensed'),
  25. local('Encode Sans');
  26. }
  27. @font-face {
  28. font-family: 'Encode Sans';
  29. font-stretch: condensed;
  30. font-weight: 200;
  31. src:
  32. local('Encode Sans Condensed ExtraLight'),
  33. local('Encode Sans Condensed Extra Light'),
  34. local('Encode Sans Condensed'),
  35. local('Encode Sans');
  36. }
  37. @font-face {
  38. font-family: 'Encode Sans';
  39. font-stretch: condensed;
  40. font-weight: 300;
  41. src:
  42. local('Encode Sans Condensed Light'),
  43. local('Encode Sans Condensed'),
  44. local('Encode Sans');
  45. }
  46. :root {
  47. --font-family-base: 'Encode Sans Semi Expanded', 'Encode Sans', system-ui;
  48. --font-stretch-base: semi-expanded;
  49. --font-weight-base: 400;
  50. --line-height-base: 2;
  51. --font-family-headings:'Encode Sans Condensed', 'Encode Sans', system-ui;
  52. --font-stretch-headings: condensed;
  53. --font-weight-headings: 100;
  54. --line-height-headings: 1.5;
  55. --font-family-monospace: 'mononoki';
  56. --font-size-root: 16px;
  57. --opacity-light: 0.25;
  58. --opacity-lighter: 0.5;
  59. --opacity-lightest: 0.75;
  60. }
  61. :root {
  62. --color-bg: var(--color-negative, white);
  63. --color-fg: var(--color-positive, black);
  64. }
  65. @media (prefers-color-scheme: dark) {
  66. :root {
  67. --color-bg: var(--color-negative, black);
  68. --color-fg: var(--color-positive, white);
  69. }
  70. }
  71. :root {
  72. background-color: var(--color-bg);
  73. color: var(--color-fg);
  74. font-size: var(--font-size-root);
  75. font-family: var(--font-family-base), sans-serif;
  76. font-stretch: var(--font-stretch-base, normal);
  77. font-weight: var(--font-weight-base, 400);
  78. line-height: var(--line-height-base, 2);
  79. transition-property: color, background-color;
  80. transition-timing-function: ease;
  81. transition-duration: 350ms;
  82. }
  83. h1 {
  84. font-family: var(--font-family-headings), sans-serif;
  85. font-stretch: var(--font-stretch-headings, normal);
  86. font-weight: var(--font-weight-headings, 400);
  87. line-height: var(--line-height-headings, 1.5);
  88. }
  89. h2 {
  90. font-family: var(--font-family-headings), sans-serif;
  91. font-stretch: var(--font-stretch-headings, normal);
  92. font-weight: var(--font-weight-headings, 400);
  93. line-height: var(--line-height-headings, 1.5);
  94. }
  95. h3 {
  96. font-family: var(--font-family-headings), sans-serif;
  97. font-stretch: var(--font-stretch-headings, normal);
  98. font-weight: var(--font-weight-headings, 400);
  99. line-height: var(--line-height-headings, 1.5);
  100. }
  101. h4 {
  102. font-family: var(--font-family-headings), sans-serif;
  103. font-stretch: var(--font-stretch-headings, normal);
  104. font-weight: var(--font-weight-headings, 400);
  105. line-height: var(--line-height-headings, 1.5);
  106. }
  107. h5 {
  108. font-family: var(--font-family-headings), sans-serif;
  109. font-stretch: var(--font-stretch-headings, normal);
  110. font-weight: var(--font-weight-headings, 400);
  111. line-height: var(--line-height-headings, 1.5);
  112. }
  113. h6 {
  114. font-family: var(--font-family-headings), sans-serif;
  115. font-stretch: var(--font-stretch-headings, normal);
  116. font-weight: var(--font-weight-headings, 400);
  117. line-height: var(--line-height-headings, 1.5);
  118. }
  119. code {
  120. font-family: var(--font-family-monospace), monospace;
  121. }
  122. pre {
  123. font-family: var(--font-family-monospace), monospace;
  124. }
  125. a {
  126. color: var(--color-accent);
  127. }