rishabh3112 / gridsome-plugin-pwa

PWA plugin for gridsome
MIT License
30 stars 18 forks source link

It possible to make backgroundColor value dynamic? #7

Closed Edmund1645 closed 5 years ago

Edmund1645 commented 5 years ago

Is it possible to make the backgroundColor field value vary based on the value of a CSS variable I'm using?

    {
      // pwa plugin
      use: 'gridsome-plugin-pwa',
      options: {
        title: 'The Ninja Blog',
        startUrl: '/',
        display: 'standalone',
        startusBarStyle: 'default',
        manifestPath: 'manifest.json',
        serviceWorkerPath: 'service-worker.js',
        shortName: 'The Ninja Blog',
        themeColor: '#ff6363',
        backgroundColor: 'var(--bg-color)',
        icon: '/static/icon.png'
      }
    }

I have dark mode implemented so I want to make the background also black.

Edmund1645 commented 5 years ago

I guess not, I just tested it,.