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.
 
 
 
 

139 line
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. --color-negative: #eee;
  48. --color-positive: #222;
  49. --color-accent: #ba6a9c;
  50. --color-active: #f90;
  51. --font-family-base: 'Encode Sans Semi Expanded', 'Encode Sans', system-ui;
  52. --font-stretch-base: semi-expanded;
  53. --font-weight-base: 400;
  54. --line-height-base: 2;
  55. --font-family-headings:'Encode Sans Condensed', 'Encode Sans', system-ui;
  56. --font-stretch-headings: condensed;
  57. --font-weight-headings: 100;
  58. --line-height-headings: 1.5;
  59. --font-family-monospace: 'mononoki';
  60. --font-size-root: 16px;
  61. --opacity-light: 0.5;
  62. --opacity-lighter: 0.75;
  63. --opacity-lightest: 0.875;
  64. }
  65. /*@media (prefers-color-scheme: dark) {*/
  66. /* :root {*/
  67. /* --color-negative: #222;*/
  68. /* --color-positive: #eee;*/
  69. /* --color-accent: #C78AB3;*/
  70. /* --opacity-light: 0.25;*/
  71. /* --opacity-lighter: 0.5;*/
  72. /* --opacity-lightest: 0.75;*/
  73. /* }*/
  74. /*}*/
  75. :root {
  76. --color-bg: var(--color-negative, white);
  77. --color-fg: var(--color-positive, black);
  78. background-color: var(--color-bg);
  79. color: var(--color-fg);
  80. font-size: var(--font-size-root);
  81. font-family: var(--font-family-base), sans-serif;
  82. font-stretch: var(--font-stretch-base, normal);
  83. font-weight: var(--font-weight-base, 400);
  84. line-height: var(--line-height-base, 2);
  85. }
  86. h1 {
  87. font-family: var(--font-family-headings), sans-serif;
  88. font-stretch: var(--font-stretch-headings, normal);
  89. font-weight: var(--font-weight-headings, 400);
  90. line-height: var(--line-height-headings, 1.5);
  91. }
  92. h2 {
  93. font-family: var(--font-family-headings), sans-serif;
  94. font-stretch: var(--font-stretch-headings, normal);
  95. font-weight: var(--font-weight-headings, 400);
  96. line-height: var(--line-height-headings, 1.5);
  97. }
  98. h3 {
  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. h4 {
  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. h5 {
  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. h6 {
  117. font-family: var(--font-family-headings), sans-serif;
  118. font-stretch: var(--font-stretch-headings, normal);
  119. font-weight: var(--font-weight-headings, 400);
  120. line-height: var(--line-height-headings, 1.5);
  121. }
  122. a {
  123. color: var(--color-accent);
  124. }