All Projects → jonschlinkert → Vertical Rhythm

jonschlinkert / Vertical Rhythm

Licence: mit
Put some typographical vertical rhythm in your CSS. LESS, Stylus and SCSS/SASS versions included.

Programming Languages

stylus
462 projects

Projects that are alternatives of or similar to Vertical Rhythm

Rollup Plugin Styles
🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
Stars: ✭ 116 (+39.76%)
Mutual labels:  styles, scss, sass, less
Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (+213.25%)
Mutual labels:  scss, sass, less, stylesheet
Cessie
Transpile your CSS bundle to support CSS variables, calc, and future CSS for legacy browsers.
Stars: ✭ 81 (-2.41%)
Mutual labels:  scss, sass, less
Style Resources Loader
CSS processor resources loader for webpack
Stars: ✭ 214 (+157.83%)
Mutual labels:  scss, sass, less
Light Blue Dashboard
🔥 Free and open-source admin dashboard template built with Bootstrap
Stars: ✭ 110 (+32.53%)
Mutual labels:  typography, scss, sass
Gulp Starter Kit
A simple Gulp 4 Starter Kit for modern web development.
Stars: ✭ 134 (+61.45%)
Mutual labels:  scss, sass, less
Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (+63.86%)
Mutual labels:  scss, sass, less
Prejss
Get the power of PostCSS with plugins in your JSS styles. 🎨 Just put CSS into JS and get it as JSS object.
Stars: ✭ 238 (+186.75%)
Mutual labels:  scss, sass, less
Styled Components Theme
Defines themes via flexible color selectors for use with styled-components
Stars: ✭ 302 (+263.86%)
Mutual labels:  styles, scss, sass
Stylelint
A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Stars: ✭ 9,350 (+11165.06%)
Mutual labels:  scss, sass, less
Sing App
💥Free and open-source admin dashboard template built with Bootstrap 4.5 💥
Stars: ✭ 1,187 (+1330.12%)
Mutual labels:  typography, scss, sass
Sscss
Light Sass lib for managing your font-size, margin, padding, and position values across breakpoints.
Stars: ✭ 119 (+43.37%)
Mutual labels:  scss, sass, stylesheet
Bootstrap 4 Utilities
Bootstrap 4 utility classes in LESS CSS for Bootstrap 3 or any other projects.
Stars: ✭ 105 (+26.51%)
Mutual labels:  scss, sass, less
Compile Hero
🔰Visual Studio Code Extension For Compiling Language
Stars: ✭ 169 (+103.61%)
Mutual labels:  scss, sass, less
Cirrus
☁️ The CSS framework for the modern web.
Stars: ✭ 716 (+762.65%)
Mutual labels:  scss, sass, stylesheet
Typesettings
A Sass or Stylus toolkit that sets type in Ems based on modular scale, vertical rhythm, and responsive ratio based headlines.
Stars: ✭ 380 (+357.83%)
Mutual labels:  typography, scss, sass
Three Dots
🔮 CSS loading animations made by single element.
Stars: ✭ 912 (+998.8%)
Mutual labels:  scss, sass, less
Rocssti
RÖCSSTI : pour démarrer vos CSS avec la patate !
Stars: ✭ 46 (-44.58%)
Mutual labels:  sass, less
Vue Spa
vue-spa : vue + vue-router + axios + vuex + vux 快速成型移动端项目,直接使用。欢迎star
Stars: ✭ 46 (-44.58%)
Mutual labels:  sass, less
Snack Helper
🗃 A universal CSS helper library.
Stars: ✭ 50 (-39.76%)
Mutual labels:  scss, sass

Vertical Rhythm

Create typographical vertical rhythm in your CSS. LESS, Stylus and SASS/SCSS versions included.

This should get you to your goal faster than starting from scratch. Please customize it to work with your own project.

Example list styles

vertical-rhythm.scss and vertical-rhythm.styl

.rhythm {
  h3 + ul.bullet-list,
  h3 + ul.numbered-list,
  h3 + ul.alpha-list,
  h3 + ol.numbered-list {
    margin-top: ($line-height-base / 2);
  }
}

vertical-rhythm.sass

.rhythm
  h3 + ul.bullet-list,
  h3 + ul.numbered-list,
  h3 + ul.alpha-list,
  h3 + ol.numbered-list
    margin-top: ($line-height-base / 2)

vertical-rhythm.less

.rhythm {
  h3 + ul.bullet-list,
  h3 + ul.numbered-list,
  h3 + ul.alpha-list,
  h3 + ol.numbered-list {
    margin-top: (@line-height-base / 2);
  }
}

Designed to be mostly framework agnostic, although the baseline styles for normalizing are borrowed from Bootstrap. This means vertical-rhythm.{less,styl,scss,css} will make a good drop-in component for Bootstrap, but it can also be used standalone for any project.

How does this work?

In vertical-rhythm.{less,styl,scss,css} you will find two sections:

I. Typography Base

If you use Bootstrap or Foundation, just get rid these base styles before you drop vertical-rhythm.{less,styl,sass,css} into your project. This section is not strictly necessary for creating vertical rhythm, but the styles here are a great starting point for any project.

II. Vertical Rhythm

The .rhythm styles are designed with sensible defaults that you should be able to use as is. Expect to use these styles as examples though, because every project is different and you will probably need to customize before you achieve vertical rhythm with the typography in your own project.

Get Started

Issues, Requests and Contributions

  • Have a suggestion, requests or correction? Please create an issue.
  • Contributions and requests are very welcome.
  • Please comment the code in your requests so I can easily and quickly evaluate it.

Author

Jon Schlinkert

Credit & Attribution

The baseline section in this vertical-rhythm component was originally based on type.less from the excellent Bootstrap, by Mark Otto and Jacob Thornton.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].