Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flatpickr-bulma-theme

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatpickr-bulma-theme

Flatpicker theme for Bulma

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

flatpickr Bulma Theme

Bulma theme for flatpickr built with Sass

Demo

  • Demo

Usage

for Node.js

Install the package using npm.

npm i -D flatpickr-bulma-theme

Import flatpickr-bulma.scss after importing Bulma.

@import "../node_modules/bulma/bulma";
//...
@import "../node_modules/flatpickr-bulma-theme/flatpickr-bulma";

If you don't need RTL support, you can import src/sass/flatpickr.scss instead for smaller file size.

for browser

Instead of flatpickr's, include this theme's css in your HTML file

  • from CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr-bulma-theme/dist/flatpickr-bulma.min.css">
  • or, download dist/flatpickr-bulma.css into your project
<link rel="stylesheet" type="text/css" href="_your_css_dir_/flatpickr-bulma.css">

Customize

You can use these variables to customize this theme. (For the computed values, see Bulma's document)

Variables

NameTypeDefault value
$flatpickr-font-sizesize$size-normal
$flatpickr-month-font-sizesize$size-medium
$flatpickr-line-heightsize1.5
$flatpickr-day-sizesize2.5rem
$flatpickr-month-nav-heightsize2.25rem
$flatpickr-weekdays-heightsize$size-small * 1.5
$flatpickr-calendar-backgroundcolor$white
$flatpickr-calendar-border-colorcolorrgba($black, 0.1)
$flatpickr-calendar-shadowsize0 2px 3px $flatpickr-calendar-border-color
$flatpickr-month-backgroundcolortransparent
$flatpickr-month-foregroundcolor$text-strong
$flatpickr-arrow-hover-colorcolor$red
$flatpickr-weekdays-backgroundcolortransparent
$flatpickr-weekdays-foregroundcolor$text-light
$flatpickr-day-foregroundcolor$text
$flatpickr-day-hover-backgroundcolor$light
$flatpickr-today-colorcolor$primary
$flatpickr-today-fg-colorcolor$white
$flatpickr-selected-day-backgroundcolor$link
$flatpickr-selected-day-foregroundcolor$white
$flatpickr-disabled-colorcolor$text-light
$flatpickr-disabled-border-colorcolortransparent
$flatpickr-disabled-day-foregroundcolor$grey-lighter

Plugins

The package includes stylesheet for plugins. To use them, simply include the stylesheet file into your project after this theme. You can also customize the stylesheet using the variables.

confirmDate

@import "../node_modules/flatpickr-bulma-theme/src/plugins/confirmDate/confirmDate";

or

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr-bulma-theme/dist/plugins/confirmDate.min.css">
Variables
NameTypeDefault value
$flatpickr-confirm-heightsize2.25rem
$flatpickr-confirm-backgroundcolor$background

weekSelect

@import "../node_modules/flatpickr-bulma-theme/src/plugins/weekSelect/weekSelect";

or

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr-bulma-theme/dist/plugins/weekSelect.min.css">

shortcut-buttons-flatpickr

Stylesheet for the Shortcut buttons plugin (shortcut-buttons-flatpickr).

@import "../node_modules/flatpickr-bulma-theme/src/plugins/shortcut-buttons-flatpickr/shortcut-buttons-flatpickr";

or

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr-bulma-theme/dist/plugins/shortcut-buttons-flatpickr.min.css">
Variables
NameTypeDefault value
$flatpickr-scbtns-backgroundcolor$background
$flatpickr-scbtns-foregroundcolor$flatpickr-day-foreground
$flatpickr-scbtns-button-font-sizesize$size-small
$flatpickr-scbtns-button-line-heightsize1.5
$flatpickr-scbtns-button-colorcolor$grey-darker
$flatpickr-scbtns-button-background-colorcolor$white
$flatpickr-scbtns-button-bordersize1px solid $grey-lighter
$flatpickr-scbtns-button-border-radiussize$radius-small
$flatpickr-scbtns-button-paddingsizecalc(0.375em - 1px) 0.75em
$flatpickr-scbtns-button-hover-colorcolor$link-hover
$flatpickr-scbtns-button-hover-border-colorcolor$link-hover-border
$flatpickr-scbtns-button-focus-colorcolor$link-focus
$flatpickr-scbtns-button-focus-border-colorcolor$link-focus-border
$flatpickr-scbtns-button-focus-box-shadowsize0 0 0 0.125em rgba($link, 0.25)
$flatpickr-scbtns-button-active-colorcolor$link-active
$flatpickr-scbtns-button-active-border-colorcolor$link-active-border

License

Keywords

FAQs

Package last updated on 27 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc