Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

theme.css 3.9 KiB

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