wpcom-colors.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /* Custom Colors: Libre 2.0 */
  3. //Background
  4. add_color_rule( 'bg', '#ffffff', array(
  5. array( 'body, .sticking .site-header, .main-navigation ul ul, .widget_archive a, .widget_categories a, .widget .post-count', 'background-color' ),
  6. array( '.custom-background .site', 'background-color' ),
  7. array( 'input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"]', 'background-color' ),
  8. ) );
  9. add_color_rule( 'txt', '#404040', array(
  10. array( 'body, a, a:visited, a:hover, a:active, a:focus', 'color', 'bg' ),
  11. array( '#infinite-footer .blog-info a, #infinite-footer .blog-credits a', 'color', 'bg' ),
  12. array( 'hr', 'background-color', 'bg' ),
  13. array( '.site *', 'border-color', 'bg' ),
  14. array( 'button, input[type="button"], input[type="reset"], input[type="submit"], #infinite-handle span', 'color', 'bg' ),
  15. array( 'input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"]', 'color', 'bg' ),
  16. array( 'body.highlander-light h3.sd-title:before', 'border-color', 'bg' ),
  17. ),
  18. __( 'Primary Color' ) );
  19. add_color_rule( 'link', '#404040', array(
  20. array( '.site-title a, .site-title a:hover, .site-title a:visited', 'color', 'bg', 3 ),
  21. array( 'h1, h2, h3, h4, h5, h6, .entry-title, .entry-title a:visited, .entry-title a, .page-title, .entry-title a:hover', 'color', 'bg', 3 ),
  22. ),
  23. __( 'Headings' ) );
  24. //Additional palettes
  25. add_color_palette( array(
  26. '#444444',
  27. '#fefefe',
  28. '#fefefe',
  29. ), 'Dark Gray' );
  30. add_color_palette( array(
  31. '#ffffff',
  32. '#999999',
  33. '#f69592',
  34. ), 'Pink' );
  35. add_color_palette( array(
  36. '#ede6dd',
  37. '#5e4f40',
  38. '#438d8d',
  39. ), 'Beige' );
  40. add_color_palette( array(
  41. '#333333',
  42. '#ededed',
  43. '#e7af4f',
  44. ), 'Dark Orange' );
  45. add_color_palette( array(
  46. '#2e7897',
  47. '#ffffff',
  48. '#afc9d4',
  49. ), 'Blue' );
  50. add_color_palette( array(
  51. '#e7edea',
  52. '#4e6766',
  53. '#fb0c06',
  54. ), 'Gray and Red' );