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.

theme.js 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2019 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. // IMPORTANT: any change in this file requires restart of the dev server
  21. const grid = 8;
  22. module.exports = {
  23. // colors
  24. blue: '#4b9fd5',
  25. veryLightBlue: '#f2faff',
  26. lightBlue: '#cae3f2',
  27. darkBlue: '#236a97',
  28. green: '#00aa00',
  29. lineCoverageGreen: '#b4dd78',
  30. lightGreen: '#b0d513',
  31. veryLightGreen: '#f5f9fc',
  32. yellow: '#eabe06',
  33. orange: '#ed7d20',
  34. red: '#d4333f',
  35. lineCoverageRed: '#a4030f',
  36. purple: '#9139d4',
  37. gray94: '#efefef',
  38. gray80: '#cdcdcd',
  39. gray71: '#b4b4b4',
  40. gray67: '#aaa',
  41. gray60: '#999',
  42. gray40: '#404040',
  43. transparentWhite: 'rgba(255,255,255,0.62)',
  44. disableGrayText: '#bbb',
  45. disableGrayBorder: '#ddd',
  46. disableGrayBg: '#ebebeb',
  47. barBackgroundColor: '#f3f3f3',
  48. barBorderColor: '#e6e6e6',
  49. baseFontColor: '#444',
  50. secondFontColor: '#777',
  51. leakColor: '#fbf3d5',
  52. leakColorHover: '#f0e7c4',
  53. leakBorderColor: '#eae3c7',
  54. globalNavBarBg: '#262626',
  55. snippetFontColor: '#f0f0f0',
  56. // alerts
  57. warningIconColor: '#e2bf41',
  58. alertBorderError: '#ebccd1',
  59. alertBackgroundError: '#f2dede',
  60. alertTextError: '#862422',
  61. alertIconError: '#b81723',
  62. alertBorderWarning: '#faebcc',
  63. alertBackgroundWarning: '#fcf8e3',
  64. alertTextWarning: '#6f4f17',
  65. alertIconWarning: '#db781a',
  66. alertBorderSuccess: '#d6e9c6',
  67. alertBackgroundSuccess: '#dff0d8',
  68. alertTextSuccess: '#215821',
  69. alertIconSuccess: '#6d9867',
  70. alertBorderInfo: '#b1dff3',
  71. alertBackgroundInfo: '#d9edf7',
  72. alertTextInfo: '#0e516f',
  73. alertIconInfo: '#0271b9',
  74. // sizes
  75. grid,
  76. gridSize: `${grid}px`,
  77. baseFontSize: '13px',
  78. verySmallFontSize: '10px',
  79. smallFontSize: '12px',
  80. mediumFontSize: '14px',
  81. bigFontSize: '16px',
  82. hugeFontSize: '24px',
  83. hugeControlHeight: `${5 * grid}px`,
  84. largeControlHeight: `${4 * grid}px`,
  85. controlHeight: `${3 * grid}px`,
  86. smallControlHeight: `${2.5 * grid}px`,
  87. tinyControlHeight: `${2 * grid}px`,
  88. globalNavHeight: `${6 * grid}px`,
  89. globalNavHeightRaw: 6 * grid,
  90. globalNavContentHeight: `${4 * grid}px`,
  91. globalNavContentHeightRaw: 4 * grid,
  92. contextNavHeightRaw: 9 * grid,
  93. maxPageWidth: '1320px',
  94. minPageWidth: '1080px',
  95. pagePadding: '20px',
  96. // different
  97. baseFontFamily: "'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif",
  98. systemFontFamily: "-apple-system,'BlinkMacSystemFont','Segoe UI','Helvetica','Arial',sans-serif",
  99. defaultShadow: '0 6px 12px rgba(0, 0, 0, 0.175)',
  100. // z-index
  101. // =======
  102. // 1 - 100 for page elements (e.g. sidebars, panels)
  103. // 101 - 500 for generic page fixed elements (e.g. navigation, workspace)
  104. // 501 - 3000 for page ui elements
  105. // 3001 - 8000 for generic ui elements (e.g. dropdowns, tooltips)
  106. // common
  107. aboveNormalZIndex: '3',
  108. normalZIndex: '2',
  109. belowNormalZIndex: '1',
  110. // ui elements
  111. pageMainZIndex: '50',
  112. tooltipZIndex: '8000',
  113. dropdownMenuZIndex: '7500',
  114. processContainerZIndex: '7000',
  115. modalZIndex: '6001',
  116. modalOverlayZIndex: '6000',
  117. popupZIndex: '5000',
  118. // sonarcloud
  119. sonarcloudOrange500: '#fd6a00',
  120. sonarcloudOrange600: '#e26003',
  121. sonarcloudOrange700: '#db5700',
  122. sonarcloudBlack100: '#ffffff',
  123. sonarcloudBlack200: '#f9f9fb',
  124. sonarcloudBlack250: '#e6e8ea',
  125. sonarcloudBlack300: '#cfd3d7',
  126. sonarcloudBlack500: '#8a8c8f',
  127. sonarcloudBlack700: '#434447',
  128. sonarcloudBlack800: '#2d3032',
  129. sonarcloudBlack900: '#070706',
  130. sonarcloudBlue500: '#4c9bd6',
  131. sonarcloudBlue600: '#327bb3',
  132. sonarcloudBlue900: '#0b3c62',
  133. sonarcloudBorderGray: 'rgba(207, 211, 215, 0.5)',
  134. sonarcloudFontFamily:
  135. "Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
  136. };