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

Settings file isn't applied after run 'dev' command #279

Open
linspw opened this issue Sep 13, 2024 · 6 comments
Open

Settings file isn't applied after run 'dev' command #279

linspw opened this issue Sep 13, 2024 · 6 comments

Comments

@linspw
Copy link
Contributor

linspw commented Sep 13, 2024

For some reason, the settings file isn't loaded in first app load after run dev command

@use 'vuetify/settings' with (
  $body-font-family: $font-family,
  $heading-font-family: $font-family,

  $button-text-transform: capitalize,
  $button-font-weight: 500,
  $button-border-radius: 24px,
  $field-border-radius: 24px,
  $text-field-border-radius: 24px,
  $autocomplete-content-border-radius: 24px,
  $select-content-border-radius: 24px,
  $combobox-content-border-radius: 24px,
  $menu-content-border-radius: 24px,
  $tooltip-border-radius: 24px,

  $list-item-icon-opacity: 1,
);

In first load, border radius isn't 24px:
Screenshot from 2024-09-13 18-03-46

After save the settings file:

image

Additional:

After change the page, this problem returns, and we need to save the settings file to apply it again

@userquin
Copy link
Member

iirc you need to add main.scss adding it to nuxt css entry, check https://github.com/Pinegrow/pg-nuxt-vuetify/blob/main/nuxt.config.ts#L100-L104 , https://github.com/Pinegrow/pg-nuxt-vuetify/blob/main/nuxt.config.ts#L112-L114, https://github.com/Pinegrow/pg-nuxt-vuetify/blob/main/app/assets/vuetify/main.scss and https://github.com/Pinegrow/pg-nuxt-vuetify/blob/main/app/assets/vuetify/settings.scss:

// Any variables in the sass files in this folder - https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/styles/settings/

$font-family: 'Inter var', 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;

@use 'vuetify' with (
  // $utilities: false,
  // $reset: false,
  // $color-pack: false,
  $body-font-family: $font-family
);

@userquin
Copy link
Member

Remember to disable vuetify styles: https://github.com/Pinegrow/pg-nuxt-vuetify/blob/main/nuxt.config.ts#L109-L110

@linspw
Copy link
Contributor Author

linspw commented Sep 18, 2024

Thank you for your attention and response
I did the change to separate these config in two files
But the bug still happening

image
image
image
image
image

After saving the file and refreshing page:
image
Need to do it in every layer ☝🏻

@TechAkayy
Copy link
Collaborator

Is vuetify/moduleOptions.styles.configFile correct? Shouldn't it start with ./src/assets..., or use the alias @/assets...?

@TechAkayy
Copy link
Collaborator

Any errors you notice in the terminal that's running the dev server, or in the browser console?

@TechAkayy
Copy link
Collaborator

If you can extract out your above setup on a minimal vuetify scaffold, it will be very helpful to troubleshoot, reason being there might be something else that's causing the issue.

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

3 participants