Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promptopia\styles\globals.css show class does not exist #84

Open
cxp-13 opened this issue Dec 31, 2023 · 2 comments
Open

promptopia\styles\globals.css show class does not exist #84

cxp-13 opened this issue Dec 31, 2023 · 2 comments

Comments

@cxp-13
Copy link

cxp-13 commented Dec 31, 2023

⨯ ./styles/globals.css:111:5
Syntax error: E:\nextjs_project\promptopia\promptopia\styles\globals.css The shadow-[inset_10px_-50px_94px_0_rgb(199, class does not exist. If shadow-[inset_10px_-50px_94px_0_rgb(199, is a custom class, make sure it is defined within a @layer directive.

109 |
110 | .copy_btn {

111 | @apply w-7 h-7 rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199, 199, 199, 0.2)] backdrop-blur flex justify-center items-center cursor-pointer;
| ^
112 | }
113 |
⚠ Fast Refresh had to perform a full reload due to a runtime error.

@cxp-13
Copy link
Author

cxp-13 commented Dec 31, 2023

Solution steps:

  1. Annotate any code related to shadow
  2. add this code
@layer utilities {
    .copy_btn {
        @apply w-7 h-7 rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199, 199, 199, 0.2)] backdrop-blur flex justify-center items-center cursor-pointer;
    }

    .glassmorphism {
        @apply rounded-xl border border-gray-200 bg-white/20 shadow-[inset_10px_-50px_94px_0_rgb(199, 199, 199, 0.2)] backdrop-blur p-5;
    }
}

@cxp-13
Copy link
Author

cxp-13 commented Jan 3, 2024

The latest solution:

.copy_btn {
    /* @apply w-7 h-7 rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199, 199, 199, 0.2)] backdrop-blur flex justify-center items-center cursor-pointer; */
    @apply w-7 h-7 rounded-full bg-white/10 shadow-2xl backdrop-blur flex justify-center items-center cursor-pointer;

}

.glassmorphism {
    /* @apply rounded-xl border border-gray-200 bg-white/20 shadow-[inset_10px_-50px_94px_0_rgb(199, 199, 199, 0.2)] backdrop-blur p-5; */
    @apply rounded-xl border border-gray-200 bg-white/20 shadow-2xl backdrop-blur p-5;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant