# @unocss/transformer-compile-class Compile group of classes into one class. Inspried by [WindiCSS's compilation mode](https://windicss.org/posts/modes.html#compilation-mode) and [#948](https://github.com/unocss/unocss/issues/948) by [@UltraCakeBakery](https://github.com/UltraCakeBakery). ## Install ```bash npm i -D @unocss/transformer-compile-class ``` ```ts // uno.config.js import { defineConfig } from 'unocss' import transformerCompileClass from '@unocss/transformer-compile-class' export default defineConfig({ // ... transformers: [ transformerCompileClass(), ], }) ``` ## Usage At the begin of your class strings, **add `:uno:` at the begin of the strings** to mark them for compilation. For example: ```html