V-calendar: whare is theme guide?

Created on 1 Jul 2020  路  5Comments  路  Source: nathanreyes/v-calendar

I need style setting about warpper and other calendar container

but none guide anything about theme prop

https://vcalendar.io/api/defaults.html#theme

There are no links on this page.
https://vcalendar.io/guide/theming-guide.html

Most helpful comment

I followed the code and found this https://github.com/nathanreyes/v-calendar/blob/master/src/utils/defaults/theme.js

Then I tried this but no hope (nothing changed):

import { setupCalendar} from 'v-calendar'

// main.js
setupCalendar({
  componentPrefix: 'vc',
  theme: {
    // Copy the entire object from theme.js and changing some css classes
  },
});

Not even sure if theme is supported or not.

All 5 comments

I'm also very interested in using this plugin, everything looks top notch. The biggest functionality I need though is to be able to theme the calendar. Wonder if there would be anyone able to point me in the right direction

I followed the code and found this https://github.com/nathanreyes/v-calendar/blob/master/src/utils/defaults/theme.js

Then I tried this but no hope (nothing changed):

import { setupCalendar} from 'v-calendar'

// main.js
setupCalendar({
  componentPrefix: 'vc',
  theme: {
    // Copy the entire object from theme.js and changing some css classes
  },
});

Not even sure if theme is supported or not.

I wondered the same and judging from the API page I managed to do this:

 <VDatePicker
      v-model="datesInternal"
      :theme="theme"
      mode="range"
      show-caps
    >
 data() {
    return {
      theme: {
        color: "secondary" // need to create  vc-text-{color}-xxx &  vc-bg-{color}-xxx classes
      }
    };
  },

Keep in mind you can either use the provided theme https://github.com/nathanreyes/v-calendar/blob/master/src/utils/defaults/theme.js or completely modify it and import it into this :theme props.

I followed the code and found this https://github.com/nathanreyes/v-calendar/blob/master/src/utils/defaults/theme.js

That page doesn't exist anymore 馃槙

@rubenmeseguer7 I'd to go back in time (thanks Git 馃槂) to read it again recently and it's there: https://github.com/nathanreyes/v-calendar/blob/07e676e0ee5e08f5c10addabd85decb7aaa3b313/src/utils/defaults/theme.js (thanks @speyou for the link to this file, it saved my project from a bunch of hacks, complicated CSS selectors, overriding utility classes in CSS instead of getting rid of some of them, etc 馃槈)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nadavrbn picture Nadavrbn  路  3Comments

jeffster9 picture jeffster9  路  3Comments

hanhtv204 picture hanhtv204  路  4Comments

mika76 picture mika76  路  3Comments

maksnester picture maksnester  路  3Comments