Arrange a Masterclass

Licensing Code on CSS Wizardry

Written by on CSS Wizardry.

N.B. All code can now be licensed under the permissive MIT license. Read more about licensing CSS Wizardry code samples

Table of Contents
  1. Motives
  2. The MIT License
  3. Using My Code: What to Know

Since founding csswizardry.com in 2007, I’ve shared hundreds of articles, tips, tricks, techniques, snippets, and more—all for free. These have ranged from simple one-liners to concepts that have shaped the way thousands of developers approach their work.

This freemium model has been the cornerstone of my consultancy business for the last 11 years, and as someone who learned to code from freely available resources, I’m deeply committed to keeping this knowledge accessible to everyone.

While it’s incredibly rewarding to spot code inspired by my work across the web, it can be disheartening to see it used without any attribution or credit. With this decision, I aim to maintain the free and open spirit of csswizardry.com while ensuring a small nod of recognition in return.

Motives

Over the years, conscientious developers and organisations have occasionally reached out to ask if they can use my code in commercial settings. My answer has always been an informal yes!

However, I feel it’s time to provide more structure and clarity. From now on, everything shared on csswizardry.com—unless stated otherwise—is covered by the MIT License.

This move isn’t about restricting or limiting usage. Instead, it formalises my commitment to sharing my work freely while making it clear to commercial organisations that they’re welcome to use it in for-profit ventures without worrying about licensing fees or compliance issues.

In return, all I ask for is appropriate credit. I think that’s fair.

The MIT License

I chose the MIT License because it’s one of the most permissive and widely used licenses available. It allows you to use, modify, and reproduce my work freely, whether for personal or commercial purposes.

At the same time, it protects me by absolving any liability for how the content is used. It’s a win-win.

The MIT License is already a familiar standard in the open-source world, so the chances are you or your company have used work under this license before. It’s simple, clear, and works perfectly for my goals.

Using My Code: What to Know

Here are answers to common or expected questions about using my code under the MIT License.

Do I need to pay to use your code?

No, you don’t need to pay to use any of the code shared on csswizardry.com. My content is licensed under the MIT License, which allows free use for both personal and commercial purposes.

Do I need to apply to use your code?

No, there’s no need to apply or seek permission. The MIT License already grants you the right to use, modify, and distribute the code as long as you meet its conditions, which primarily involve proper attribution.

Do I need to tell you I’m using your code?

You’re not required to inform me, but I’d love to hear about it! It’s always rewarding to see how my work is being used, so feel free to drop me a line if you’d like to share what you’ve built.

What happens if I don’t comply?

If you don’t comply with the MIT License (e.g. by failing to include attribution), you’re in breach of the license. This means you lose the rights granted by it, and technically, your use of the code would be unauthorised.

I’d prefer to resolve issues amicably, so if there’s a misunderstanding, I’d encourage you to reach out so we can work things out.

Can I use your code in a commercial project?

Yes, you’re free to use my code in commercial projects. The MIT License permits this, and there are no hidden fees or obligations beyond proper attribution.

What does ‘proper attribution’ mean?

Proper attribution involves giving credit to the original source of the code. Typically, this means including a copy of the license and copyright notice in your repository and a comment in your code.

Can I modify your code?

Yes, the MIT License allows you to modify my code to suit your needs. Even if you make changes, you still need to include attribution to the original source.

Does using your code mean you support my project?

Not necessarily. While I’m happy to see my code being used, using it doesn’t imply my endorsement of your project.

What happens if someone else uses your code improperly?

If you’re aware of someone misusing my code, feel free to let me know. However, enforcement is ultimately my responsibility, and I’ll handle it as needed.

Where can I learn more about the MIT License?

You can read the full text of the MIT License or read the License page of this site.

Have a question that’s not covered?

I’d love to help! Feel free to get in touch with me.

N.B. All code can now be licensed under the permissive MIT license. Read more about licensing CSS Wizardry code samples


By Harry Roberts

Harry Roberts is an independent consultant web performance engineer. He helps companies of all shapes and sizes find and fix site speed issues.



Did this help? We can do way more!


Hi there, I’m Harry Roberts. I am an award-winning Consultant Web Performance Engineer, designer, developer, writer, and speaker from the UK. I write, Tweet, speak, and share code about measuring and improving site-speed. You should hire me.

You can now find me on Mastodon.


Suffering? Fix It Fast!

Projects

  • inuitcss
  • ITCSS – coming soon…
  • CSS Guidelines

Next Appearance

Learn:

I help teams achieve class-leading web performance, providing consultancy, guidance, and hands-on expertise.

I specialise in tackling complex, large-scale projects where speed, scalability, and reliability are critical to success.