Skip to content

Commit bc32c1e

Browse files
committed
Refactor bg-primary-bg to bg-blue-100
1 parent dcba445 commit bc32c1e

13 files changed

Lines changed: 30 additions & 18 deletions

File tree

‎_TODO.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ Singles: --color-error, --color-error-bg, --color-error-border, --color-error-te
219219
Tailwind Color Utilities Not Backed By Theme Tokens (quoted class strings)
220220
High-frequency / likely broken given the @theme contract:
221221
222-
text-content-offset (13): e.g. index.astro:39
223-
bg-primary-bg (7): e.g. index.astro:67
222+
bg-blue-100 (7): e.g. index.astro:67
224223
stroke-text (not a theme token) (seen in class attrs): e.g. index.astro:94
225224
bg-text (2): index.astro:111, index.spec.ts:299
226225

‎src/pages/articles/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const section = 'Articles'
7878
{article.data.tags && article.data.tags.length > 0 && (
7979
<div class="flex flex-wrap gap-2">
8080
{article.data.tags.slice(0, 3).map((tag: string) => (
81-
<span class="text-xs font-medium text-primary bg-primary-bg px-2 py-1 rounded-full uppercase tracking-wide">
81+
<span class="text-xs font-medium text-primary bg-blue-100 px-2 py-1 rounded-full uppercase tracking-wide">
8282
{tag}
8383
</span>
8484
))}

‎src/pages/case-studies/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const section = 'Case Studies'
6262

6363
<div class="space-y-3">
6464
{caseStudy.data.client && (
65-
<span class="inline-block text-sm font-medium text-primary bg-primary-bg px-3 py-1 rounded-full">
65+
<span class="inline-block text-sm font-medium text-primary bg-blue-100 px-3 py-1 rounded-full">
6666
Client: {caseStudy.data.client}
6767
</span>
6868
)}

‎src/pages/offline/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const description =
6464
<div class="action-item text-left">
6565
<div class="flex items-start space-x-4">
6666
<div
67-
class="shrink-0 w-12 h-12 bg-primary-bg rounded-lg flex items-center justify-center"
67+
class="shrink-0 w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center"
6868
>
6969
<svg
7070
class="w-6 h-6 text-primary"
@@ -218,7 +218,7 @@ const description =
218218

219219
<!-- Contact Info -->
220220
<section
221-
class="contact-info bg-primary-bg rounded-xl p-6"
221+
class="contact-info bg-blue-100 rounded-xl p-6"
222222
aria-labelledby="offline-contact-title"
223223
>
224224
<h2 class="text-lg font-semibold mb-4" id="offline-contact-title">

‎src/pages/privacy/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const lastUpdatedText = lastUpdatedDate.toLocaleDateString('en-US', {
5050
</ul>
5151
</div>
5252

53-
<div class="bg-primary-bg rounded-xl p-6">
53+
<div class="bg-blue-100 rounded-xl p-6">
5454
<h3 class="text-xl font-semibold mb-4">Automatically Collected Information</h3>
5555
<p class="mb-4">
5656
We automatically collect certain information when you visit our website:

‎src/pages/services/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const section = 'Services'
4545
>
4646
<div class="flex items-start space-x-6">
4747
{service.data.cover && (
48-
<div class="relative shrink-0 w-16 h-16 bg-primary-bg rounded-lg overflow-hidden group-hover:bg-primary-bg-hover transition-colors">
48+
<div class="relative shrink-0 w-16 h-16 bg-blue-100 rounded-lg overflow-hidden group-hover:bg-blue-100-hover transition-colors">
4949
<Picture
5050
src={service.data.cover}
5151
alt={service.data.coverAlt}

‎src/pages/tags/[tag].astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const section = 'Tags'
219219
<div class="space-y-3 pt-2">
220220
{/* Client or Author info */}
221221
{'client' in item.data && item.data.client && (
222-
<span class="inline-block text-sm font-medium text-primary bg-primary-bg px-3 py-1 rounded-full">
222+
<span class="inline-block text-sm font-medium text-primary bg-blue-100 px-3 py-1 rounded-full">
223223
Client: {item.data.client}
224224
</span>
225225
)}

‎src/styles/print.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
--theme-color-page-active: var(--a11y-theme-color-page-active);
1111
--theme-color-page-base-offset: var(--a11y-theme-color-page-base-offset);
1212
--theme-color-content: var(--a11y-theme-color-content);
13+
--theme-color-content-offset: var(--a11y-theme-color-content-active);
1314
--theme-color-content-active: var(--a11y-theme-color-content-active);
1415
--theme-color-content-inverse: var(--a11y-theme-color-content-inverse);
1516
--theme-color-content-inverse-active: var(--a11y-theme-color-content-inverse-active);

‎src/styles/theme-inline.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
/** Main content text color */
5151
--color-content: var(--theme-color-content); /* Light theme: #374151 */
5252

53-
/** @TODO: A shade of the text color for accent */
53+
/** A shade of the text color for accent */
5454
--color-content-offset: var(--theme-color-content-offset); /* Light theme: #9ca3af */
5555

5656
/** A shade of the text color for hover and focus states */

‎src/styles/themes/a11y.css‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,17 @@
136136
/** Main content text color */
137137
--theme-color-content: var(--a11y-theme-color-content); /** --color-content */
138138

139+
/** A shade of the text color for accent */
140+
--theme-color-content-offset: var(--a11y-theme-color-content-active); /** --color-content-offset */
141+
139142
/** A shade of the text color for hover and focus states */
140-
--theme-color-content-active: var(--a11y-theme-color-content-active); /** --color-content-offset */
143+
--theme-color-content-active: var(--a11y-theme-color-content-active); /** --color-content-active */
141144

142145
/** Main content text color */
143146
--theme-color-content-inverse: var(--a11y-theme-color-content-inverse); /** --color-content */
144147

145148
/** A shade of the text color for hover and focus states */
146-
--theme-color-content-inverse-active: var(--a11y-theme-color-content-inverse-active); /** --color-content-offset */
149+
--theme-color-content-inverse-active: var(--a11y-theme-color-content-inverse-active); /** --color-content-inverse-active */
147150

148151
/**
149152
* =============================================================================

0 commit comments

Comments
 (0)