Skip to content

Commit

Permalink
Improve dark styles (#12)
Browse files Browse the repository at this point in the history
* improve dark styles

* formatting
  • Loading branch information
richtabor authored Jul 27, 2024
1 parent be2c8b4 commit c3f2fa6
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 37 deletions.
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ input:not([type=submit]):focus-visible {
margin-right: 0;
min-height: 36px;
transition: background-color var(--wp--custom--transition--duration, 200ms) ease-out, color var(--wp--custom--transition--duration, 200ms) ease-out, transform var(--wp--custom--transition--duration, 200ms) cubic-bezier(.4,0,.2,1);
border-radius: var(--wp--preset--spacing--10);
font-size: var(--wp--preset--font-size--small) !important;
border-radius: var(--wp--preset--spacing--10);
font-size: var(--wp--preset--font-size--small) !important;

@media (prefers-reduced-motion: reduce) {
/* Reduce motion per user preference. */
Expand Down
3 changes: 0 additions & 3 deletions styles/block/text-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"core/site-title"
],
"styles": {
"color": {
"text": "var(--wp--preset--color--theme-6)"
},
"elements": {
"link": {
":hover": {
Expand Down
8 changes: 4 additions & 4 deletions styles/colors/01-paper.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"custom": {
"color": {
"theme-1-dark": "var(--wp--preset--color--theme-6)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "var(--wp--preset--color--theme-1)"
}
}
Expand Down
8 changes: 4 additions & 4 deletions styles/colors/02-focus.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"custom": {
"color": {
"theme-1-dark": "var(--wp--preset--color--theme-6)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "var(--wp--preset--color--theme-1)"
}
}
Expand Down
8 changes: 4 additions & 4 deletions styles/colors/03-blush.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"custom": {
"color": {
"theme-1-dark": "var(--wp--preset--color--theme-6)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "var(--wp--preset--color--theme-1)"
}
}
Expand Down
8 changes: 4 additions & 4 deletions styles/colors/04-calm.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"custom": {
"color": {
"theme-1-dark": "var(--wp--preset--color--theme-6)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "var(--wp--preset--color--theme-1)"
}
}
Expand Down
13 changes: 9 additions & 4 deletions styles/colors/16-blue.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"custom": {
"color": {
"theme-1-dark": "hsl(0 0% 10%)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "hsl(0 0% 100% / 80%)"
}
}
Expand Down Expand Up @@ -111,6 +111,11 @@
"text": "hsl(0 0% 100%)"
}
},
"heading": {
"color": {
"text": "hsl(0 0% 100%)"
}
},
"link": {
"color": {
"text": "hsl(0 0% 100%)"
Expand Down
13 changes: 9 additions & 4 deletions styles/colors/17-green.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"custom": {
"color": {
"theme-1-dark": "hsl(0 0% 10%)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "hsl(0 0% 100% / 80%)"
}
}
Expand Down Expand Up @@ -97,6 +97,11 @@
"text": "hsl(0 0% 100%)"
}
},
"heading": {
"color": {
"text": "hsl(0 0% 100%)"
}
},
"link": {
"color": {
"text": "hsl(0 0% 100%)"
Expand Down
13 changes: 9 additions & 4 deletions styles/colors/18-red.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"custom": {
"color": {
"theme-1-dark": "hsl(0 0% 10%)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "hsl(0 0% 100% / 80%)"
}
}
Expand Down Expand Up @@ -111,6 +111,11 @@
"text": "hsl(0 0% 100%)"
}
},
"heading": {
"color": {
"text": "hsl(0 0% 100%)"
}
},
"link": {
"color": {
"text": "color-mix(in srgb, var(--wp--preset--color--theme-accent) 20%, hsl(0 0% 100%) 80%)"
Expand Down
13 changes: 9 additions & 4 deletions styles/colors/19-yellow.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"custom": {
"color": {
"theme-1-dark": "hsl(0 0% 10%)",
"theme-2-dark": "hsl(0 0% 100% / 3%)",
"theme-3-dark": "hsl(0 0% 100% / 8%)",
"theme-4-dark": "hsl(0 0% 100% / 12%)",
"theme-5-dark": "hsl(0 0% 55% / 100%)",
"theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)",
"theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)",
"theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)",
"theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)",
"theme-6-dark": "hsl(0 0% 100% / 80%)"
}
}
Expand Down Expand Up @@ -127,6 +127,11 @@
"text": "hsl(0 0% 100%)"
}
},
"heading": {
"color": {
"text": "color-mix(in srgb, hsl(0 0% 0%) 90%, var(--wp--preset--color--theme-accent) 10%)"
}
},
"link": {
"color": {
"text": "color-mix(in srgb, hsl(0 0% 0%) 70%, var(--wp--preset--color--theme-accent) 30%)"
Expand Down

0 comments on commit c3f2fa6

Please sign in to comment.