Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

165 wiersze
3.8 KiB

  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: 2;
  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. }
  60. @media (prefers-color-scheme: dark) {
  61. :root {
  62. --color-bg: var(--color-negative, black);
  63. --color-fg: var(--color-positive, white);
  64. }
  65. }
  66. :root {
  67. font-size: var(--font-size-root);
  68. font-family: var(--font-family-base), sans-serif;
  69. font-stretch: var(--font-stretch-base, normal);
  70. font-weight: var(--font-weight-base, 400);
  71. line-height: var(--line-height-base, 2);
  72. transition-property: color, background-color;
  73. transition-timing-function: ease;
  74. transition-duration: 350ms;
  75. }
  76. @media only screen {
  77. :root {
  78. background-color: var(--color-bg);
  79. color: var(--color-fg);
  80. }
  81. }
  82. h1 {
  83. font-family: var(--font-family-headings), sans-serif;
  84. font-stretch: var(--font-stretch-headings, normal);
  85. font-weight: var(--font-weight-headings, 400);
  86. line-height: var(--line-height-headings, 1.5);
  87. }
  88. h2 {
  89. font-family: var(--font-family-headings), sans-serif;
  90. font-stretch: var(--font-stretch-headings, normal);
  91. font-weight: calc(var(--font-weight-headings, 400) / 100 * 150);
  92. line-height: var(--line-height-headings, 1.5);
  93. }
  94. h3 {
  95. font-family: var(--font-family-headings), sans-serif;
  96. font-stretch: var(--font-stretch-headings, normal);
  97. font-weight: calc(var(--font-weight-headings, 400) / 100 * 250);
  98. line-height: var(--line-height-headings, 1.5);
  99. }
  100. h4 {
  101. font-family: var(--font-family-headings), sans-serif;
  102. font-stretch: var(--font-stretch-headings, normal);
  103. font-weight: var(--font-weight-headings, 400);
  104. line-height: var(--line-height-headings, 1.5);
  105. }
  106. h5 {
  107. font-family: var(--font-family-headings), sans-serif;
  108. font-stretch: var(--font-stretch-headings, normal);
  109. font-weight: var(--font-weight-headings, 400);
  110. line-height: var(--line-height-headings, 1.5);
  111. }
  112. h6 {
  113. font-family: var(--font-family-headings), sans-serif;
  114. font-stretch: var(--font-stretch-headings, normal);
  115. font-weight: var(--font-weight-headings, 400);
  116. line-height: var(--line-height-headings, 1.5);
  117. }
  118. code {
  119. font-family: var(--font-family-monospace), monospace;
  120. }
  121. pre {
  122. font-family: var(--font-family-monospace), monospace;
  123. }
  124. a {
  125. color: inherit;
  126. text-decoration: none;
  127. }
  128. @media only screen {
  129. a {
  130. color: var(--color-accent);
  131. text-decoration: underline;
  132. }
  133. a:focus {
  134. color: var(--color-active);
  135. }
  136. }
  137. ::selection {
  138. background-color: var(--color-active);
  139. color: var(--color-fg);
  140. }
  141. :root {
  142. caret-color: var(--color-active);
  143. }