question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider using `color` rather than `colour` to mirror CSS

See original GitHub issue

I’m wondering if we instead of using govuk-text-colour we could use govuk-text-color.

This mirrors the spelling seen elsewhere in CSS.

color: $govuk-text-color;

vs

color: $govuk-text-colour;

I’m not sure it’s worth embracing the UK spelling here, we should be inclusive and take the hit 😉

Related: https://github.com/HashanP/postcss-spiffing

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
edwardhorsfordcommented, Nov 27, 2017

It feels like something we could support as a synonym, but I’d still keep the UK spelling as the primary name.

0reactions
NickColleycommented, Aug 5, 2019

From a user on Slack:

My only mistake which caused me some head scratching was mistyping “govuk-colour” with “govuk-color” in a mass find-replace and wondering what the heck was going on. I appreciate why we use the word “colour” but when the “govuk-colour” variable is being used to set a color property, is there any reason why govuk-color wasn’t used?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invert colors of an image in CSS or JavaScript - Stack Overflow
It inverts the colors but when I move the mouse over my page the tab crashes. Tried it with Google Chrome 25.0.1364.172 x86_64...
Read more >
How To Use Color Values with CSS | DigitalOcean
With CSS, there are four ways to generate colors, and each has its own unique strength. This tutorial will show you how to...
Read more >
Creating Realistic Reflections With CSS
In design, reflections are stylized mirror images of objects. Even though they are not as popular as shadows, they have their moments —...
Read more >
CSS Color Module Level 5 - W3C
Abstract. This module extends CSS Color [css-color-4] to add color modification functions, and custom color spaces (ICC profiles).
Read more >
CSS !important Property - W3Schools
The !important rule in CSS is used to add more importance to a property/value than normal. In fact, if you use the !important...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found