Skip to content

Commit 7a3cebd

Browse files
authored
fix: alpha colors (#8418)
1 parent 5a2e2e7 commit 7a3cebd

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

packages/editor/src/core/extensions/custom-image/components/toolbar/alignment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function ImageAlignmentAction(props: Props) {
4242
</button>
4343
</Tooltip>
4444
{isDropdownOpen && (
45-
<div className="absolute top-full left-1/2 -translate-x-1/2 mt-0.5 h-7 bg-black/80 flex items-center gap-2 px-2 rounded-sm">
45+
<div className="absolute top-full left-1/2 -translate-x-1/2 mt-0.5 h-7 bg-alpha-black-1000 flex items-center gap-2 px-2 rounded-sm">
4646
{IMAGE_ALIGNMENT_OPTIONS.map((option) => (
4747
<Tooltip disabled={isTouchDevice} key={option.value} tooltipContent={option.label}>
4848
<button

packages/editor/src/core/extensions/custom-image/components/toolbar/full-screen/modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function ImageFullScreenModalWithoutPortal(props: Props) {
234234
}}
235235
onMouseDown={handleMouseDown}
236236
/>
237-
<div className="fixed bottom-10 left-1/2 -translate-x-1/2 flex items-center justify-center gap-1 rounded-md border border-subtle-1 py-2 divide-x divide-subtle-1 bg-black">
237+
<div className="fixed bottom-10 left-1/2 -translate-x-1/2 flex items-center justify-center gap-1 rounded-md border border-subtle-1 py-2 divide-x divide-subtle-1 bg-alpha-black-1200">
238238
<div className="flex items-center">
239239
<button
240240
type="button"

packages/editor/src/core/extensions/custom-image/components/upload-status.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function ImageUploadStatus(props: Props) {
5353
if (uploadStatus === undefined) return null;
5454

5555
return (
56-
<div className="absolute top-1 right-1 z-20 bg-black/60 rounded-sm text-11 font-medium w-10 text-center">
56+
<div className="absolute top-1 right-1 z-20 bg-alpha-black-800 rounded-sm text-11 font-medium w-10 text-center">
5757
{displayStatus}%
5858
</div>
5959
);

packages/propel/src/banner/banner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function CloseButton({ onClick }: { onClick?: () => void }) {
116116
return (
117117
<button
118118
onClick={onClick}
119-
className="rounded-sm p-1 hover:bg-black/5 dark:hover:bg-white/5 transition-colors"
119+
className="rounded-sm p-1 hover:bg-alpha-black-100 dark:hover:bg-alpha-white-100 transition-colors"
120120
aria-label="Dismiss"
121121
>
122122
<svg

packages/propel/src/portal/modal-portal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function ModalPortal({
9595
>
9696
{showOverlay && (
9797
<div
98-
className={cn("absolute inset-0 bg-black bg-opacity-50 transition-opacity duration-300", overlayClassName)}
98+
className={cn("absolute inset-0 bg-alpha-black-700 transition-opacity duration-300", overlayClassName)}
9999
onClick={handleOverlayClick}
100100
aria-hidden="true"
101101
/>

packages/tailwind-config/variables.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/* ---------- Alpha colors ---------- */
99
/* White alpha */
10+
--color-white: oklch(1 0 0);
1011
--color-alpha-white-0: oklch(1 0 0 / 0%);
1112
--color-alpha-white-100: oklch(1 0 0 / 5%);
1213
--color-alpha-white-200: oklch(1 0 0 / 10%);
@@ -22,6 +23,7 @@
2223
--color-alpha-white-1200: oklch(1 0 0 / 95%);
2324

2425
/* Black alpha */
26+
--color-black: oklch(0.1482 0.0034 196.79);
2527
--color-alpha-black-0: oklch(0.1482 0.0034 196.79 / 0%);
2628
--color-alpha-black-100: oklch(0.1482 0.0034 196.79 / 5%);
2729
--color-alpha-black-200: oklch(0.1482 0.0034 196.79 / 10%);

0 commit comments

Comments
 (0)