diff --git a/apps/booking-app/pages/design-tokens.js b/apps/booking-app/pages/design-tokens.js new file mode 100644 index 0000000..a74e853 --- /dev/null +++ b/apps/booking-app/pages/design-tokens.js @@ -0,0 +1,623 @@ +import styles from '../styles/Home.module.scss'; + +export default function DesignSystem() { + return ( +
The design tokens for this projects are the next ones:
+main-color-400
+ main-color-500
+ main-color-900
+ neutral-color-100
+ neutral-color-400
+ neutral-color-600
+ neutral-color-000
+ gradient-main
+
+
+ linear-gradient(180deg, var(--main-color-400) 0%, hsla(0, 0%, 77%,
+ 0) 100%)
+
+
+ All those typografy sizes were chosen with the method of{' '} + fluid typography, which decides a font size depending + of the screen's width, making the font size fully responsive. It was + designed using{' '} + + this fluid typography calculator. + +
+fs-300
+fs-400
+fs-500
+fs-700
+fs-800
++ Spaces are used for magins and paddings, the values in px are used for + Design system are those: +
+Token | +Value (in px) | +
---|---|
1 | +4 | +
2 | +8 | +
3 | +12 | +
4 | +16 | +
5 | +20 | +
6 | +24 | +
7 | +32 | +
8 | +40 | +
9 | +64 | +
10 | +100 | +
+ According to design, there is only one border radius in this project +
+ +br-normal
+ 32px
+box-shadow
+ 32px
+The utility classes generated with those design tokens are those:
+background-color: var(--main-color-400)
+ background-color: var(--main-color-500)
+ background-color: var(--main-color-900)
+ background-color: var(--main-neutral-100)
+ background-color: var(--main-neutral-400)
+ background-color: var(--main-neutral-600)
+ background-color: var(--main-neutral-900)
+ color: var(--main-color-400)
+ color: var(--main-color-500)
+ color: var(--main-color-900)
+ color: var(--main-neutral-100)
+ color: var(--main-neutral-400)
+ color: var(--main-neutral-600)
+ color: var(--main-neutral-900)
+ border-color: var(--main-color-400)
+ border-color: var(--main-color-500)
+ border-color: var(--main-color-900)
+ border-color: var(--main-neutral-100)
+ border-color: var(--main-neutral-400)
+ border-color: var(--main-neutral-600)
+ border-color: var(--main-neutral-900)
+
+ background: linear-gradient(180deg, var(--main-color-400) 0%,
+ hsla(0, 0%, 77%, 0) 100%)
+
+ font-size: var(--fs-300)
+ font-size: var(--fs-400)
+ font-size: var(--fs-500)
+ font-size: var(--fs-700)
+ font-size: var(--fs-800)
+ + The prefixes for the classes that uses the spacing design tokens are: +
+Prefix | +CSS properties | +
---|---|
+ p-
+ |
+
+ padding + |
+
+ pt-
+ |
+
+ padding-top + |
+
+ pb-
+ |
+
+ padding-bottom + |
+
+ pr-
+ |
+
+ padding-right + |
+
+ pl-
+ |
+
+ padding-left + |
+
+ px-
+ |
+
+ padding-left +padding-right + |
+
+ py-
+ |
+
+ padding-top +padding-bottom + |
+
+ m-
+ |
+
+ margin + |
+
+ mt-
+ |
+
+ margin-top + |
+
+ mb-
+ |
+
+ margin-bottom + |
+
+ mr-
+ |
+
+ margin-right + |
+
+ ml-
+ |
+
+ margin-left + |
+
+ mx-
+ |
+
+ margin-left +margin-right + |
+
+ my-
+ |
+
+ margin-top +margin-bottom + |
+
+ To create a class with those prefixes, you just add the prefix
+ followed by the design token name: for example px-4
will
+ add a padding-left
and padding-right
of
+ 16px. Remember you can check the spacing design tokens in{' '}
+ spacing section
+