mine.css
A classless stylesheet for HTML documents and evolution of style.css.
[![stability][stability-img]][stability-url]
About
Make a plain HTML page look good and readable with zero effort! Serves as a nice base layer default.
Check out the style guide to see what it looks like.
Differences
Some differences from style.css:
- CSS Variables
- Dark Mode
- Remove some old browser support
- Use post-css build pipeline
- Minor differences
Install
<link rel="stylesheet" href="https://unpkg.com/mine.css">
<link rel="stylesheet" href="https://unpkg.com/mine.css@1.0.0">
$ npm install mine.css
@import url('https://unpkg.com/style.css/mine.css');
Usage
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World</title>
<link rel="stylesheet" href="https://unpkg.com/mine.css@latest/style.css">
</head>
<body>
<h1>Hooray!</h1>
</body>
</html>
The best way to get familiar with the look and feel of mine.css
is to visit the style guide. Detailed examples of every HTML element (and how to write them in markdown) are available there.
Node
npm install mine.css --save-dev
Here are some modules out there for requiring CSS using JavaScript that should also work just fine:
CSS Variables
You can override defaults directly with CSS variables. Here are the default variable settings for style.css
:
:root {
--font-body: var(--system-sans);
--font-code: var(--system-mono);
--font-size-body: 14px;
--font-size-scale: 0.25vw;
--line-height-body: 1.55;
--line-height-pre: 1.45;
--link-color: #0074d9;
}
Overriding settings
You can override settings like so:
@import 'style.css';
:root {
--font-size-body: 14px;
}
If you want to use the font stacks to override global font settings, you can do so like this:
@import 'style.css';
:root {
--font-body: var(--system-serif);
}
Thanks
mine.css
is only possible due to the excellent work laid by the contributors to style.css. Thank you!
Contributing
Contributions welcome! Please read the contributing guidelines first.
License
ISC