Flexible solution for tailwind.
npm install @jswork/tailwind-rem-flexible
<script>
window.__TW_REM_STD_WIDTH__ = 390;
window.__TW_REM_MAX_WIDTH__ = 1280;
</script>
<script src="https://unpkg.com/@jswork/tailwind-rem-flexible"></script>
/// <reference types="@jswork/tailwind-rem-flexible/global.d.ts" />
Code released under the MIT license.