Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 10, 2024
1 parent 3988f14 commit bb39545
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 40 deletions.
58 changes: 20 additions & 38 deletions src/scss/type/font/_font_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,60 +13,42 @@
// limitations under the License.



// ============================================================================
// Typography | Font | Base
// ============================================================================


@mixin font_default {
font-family: $font_stack_sans_serif; // family-name | generic-family | initial | inherit

font-smooth: auto; // auto|never|always
-webkit-font-smoothing: antialiased; // auto|none|antialiased|subpixel-antialiased
-moz-osx-font-smoothing: grayscale; // auto|grayscale
text-rendering: optimizeLegibility; // auto|optimizeSpeed|optimizeLegibility|geometricPrecision|inherit|initial|unset
font-language-override: normal; // normal | <string> "ENG"
font-optical-sizing: auto; // auto | none
font-style: normal; // normal | italic | oblique | initial | inherit

// font-variant: normal; // normal | small-caps | initial | inherit
font-variant-alternates: normal; // normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]
font-family: $font_stack_sans_serif;

font-smooth: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-language-override: normal;
font-optical-sizing: auto;
font-style: normal;

// font-variant: normal;
font-variant-alternates: normal;
font-variant-caps: normal; // normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps | initial | inherit | unset
font-variant-east-asian: normal; // normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]where <east-asian-variant-values> = [ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] <east-asian-width-values> = [ full-width | proportional-width ]
font-variant-emoji: text; // normal | text | emoji
font-variant-ligatures: normal; // normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]
font-variant-numeric: normal; // normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]
font-variant-position: normal; // normal | sub | super

font-variant-position: normal;
//font-variation-settings
font-kerning: normal; // auto, normal, none
font-feature-settings: none; // normal, feature-value
font-size-adjust: none; // number, none, initial, inherit
font-stretch: 100%; // ultra-condensed, extra-condensed, condensed, semi-condensed, normal, semi-expanded, expanded, extra-expanded, ultra-expanded, initial, inherit
font-kerning: normal;
font-feature-settings: none;
font-size-adjust: none;
// Consider using "normal" unless a specific stretch is needed
font-stretch: 100%;
// color: $color_02;
color: black;
background-color: none;
}

// @mixin font_default {
// font-family: $font_stack; // family-name | generic-family | initial | inherit
// font-style: normal; // normal | italic | oblique | initial | inherit
// // font-variant: normal; // normal | small-caps | initial | inherit
// font-variant-caps: normal; // normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps | initial | inherit | unset
// font-variant-alternates: normal; // normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]
// font-variant-ligatures: normal; // normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]
// font-variant-numeric: normal; // normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]
// font-variant-position: normal; // normal | sub | super
// font-variant-east-asian: normal; // normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]where <east-asian-variant-values> = [ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] <east-asian-width-values> = [ full-width | proportional-width ]
// //font-variation-settings
// font-kerning: normal; // auto, normal, none
// font-feature-settings: none; // normal, feature-value
// font-size-adjust: none; // number, none, initial, inherit
// font-stretch: normal; // ultra-condensed, extra-condensed, condensed, semi-condensed, normal, semi-expanded, expanded, extra-expanded, ultra-expanded, initial, inherit
// color: $color_02;
// background-color: none;
// }


html { @include font_default; }

Expand Down
4 changes: 2 additions & 2 deletions src/scss/type/font/_font_weight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ $font_weight_min: 22; // Minimum font weight
$font_weight_max: 188; // Maximum font weight

// Define Minimum and Maximum Font Widths
$font_weight_min: 300; // Minimum font width
$font_weight_max: 500; // Maximum font width
$font_width_min: 300; // Minimum font width
$font_width_max: 500; // Maximum font width

// Define Number of Steps
$font_weight_steps: 9; // Number of steps
Expand Down

0 comments on commit bb39545

Please sign in to comment.