# Get Theme Use Config Consumer to get theme at current position. ```html Dark Light ``` ```js export default { data () { return { theme: 'dark' } }, methods: { handleThemeChange (theme) { this.$NMessage.info(theme) } } } ``` ```css .n-button { margin: 0 12px 8px 0; } ```