0.2.2 • Published 11 months ago

@discord-css-mappings/postcss-plugin v0.2.2

Weekly downloads
-
License
GPL-3.0-only
Repository
-
Last release
11 months ago

@discord-css-mappings/postcss-plugin

A PostCSS plugin for Discord CSS Mappings.

Usage

Install this as a PostCSS plugin alongside PostCSS itself:

$ yarn add @discord-css-mappings/postcss-plugin @discord-css-mappings/core postcss

Then, configure the plugin in postcss.config.cjs.

When writing your CSS, you can use named classes prefixed with discord-. These will be automatically transformed into the actual hashed classes.

.discord-mainContent {
	opacity: 0.1;
}

/* ... gets transformed into... */

:is(
		.mainContent-15Uhv6,
		.mainContent-1ZOoSF,
		.mainContent-1jusE7,
		.mainContent-20q_Hp,
		.mainContent-2HlPBZ,
		.mainContent-2m17Xp,
		.mainContent-uDGa6R
	) {
	opacity: 0.1;
}
0.2.2

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago