variables-dark.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. /*
  6. The following CSS variables define the main, public API for styling JupyterLab.
  7. These variables should be used by all plugins wherever possible. In other
  8. words, plugins should not define custom colors, sizes, etc unless absolutely
  9. necessary. This enables users to change the visual theme of JupyterLab
  10. by changing these variables.
  11. Many variables appear in an ordered sequence (0,1,2,3). These sequences
  12. are designed to work well together, so for example, `--jp-border-color1` should
  13. be used with `--jp-layout-color1`. The numbers have the following meanings:
  14. * 0: super-primary, reserved for special emphasis
  15. * 1: primary, most important under normal situations
  16. * 2: secondary, next most important under normal situations
  17. * 3: tertiary, next most important under normal situations
  18. Throughout JupyterLab, we are mostly following principles from Google's
  19. Material Design when selecting colors. We are not, however, following
  20. all of MD as it is not optimized for dense, information rich UIs.
  21. */
  22. /*
  23. * Optional monospace font for input/output prompt.
  24. */
  25. @import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
  26. :root {
  27. /* Borders
  28. The following variables, specify the visual styling of borders in JupyterLab.
  29. */
  30. --jp-border-width: 1px;
  31. --jp-border-color0: var(--md-grey-300);
  32. --jp-border-color1: var(--md-grey-500);
  33. --jp-border-color2: var(--md-grey-700);
  34. --jp-border-color3: var(--md-grey-900);
  35. /* UI Fonts
  36. The UI font CSS variables are used for the typography all of the JupyterLab
  37. user interface elements that are not directly user generated content.
  38. */
  39. --jp-ui-font-scale-factor: 1.2;
  40. --jp-ui-font-size0: calc(var(--jp-ui-font-size1)/var(--jp-ui-font-scale-factor));
  41. --jp-ui-font-size1: 13px; /* Base font size */
  42. --jp-ui-font-size2: calc(var(--jp-ui-font-size1)*var(--jp-ui-font-scale-factor));
  43. --jp-ui-font-size3: calc(var(--jp-ui-font-size2)*var(--jp-ui-font-scale-factor));
  44. --jp-ui-icon-font-size: 14px; /* Ensures px perfect FontAwesome icons */
  45. --jp-ui-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  46. /* Use these font colors against the corresponding main layout colors.
  47. In a light theme, these go from dark to light.
  48. */
  49. --jp-ui-font-color0: white;
  50. --jp-ui-font-color1: rgba(157,157,157);
  51. --jp-ui-font-color2: var(--md-grey-700);
  52. --jp-ui-font-color3: var(--md-grey-500);
  53. /* Use these against the brand/accent/warn/error colors.
  54. These will typically go from light to darker, in both a dark and light theme
  55. */
  56. --jp-inverse-ui-font-color0: rgba(255,255,255,1);
  57. --jp-inverse-ui-font-color1: rgba(255,255,255,1.0);
  58. --jp-inverse-ui-font-color2: rgba(255,255,255,0.7);
  59. --jp-inverse-ui-font-color3: rgba(255,255,255,0.5);
  60. /* Content Fonts
  61. Content font variables are used for typography of user generated content.
  62. */
  63. --jp-content-font-size: 13px;
  64. --jp-content-line-height: 1.5;
  65. --jp-content-font-color0: black;
  66. --jp-content-font-color1: black;
  67. --jp-content-font-color2: var(--md-grey-700);
  68. --jp-content-font-color3: var(--md-grey-500);
  69. --jp-ui-font-scale-factor: 1.2;
  70. --jp-ui-font-size0: calc(var(--jp-ui-font-size1)/var(--jp-ui-font-scale-factor));
  71. --jp-ui-font-size1: 13px; /* Base font size */
  72. --jp-ui-font-size2: calc(var(--jp-ui-font-size1)*var(--jp-ui-font-scale-factor));
  73. --jp-ui-font-size3: calc(var(--jp-ui-font-size2)*var(--jp-ui-font-scale-factor));
  74. --jp-code-font-size: 13px;
  75. --jp-code-line-height: 17px;
  76. --jp-code-padding: 5px;
  77. --jp-code-font-family: monospace;
  78. /* Layout
  79. The following are the main layout colors use in JupyterLab. In a light
  80. theme these would go from light to dark.
  81. */
  82. --jp-layout-color0: black;
  83. --jp-layout-color1: white;
  84. --jp-layout-color2: rgb(23,23,23);
  85. --jp-layout-color3: var(--md-grey-600);
  86. /* Brand/accent */
  87. --jp-brand-color0: var(--md-blue-700);
  88. --jp-brand-color1: var(--md-blue-500);
  89. --jp-brand-color2: var(--md-blue-300);
  90. --jp-brand-color3: var(--md-blue-100);
  91. --jp-accent-color0: var(--md-green-700);
  92. --jp-accent-color1: var(--md-green-500);
  93. --jp-accent-color2: var(--md-green-300);
  94. --jp-accent-color3: var(--md-green-100);
  95. /* State colors (warn, error, success, info) */
  96. --jp-warn-color0: var(--md-orange-700);
  97. --jp-warn-color1: var(--md-orange-500);
  98. --jp-warn-color2: var(--md-orange-300);
  99. --jp-warn-color3: var(--md-orange-100);
  100. --jp-error-color0: var(--md-red-700);
  101. --jp-error-color1: var(--md-red-500);
  102. --jp-error-color2: var(--md-red-300);
  103. --jp-error-color3: var(--md-red-100);
  104. --jp-success-color0: var(--md-green-700);
  105. --jp-success-color1: var(--md-green-500);
  106. --jp-success-color2: var(--md-green-300);
  107. --jp-success-color3: var(--md-green-100);
  108. --jp-info-color0: var(--md-cyan-700);
  109. --jp-info-color1: var(--md-cyan-500);
  110. --jp-info-color2: var(--md-cyan-300);
  111. --jp-info-color3: var(--md-cyan-100);
  112. /* Cell specific styles */
  113. --jp-cell-padding: 5px;
  114. --jp-cell-editor-background: #f7f7f7;
  115. --jp-cell-editor-border-color: #cfcfcf;
  116. --jp-cell-editor-background-edit: var(--jp-ui-layout-color1);
  117. --jp-cell-editor-border-color-edit: var(--jp-brand-color1);
  118. --jp-cell-prompt-width: 68px;
  119. --jp-cell-prompt-font-family: 'Roboto Mono', monospace;
  120. --jp-cell-prompt-letter-spacing: 0px;
  121. --jp-cell-prompt-opacity: 1.0;
  122. --jp-cell-prompt-opacity-not-active: 0.4;
  123. --jp-cell-inprompt-font-color: var(--md-grey-700);
  124. --jp-cell-outprompt-font-color: var(--md-grey-700);
  125. /* Notebook specific styles */
  126. --jp-notebook-padding: 10px;
  127. --jp-notebook-scroll-padding: 100px;
  128. }