

This isn’t a bug and is rather a deliberate performance optimization that drastically increases the speed of incremental rebuilds, especially in large projects. When the JIT engine is running in watch mode, you might notice that when you add a class to your HTML then remove it, that the class is still present in your CSS. Troubleshooting Styles aren't removed when classes are deleted If you run into any other issues or find any bugs, please open an issue so we can fix it. We are also still ironing out some compatibility issues with certain build tools, which you can follow in our issue tracker. You can’t currently arbitrary CSS classes that aren’t defined within a rule, although we may add support for this in the future.

Because no CSS is generated by default, the safelist has to be a list of complete class names. The safelist option does not support regular expressions.
#BOOTSTRAP GRIDS DONT GO NEXT TO EACH THER PLUS#
This new engine supports almost every feature that exists in the classic engine, plus tons of new features that wouldn’t be possible if everything had to be pre-generated up front.ĭue to the nature of how the engine works however, there are a few things that aren’t currently possible:
#BOOTSTRAP GRIDS DONT GO NEXT TO EACH THER UPDATE#
If you were using screens before, you should update your code to use variants: By default, they are always injected at the very end of your stylesheet. This directive is optional (just like screens always has been) and is only useful if you want explicit control over where utility variants are injected. In the JIT engine, variants are injected at the variants directive, which has been renamed from screens. In the classic engine, all utility variants are injected as part of the utilities directive. Stacked variants let you specify how something should be styled when multiple variants are active at the same time, so instead of trying to override focus styles with hover styles, you explicitly declare what an element should look like when both hover and focus are active simultaneously. To enable just-in-time mode, set the mode option to 'jit' in your file: To see it in action, watch our announcement video.

In projects with heavily extended configurations this makes dev tools a lot more responsive. Since development builds are as small as production builds, the browser doesn’t have to parse and manage multiple megabytes of pre-generated CSS.

