Skip to content

Commit

Permalink
✨ feat(font.scss): Add new text util classes (e.g. text-lg), refactor…
Browse files Browse the repository at this point in the history
…ed css generation for headlines and headers
  • Loading branch information
Spiderpig86 committed Nov 26, 2021
1 parent 678a73b commit d5b8088
Show file tree
Hide file tree
Showing 6 changed files with 2,354 additions and 145 deletions.
190 changes: 137 additions & 53 deletions dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -780,59 +780,163 @@ fieldset legend {
/* Variant of mixin that takes in mapping of class name to value */
/* v1 Color scheme for Cirrus */
/* v2 Colors */
/* Spacing */
/* Breakpoints */
/* Fonts */
/* Grid Count (Columns + Grid) */
/* Grid Percents */
/* Media Queries */
/* Smaller than the defined pixels are the dimensions for that range */
/* Variant of mixin that takes in mapping of class name to value */
/*
Functions
TODO Refactor to different categories
*/
/*
Converts a given hex value to RGB.
*/
/*
Generates delimited class name prefix.
*/
/*
Fetch feature flag for different utility class types for generating viewport classes (e.g., u-flex-sm, u-flex-md, etc.).
*/
/*
Functions
TODO Refactor to different categories
*/
/*
Converts a given hex value to RGB.
*/
/*
Generates delimited class name prefix.
*/
/*
Fetch feature flag for different utility class types for generating viewport classes (e.g., u-flex-sm, u-flex-md, etc.).
*/
/* Spacing */
/* Breakpoints */
/* Fonts */
/* Grid Count (Columns + Grid) */
/* Grid Percents */
/* Media Queries */
/* Smaller than the defined pixels are the dimensions for that range */
/* Variant of mixin that takes in mapping of class name to value */
/* v1 Color scheme for Cirrus */
/* v2 Colors */
/*
Global Mixins
*/
/*
Mixin that returns a property map as a series of CSS class properties.
E.g. $xs: (color: #fff, opacity: 0.5), $sm... =>
<class>--xs {
color: #fff;
opacity: 0.5;
}
*/
/*
Bring to front on focus.
*/
/* FONT */
/* Constants */
/* Headers */
h1 {
h6 {
font-size: 1.25rem;
font-family: "Montserrat", sans-serif;
font-size: 3rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}

h2 {
h5 {
font-size: 1.5rem;
font-family: "Montserrat", sans-serif;
font-size: 2.5rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}

h3 {
h4 {
font-size: 1.75rem;
font-family: "Montserrat", sans-serif;
font-size: 2rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}

h4 {
h3 {
font-size: 2rem;
font-family: "Montserrat", sans-serif;
font-size: 1.75rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}

h5 {
h2 {
font-size: 2.5rem;
font-family: "Montserrat", sans-serif;
font-size: 1.5rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}

h6 {
h1 {
font-size: 3rem;
letter-spacing: 0.025rem;
font-family: "Montserrat", sans-serif;
font-size: 1.25rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}

h1 {
letter-spacing: 0.025rem;
/* Headlines (for larger titles) */
.headline-4 {
font-size: 3.5rem;
letter-spacing: 0.05rem;
}

.headline-3 {
font-size: 4.5rem;
letter-spacing: 0.05rem;
}

.headline-2 {
font-size: 5.5rem;
letter-spacing: 0.05rem;
}

.headline-1 {
font-size: 6.5rem;
letter-spacing: 0.05rem;
}

/* Regular text sizes */
.text-xs {
font-size: 0.75rem !important;
line-height: 1rem !important;
}

.text-sm {
font-size: 0.875rem !important;
line-height: 1.25rem !important;
}

.text-md {
font-size: 1rem !important;
line-height: 1.5rem !important;
}

.text-lg {
font-size: 1.25rem !important;
line-height: 1.75rem !important;
}

.text-xl {
font-size: 1.5rem !important;
line-height: 1.75rem !important;
}

p,
Expand Down Expand Up @@ -871,27 +975,6 @@ mark,
background-color: #f0e8c4;
}

/* Headlines (for larger titles) */
.headline-1 {
font-size: 6.5rem;
letter-spacing: 0.05rem;
}

.headline-2 {
font-size: 5.5rem;
letter-spacing: 0.05rem;
}

.headline-3 {
font-size: 4.5rem;
letter-spacing: 0.05rem;
}

.headline-4 {
font-size: 3.5rem;
letter-spacing: 0.05rem;
}

.font-alt {
font-family: "Nunito Sans";
}
Expand Down Expand Up @@ -1044,44 +1127,45 @@ kbd {

/* MOBILE */
@media screen and (max-width: 639px) {
h1 {
font-size: 2.25rem;
}

h2 {
font-size: 2rem;
h6 {
font-size: 1rem;
}

h3 {
font-size: 1.75rem;
h5 {
font-size: 1.25rem;
}

h4 {
font-size: 1.5rem;
}

h5 {
font-size: 1.25rem;
h3 {
font-size: 1.75rem;
}

h6 {
font-size: 1rem;
h2 {
font-size: 2rem;
}

.headline-1 {
font-size: 3.75rem;
h1 {
font-size: 2.25rem;
}

.headline-2 {
font-size: 3.5rem;
/* Headlines (for larger titles) */
.headline-4 {
font-size: 3rem;
}

.headline-3 {
font-size: 3.25rem;
}

.headline-4 {
font-size: 3rem;
.headline-2 {
font-size: 3.5rem;
}

.headline-1 {
font-size: 3.75rem;
}

p,
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit d5b8088

Please sign in to comment.