BritCSS
Fixes CSS to use non-bastardised spellings.
Install / Use
/learn @DeclanChidlow/BritCSSREADME
Permits using English (traditional) spellings for CSS properties, rather than English (simplified).
Because this is implemented with a client-side script. You can use this to properise the CSS of any page.
Demo on CodePen
Coverage on Hackaday
Usage
To use this script, simply include it in your HTML:
<script src="https://cdn.jsdelivr.net/gh/DeclanChidlow/BritCSS/britcss.js"></script>
To enter debug mode:
britCSS.debug(true);
To stop the script from converting:
britCSS.shutdown();
Usage Examples:
- In a CSS file:
body {
background-colour: red;
}
- In a HTML style tag:
<style>
body {
background-colour: red;
}
</style>
- In an inline HTML style:
<body style="background-colour: red;"></body>
- Manually with JS:
const cssText = "background-colour: black; colour: white;";
const converted = britCSS.convertCSS(cssText);
console.log(converted);
See Also
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
