Skip to content

Commit ab6264c

Browse files
committed
Refactor bg-content-inverse-offset CSS classes to bg-page-base-offset
1 parent 89f05ce commit ab6264c

34 files changed

Lines changed: 56 additions & 58 deletions

File tree

‎_TODO.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +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-
border-trim (91): e.g. index.astro:23, index.astro:22
223-
Theme has --color-trim for borders, not --color-border.
224-
bg-content-inverse-offset (52): e.g. index.astro:134, index.astro:14
222+
bg-page-base-offset (52): e.g. index.astro:134, index.astro:14
225223
text-content-muted (47): e.g. index.astro:20
226224
text-offset (13): e.g. index.astro:39
227225
bg-primary-bg (7): e.g. index.astro:67

‎src/components/Animations/Computers/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Icon from '@components/Icon/index.astro'
99
<div class="relative w-full max-w-lg mx-auto">
1010
<button
1111
type="button"
12-
class="absolute bottom-1 right-1 z-10 flex items-center justify-center rounded-full border border-trim bg-content-inverse p-1 shadow-lg transition-colors hover:bg-content-inverse-offset"
12+
class="absolute bottom-1 right-1 z-10 flex items-center justify-center rounded-full border border-trim bg-content-inverse p-1 shadow-lg transition-colors hover:bg-page-base-offset"
1313
data-animation-toggle
1414
aria-label="Pause animation"
1515
aria-pressed="false"

