Skip to content

CSS: base

* — The opt-in global reset: box-sizing, the page surface, base text colour and font, color-scheme, and link defaults.

Source: base.css

Usage

css
@import "@pantoken/components/base.css";

Examples

html
<html>
  <body>
    <a href="/">A styled link on the base surface.</a>
  </body>
</html>

Pseudo-elements

Pseudo-elementDescription
::afterIncluded in the universal box-sizing: border-box reset so its generated box sizes predictably.
::beforeIncluded in the universal box-sizing: border-box reset so its generated box sizes predictably.
::selectionTints highlighted text with a translucent primary navigation colour.

Tokens consumed

TokenTypeValue
--instui-color-background-page<color>LightDarklight-dark(#F2F4F5, #10141A)
--instui-color-text-base<color>LightDarklight-dark(#273540, #F2F4F5)
--instui-color-text-interactive-navigation-primary-base<color>LightDarklight-dark(#2369A4, #7FB4F1)
--instui-color-text-interactive-navigation-primary-hover<color>LightDarklight-dark(#1A5281, #ACCDF7)
--instui-component-text-content-font-size<length>1rem
--instui-component-text-content-line-height<percentage>150%
--instui-focus-outline-colorauto | <color>
--instui-focus-outline-color-dangerauto | <color>
--instui-focus-outline-color-inverseauto | <color>
--instui-focus-outline-color-startauto | <color>
--instui-focus-outline-color-successauto | <color>
--instui-focus-outline-inset
--instui-focus-outline-offset<length>
--instui-focus-outline-radius<length-percentage [0,∞]>{1,4} [ / <length-percentage [0,∞]>{1,4} ]?
--instui-focus-outline-styleauto | <outline-line-style>
--instui-focus-outline-transition
--instui-focus-outline-width<line-width>
--instui-font-family-base[ <font-family-name> | <generic-font-family> ]#Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif