|
| 1 | +/* |
| 2 | +Colors |
| 3 | +
|
| 4 | +Set up color/contrast pairs. |
| 5 | +Now we can use only one color for the background |
| 6 | +and the text will be the contrast color. |
| 7 | +****************************************************/ |
| 8 | + |
| 9 | +/* Base Background */ |
| 10 | +.has-base-background-color { |
| 11 | + color: var(--wp--preset--color--contrast); |
| 12 | + |
| 13 | + a { |
| 14 | + color: inherit; |
| 15 | + } |
| 16 | +} |
| 17 | + |
| 18 | +/* Contrast Background */ |
| 19 | +.has-contrast-background-color { |
| 20 | + color: var(--wp--preset--color--base); |
| 21 | + |
| 22 | + a { |
| 23 | + color: inherit; |
| 24 | + } |
| 25 | +} |
| 26 | + |
| 27 | +/* Primary Background */ |
| 28 | +.has-primary-background-color { |
| 29 | + color: var(--wp--preset--color--primary-contrast); |
| 30 | + |
| 31 | + a { |
| 32 | + color: inherit; |
| 33 | + } |
| 34 | +} |
| 35 | + |
| 36 | +/* Secondary Background */ |
| 37 | +.has-secondary-background-color { |
| 38 | + color: var(--wp--preset--color--secondary-contrast); |
| 39 | + |
| 40 | + a { |
| 41 | + color: inherit; |
| 42 | + } |
| 43 | +} |
| 44 | + |
| 45 | +/* Tertiary Background */ |
| 46 | +.has-tertiary-background-color { |
| 47 | + color: var(--wp--preset--color--tertiary-contrast); |
| 48 | + |
| 49 | + a { |
| 50 | + color: inherit; |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +/* Neutral One Background */ |
| 55 | +.has-neutral-1-background-color { |
| 56 | + color: var(--wp--preset--color--neutral-1-contrast); |
| 57 | + |
| 58 | + a { |
| 59 | + color: inherit; |
| 60 | + } |
| 61 | +} |
| 62 | + |
| 63 | +/* Neutral Two Background */ |
| 64 | +.has-neutral-2-background-color { |
| 65 | + color: var(--wp--preset--color--neutral-2-contrast); |
| 66 | + |
| 67 | + a { |
| 68 | + color: inherit; |
| 69 | + } |
| 70 | +} |
| 71 | + |
| 72 | +/* Neutral Three Background */ |
| 73 | +.has-neutral-3-background-color { |
| 74 | + color: var(--wp--preset--color--neutral-3-contrast); |
| 75 | + |
| 76 | + a { |
| 77 | + color: inherit; |
| 78 | + } |
| 79 | +} |
0 commit comments