‎src/components/BugReporter/index.astro‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const {
5252
<input
5353
name="name"
5454
autocomplete="name"
55-
class="mt-1 w-full rounded-md border border-trim bg-content-inverse-offset p-2"
55+
class="mt-1 w-full rounded-md border border-trim bg-page-base-offset p-2"
5656
placeholder="Your name"
5757
/>
5858
</label>
@@ -63,7 +63,7 @@ const {
6363
name="email"
6464
type="email"
6565
autocomplete="email"
66-
class="mt-1 w-full rounded-md border border-trim bg-content-inverse-offset p-2"
66+
class="mt-1 w-full rounded-md border border-trim bg-page-base-offset p-2"
6767
placeholder="your.email@example.org"
6868
/>
6969
</label>
@@ -74,7 +74,7 @@ const {
7474
name="message"
7575
required
7676
rows="5"
77-
class="mt-1 w-full rounded-md border border-trim bg-content-inverse-offset p-2"
77+
class="mt-1 w-full rounded-md border border-trim bg-page-base-offset p-2"
7878
placeholder="What's the bug? What did you expect?"
7979
></textarea>
8080
</label>

‎src/components/CallToAction/Newsletter/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const {
3030
---
3131

3232
<newsletter-form class="block">
33-
<section class="py-12 md:py-16 bg-content-inverse-offset">
33+
<section class="py-12 md:py-16 bg-page-base-offset">
3434
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
3535
<div class="max-w-4xl mx-auto">
3636
<div class="bg-content-inverse rounded-2xl shadow-lg p-8 md:p-12 border border-trim">

‎src/components/Consent/Banner/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import CookieSvg from '@assets/images/site/cookie.svg'
88
<consent-banner>
99
<div
1010
id="consent-modal-id"
11-
class="bg-content-inverse-offset bottom-0 left-0 fixed right-0 w-full z-50"
11+
class="bg-page-base-offset bottom-0 left-0 fixed right-0 w-full z-50"
1212
style="display:none;"
1313
role="dialog"
1414
aria-labelledby="consent-modal__title"
@@ -34,7 +34,7 @@ import CookieSvg from '@assets/images/site/cookie.svg'
3434
/* Mobile: 36px + (8px * 2) = 52px container, half = 26px. Desktop: 48px + (12px * 2) = 72px container, half = 36px */
3535
}
3636
<div
37-
class="h-13 w-13 -top-6.5 md:h-18 md:w-18 md:-top-9 bg-content-inverse-offset rounded-full absolute left-0 right-0 mx-auto flex items-center justify-center p-2 md:p-3"
37+
class="h-13 w-13 -top-6.5 md:h-18 md:w-18 md:-top-9 bg-page-base-offset rounded-full absolute left-0 right-0 mx-auto flex items-center justify-center p-2 md:p-3"
3838
>
3939
<Image src={CookieSvg} alt="" class="h-6 w-6 md:h-12 md:w-12" />
4040
</div>

‎src/components/Consent/Checkbox/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const {
2929

3030
<consent-checkbox data-purpose={purpose} data-form-id={formId ?? undefined}>
3131
<div
32-
class="bg-content-inverse-offset border border-trim rounded-lg my-6 p-4"
32+
class="bg-page-base-offset border border-trim rounded-lg my-6 p-4"
3333
id={`${id}-container`}
3434
data-component="gdpr-consent"
3535
data-purpose={purpose}

‎src/components/Footer/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const year = new Date().getFullYear()
1111
---
1212

1313
<site-footer transition:persist>
14-
<footer class="bg-content-inverse-offset w-full mt-6 pt-4" role="contentinfo">
14+
<footer class="bg-page-base-offset w-full mt-6 pt-4" role="contentinfo">
1515
<div
1616
class:list={[
1717
styles.footerGrid,

‎src/components/Forms/Contact/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ import './uppy-webcam.css'
224224
</p>
225225

226226
<div
227-
class="border-2 border-dashed border-trim rounded-xl p-8 text-center bg-content-inverse-offset hover:border-primary-hover transition-colors duration-200"
227+
class="border-2 border-dashed border-trim rounded-xl p-8 text-center bg-page-base-offset hover:border-primary-hover transition-colors duration-200"
228228
>
229229
<div id="uppyContainer" hidden>
230230
<div id="uppyDashboard"></div>
@@ -250,7 +250,7 @@ import './uppy-webcam.css'
250250

251251
<!-- Data Retention Notice -->
252252
<div
253-
class="text-sm text-content-active space-y-2 bg-content-inverse-offset p-4 rounded-lg border border-trim"
253+
class="text-sm text-content-active space-y-2 bg-page-base-offset p-4 rounded-lg border border-trim"
254254
>
255255
<p>
256256
<strong>Data Retention:</strong> Your contact information will be stored for 90 days to respond

‎src/components/Forms/Privacy/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const statusMessage = status ? statusMessages[status] : undefined
3838
)
3939
}
4040

41-
<section class="bg-content-inverse-offset border border-trim rounded-2xl p-6" aria-labelledby="my-data-intro-title">
41+
<section class="bg-page-base-offset border border-trim rounded-2xl p-6" aria-labelledby="my-data-intro-title">
4242
<h2 class="sr-only" id="my-data-intro-title">Overview</h2>
4343
<p class="text-content-active">
4444
Use the forms below to request a copy of your data or request its deletion.
@@ -132,7 +132,7 @@ const statusMessage = status ? statusMessages[status] : undefined
132132
</section>
133133
</div>
134134

135-
<section class="bg-content-inverse-offset border border-trim rounded-2xl p-6" aria-labelledby="my-data-next-title">
135+
<section class="bg-page-base-offset border border-trim rounded-2xl p-6" aria-labelledby="my-data-next-title">
136136
<h2 id="my-data-next-title" class="text-xl font-semibold">What Happens Next?</h2>
137137
<ol class="mt-4 list-decimal ml-6 space-y-3 text-content-active">
138138
<li>

‎src/components/Hero/Home/content.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const { pretitle, benefits, primaryLink, secondaryLink } = Astro.props as Props
4141
{/* Benefits Section */}
4242
{
4343
benefits && benefits.length > 0 && (
44-
<div class="bg-content-inverse-offset rounded-2xl p-6 md:p-8 border border-trim">
44+
<div class="bg-page-base-offset rounded-2xl p-6 md:p-8 border border-trim">
4545
<div class="text-sm font-semibold text-offset mb-4 uppercase tracking-wide">Up to:</div>
4646
<ul class="space-y-4">
4747
{benefits.map(benefit => (

0 commit comments

Comments
 (0)