Module: StimulusPlumbers::Themes::Tailwind::Calendar

Included in:
StimulusPlumbers::Themes::TailwindTheme
Defined in:
lib/stimulus_plumbers/themes/tailwind/calendar.rb

Constant Summary collapse

GRID =
%w[w-full].freeze
DAYS_OF_WEEK =
%w[
  grid grid-cols-7 text-center text-(length:--sp-text-xs)
  font-medium text-(--sp-color-muted-fg) mb-(--sp-space-1)
].freeze
DAYS_OF_MONTH =
%w[grid grid-cols-7 justify-items-center].freeze
DAY =
%w[
  size-(--sp-calendar-day-size) rounded-(--sp-radius-md)
  flex items-center justify-center text-(length:--sp-text-sm)
  hover:bg-(--sp-color-muted) cursor-pointer
  aria-[current=date]:font-bold
  aria-selected:bg-(--sp-color-primary)
  aria-selected:text-(--sp-color-primary-fg)
  aria-selected:hover:bg-(--sp-color-primary)/90
].freeze
%w[flex items-center justify-between gap-(--sp-space-1) mb-(--sp-space-2)].freeze
%w[
  inline-flex items-center justify-center
  size-(--sp-calendar-day-size) rounded-(--sp-radius-md)
  text-(--sp-color-fg) hover:bg-(--sp-color-muted)
  focus-visible:outline-none focus-visible:ring-2
  focus-visible:ring-(--sp-focus-ring-color)
  disabled:pointer-events-none disabled:opacity-50
].freeze