Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

CSS Not Loading in? #716

Closed
joecaraccio opened this issue Jul 6, 2022 · 2 comments
Closed

CSS Not Loading in? #716

joecaraccio opened this issue Jul 6, 2022 · 2 comments
Assignees

Comments

@joecaraccio
Copy link

When trying to make overrides to the css or scss and change the way the admin panel looks, in my config I specify

export default buildConfig({
  serverURL: 'http://localhost:80',
  admin: {
    meta: {
      titleSuffix: '- '
    },
    css: path.resolve(__dirname, 'stylesheet.scss'),
    user: Users.slug,
  },
  collections: [
    Pages,
    Users
  ],
});

In the stylesheet.scss (which I have also tried as .css)

.nav {
    background-color: rebeccapurple !important;
}

However, the left div of class nav does not reflect this background color.

Am I doing something wrong? Do I need to do something with express as well?

@DanRibbens
Copy link
Contributor

What you have should be correct. I just recreated exactly what you had done on a sample project.

Can you check that your stylesheet.scss is in the same directory as your config?

@DanRibbens
Copy link
Contributor

image

@payloadcms payloadcms locked and limited conversation to collaborators Jul 6, 2022
@DanRibbens DanRibbens converted this issue into discussion #721 Jul 6, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants