wpcom-colors.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. /* Custom Colors: Intergalactic 2 */
  3. //Background
  4. add_color_rule( 'bg', '#ffffff', array(
  5. array( 'body, .entry-content-wrapper', 'background-color' ),
  6. ) );
  7. add_color_rule( 'txt', '#81699b', array(
  8. array( '.entry-content a,
  9. .entry-content a:visited', 'color', 'bg' ),
  10. array( 'a, a:visited', 'color', 'bg' ),
  11. array( '.entry-author a,
  12. .entry-author a:visited', 'color', '#000' ),
  13. array( '#infinite-handle span', 'background-color' ),
  14. ),
  15. __( 'Links' ) );
  16. add_color_rule( 'link', '#000000', array(
  17. array( '.singular .entry-content h1, .singular .entry-content h2, .singular .entry-content h3, .singular .entry-content h4, .singular .entry-content h5, .singular .entry-content h6', 'color', 'bg' ),
  18. array( '.singular .entry-content a:hover, .singular .entry-content a:active', 'color', 'bg' ),
  19. array( '.widget-title', 'color', '#222' ),
  20. ),
  21. __( 'Headings' ) );
  22. // Body text
  23. add_color_rule( 'extra', '#000000', array(
  24. array( 'body', 'color', 'bg' ),
  25. array( 'mark, ins', 'color', '#fff9c0' ),
  26. array( 'pre', 'color', '#eee' ),
  27. array( '.singular .entry-content th', 'border-color', 0.2 ),
  28. array( '.entry-tags .heading, .entry-categories .heading', 'color', 'bg' ),
  29. ) );
  30. add_color_rule( 'extra', '#aaaaaa', array(
  31. array( '.singular .entry-content td, .comment-body', 'border-color', 0.2 ),
  32. ) );
  33. add_color_rule( 'extra', '#767676', array(
  34. array( 'a.comment-reply-link, a.comment-reply-link:visited, .comment-metadata, .comment-metadata a, .comment-metadata a:visited, .singular .entry-content blockquote, .singular .entry-meta, .entry-meta a, .entry-meta a:visited, .entry-footer a, .entry-footer a:visited, .site-description', 'color', 'bg' ),
  35. ) );
  36. add_color_rule( 'extra', '#ffffff', array(
  37. array( '.entry-content a.more-link, .entry-content a.more-link:visited', 'color', '#222' ),
  38. array( '.main-navigation a,
  39. .main-navigation a:visited', 'color', '#222' ),
  40. array( '#infinite-handle span', 'color', 'txt' ),
  41. ) );
  42. add_color_rule( 'extra', '#222222', array(
  43. array( 'button, input[type="button"], input[type="reset"], input[type="submit"]', 'border-color', 'bg' ),
  44. array( '.menu-toggle, .menu-toggle:hover, .menu-toggle:focus, .menu-toggle:active', 'border-color', 'bg' ),
  45. array( '.menu-toggle:hover, .menu-toggle:focus, .menu-toggle:active', 'color', 'bg' ),
  46. array( '.menu-toggle.x.toggle-on .lines:before, .menu-toggle.x.toggle-on .lines:after', 'background-color', '#222' ),
  47. array( 'button, input[type="button"], input[type="reset"], input[type="submit"]', 'color', 'bg' ),
  48. array( '.lines, .lines:before, .lines:after', 'background-color', 'bg' ),
  49. array( '.comment-author .fn a, .comment-author .fn a:visited', 'color', 'bg' ),
  50. array( '.search .site-title a, .search .site-title a:visited, .search .site-title a:hover, .archive .site-title a, .archive .site-title a:visited, .archive .site-title a:hover, .blog .site-title a, .blog .site-title a:visited, .blog .site-title a:hover, .page:not(.singular) .site-title a, .page:not(.singular) .site-title a:visited, .page:not(.singular) .site-title a:hover', 'color', 'bg' ),
  51. array( '.entry-content a.more-link:hover, .entry-content a.more-link:active, .entry-content a.more-link:focus', 'color', '#fff' ),
  52. ) );
  53. // Colour Palettes
  54. add_color_palette( array(
  55. '#a84767',
  56. '#ffdd93',
  57. '#ffffff'
  58. ), esc_html__( 'Purple' ) );
  59. add_color_palette( array(
  60. '#9be5d9',
  61. '#ef426f',
  62. '#0c5e5e',
  63. ), esc_html__( 'Green' ) );
  64. add_color_palette( array(
  65. '#e8c868',
  66. '#444444',
  67. '#111111',
  68. ),
  69. esc_html__( 'Yellow' ) );
  70. add_color_palette( array(
  71. '#ffffff',
  72. '#d6771e',
  73. '#111111',
  74. ),
  75. esc_html__( 'Orange' ) );
  76. add_color_palette( array(
  77. '#282828',
  78. '#d1e751',
  79. '#d1e751',
  80. ),
  81. esc_html__( 'Dark' ) );
  82. add_color_palette( array(
  83. '#ffffff',
  84. '#71b4b5',
  85. '#18282a',
  86. ),
  87. esc_html__( 'Blue' ) );