Skip to content

Base Styles

Base styles provide CSS reset and normalization across browsers, plus utility classes for box-sizing control.

Note: The base module is commented out in ustatic-index.scss by default. Import it separately: import 'ustatic-css/base' or uncomment the import in your SCSS.

The base module includes global style reset for:

  • *, ::before, ::afterbox-sizing: border-box, border reset
  • html — base typography: line-height: 1.5, system font stack
  • body — margin reset, overflow-y: hide
  • hr — correct height and color
  • Headings, paragraphs, lists — margin reset
  • Buttons — reset backgrounds and borders, inherit font
  • Form inputs — unified styling, reset appearance
  • Links — remove underline, color via token
  • Media — display: block, max-width: 100%
  • Tables — border-collapse: collapse
  • Scrollbar — custom thin scrollbar for WebKit
ClassCSS PropertyDescription
.box-borderbox-sizing: border-boxPadding and border included in width
.box-contentbox-sizing: content-boxWidth excludes padding and border

border-box
128px total

content-box
128px + padding + border

Окно терминала
npm install ustatic-css
# In your SCSS
@import 'ustatic-css/src/css/modules/base/index.scss';
# Or via CSS
@import 'ustatic-css/base';