Simple CSS library for semantic HTML markup
Go to file
2021-04-07 16:24:17 +03:00
.github Create FUNDING.yml 2021-04-07 16:24:17 +03:00
dist Fix select disabled styles 2020-10-26 22:16:30 +02:00
docs Add Dark Mode support docs 2020-11-17 17:46:50 +02:00
src Add Dark Mode support docs 2020-11-17 17:46:50 +02:00
.editorconfig Add an easter egg to the source of every page. 2019-01-25 09:57:52 +02:00
.gitattributes 🎉 Added .gitattributes & .gitignore files 2015-09-12 19:38:25 +03:00
.gitignore Add .stylelintcache to .gitignore. 2019-01-24 16:56:16 +02:00
.stylelintrc Update deps to fix audit warnings. 2019-06-30 23:47:05 +03:00
CHANGELOG.md Fix select disabled styles 2020-10-26 22:16:30 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2017-01-16 02:51:49 +03:00
gulpfile.js Fix demo theme changer 2020-10-26 22:15:26 +02:00
index.js Add support of sealing styles to PostCSS plugin. 2019-01-24 18:50:50 +02:00
LICENSE Add new LICENSE file 2020-09-09 18:45:27 +03:00
package-lock.json v3.0.7 2020-09-12 14:37:07 +03:00
package.json v3.0.7 2020-09-12 14:37:07 +03:00
README.md Add Dark Mode support docs 2020-11-17 17:46:50 +02:00
themes.js Repick some colors. 2019-01-24 23:16:18 +02:00

awsm.css

npm version

awsm.css is a simple CSS library for semantic HTML, which doesn't require classes, ids, attributes, etc.

Just start to create page with HTML5 tags, link awsm.css and get simple, clean and beautiful markup.

Check out examples or sample markup here.

Demo

Demo picture

Previous versions

Current master points to v3 of the library.

If you want to see or download previous versions, here they are:

Usage

<link rel="stylesheet" href="awsm.min.css">

Also don't forget to add viewport info to the <head> for adaptation to mobile. Like this:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

It's also available as the npm package, which supports PostCSS API.

Download

Download the latest version here — awsm.css.

Minified — awsm.min.css (≈3 Kb after gzip).

unpkg

Also you can use unpkg for link latest or exact version of library:

<link rel="stylesheet" href="https://unpkg.com/awsm.css/dist/awsm.min.css">

Get more information about the unpkg CDN on unpkg.com.

PostCSS API

If you install npm package, you can use library as PostCSS plugin:

const postcss = require('postcss');
const awsm = require('awsm.css');

postcss([awsm({ theme: 'tasman', sealed: true })]).process('a {color: red}').then(result => {
  console.log(result.css); // awsm.css prepends your CSS 
});

For more information about options check out docs.

Themes

Current version contains some themes that you can use.

Check them on the demo page.

Dark Mode Support

If you need a “Dark Mode” support, just inject two CSS files and use media queries:

<!-- CSS for users with dark mode -->
<link rel="stylesheet" href="awsm_theme_big-stone.min.css" media="(prefers-color-scheme: dark)">

<!-- CSS for users without dark mode -->
<link rel="stylesheet" href="awsm_theme_pearl-lusta.min.css" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)">

(See #103 for other solutions.)

Why?

I have to create simple pages in my daily work. Sometimes it's compiled Markdown and sometimes it's pure HTML. I'd like to make them more beautiful without additional classes, ids, etc. So I did it.

License

awsm.css licensed under the MIT.

The MIT License places almost no restrictions on what you can do with this lib. You are free to use it in commercial projects as long as the copyright is left intact.

Examples

Website for this repo uses awsm.css. Check this out. Also there are examples of blog and homepage built with awsm.css.

And I use the lib for my own website.

If you use the library in your project, feel free to open issue and we will add your url in this list :)

v3

Short list of projects that use v3 of the library:

v2

List of projects that use v2 of the library:

Got questions? Any troubles?

If you have questions or general suggestions, don't hesitate to submit a new GitHub issue.