ids-foundation 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -59
- package/fonts/OFL.txt +93 -0
- package/fonts/README.md +46 -0
- package/fonts/assistant-latin-ext-v19.woff2 +0 -0
- package/fonts/assistant-latin-v19.woff2 +0 -0
- package/fonts/assistant-v19.woff2 +0 -0
- package/fonts/font-face.css +2875 -0
- package/fonts/mada-latin-v19.woff2 +0 -0
- package/fonts/mada-v19.woff2 +0 -0
- package/fonts/noto-sans-jp-100-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-102-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-103-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-104-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-105-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-106-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-107-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-108-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-109-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-110-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-111-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-112-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-113-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-114-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-115-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-116-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-117-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-118-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-119-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-74-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-83-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-88-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-89-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-90-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-92-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-93-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-94-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-95-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-96-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-97-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-98-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-99-v52.woff2 +0 -0
- package/fonts/noto-sans-jp-latin-v52.woff2 +0 -0
- package/fonts/noto-sans-kr-107-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-108-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-109-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-110-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-111-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-112-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-113-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-114-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-115-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-116-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-117-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-118-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-119-v36.woff2 +0 -0
- package/fonts/noto-sans-kr-latin-v36.woff2 +0 -0
- package/fonts/noto-sans-latin-ext-v36.woff2 +0 -0
- package/fonts/noto-sans-latin-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-102-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-103-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-104-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-105-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-106-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-107-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-108-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-109-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-110-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-111-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-112-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-113-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-114-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-115-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-116-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-117-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-118-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-119-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-54-v36.woff2 +0 -0
- package/fonts/noto-sans-sc-latin-v36.woff2 +0 -0
- package/fonts/noto-sans-tc-101-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-102-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-104-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-105-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-106-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-107-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-108-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-109-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-110-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-111-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-112-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-113-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-114-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-115-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-116-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-117-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-118-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-119-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-28-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-53-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-68-v35.woff2 +0 -0
- package/fonts/noto-sans-tc-latin-v35.woff2 +0 -0
- package/fonts/noto-sans-v36.woff2 +0 -0
- package/fonts/sarabun-400-latin-v15.woff2 +0 -0
- package/fonts/sarabun-400-v15.woff2 +0 -0
- package/fonts/sarabun-600-latin-v15.woff2 +0 -0
- package/fonts/sarabun-600-v15.woff2 +0 -0
- package/fonts/source-sans-pro-cyrillic-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-cyrillic-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-cyrillic-600-v22.woff2 +0 -0
- package/fonts/source-sans-pro-cyrillic-ext-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-cyrillic-ext-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-cyrillic-ext-600-v22.woff2 +0 -0
- package/fonts/source-sans-pro-greek-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-greek-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-greek-600-v22.woff2 +0 -0
- package/fonts/source-sans-pro-greek-ext-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-greek-ext-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-greek-ext-600-v22.woff2 +0 -0
- package/fonts/source-sans-pro-latin-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-latin-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-latin-600-v22.woff2 +0 -0
- package/fonts/source-sans-pro-latin-ext-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-latin-ext-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-latin-ext-600-v22.woff2 +0 -0
- package/fonts/source-sans-pro-vietnamese-300-v22.woff2 +0 -0
- package/fonts/source-sans-pro-vietnamese-400-v22.woff2 +0 -0
- package/fonts/source-sans-pro-vietnamese-600-v22.woff2 +0 -0
- package/package.json +1 -1
- package/theme-soho/core.scss +134 -134
- package/theme-soho/semantic-contrast.scss +171 -176
- package/theme-soho/semantic-dark.scss +171 -176
- package/theme-soho/semantic-light.scss +171 -176
- package/theme-soho/theme-colors.scss +13 -13
- package/theme-terrazzo/core.scss +134 -134
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Overview
|
|
2
2
|
|
|
3
|
-
Contains base tokens, font files and foundational assets for
|
|
3
|
+
Contains base tokens, semantic tokens, font files and foundational assets for IDS.
|
|
4
4
|
|
|
5
5
|
## Design Tokens
|
|
6
6
|
|
|
@@ -8,22 +8,22 @@ Design tokens are pieces of data that represent foundational styles in the desig
|
|
|
8
8
|
|
|
9
9
|
### Types
|
|
10
10
|
|
|
11
|
-
Tokens are categorized by
|
|
11
|
+
Tokens are categorized by the foundational style that’s applied.
|
|
12
12
|
|
|
13
13
|
| Token | |Example |Status |
|
|
14
14
|
|-------------|-------------------------------|----------------|----------------|
|
|
15
|
-
|**color** |Defines fills for backgrounds, text, icons, and borders
|
|
16
|
-
|**radius** |Defines border radii for surfaced for backgrounds, text, icons, and borders
|
|
17
|
-
|**spacing** |Defines scalable padding and margin units for grids and layouts
|
|
18
|
-
|**font** |Defines typography attributes like font families, weights, sizes, and line height
|
|
19
|
-
|**border** |Defines stroke widths, styles, and radiuses
|
|
20
|
-
|**size** |Defines other reusable values for heights, widths, and breakpoints
|
|
21
|
-
|**shadow** |Defines box shadow properties like offsets, blur, and color
|
|
22
|
-
|**motion** |Defines animations during certain interaction states
|
|
15
|
+
|**color** |Defines fills for backgrounds, text, icons, and borders |`color-background-default`| Included |
|
|
16
|
+
|**radius** |Defines border radii for surfaced for backgrounds, text, icons, and borders |`border-radius-xs`| Included |
|
|
17
|
+
|**spacing** |Defines scalable padding and margin units for grids and layouts |`space-xl`| Included |
|
|
18
|
+
|**font** |Defines typography attributes like font families, weights, sizes, and line height |`font-size-label`| Future |
|
|
19
|
+
|**border** |Defines stroke widths, styles, and radiuses |`border-style-dashed`| Future |
|
|
20
|
+
|**size** |Defines other reusable values for heights, widths, and breakpoints |`size-70`| Future |
|
|
21
|
+
|**shadow** |Defines box shadow properties like offsets, blur, and color |`shadow-error`| Future |
|
|
22
|
+
|**motion** |Defines animations during certain interaction states |`motion-ease`| Future |
|
|
23
23
|
|
|
24
24
|
### Mapped Components
|
|
25
25
|
|
|
26
|
-
Only Atoms are mapped presently in the code and only for spacing, radius, and color
|
|
26
|
+
Only Atoms are mapped presently in the code and only for spacing, radius, and color.
|
|
27
27
|
|
|
28
28
|
- Avatar (Images)
|
|
29
29
|
- Buttons
|
|
@@ -45,59 +45,22 @@ Only Atoms are mapped presently in the code and only for spacing, radius, and co
|
|
|
45
45
|
- Toast
|
|
46
46
|
- Tooltip
|
|
47
47
|
|
|
48
|
+
### Using the Tokens
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
#### Code
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
2. On the Design tab on the right panel, click "Local Variables" to see the tokens
|
|
53
|
-
3. On the bottom of that panel Click "Variables Pro"
|
|
54
|
-
4. Click Export then check all collections
|
|
55
|
-
5. Click Export
|
|
56
|
-
6. Copy the JSON file to the tokens/theme-soho folder and call it figma-export-tokens.json (name used in the scripts)
|
|
57
|
-
7. Select all text and format the JSON
|
|
58
|
-
8. Run `node scripts/generate-tokens.mjs` and use output
|
|
52
|
+
Sass files for the tokens are provided as CSS variables. We may provide other formats as needed.
|
|
59
53
|
|
|
60
|
-
|
|
54
|
+
To use the components:
|
|
61
55
|
|
|
62
|
-
|
|
63
|
-
https://www.
|
|
56
|
+
1. Take the core and semantic tokens from [/ids-foundation](https://github.com/infor-design/ids-foundation/tree/main/tokens/theme-soho). View [component tokens](https://github.com/infor-design/enterprise-wc/tree/main/src/themes/default) in `@infor-design/enterprise-wc`.
|
|
57
|
+
2. Use the [npm package](https://www.npmjs.com/package/ids-foundation).
|
|
58
|
+
3. Or additionally note that the web component theme css files contain the tokens, so if you are using those you can just start using the tokens.
|
|
64
59
|
|
|
65
|
-
|
|
66
|
-
https://www.figma.com/file/7Fl52jRJUDVJawJB8IXQri/IDS-Variables-component-library?node-id=21%3A3517&mode=dev
|
|
60
|
+
#### Design
|
|
67
61
|
|
|
68
|
-
|
|
69
|
-
https://www.figma.com/file/43QPfoE7ke2uCTnfGxrsAr/Token-Anatomy-Figma?type=design&node-id=0-1&mode=design&t=G9qyYHHZl0qSlNhK-0
|
|
62
|
+
Semantic tokens can be manually applied in Figma by adding the [IDS Design Tokens](https://www.figma.com/design/7xMSXwCpK3eq4uGqkDDDav/IDS-Design-Tokens?m=auto&node-id=16%3A396&t=VDCzgpqVzBEcmjt5-1) library. Tokenized Figma components will available in the future.
|
|
70
63
|
|
|
71
|
-
|
|
64
|
+
### Using the System Fonts
|
|
72
65
|
|
|
73
|
-
|
|
74
|
-
2. Run Job `design-system-dry-run` as a dry run (as if releasing that)
|
|
75
|
-
3. Copy the zip from (example) https://infor-design-assets-downloads.s3.amazonaws.com/archives/dry-run-dist-4.16.2.zip
|
|
76
|
-
4. Take the theme-new/icons/default part and copy it to the icons standard folder
|
|
77
|
-
5. Take the theme-new/icons/old/empty part and copy it to the icons empty folder
|
|
78
|
-
|
|
79
|
-
## Icon Fonts
|
|
80
|
-
|
|
81
|
-
To generate the icon font:
|
|
82
|
-
|
|
83
|
-
1. export from https://www.figma.com/file/NYzUbtJYc4aFh9f4LKjiUN/IDS-System-Icons%3A-5.0?node-id=111%3A11855&mode=dev
|
|
84
|
-
2. import into https://icomoon.io then export from there.
|
|
85
|
-
3. Copy into icon-fonts/v5
|
|
86
|
-
4. Massage contents (files renamed / styles cleaned up / and only woff is used)
|
|
87
|
-
5. Add double back slash
|
|
88
|
-
|
|
89
|
-
Alternative formats:
|
|
90
|
-
|
|
91
|
-
```css
|
|
92
|
-
src: url('fonts/IDS-V5.eot?m5pnz1');
|
|
93
|
-
src: url('fonts/IDS-V5.eot?m5pnz1#iefix') format('embedded-opentype'),
|
|
94
|
-
url('fonts/IDS-V5.ttf?m5pnz1') format('truetype'),
|
|
95
|
-
url('fonts/IDS-V5.woff?m5pnz1') format('woff'),
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Publish Steps
|
|
99
|
-
|
|
100
|
-
- bump version (release.json and package.json)
|
|
101
|
-
- check change log
|
|
102
|
-
- `npm run build && npm run publish:npm:dry-run`
|
|
103
|
-
- then `npm run build && npm run publish:npm`
|
|
66
|
+
The system fonts are included in the `fonts` directory. They are used in the web components and can be used in your projects as well. See [./fonts](./fonts) for more information and readme. To get around GDPR issues we strongly recommend you serve this with your app.
|
package/fonts/OFL.txt
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2010-2020 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/fonts/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Using Source Sans Pro for Infor Design System
|
|
2
|
+
|
|
3
|
+
To read more about how to use Source Sans in IDS, see our [typography page](https://github.com/infor-design/enterprise/blob/main/src/components/typography/readme.md).
|
|
4
|
+
|
|
5
|
+
## Source Sans Pro
|
|
6
|
+
|
|
7
|
+
[Source Sans Pro](http://adobe-fonts.github.io/source-sans-pro/) is a set of OpenType fonts that have been designed to work well in user interface (UI) environments.
|
|
8
|
+
|
|
9
|
+
## Including Source Sans Pro in your Web App
|
|
10
|
+
|
|
11
|
+
It is no longer recommended to use `fonts.googleapis` to use the fonts because it can cause some issues:
|
|
12
|
+
|
|
13
|
+
a) because Google fonts violates [GDPR](https://www.cookieyes.com/documentation/google-fonts-and-gdpr/)
|
|
14
|
+
b) if application needs to run without an internet connection
|
|
15
|
+
c) because some countries google links may be banned
|
|
16
|
+
|
|
17
|
+
For this reason we recommend you serve the files with your application. All the needed fonts can be found in this folder
|
|
18
|
+
|
|
19
|
+
1. Serve all the `woff2` files in a folder on the server thats available to the app. These fonts can use caching if possible. Note that there are a lot of files because Source Sans is not available in some languages so alternatives are used as noted on [this page](https://github.com/infor-design/enterprise/blob/main/src/components/typography/_typography-new.scss#L6)
|
|
20
|
+
|
|
21
|
+
1. The OFL.txt is the license
|
|
22
|
+
1. The README.md is this file
|
|
23
|
+
1. Then include font-face.css in the page before the `theme-light-new.css` (or whatever soho css file)
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<link rel="stylesheet" id="font-face" href="/css/font-face.css" type="text/css" />
|
|
27
|
+
<link rel="stylesheet" id="sohoxi-stylesheet" href="{{basepath}}css/theme-new-light.css" type="text/css"/>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
If you just want to include the main font and no languages and dont care about the above. For example for testing ect you can use the CDN.
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600&display=swap" rel="stylesheet">
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Font installation instructions
|
|
37
|
+
|
|
38
|
+
Installing the font may be needed for some design tools to accurately reflect the font.
|
|
39
|
+
|
|
40
|
+
- [Mac OS X](http://support.apple.com/kb/HT2509) Mac users can install the OTF version by going into `/font/OTF/` and installing all variants into Font Book.
|
|
41
|
+
- [Windows](http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts)
|
|
42
|
+
- [Linux/Unix-based systems](https://github.com/adobe-fonts/source-code-pro/issues/17#issuecomment-8967116)
|
|
43
|
+
|
|
44
|
+
## Further information
|
|
45
|
+
|
|
46
|
+
For information about the design and background of Source Sans, please refer to the [official font readme file](http://www.adobe.com/products/type/font-information/source-sans-pro-readme.html).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|