_ag-theme-material-default-params.scss 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @import "../../ag-theme-base/sass/ag-theme-base-default-params";
  2. @import "./ag-theme-material-font-vars";
  3. $ag-theme-material-default-params: (
  4. // Taking primary and accent from the indigo / pink theme: https://github.com/angular/material2/blob/master/src/lib/core/theming/prebuilt/indigo-pink.scss
  5. material-primary-color: #3f51b5,
  6. material-accent-color: #ff4081,
  7. // Colors
  8. foreground-color: rgba(#000, 0.87),
  9. secondary-foreground-color: ag-derived(foreground-color, $opacity: 0.54),
  10. disabled-foreground-color: ag-derived(foreground-color, $opacity: 0.38),
  11. background-color: #fff,
  12. header-background-color: #fff,
  13. subheader-background-color: #eee,
  14. header-cell-hover-background-color: ag-derived(header-background-color, $darken: 5%),
  15. chip-background-color: #e2e2e2,
  16. range-selection-background-color: rgba(122, 134, 203, 0.1),
  17. range-selection-highlight-color: #fce4ec,
  18. row-hover-color: #fafafa,
  19. control-panel-background-color: #fafafa,
  20. selected-row-background-color: #eee,
  21. range-selection-border-color: ag-derived(material-primary-color),
  22. checkbox-checked-color: ag-derived(material-accent-color),
  23. checkbox-unchecked-color: #333,
  24. value-change-value-highlight-background-color: #00acc1,
  25. // Borders
  26. borders: false,
  27. borders-critical: true,
  28. border-color: #e2e2e2,
  29. // Sizing
  30. grid-size: 8px,
  31. icon-size: 18px,
  32. header-height: ag-derived(grid-size, $times: 7),
  33. row-height: ag-derived(grid-size, $times: 6),
  34. cell-horizontal-padding: ag-derived(grid-size, $times: 3),
  35. list-item-height: ag-derived(grid-size, $times: 5),
  36. row-group-indent-size: ag-derived(grid-size, $times: 3, $plus: icon-size),
  37. filter-tool-panel-sub-level-row-height: ag-derived(grid-size, $times: 4),
  38. checkbox-border-radius: 2px,
  39. toggle-button-switch-border-width: 2px,
  40. toggle-button-height: ag-derived(icon-size),
  41. widget-container-horizontal-padding: ag-derived(grid-size, $times: 1.5),
  42. widget-container-vertical-padding: ag-derived(grid-size, $times: 2),
  43. widget-horizontal-spacing: ag-derived(grid-size, $times: 1.5),
  44. widget-vertical-spacing: ag-derived(grid-size, $times: 1.75),
  45. // Fonts
  46. font-family: ("Roboto", sans-serif),
  47. font-size: 13px,
  48. icon-font-family: $ag-theme-material-icon-font-family,
  49. icons-data: $ag-theme-material-icons-data,
  50. icons-font-codes: $ag-theme-material-icons-font-codes,
  51. // Misc
  52. selected-tab-underline-color: ag-derived(material-primary-color),
  53. selected-tab-underline-width: 2px,
  54. full-width-tabs: true,
  55. input-focus-border-color: ag-derived(material-accent-color),
  56. input-focus-box-shadow: 0 0 0 5px rgba(32,33,36,0.122),
  57. card-shadow: (0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)),
  58. card-radius: 2px,
  59. );
  60. $ag-theme-material-default-params: map-merge($ag-theme-base-default-params, $ag-theme-material-default-params);