Avoid collisions with other libraries: prefix every utility with one config line.
Syntax#
nakshora.config.js
export default {
prefix: 'nk-', // nk-flex, nk-p-4, nk-text-blue-500 …
};Details & defaults#
Prepends the prefix to every utility (nk-p-4). Variants keep their position: hover:nk-p-4. Useful when embedding Nakshora next to another framework.
Worked examples#
- Embedding inside WordPress themes:
prefix: "nk-"avoids theme collisions
Related options#
See the configuration/index|configuration hub for the full option table, and api/theme-resolution|theme resolution for how options merge.
