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();
Dependencies

Base module uses the following Termeh global var():

ComponentTypeUsageDefault
basecolorColorDocument background colorwhite
baseforegroundColorDefault text colorblack
basesectionColorBackground color for <blockquote>, <code>, and <pre>null
baseseparatorColorColor for <hr> and list decoratorsnull
fontfamilyListDefault font familynull
fontsizeNumberDefault font size12px
fontweightStringDefault font weightnormal
monofamilyList<code> and <pre> font familynull
monosizeNumber<code> and <pre> font sizenull
monoweightString<code> and <pre> font weightnull
strongforegroundColor<strong> and <th> text colornull
strongweightString<strong> and <th> font weightbold
gapmicroNumberSpacing between list items8px
gapmacroNumberSpacing between blocks1.6em
basedirectionStringDocument text directionltr
basemin-widthNumberDocument minimum width300px
line-heightnormalNumberDefault line height1.6em
radiusnormalNumber<blockquote> border radiusnull

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

Color / VariantUsageDefault
primarySelection background, scrollbar, and input accent colorerror
primaryreadableLink colornull
primaryforegroundSelection text colornull

Base module uses the following Termeh size():

SizeUsageDefault
small<small> font sizeerror