Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

light.css 3.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. }
  125. code {
  126. font-family: var(--font-family-monospace), monospace;
  127. }
  128. pre {
  129. font-family: var(--font-family-monospace), monospace;
  130. }