Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typography #10

Merged
merged 22 commits into from
Jan 27, 2022
Merged

Typography #10

merged 22 commits into from
Jan 27, 2022

Conversation

Studio384
Copy link
Collaborator

@Studio384 Studio384 commented Jan 26, 2022

This pull request implements the basic Typography scale as discussed in #6.

Note: While button and helper text are documented under Typography in #6, they are out of scope for this issue and will be addressed when adding Button and Input respectively. They aren't stand-alone text styles.

Typography

Basic typography

The basic values for typography are set as followed:

$font-size-base: 1rem !default;
$font-size-small: .875em !default; // Relative to its parent

$font-size-small is used for both the .small-class and <small>-element as its default font style. Note that its unit is em and not rem.

Headings

Heading, by default, scale entirely with the $font-size-base to provide consistency. The 6th heading level is the same size as a paragraph, from there the scale goes up by 25% of the base with each step, except for the 1st heading level which sees an increase of 50%.

$font-sizes-heading: (
  h1: $font-size-base * 2.5,
  h2: $font-size-base * 2,
  h3: $font-size-base * 1.75,
  h4: $font-size-base * 1.5,
  h5: $font-size-base * 1.25,
  h6: $font-size-base
) !default;

Marketing

The marketing stylings are a continuation of the headings. Unlike the headings, they are not based on the $font-size-base-value, but they do continue from the heading scale. The smallest marketing class provides text the same size as the 1st heading level.

$font-sizes-marketing: (
  1: 5rem,
  2: 4.5rem,
  3: 4rem,
  4: 3.5rem,
  5: 3rem,
  6: 2.5rem
) !default;

Lists

This pull request also introduces some class for removing the list style and placing list items inline.

@Studio384 Studio384 added this to the Mellow CSS 1.0 milestone Jan 26, 2022
@Studio384 Studio384 self-assigned this Jan 26, 2022
@Studio384 Studio384 mentioned this pull request Jan 26, 2022
32 tasks
@Studio384 Studio384 merged commit 9556c7a into main Jan 27, 2022
@Studio384 Studio384 deleted the typography branch March 10, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant