Skip to content

A set of Sass mixins for creating fluid type & vertical rhythm.

Notifications You must be signed in to change notification settings

liamdefty/sass-fluid-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluid Type

An experimental set of Sass mixins for creating fluid type & vertical rhythm using the vw unit and calc.

Getting Started

Include _fluid-type.scss in your project. Or, if you use npm, npm install liam-defty/sass-fluid-type.

What is it?

Using the vw unit we can create fluid typography. This means we can scale the font size depending on the width of the browser. We handle this with certain parameters when doing so to ensure we have control over the font size and the breakpoints in which it scales. By doing this we can utilise rem and em units for a global or component based scaling of components. On top of this we create a fluid baseline that scales with the font size to create a beautiful vertical rhythm based on the "golden ratio".

To see a basic example see the example folder.

To Do

  • Write docs.

About

A set of Sass mixins for creating fluid type & vertical rhythm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published