Skip to content

Base Styles ​

Applies common base styles for HTML elements. This includes root font settings, colors, line heights, spacing, default display rules for semantic elements, form input styles, code blocks, tables, lists, and interactive elements like links. It ensures a consistent foundation across your UI.

Signature:

scss
@mixin use-base();

Example:

scss
@include termeh.use-base();

Module:

This module is registered as base in the presented modules.

Dependencies

Base module uses the following Termeh global var():

ComponentTypeUsageDefault
base → colorColorDocument background colorwhite
base → foregroundColorDefault text colorblack
base → sectionColorBackground color for <blockquote>, <code>, and <pre>null
base → separatorColorColor for <hr> and list decoratorsnull
font → familyListDefault font familynull
font → sizeNumberDefault font size12px
font → weightStringDefault font weightnormal
mono → familyList<code> and <pre> font familynull
mono → sizeNumber<code> and <pre> font sizenull
mono → weightString<code> and <pre> font weightnull
strong → foregroundColor<strong> and <th> text colornull
strong → weightString<strong> and <th> font weightbold
gap → microNumberSpacing between list items8px
gap → macroNumberSpacing between blocks1.6em
base → directionStringDocument text directionltr
base → min-widthNumberDocument minimum width300px
line-height → normalNumberDefault line height1.6em
radius → normalNumber<blockquote> border radiusnull

Base module uses the following Termeh color() and variant():

Color / VariantUsageDefault
primarySelection background, scrollbar, and input accent colorerror
primary → readableLink colornull
primary → foregroundSelection text colornull

Base module uses the following Termeh size():

SizeUsageDefault
small<small> font sizeerror