Vue-material: [mdTheme] Access md-theme color

Created on 13 Feb 2017  路  2Comments  路  Source: vuematerial/vue-material

Hello,
is there a way to access the current md-theme color?

Something like this.$material.currentTheme.primary[500] or this.$material.colors.deepOrange[100]

improvement

Most helpful comment

This is not exposed by any Vue Material API. What you can do is to import the src file, that is inside
vue-material/src/core/components/mdTheme/palette.js
I will create a way to expose this to the final build.

All 2 comments

This is not exposed by any Vue Material API. What you can do is to import the src file, that is inside
vue-material/src/core/components/mdTheme/palette.js
I will create a way to expose this to the final build.

Closing this issue as our focus is on the new 1.0.0 version.

https://vuematerial.io/themes/configuration

Was this page helpful?
0 / 5 - 0 ratings