question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Steps to reproduce

Init a vue project with vue-cli. Add vuetify (following doc’)

Add following code to App.vue:

<style lang="styl">
@require '~vuetify/src/stylus/main.styl'

$theme := {
  primary:"#fff"
  accent: "#fff"
  secondary: "#fff"
  info: "#fff"
  warning: "#fff"
  error: $red.base
  success: $green.base
}
</style>

Versions

vuetify = ^0.9.4, vue = 2

What is expected ?

I would like to change theme variable for my app

What is actually happening ?

Nothing. No error but the theme doesn’t change

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
camhartcommented, Apr 4, 2017

I finally got it to work by doing this in App.vue

<style lang="stylus">
  @require '../node_modules/vuetify/src/stylus/settings/_colors.styl'
  $theme := {
    primary: #009688
    accent: #FFC107
    secondary: #00796B
    info: #B2DFDB
    warning: $red.base
    error: $red.base
    success: $green.base
  }
  @require '../node_modules/vuetify/src/stylus/main.styl'
</style>
2reactions
ngustavocommented, Jan 11, 2019

This is happening to me as well with Nuxt.js and @camhart’s solution doesn’t seem to work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't edit Theme Options | WordPress.org
Can't save any changes under Theme Options. Example, Layout Settings > Wide Layout. Gives “Invalid value.” and says “Unable to save due to...
Read more >
Topic: Can't Edit My Theme | WordPress.com Forums
To go back to the free options, go to Appearance → Themes → Customize → Colors and click the “exit the preview” link...
Read more >
How to reactivate the 'edit theme' option in WordPress
If the 'theme edit' option has disappeared from your WordPress dashboard and you're unable to edit themes from the website back-end, try the...
Read more >
Can't Edit Theme in WordPress? 14 Possible Solutions for You!
Step 1: Disable/deactivate all plugins on your WordPress website. Step 2: Clear all your cache including plugin cache and server cache. Step 3: ......
Read more >
Why Can't I Edit My Content with the Theme Builder Editor
If you are editing a theme template using Thrive Theme Builder, and you're wondering why you can't edit every single element inside the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found