Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleksiyrudenko/default-beauty.css
Make default browsers' styles prettier
https://github.com/oleksiyrudenko/default-beauty.css
css css-variables css3-variables default-beauty
Last synced: 2 months ago
JSON representation
Make default browsers' styles prettier
- Host: GitHub
- URL: https://github.com/oleksiyrudenko/default-beauty.css
- Owner: OleksiyRudenko
- License: mit
- Created: 2018-01-29T11:46:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-25T10:47:50.000Z (almost 6 years ago)
- Last Synced: 2024-08-09T22:36:52.525Z (5 months ago)
- Topics: css, css-variables, css3-variables, default-beauty
- Language: CSS
- Homepage: https://goo.gl/ZF9evf
- Size: 330 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# default-beauty.css
[![MIT Licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/OleksiyRudenko/default-beauty.css/blob/master/LICENSE.md)
[![CSS Variables](https://img.shields.io/badge/CSS-variables-orange.svg)](https://www.w3.org/TR/css-variables-1/)- [ ] Building quick web page/app prototype?
- [ ] Want to see anything more pleasant than default
browser styling from the very first page load?
- [ ] A beginner focused more on HTML?If anything above is what you would tick then this project
will be of use for you.The idea behind is to beautify a bit default styles whenever
you just cannot (or just do not want to) pay much efforts to styling yet.Not really beautiful but rather anything you might live with for a while.
[![default-beauty](image/default-beauty-preview.png)](image/default-beauty-big.png)
[Check live demo](https://oleksiyrudenko.github.io/default-beauty.css/).
Note that [index.html](index.html) contains no style or element class definitions
(with exception of pre-formatted block contents).## Table of Contents
- [Installation](#installation)
- [Installation options](#installation-options)
- [Fonts](#fonts)
- [Special features](#special-features)
- [CSS3 variables](#css3-variables)
- [Page `` and ``](#page-header-and-footer)
- [`` element](#nav-element)
- [Credits to the project](#credits-to-the-project)
- [TODO](#todo)
- [Credits](#credits)## Installation
Tastes best with [`normalize.css`](https://github.com/necolas/normalize.css)
and with
[a font of your choice](https://fonts.google.com/)
to improve default typography readability.### Installation options
Use either of the methods:
1. NPM: `npm install --save normalize.css && npm install --save default-beauty.css`
or `yarn add normalize.css && yarn add default-beauty.css`
1. Use a CDN of your choice to include
[normalize.css](https://yarnpkg.com/en/package/normalize.css) and
[default-beauty.css](https://yarnpkg.com/en/package/default-beauty.css)
1. Download latest releases of
[normalize.css](https://necolas.github.io/normalize.css/latest/normalize.css) and
[default-beauty.css](https://github.com/OleksiyRudenko/default-beauty.css/releases)### Fonts
You may find the following snippet sufficient to start with.
Just add it to your web page's `` to have a bit better typography right off.```
```[TOC :arrow_double_up: ](#table-of-contents)
## Special features
Feel free changing whatever you like.
### CSS3 variables
`default-beauty.css` employs
[CSS variables](https://www.w3.org/TR/css-variables-1/)
(more on [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables))
with a somewhat not a 100% browser support and therefore may not pass
[strict validation](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Frawgit.com%2FOleksiyRudenko%2Fdefault-beauty.css%2Fmaster%2Fdefault-beauty.css&profile=css3svg&usermedium=all&warning=1&vextwarning=&lang=en).Should you face any issues with it, please
[let me know](https://github.com/OleksiyRudenko/default-beauty.css/issues).Quick fix:
1. Download `default-beauty.css` or fork this project
2. Replace every `var(--...)` with a relevant value from `:root` section
3. Remove variable definitions from `:root` section### Page `` and ``
Just add <header> and <footer> elements to have distinctive
styling of your page header and footer.Both `` and `` are
[flex boxes](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
with `flex-flow: row`.Last element in the `` (and first as well if it is the only element
in the ``) floats to the right. If this not what you want
remove `margin-left: auto;` rule from `footer > *:last-child` ruleset.### `` element
`` is a
[flex box](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
with `flex-flow: row`.Every its direct child is assigned a `margin-right`.
[TOC :arrow_double_up: ](#table-of-contents)
## Credits to the project
If you like this project, please, give it a :star: on
[github](https://github.com/OleksiyRudenko/default-beauty.css)
and/or add the following somewhere in the bottom
of your beautified page.```
Styled with
normalize.css
and
Default-Beauty.css
```It will look like this (but beautified):
**Styled with
normalize.css
and
Default-Beauty.css
**[TOC :arrow_double_up: ](#table-of-contents)
## TODO
Check [project issues](https://github.com/OleksiyRudenko/default-beauty.css/issues).
Any suggestions or bugs? Please, check
[notes on contribution](https://github.com/OleksiyRudenko/default-beauty.css/blob/master/CONTRIBUTING.md).[TOC :arrow_double_up: ](#table-of-contents)
## Credits
This project wouldn't have ever happened without
[![Kottans](https://img.shields.io/badge/%3D(%5E.%5E)%3D-Kottans-lightgrey.svg)](https://github.com/kottans)[TOC :arrow_double_up: ](#table-of-contents)