Socket
Book a DemoInstallSign in
Socket

@terrahq/design-system

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@terrahq/design-system

This package is a small helper for building demos or small projects outside of our regular ecosystem.

latest
npmnpm
Version
0.0.9
Version published
Maintainers
6
Created
Source

@terrahq/design-system

This package is a small helper for building demos or small projects outside of our regular ecosystem.

You can include the following stylesheet in your project:

<link rel="stylesheet" href="https://unpkg.com/@terrahq/design-system@latest/dist/style.css">

Features

breakpoints names

desktop: 1700px;
laptop: 1570px;
tabletl: 1300px;
tabletm: 1024px;
tablets: 810px;
mobile: 580px;

colors

/* Core Colors */
$color-a: #0f0f0f;
$color-b: #fefefe;
$color-c: #f7f8f4;

/* Accent Color */
$color-d: #7ce55e;
$color-e: #2d9f66;
$color-f: #429ed6;
$color-g: #fdb335;
$color-h: #f76e4a;
$color-i: #f58dd7;



Foundation

  • Grid System:

    • Container: .f--container, .f--container--fluid, .f--container--tabletm-fluid
      • Examples: .f--container (max-width), .f--container--fluid (full-width)
    • Row: .f--row, .f--row--remove-gutter
      • Examples: .f--row (with gutter), .f--row--remove-gutter (no spacing)
    • Columns: .f--col-#{$i} (1 to 12) or .f--col-#{$size}-#{$i}
      • Examples: .f--col-6, .f--col-12, .f--col-desktop-8, .f--col-mobile-4
    • Offset: .f--offset-#{$i} (0 to 11) or .f--offset-#{$size}-#{$i}
      • Examples: .f--offset-2, .f--offset-desktop-3, .f--offset-mobile-1
  • Color: Terra Branded colors .f--color-#{letter}

    • Examples: .f--color-a, .f--color-d, .f--color-i
  • Background: Terra Brand Colors .f--bg-#{letter}

    • Examples: .f--bg-a, .f--bg-b, .f--bg-e
  • Section: .f--section-#{letter}

    • Examples: .f--section-a, .f--section-c, .f--section-f
  • Gap: .f--gap-#{letter}

    • Examples: .f--gap-a, .f--gap-b, .f--gap-d

Utilities

  • Align Items .u--align-items-#{$name} or .u--align-items-#{$breakpoint-name}-#{$name}
ValueClassCSS Property
baseline.u--align-items-baselinealign-items: baseline
flex-start.u--align-items-flex-startalign-items: flex-start
flex-end.u--align-items-flex-endalign-items: flex-end
center.u--align-items-centeralign-items: center

With breakpoints: .u--align-items-desktop-center, .u--align-items-mobile-flex-start, etc.

  • Display .u--display-#{$name} or .u--display-#{$breakpoint-name}-#{$name}
ValueClassCSS Property
block.u--display-blockdisplay: block
none.u--display-nonedisplay: none
inline-block.u--display-inline-blockdisplay: inline-block
inline.u--display-inlinedisplay: inline
flex.u--display-flexdisplay: flex
inline-flex.u--display-inline-flexdisplay: inline-flex

With breakpoints: .u--display-desktop-flex, .u--display-mobile-block, etc.

  • Flex-wrap .u--flex-wrap-#{$name} or .u--flex-wrap-#{$breakpoint-name}-#{$name}

    • Examples: .u--flex-wrap-wrap, .u--flex-wrap-nowrap, .u--flex-wrap-tablets-wrap
  • Font Style .u--font-style-#{$name} or .u--font-style-#{$breakpoint-name}-#{$name}

    • Examples: .u--font-style-italic, .u--font-style-normal, .u--font-style-mobile-italic
  • Font Weight .u--font-#{$name} or .u--font-#{$breakpoint-name}-#{$name}

ValueClassCSS Property
thin.u--font-thinfont-weight: 100
extralight.u--font-extralightfont-weight: 200
light.u--font-lightfont-weight: 300
regular.u--font-regularfont-weight: 400
medium.u--font-mediumfont-weight: 500
semibold.u--font-semiboldfont-weight: 600
bold.u--font-boldfont-weight: 700
extrabold.u--font-extraboldfont-weight: 800
black.u--font-blackfont-weight: 900

With breakpoints: .u--font-desktop-bold, .u--font-mobile-light, etc.

  • Justify Content .u--justify-content-#{$name} or .u--justify-content-#{$breakpoint-name}-#{$name}
ValueClassCSS Property
space-between.u--justify-content-space-betweenjustify-content: space-between
space-around.u--justify-content-space-aroundjustify-content: space-around
space-evenly.u--justify-content-space-evenlyjustify-content: space-evenly
flex-start.u--justify-content-flex-startjustify-content: flex-start
flex-end.u--justify-content-flex-endjustify-content: flex-end
center.u--justify-content-centerjustify-content: center

With breakpoints: .u--justify-content-desktop-center, .u--justify-content-mobile-flex-start, etc.

  • Overflow .u--overflow-#{$name} or .u--overflow-#{$breakpoint-name}-#{$name}

    • Examples: .u--overflow-hidden, .u--overflow-auto, .u--overflow-tablets-scroll
  • Position .u--position-#{$name} or .u--position-#{$breakpoint-name}-#{$name}

    • Examples: .u--position-relative, .u--position-absolute, .u--position-desktop-fixed
  • Aspect Ratio .u--ar-#{$name} or .u--ar-#{$breakpoint-name}-#{$name}

ValueClassCSS PropertyRatio
a.u--ar-aaspect-ratio: 1.7777777716:9
b.u--ar-baspect-ratio: 1.333333334:3
c.u--ar-caspect-ratio: 1.53:2
d.u--ar-daspect-ratio: 11:1
e.u--ar-easpect-ratio: 0.753:4
f.u--ar-faspect-ratio: 0.333333331:3

With breakpoints: .u--ar-desktop-a, .u--ar-mobile-d, etc.

  • Spacing .u--#{$attr-short}-#{$value} or .u--#{$attr-short}-#{$breakpoint-name}-#{$value}
PropertyPrefixValuesExample Classes
paddingp0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--p-2, .u--p-5
padding-toppt0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--pt-1, .u--pt-4
padding-rightpr0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--pr-2, .u--pr-8
padding-bottompb0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--pb-3, .u--pb-10
padding-leftpl0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--pl-1, .u--pl-15
marginm0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--m-2, .u--m-7
margin-topmt0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--mt-1, .u--mt-5
margin-rightmr0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--mr-3, .u--mr-8
margin-bottommb0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--mb-2, .u--mb-10
margin-leftml0, 1, 2, 3, 4, 5, 7, 8, 10, 15.u--ml-4, .u--ml-15

With breakpoints: .u--mb-desktop-2, .u--p-mobile-4, .u--mt-tablets-1, etc.

  • Text-align .u--text-align-#{$name} or .u--text-align-#{$breakpoint-name}-#{$name}
ValueClassCSS Property
left.u--text-align-lefttext-align: left
center.u--text-align-centertext-align: center
right.u--text-align-righttext-align: right
justify.u--text-align-justifytext-align: justify

With breakpoints: .u--text-align-desktop-center, .u--text-align-mobile-left, etc.


Note: This is not intended for use in ongoing projects.

FAQs

Package last updated on 02 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts