BritCSS: Fixes CSS to use non-American English

TribeNews
1 Min Read

Fixes CSS to use non-bastardised spellings

Permits using English (traditional) spellings for CSS properties, rather than English (simplified).

- Advertisement -

Because this is implemented with a client-side script. You can use this to properise the CSS of any page.

Demo on CodePen

- Advertisement -

Usage

To use this script, simply include it in your HTML:

- Advertisement -

To enter debug mode:

To stop the script from converting:

Usage Examples:

- Advertisement -

In a CSS file:

body {
background-colour: red;
}

In a HTML style tag:

- Advertisement -

body {
background-colour: red;
}

In an inline HTML style:

Manually with JS:

const cssText = “background-colour: black; colour: white;”;
const converted = britCSS.convertCSS(cssText);
console.log(converted);
See Also

BESS – British Enhanced Style Sheets
Spiffing (postcss-spiffing)

Leave a Comment
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected & This Is Prohibited!!!

We have detected that you are using extensions to block ads and you are also not using our official app. Your Account Have been Flagged and reported, pending de-activation & All your earning will be wiped out. Please turn off the software to continue

You cannot copy content of this app