Skip to content
GitHub

breakpoints.yml

Drupal breakpoints generated from the Tailwind screens.

Responsive image styles need Drupal breakpoints. The plugin writes them to dist/<theme>_dist.breakpoints.yml, one per Tailwind screen plus an xs breakpoint without a media query.

Generated for this theme

dist/uebertool_docs_dist.breakpoints.yml
uebertool_docs.Tailwind.xs:
  label: xs
  mediaQuery: ""
  weight: 0
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.sm:
  label: sm
  mediaQuery: "all and (min-width: 40rem)"
  weight: 1
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.md:
  label: md
  mediaQuery: "all and (min-width: 48rem)"
  weight: 2
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.sidebar:
  label: sidebar
  mediaQuery: "all and (min-width: 50rem)"
  weight: 3
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.lg:
  label: lg
  mediaQuery: "all and (min-width: 64rem)"
  weight: 4
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.toc:
  label: toc
  mediaQuery: "all and (min-width: 72rem)"
  weight: 5
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.xl:
  label: xl
  mediaQuery: "all and (min-width: 80rem)"
  weight: 6
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind
uebertool_docs.Tailwind.2xl:
  label: 2xl
  mediaQuery: "all and (min-width: 96rem)"
  weight: 7
  multipliers:
    - 1x
    - 2x
  group: uebertool_docs Tailwind

Multipliers

Every breakpoint gets the same multipliers. The default is 1x and 2x:

vite.config.ts
uebertool({
  breakpoints: {
    multipliers: ['1x', '2x', '3x'],
  },
})

The breakpoint group is called <theme> Tailwind and shows up in the responsive image style form.