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 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2018 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. lightBlue: '#cae3f2',
  26. darkBlue: '#236a97',
  27. green: '#00aa00',
  28. lightGreen: '#b0d513',
  29. yellow: '#eabe06',
  30. orange: '#ed7d20',
  31. red: '#d4333f',
  32. purple: '#9139d4',
  33. gray94: '#efefef',
  34. gray80: '#cdcdcd',
  35. gray71: '#b4b4b4',
  36. gray67: '#aaa',
  37. gray60: '#999',
  38. gray40: '#404040',
  39. disableGrayText: '#bbb',
  40. disableGrayBorder: '#ddd',
  41. disableGrayBg: '#ebebeb',
  42. barBackgroundColor: '#f3f3f3',
  43. barBorderColor: '#e6e6e6',
  44. baseFontColor: '#444',
  45. secondFontColor: '#777',
  46. leakColor: '#fbf3d5',
  47. leakColorHover: '#f0e7c4',
  48. leakBorderColor: '#eae3c7',
  49. snippetFontColor: '#f0f0f0',
  50. // alerts
  51. warningIconColor: '#e2bf41',
  52. alertBorderError: '#ebccd1',
  53. alertBackgroundError: '#f2dede',
  54. alertTextError: '#862422',
  55. alertIconError: '#b81723',
  56. alertBorderWarning: '#faebcc',
  57. alertBackgroundWarning: '#fcf8e3',
  58. alertTextWarning: '#6f4f17',
  59. alertIconWarning: '#db781a',
  60. alertBorderSuccess: '#d6e9c6',
  61. alertBackgroundSuccess: '#dff0d8',
  62. alertTextSuccess: '#215821',
  63. alertIconSuccess: '#6d9867',
  64. alertBorderInfo: '#b1dff3',
  65. alertBackgroundInfo: '#d9edf7',
  66. alertTextInfo: '#0e516f',
  67. alertIconInfo: '#0271b9',
  68. // sizes
  69. grid,
  70. gridSize: `${grid}px`,
  71. baseFontSize: '13px',
  72. verySmallFontSize: '10px',
  73. smallFontSize: '12px',
  74. mediumFontSize: '14px',
  75. bigFontSize: '16px',
  76. hugeFontSize: '24px',
  77. controlHeight: `${3 * grid}px`,
  78. smallControlHeight: `${2.5 * grid}px`,
  79. tinyControlHeight: `${2 * grid}px`,
  80. globalNavHeight: `${6 * grid}px`,
  81. globalNavHeightRaw: 6 * grid,
  82. globalNavContentHeight: `${4 * grid}px`,
  83. globalNavContentHeightRaw: 4 * grid,
  84. contextNavHeightRaw: 9 * grid,
  85. pagePadding: '20px',
  86. // different
  87. baseFontFamily: "'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif",
  88. systemFontFamily: "-apple-system,'BlinkMacSystemFont','Segoe UI','Helvetica','Arial',sans-serif",
  89. defaultShadow: '0 6px 12px rgba(0, 0, 0, 0.175)',
  90. // z-index
  91. // =======
  92. // 1 - 100 for page elements (e.g. sidebars, panels)
  93. // 101 - 500 for generic page fixed elements (e.g. navigation, workspace)
  94. // 501 - 3000 for page ui elements
  95. // 3001 - 8000 for generic ui elements (e.g. dropdowns, tooltips)
  96. // common
  97. aboveNormalZIndex: '3',
  98. normalZIndex: '2',
  99. belowNormalZIndex: '1',
  100. // ui elements
  101. pageMainZIndex: '50',
  102. tooltipZIndex: '8000',
  103. dropdownMenuZIndex: '7500',
  104. processContainerZIndex: '7000',
  105. modalZIndex: '6001',
  106. modalOverlayZIndex: '6000',
  107. popupZIndex: '5000',
  108. // sonarcloud
  109. sonarcloudOrange500: '#fd6a00',
  110. sonarcloudOrange700: '#db5700',
  111. sonarcloudBlack100: '#ffffff',
  112. sonarcloudBlack200: '#f9f9fb',
  113. sonarcloudBlack250: '#e6e8ea',
  114. sonarcloudBlack300: '#cfd3d7',
  115. sonarcloudBlack500: '#8a8c8f',
  116. sonarcloudBlack700: '#434447',
  117. sonarcloudBlack800: '#2d3032',
  118. sonarcloudBlack900: '#070706',
  119. sonarcloudBorderGray: 'rgba(207, 211, 215, 0.5)',
  120. sonarcloudFontFamily:
  121. "Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
  122. };