Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

161 lines
4.1 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. --color-shade: #fff;
  48. --color-negative: #f8f8f8;
  49. --color-positive: #333;
  50. --color-accent: #ba6a9c;
  51. --color-active: #f90;
  52. --font-family-base: 'Encode Sans Semi Expanded', 'Encode Sans', system-ui;
  53. --font-stretch-base: semi-expanded;
  54. --font-weight-base: 400;
  55. --line-height-base: 2;
  56. --font-family-headings:'Encode Sans Condensed', 'Encode Sans', system-ui;
  57. --font-stretch-headings: condensed;
  58. --font-weight-headings: 100;
  59. --line-height-headings: 1.5;
  60. --font-family-monospace: 'mononoki';
  61. --font-size-root: 16px;
  62. --opacity-light: 0.5;
  63. --opacity-lighter: 0.75;
  64. --opacity-lightest: 0.875;
  65. --color-code-number: #72b507;
  66. --color-code-keyword: #ee5189;
  67. --color-code-type: #427fb1;
  68. --color-code-instance-attribute: #76a7d2;
  69. --color-code-function: #5a984a;
  70. --color-code-parameter: #915ec2;
  71. --color-code-property: #b76e8d;
  72. --color-code-string: #b59e36;
  73. --color-code-variable: #61864e;
  74. --color-code-regexp: #4f7e03;
  75. --color-code-url: #0099CC;
  76. --color-code-global: #C28050;
  77. }
  78. /*@media (prefers-color-scheme: dark) {*/
  79. /* :root {*/
  80. /* --color-negative: #222;*/
  81. /* --color-positive: #eee;*/
  82. /* --color-accent: #C78AB3;*/
  83. /* --opacity-light: 0.25;*/
  84. /* --opacity-lighter: 0.5;*/
  85. /* --opacity-lightest: 0.75;*/
  86. /* }*/
  87. /*}*/
  88. :root {
  89. --color-bg: var(--color-negative, white);
  90. --color-fg: var(--color-positive, black);
  91. background-color: var(--color-bg);
  92. color: var(--color-fg);
  93. font-size: var(--font-size-root);
  94. font-family: var(--font-family-base), sans-serif;
  95. font-stretch: var(--font-stretch-base, normal);
  96. font-weight: var(--font-weight-base, 400);
  97. line-height: var(--line-height-base, 2);
  98. }
  99. h1 {
  100. font-family: var(--font-family-headings), sans-serif;
  101. font-stretch: var(--font-stretch-headings, normal);
  102. font-weight: var(--font-weight-headings, 400);
  103. line-height: var(--line-height-headings, 1.5);
  104. }
  105. h2 {
  106. font-family: var(--font-family-headings), sans-serif;
  107. font-stretch: var(--font-stretch-headings, normal);
  108. font-weight: var(--font-weight-headings, 400);
  109. line-height: var(--line-height-headings, 1.5);
  110. }
  111. h3 {
  112. font-family: var(--font-family-headings), sans-serif;
  113. font-stretch: var(--font-stretch-headings, normal);
  114. font-weight: var(--font-weight-headings, 400);
  115. line-height: var(--line-height-headings, 1.5);
  116. }
  117. h4 {
  118. font-family: var(--font-family-headings), sans-serif;
  119. font-stretch: var(--font-stretch-headings, normal);
  120. font-weight: var(--font-weight-headings, 400);
  121. line-height: var(--line-height-headings, 1.5);
  122. }
  123. h5 {
  124. font-family: var(--font-family-headings), sans-serif;
  125. font-stretch: var(--font-stretch-headings, normal);
  126. font-weight: var(--font-weight-headings, 400);
  127. line-height: var(--line-height-headings, 1.5);
  128. }
  129. h6 {
  130. font-family: var(--font-family-headings), sans-serif;
  131. font-stretch: var(--font-stretch-headings, normal);
  132. font-weight: var(--font-weight-headings, 400);
  133. line-height: var(--line-height-headings, 1.5);
  134. }
  135. a {
  136. color: var(--color-accent);
  137. }
  138. code {
  139. font-family: var(--font-family-monospace), monospace;
  140. }
  141. pre {
  142. font-family: var(--font-family-monospace), monospace;
  143. }