Skip to content

fix step styling #145

@FadyEmad01

Description

@FadyEmad01

@Utility step {
counter-increment: step;

&:before {
@apply absolute inline-flex h-9 w-9 items-center justify-center rounded-full border border-zinc-200 bg-white text-center dark:text-white -indent-px font-mono text-base font-medium dark:border-zinc-800 dark:bg-zinc-950;
@apply ml-[-50px] mt-[-4px];
content: counter(step);
}
}
The issue lies in using @apply with dark: classes — Tailwind does not support applying dark: variants with @apply

and this is the right code

@Utility step {
counter-increment: step;

&:before {
@apply absolute inline-flex h-9 w-9 items-center justify-center rounded-full border text-center -indent-px font-mono text-base font-medium;
@apply border-zinc-200 bg-neutral-100 text-zinc-950;
@apply ml-[-50px] mt-[-4px];

content: counter(step);

}

.dark &:before {
@apply bg-zinc-800 text-white border-zinc-700;
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions