Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Fix button colors, use the color-mix for the button hover colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Sep 30, 2024
1 parent 5103180 commit 18a2013
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 52 deletions.
62 changes: 40 additions & 22 deletions styles/06-morning.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,14 @@
"text": "var:preset|color|contrast",
"background": "var:preset|color|accent-1"
},
"border":{
"color": "var:preset|color|accent-1",
"border": {
"radius": "0px"
},
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)",
"text": "var:preset|color|contrast"
}
}
},
"heading": {
Expand Down Expand Up @@ -246,24 +251,17 @@
}
}
},
"section-1": {
"elements": {
"button": {
"border": {
"color": "var:preset|color|contrast"
}
}
}
},
"section-2": {
"elements": {
"button": {
"color": {
"background": "var:preset|color|accent-1",
"text": "var:preset|color|contrast"
},
"border": {
"color": "var:preset|color|accent-1"
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)"
}
}
}
}
Expand All @@ -272,11 +270,13 @@
"elements": {
"button": {
"color": {
"background": "var:preset|color|accent-2",
"text": "var:preset|color|contrast"
"background": "var:preset|color|contrast",
"text": "var:preset|color|base"
},
"border": {
"color": "var:preset|color|accent-2"
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent)"
}
}
}
}
Expand All @@ -293,11 +293,18 @@
},
"button": {
"color": {
"background": "var:preset|color|accent-2",
"background": "var:preset|color|accent-1",
"text": "var:preset|color|contrast"
},
"border": {
"color": "var:preset|color|accent-2"
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)"
}
}
},
"link": {
"color": {
"text": "var:preset|color|base"
}
}
}
Expand All @@ -310,8 +317,19 @@
}
},
"button": {
"border": {
"color": "var:preset|color|base"
"color": {
"background": "var:preset|color|accent-1",
"text": "var:preset|color|contrast"
},
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)"
}
}
},
"link": {
"color": {
"text": "var:preset|color|base"
}
}
}
Expand Down
76 changes: 46 additions & 30 deletions styles/colors/06-morning.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@
"text": "var:preset|color|contrast",
"background": "var:preset|color|accent-1"
},
"border":{
"color": "var:preset|color|accent-1"
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)",
"text": "var:preset|color|contrast"
}
}
},
"heading": {
Expand All @@ -160,20 +163,37 @@
}
}
},
"section-1": {
"section-2": {
"elements": {
"button": {
"color": {
"background": "var:preset|color|accent-1",
"text": "var:preset|color|contrast"
},
"border": {
"color": "var:preset|color|accent-1"
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)"
}
}
}
}
},
"section-2": {
"section-3": {
"elements": {
"button": {
"color": {
"background": "var:preset|color|contrast",
"text": "var:preset|color|base"
},
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent)"
}
}
}
}
},
"section-4": {
"color": {
"text": "var:preset|color|base"
},
Expand All @@ -185,47 +205,43 @@
},
"button": {
"color": {
"background": "var:preset|color|accent-2",
"background": "var:preset|color|accent-1",
"text": "var:preset|color|contrast"
},
"border": {
"color": "var:preset|color|accent-2"
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)"
}
}
}
},
"section-3": {
"elements": {
"button": {
},
"link": {
"color": {
"background": "var:preset|color|accent-2",
"text": "var:preset|color|contrast"
},
"border": {
"color": "var:preset|color|accent-2"
"text": "var:preset|color|base"
}
}
}
},
"section-4": {
"section-5": {
"elements": {
"heading": {
"color": {
"text": "var:preset|color|base"
}
},
"button": {
"border": {
"color": "var:preset|color|base"
"color": {
"background": "var:preset|color|accent-1",
"text": "var:preset|color|contrast"
},
":hover": {
"color": {
"background": "color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, transparent)"
}
}
}
}
},
"section-5": {
"elements": {
"button": {
"border": {
"color": "var:preset|color|contrast"
},
"link": {
"color": {
"text": "var:preset|color|base"
}
}
}
Expand Down

0 comments on commit 18a2013

Please sign in to comment.