rw.theme
Properties
Property
Type
Description
Accessing Theme Data
const transformHook = (rw) => {
const { breakpoints } = rw.theme;
const { names, screens } = breakpoints;
console.log(names); // ["sm", "md", "lg", "xl", "2xl"]
console.log(screens); // { sm: 640, md: 768, lg: 1024, xl: 1280, "2xl": 1536 }
};
exports.transformHook = transformHook;Responsive Image Sources
Using Breakpoints for Conditional Logic
Building Media Query Classes
Using in Templates
Last updated
Was this helpful?

