Git Product home page Git Product logo

material-design-for-full-calendar's Introduction

Material Design for jQuery Full Calendar

A Material Design theme for the jQuery Full Calendar plugin

What the actual Android Material Design calendar looks like:

This is what default FullCalendar looks like. Ew!

While FullCalendar is pretty awesome, it looks pretty terrible without any styling. I was inspired by Google's Material Design, while coincidentally I needed a fitting theme for my Drexel Schedulizer service. Doing some basic research, it didn't seem like there were any Material Design calendar plugins or themes that were as flexible as FullCalendar's functionality, so I took matters to my own hands and put this together.

Setup Full Calendar

Initialize your FullCalendar object using the following settings

editable: false, // Don't allow editing of events
handleWindowResize: true,
weekends: false, // Hide weekends
defaultView: 'agendaWeek', // Only show week view
header: false, // Hide buttons/titles
minTime: '07:30:00', // Start time for the calendar
maxTime: '22:00:00', // End time for the calendar
columnFormat: {
    week: 'ddd' // Only show day of the week names
},
displayEventTime: true, // Display event time

Usage

Compile _materialFullCalendar.scss using your favorite SASS compiler, or simply change the file extension to .css. There's little to no actual SASS elements in here.

Pushing and adding new events is still the same, although you apply a color attribute.

events.push({
    title: 'This is a Material Design event!',
    start: 'someStartDate',
    end: 'someEndDate',
    color: '#C2185B'
});

Applying Material Design Colors

Color palette was pulled from the Google Material Design documentation.

Highly recommend the 700 level palette to achieve the same color effect as I do.

An opacity of 0.65 is automatically applied to each event to achieve a softer look.

Please Note

This theme is in no way complete. I did not test it in the monthly or daily views, since for my purposes, I only needed it to be used in an agendaWeek. It might also be buggy when used in other contexts. Feel free to contribute using the instructions below.

How to Contribute:

  1. Pull/Fork

  2. Issue pull requests

  3. Make issues

License:

MIT. Just credit me.

material-design-for-full-calendar's People

Contributors

jackyliang avatar

Watchers

James Cloos avatar Andrew Ben RICHARD avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.