diff --git a/packages/ui-toolkit/src/grids/Baseline.md b/packages/ui-toolkit/src/grids/Baseline.md deleted file mode 100644 index 2211de4b..00000000 --- a/packages/ui-toolkit/src/grids/Baseline.md +++ /dev/null @@ -1,13 +0,0 @@ -### Baseline & Spacing - -Most of the horizontal spacing between different elements and components is derived from 6 px. For example, the most common horizontal distance between elements of a component or components is 18 px. Another, less frequent, measurement is 12 px. The choice between 6, 12 or 18 px is based on visual and functional proximity of objects. - -```jsx noeditor -const baseline = require('./baseline.svg'); - - -``` diff --git a/packages/ui-toolkit/src/grids/Readme.md b/packages/ui-toolkit/src/grids/Readme.md index f4fa968a..8eb55a8f 100644 --- a/packages/ui-toolkit/src/grids/Readme.md +++ b/packages/ui-toolkit/src/grids/Readme.md @@ -33,3 +33,17 @@ const small = require('./small.svg'); marginBottom: 40 }} src={small} /> ``` + +### Baseline & Spacing + +Most of the horizontal spacing between different elements and components is derived from 6 px. For example, the most common horizontal distance between elements of a component or components is 18 px. Another, less frequent, measurement is 12 px. The choice between 6, 12 or 18 px is based on visual and functional proximity of objects. + +```jsx noeditor +const baseline = require('./baseline.svg'); + + +``` diff --git a/packages/ui-toolkit/src/grids/inline-example.svg b/packages/ui-toolkit/src/grids/inline-example.svg new file mode 100644 index 00000000..a0db7540 --- /dev/null +++ b/packages/ui-toolkit/src/grids/inline-example.svg @@ -0,0 +1,89 @@ + diff --git a/packages/ui-toolkit/src/grids/inline.svg b/packages/ui-toolkit/src/grids/inline.svg new file mode 100644 index 00000000..0d950869 --- /dev/null +++ b/packages/ui-toolkit/src/grids/inline.svg @@ -0,0 +1,20 @@ + diff --git a/packages/ui-toolkit/src/grids/inset-example.svg b/packages/ui-toolkit/src/grids/inset-example.svg new file mode 100644 index 00000000..e6c7d9ba --- /dev/null +++ b/packages/ui-toolkit/src/grids/inset-example.svg @@ -0,0 +1,168 @@ + diff --git a/packages/ui-toolkit/src/grids/inset.svg b/packages/ui-toolkit/src/grids/inset.svg new file mode 100644 index 00000000..43ad179d --- /dev/null +++ b/packages/ui-toolkit/src/grids/inset.svg @@ -0,0 +1,74 @@ + diff --git a/packages/ui-toolkit/src/grids/spacing.svg b/packages/ui-toolkit/src/grids/spacing.svg new file mode 100644 index 00000000..496ade33 --- /dev/null +++ b/packages/ui-toolkit/src/grids/spacing.svg @@ -0,0 +1,14 @@ + diff --git a/packages/ui-toolkit/src/grids/squish-inset-example.svg b/packages/ui-toolkit/src/grids/squish-inset-example.svg new file mode 100644 index 00000000..d1ba06e2 --- /dev/null +++ b/packages/ui-toolkit/src/grids/squish-inset-example.svg @@ -0,0 +1,416 @@ + diff --git a/packages/ui-toolkit/src/grids/squish-inset.svg b/packages/ui-toolkit/src/grids/squish-inset.svg new file mode 100644 index 00000000..83e68171 --- /dev/null +++ b/packages/ui-toolkit/src/grids/squish-inset.svg @@ -0,0 +1,90 @@ + diff --git a/packages/ui-toolkit/src/grids/stack-example.svg b/packages/ui-toolkit/src/grids/stack-example.svg new file mode 100644 index 00000000..d77b8bdb --- /dev/null +++ b/packages/ui-toolkit/src/grids/stack-example.svg @@ -0,0 +1,103 @@ + diff --git a/packages/ui-toolkit/src/grids/stack.svg b/packages/ui-toolkit/src/grids/stack.svg new file mode 100644 index 00000000..18ab1073 --- /dev/null +++ b/packages/ui-toolkit/src/grids/stack.svg @@ -0,0 +1,24 @@ + diff --git a/packages/ui-toolkit/src/grids/vertical.md b/packages/ui-toolkit/src/grids/vertical.md new file mode 100644 index 00000000..7054e8ff --- /dev/null +++ b/packages/ui-toolkit/src/grids/vertical.md @@ -0,0 +1,121 @@ +### Spacing + +In order to mainitain visual consistency and to make building as painless as possible, Triton employs a series of pre-defined spacing values and a variety of ways to implement those values. + +### Spacing values + +When defining the space necessary between and within components, alway use one of these pre-defined values. By using only 5 preset values, we can minimize inconsistency and ensure meaningful use of whitespace. + +```jsx noeditor +const spacing = require('./spacing.svg'); + + +``` + +### Stack - Vertical spacing + +Stack, or the vertical spacing between elements, uses all of the values provided above and is the most common form of spacing used in Triton. Stack is used to seperate components from one another, but is not used for internal padding of cards. + +```jsx noeditor +const stack = require('./stack.svg'); + + +``` + +