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.

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