From 7e04b3737e616e2f807c2c4882d91d2a1fb4742f Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 6 Aug 2019 14:24:33 +0200 Subject: [PATCH] portal: refactor usage of font pages --- .../docs/quickguide-designer/font-families.js | 196 ------------------ .../docs/quickguide-designer/font-families.md | 188 ++++++++++++++++- .../docs/quickguide-designer/font-weights.js | 55 ----- .../docs/quickguide-designer/font-weights.md | 46 +++- 4 files changed, 230 insertions(+), 255 deletions(-) delete mode 100644 packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.js delete mode 100644 packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.js diff --git a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.js b/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.js deleted file mode 100644 index 5381c4053fe..00000000000 --- a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.js +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Font Family Syntax - */ - -import React from 'react' -import { H5 } from 'dnb-ui-lib/src/elements' - -const Syntax = () => ( - <> -
Fedra Sans Book
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -
Fedra Sans Book Italic
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -
Fedra Sans Medium
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -
Fedra Sans Medium Italic
-
-
-

- - Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the - cites of the word in classical literature, discovered the - undoubtable source. Lorem Ipsum comes from sections 1.10.32 and - 1.10.33 of "de Finibus Bonorum et Malorum" (The - Extremes of Good and Evil) by Cicero, written in 45 BC. - -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -
Fedra Sans Light
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -
Fedra Sans Light Italic
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -
This is the Fedra Sans Bold
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
-
Fedra Sans Bold Italic
-
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites - of the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good - and Evil) by Cicero, written in 45 BC. -

-
Here are some numbers:
-
-

- Lining: 123456789 -

-

- Old style: 123456789 -

-
-
-
- -) -export default Syntax diff --git a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.md b/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.md index 49fdc6faca6..57bca4a5828 100644 --- a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.md +++ b/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-families.md @@ -2,8 +2,192 @@ draft: true --- -import FontFamilies from 'Pages/quickguide-designer/font-families.js' +import { H2 } from 'dnb-ui-lib/src/elements' ## Font Families - +

Fedra Sans Book

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

Fedra Sans Book Italic

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

Fedra Sans Medium

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

Fedra Sans Medium Italic

+
+
+

+ + Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the + cites of the word in classical literature, discovered the + undoubtable source. Lorem Ipsum comes from sections 1.10.32 and + 1.10.33 of "de Finibus Bonorum et Malorum" (The + Extremes of Good and Evil) by Cicero, written in 45 BC. + +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

Fedra Sans Light

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

Fedra Sans Light Italic

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

This is the Fedra Sans Bold

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
+ +

Fedra Sans Bold Italic

+
+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites + of the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good + and Evil) by Cicero, written in 45 BC. +

+

Here are some numbers:

+
+

+ Lining: 123456789 +

+

+ Old style: 123456789 +

+
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.js b/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.js deleted file mode 100644 index 1a4d266baa9..00000000000 --- a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Font Family Syntax - */ - -import React from 'react' -import { H5 } from 'dnb-ui-lib/src/elements' - -const Syntax = () => ( - <> -
Body Book
-

- Achieved with classes:{' '} - .dnb-typo-book, .dnb-typo-demi, .dnb-typo-medium -

-

- NB! body text is automatically set to use 'book' weight so there is - no need to usw a class. -

-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites of - the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good and - Evil) by Cicero, written in 45 BC. -

-
- -
Body Demi
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites of - the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good and - Evil) by Cicero, written in 45 BC. -

-
- -
Body Medium
-
-

- Here is a paragraph with some nonsense lipsum text. Contrary to - popular belief, Lorem Ipsum passage, and going through the cites of - the word in classical literature, discovered the undoubtable - source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of - "de Finibus Bonorum et Malorum" (The Extremes of Good and - Evil) by Cicero, written in 45 BC. -

-
- -) -export default Syntax diff --git a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.md b/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.md index 4bccfde9df8..3996cc53c6c 100644 --- a/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.md +++ b/packages/dnb-design-system-portal/src/docs/quickguide-designer/font-weights.md @@ -2,8 +2,50 @@ draft: true --- -import FontWeights from 'Pages/quickguide-designer/font-weights.js' +import { H2 } from 'dnb-ui-lib/src/elements' ## Font Weights - +

Body Book

+

+ Achieved with classes:{' '} + .dnb-typo-book, .dnb-typo-demi, .dnb-typo-medium +

+

+ NB! body text is automatically set to use 'book' weight so there is + no need to usw a class. +

+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites of + the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good and + Evil) by Cicero, written in 45 BC. +

+
+ +

Body Demi

+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites of + the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good and + Evil) by Cicero, written in 45 BC. +

+
+ +

Body Medium

+
+

+ Here is a paragraph with some nonsense lipsum text. Contrary to + popular belief, Lorem Ipsum passage, and going through the cites of + the word in classical literature, discovered the undoubtable + source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of + "de Finibus Bonorum et Malorum" (The Extremes of Good and + Evil) by Cicero, written in 45 BC. +

+