ids-foundation 1.0.1 → 1.0.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Overview
2
2
 
3
- Contains base tokens, font files and foundational assets for the Ids design system.
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 whichever foundational style that’s applied.
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 |`$color-surface-secondary`| Included |
16
- |**radius** |Defines border radii for surfaced for backgrounds, text, icons, and borders |`$radius-02`| Included |
17
- |**spacing** |Defines scalable padding and margin units for grids and layouts |`$space-05`| 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 |
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
- ## Generating Tokens
50
+ #### Code
50
51
 
51
- 1. Open file https://www.figma.com/file/vZbJ659UdOMYr7pm86qT0r/Design-System%3A-V5?node-id=16%3A646
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
- ## Designs with Tokens
54
+ To use the components:
61
55
 
62
- Newest
63
- https://www.figma.com/file/vZbJ659UdOMYr7pm86qT0r/Design-System%3A-V5?node-id=16%3A646&mode=dev
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
- Older:
66
- https://www.figma.com/file/7Fl52jRJUDVJawJB8IXQri/IDS-Variables-component-library?node-id=21%3A3517&mode=dev
60
+ #### Design
67
61
 
68
- Anatomy Diagram Version:
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
- ## Generating Icons
64
+ ### Using the System Fonts
72
65
 
73
- 1. Go to https://pages.workers.design.infor.com/
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ids-foundation",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Base tokens, font files and foundational assets for IDS",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -1,134 +1,134 @@
1
- :root {
2
- // Border radii
3
- --ids-border-radius-12: 12px;
4
- --ids-border-radius-16: 16px;
5
- --ids-border-radius-20: 20px;
6
- --ids-border-radius-24: 24px;
7
- --ids-border-radius-32: 32px;
8
- --ids-border-radius-40: 40px;
9
- --ids-border-radius-48: 48px;
10
- --ids-border-radius-99: 99px;
11
- --ids-border-radius-08: 8px;
12
- --ids-border-radius-04: 4px;
13
- --ids-border-radius-02: 2px;
14
- --ids-border-radius-01: 1px;
15
- --ids-border-radius-00: 0px;
16
- // Spacing
17
- --ids-space-12: 12px;
18
- --ids-space-16: 16px;
19
- --ids-space-20: 20px;
20
- --ids-space-24: 24px;
21
- --ids-space-32: 32px;
22
- --ids-space-40: 40px;
23
- --ids-space-48: 48px;
24
- --ids-space-56: 56px;
25
- --ids-space-72: 72px;
26
- --ids-space-104: 104px;
27
- --ids-space-112: 112px;
28
- --ids-space-08: 8px;
29
- --ids-space-04: 4px;
30
- --ids-space-02: 2px;
31
- --ids-space-01: 1px;
32
- --ids-space-00: 0px;
33
- // Colors
34
- --ids-color-yellow-10: #fde7df;
35
- --ids-color-yellow-20: #f3daa1;
36
- --ids-color-yellow-30: #e5c366;
37
- --ids-color-yellow-40: #f4d151;
38
- --ids-color-yellow-50: #f6cf2b;
39
- --ids-color-yellow-60: #ffd100;
40
- --ids-color-yellow-70: #bb9c21;
41
- --ids-color-yellow-80: #8d6f00;
42
- --ids-color-yellow-90: #614900;
43
- --ids-color-yellow-100: #4b3700;
44
- --ids-color-teal-10: #ecf8f8;
45
- --ids-color-teal-20: #cfeeee;
46
- --ids-color-teal-30: #a8e1e1;
47
- --ids-color-teal-40: #82d4d4;
48
- --ids-color-teal-50: #5cc6c7;
49
- --ids-color-teal-60: #40bdbe;
50
- --ids-color-teal-70: #39a9aa;
51
- --ids-color-teal-80: #2f8d8e;
52
- --ids-color-teal-90: #297b7b;
53
- --ids-color-teal-100: #1f5e5e;
54
- --ids-color-purple-10: #f1ebfc;
55
- --ids-color-purple-20: #ddcbf7;
56
- --ids-color-purple-30: #c2a1f1;
57
- --ids-color-purple-40: #a876eb;
58
- --ids-color-purple-50: #8d4be5;
59
- --ids-color-purple-60: #7928e1;
60
- --ids-color-purple-70: #6c23c9;
61
- --ids-color-purple-80: #591da8;
62
- --ids-color-purple-90: #4e1a91;
63
- --ids-color-purple-100: #3b1470;
64
- --ids-color-orange-10: #fef2e5;
65
- --ids-color-orange-20: #fddfbd;
66
- --ids-color-orange-30: #fcc888;
67
- --ids-color-orange-40: #fbaf50;
68
- --ids-color-orange-50: #fa9601;
69
- --ids-color-orange-60: #f98300;
70
- --ids-color-orange-70: #df6f00;
71
- --ids-color-orange-80: #cd6200;
72
- --ids-color-orange-90: #bb5500;
73
- --ids-color-orange-100: #a14100;
74
- --ids-color-green-10: #ebf9f1;
75
- --ids-color-green-20: #cbefdc;
76
- --ids-color-green-30: #a1e4bf;
77
- --ids-color-green-40: #78d8a3;
78
- --ids-color-green-50: #4dcc86;
79
- --ids-color-green-60: #2ac371;
80
- --ids-color-green-70: #25af65;
81
- --ids-color-green-80: #1f9254;
82
- --ids-color-green-90: #1c7f49;
83
- --ids-color-green-100: #156138;
84
- --ids-color-red-10: #fbe7e8;
85
- --ids-color-red-20: #f5c3c4;
86
- --ids-color-red-30: #ee9496;
87
- --ids-color-red-40: #e66467;
88
- --ids-color-red-50: #df3539;
89
- --ids-color-red-60: #da1217;
90
- --ids-color-red-70: #c31014;
91
- --ids-color-red-80: #a30d11;
92
- --ids-color-red-90: #8d0b0e;
93
- --ids-color-red-100: #6c080b;
94
- --ids-color-blue-10: #e6f1fd;
95
- --ids-color-blue-20: #bedcfa;
96
- --ids-color-blue-30: #8abff7;
97
- --ids-color-blue-40: #55a3f3;
98
- --ids-color-blue-50: #1c86ef;
99
- --ids-color-blue-60: #0072ed;
100
- --ids-color-blue-70: #0066d4;
101
- --ids-color-blue-80: #0054b1;
102
- --ids-color-blue-90: #004a99;
103
- --ids-color-blue-100: #003876;
104
- --ids-color-gray-10: #f5f5f5;
105
- --ids-color-gray-20: #e0e0e1;
106
- --ids-color-gray-30: #c5c5c9;
107
- --ids-color-gray-40: #bbbbbf;
108
- --ids-color-gray-50: #8e8e95;
109
- --ids-color-gray-60: #6f6f76;
110
- --ids-color-gray-70: #525257;
111
- --ids-color-gray-80: #3b3b3f;
112
- --ids-color-gray-90: #28282a;
113
- --ids-color-gray-100: #161618;
114
- --ids-color-black-10: rgba(0, 0, 0, 0.1);
115
- --ids-color-black-20: rgba(0, 0, 0, 0.2);
116
- --ids-color-black-30: rgba(0, 0, 0, 0.3);
117
- --ids-color-black-40: rgba(0, 0, 0, 0.4);
118
- --ids-color-black-50: rgba(0, 0, 0, 0.5);
119
- --ids-color-black-60: rgba(0, 0, 0, 0.6);
120
- --ids-color-black-70: rgba(0, 0, 0, 0.7);
121
- --ids-color-black-80: rgba(0, 0, 0, 0.8);
122
- --ids-color-black-90: rgba(0, 0, 0, 0.9);
123
- --ids-color-black-100: #000000;
124
- --ids-color-white-10: rgba(255, 255, 255, 0.1);
125
- --ids-color-white-20: rgba(255, 255, 255, 0.2);
126
- --ids-color-white-30: rgba(255, 255, 255, 0.3);
127
- --ids-color-white-40: rgba(255, 255, 255, 0.4);
128
- --ids-color-white-50: rgba(255, 255, 255, 0.5);
129
- --ids-color-white-60: rgba(255, 255, 255, 0.6);
130
- --ids-color-white-70: rgba(255, 255, 255, 0.7);
131
- --ids-color-white-80: rgba(255, 255, 255, 0.8);
132
- --ids-color-white-90: rgba(255, 255, 255, 0.9);
133
- --ids-color-white-100: #ffffff;
134
- }
1
+ :root {
2
+ // Border radii
3
+ --ids-border-radius-12: 12px;
4
+ --ids-border-radius-16: 16px;
5
+ --ids-border-radius-20: 20px;
6
+ --ids-border-radius-24: 24px;
7
+ --ids-border-radius-32: 32px;
8
+ --ids-border-radius-40: 40px;
9
+ --ids-border-radius-48: 48px;
10
+ --ids-border-radius-99: 99px;
11
+ --ids-border-radius-08: 8px;
12
+ --ids-border-radius-04: 4px;
13
+ --ids-border-radius-02: 2px;
14
+ --ids-border-radius-01: 1px;
15
+ --ids-border-radius-00: 0px;
16
+ // Spacing
17
+ --ids-space-12: 12px;
18
+ --ids-space-16: 16px;
19
+ --ids-space-20: 20px;
20
+ --ids-space-24: 24px;
21
+ --ids-space-32: 32px;
22
+ --ids-space-40: 40px;
23
+ --ids-space-48: 48px;
24
+ --ids-space-56: 56px;
25
+ --ids-space-72: 72px;
26
+ --ids-space-104: 104px;
27
+ --ids-space-112: 112px;
28
+ --ids-space-08: 8px;
29
+ --ids-space-04: 4px;
30
+ --ids-space-02: 2px;
31
+ --ids-space-01: 1px;
32
+ --ids-space-00: 0px;
33
+ // Colors
34
+ --ids-color-yellow-10: #fde7df;
35
+ --ids-color-yellow-20: #f3daa1;
36
+ --ids-color-yellow-30: #e5c366;
37
+ --ids-color-yellow-40: #f4d151;
38
+ --ids-color-yellow-50: #f6cf2b;
39
+ --ids-color-yellow-60: #ffd100;
40
+ --ids-color-yellow-70: #bb9c21;
41
+ --ids-color-yellow-80: #8d6f00;
42
+ --ids-color-yellow-90: #614900;
43
+ --ids-color-yellow-100: #4b3700;
44
+ --ids-color-teal-10: #ecf8f8;
45
+ --ids-color-teal-20: #cfeeee;
46
+ --ids-color-teal-30: #a8e1e1;
47
+ --ids-color-teal-40: #82d4d4;
48
+ --ids-color-teal-50: #5cc6c7;
49
+ --ids-color-teal-60: #40bdbe;
50
+ --ids-color-teal-70: #39a9aa;
51
+ --ids-color-teal-80: #2f8d8e;
52
+ --ids-color-teal-90: #297b7b;
53
+ --ids-color-teal-100: #1f5e5e;
54
+ --ids-color-purple-10: #f1ebfc;
55
+ --ids-color-purple-20: #ddcbf7;
56
+ --ids-color-purple-30: #c2a1f1;
57
+ --ids-color-purple-40: #a876eb;
58
+ --ids-color-purple-50: #8d4be5;
59
+ --ids-color-purple-60: #7928e1;
60
+ --ids-color-purple-70: #6c23c9;
61
+ --ids-color-purple-80: #591da8;
62
+ --ids-color-purple-90: #4e1a91;
63
+ --ids-color-purple-100: #3b1470;
64
+ --ids-color-orange-10: #fef2e5;
65
+ --ids-color-orange-20: #fddfbd;
66
+ --ids-color-orange-30: #fcc888;
67
+ --ids-color-orange-40: #fbaf50;
68
+ --ids-color-orange-50: #fa9601;
69
+ --ids-color-orange-60: #f98300;
70
+ --ids-color-orange-70: #df6f00;
71
+ --ids-color-orange-80: #cd6200;
72
+ --ids-color-orange-90: #bb5500;
73
+ --ids-color-orange-100: #a14100;
74
+ --ids-color-green-10: #ebf9f1;
75
+ --ids-color-green-20: #cbefdc;
76
+ --ids-color-green-30: #a1e4bf;
77
+ --ids-color-green-40: #78d8a3;
78
+ --ids-color-green-50: #4dcc86;
79
+ --ids-color-green-60: #2ac371;
80
+ --ids-color-green-70: #25af65;
81
+ --ids-color-green-80: #1f9254;
82
+ --ids-color-green-90: #1c7f49;
83
+ --ids-color-green-100: #156138;
84
+ --ids-color-red-10: #fbe7e8;
85
+ --ids-color-red-20: #f5c3c4;
86
+ --ids-color-red-30: #ee9496;
87
+ --ids-color-red-40: #e66467;
88
+ --ids-color-red-50: #df3539;
89
+ --ids-color-red-60: #da1217;
90
+ --ids-color-red-70: #c31014;
91
+ --ids-color-red-80: #a30d11;
92
+ --ids-color-red-90: #8d0b0e;
93
+ --ids-color-red-100: #6c080b;
94
+ --ids-color-blue-10: #e6f1fd;
95
+ --ids-color-blue-20: #bedcfa;
96
+ --ids-color-blue-30: #8abff7;
97
+ --ids-color-blue-40: #55a3f3;
98
+ --ids-color-blue-50: #1c86ef;
99
+ --ids-color-blue-60: #0072ed;
100
+ --ids-color-blue-70: #0066d4;
101
+ --ids-color-blue-80: #0054b1;
102
+ --ids-color-blue-90: #004a99;
103
+ --ids-color-blue-100: #003876;
104
+ --ids-color-gray-10: #f5f5f5;
105
+ --ids-color-gray-20: #e0e0e1;
106
+ --ids-color-gray-30: #c5c5c9;
107
+ --ids-color-gray-40: #bbbbbf;
108
+ --ids-color-gray-50: #8e8e95;
109
+ --ids-color-gray-60: #6f6f76;
110
+ --ids-color-gray-70: #525257;
111
+ --ids-color-gray-80: #3b3b3f;
112
+ --ids-color-gray-90: #28282a;
113
+ --ids-color-gray-100: #161618;
114
+ --ids-color-black-10: rgba(0, 0, 0, 0.1);
115
+ --ids-color-black-20: rgba(0, 0, 0, 0.2);
116
+ --ids-color-black-30: rgba(0, 0, 0, 0.3);
117
+ --ids-color-black-40: rgba(0, 0, 0, 0.4);
118
+ --ids-color-black-50: rgba(0, 0, 0, 0.5);
119
+ --ids-color-black-60: rgba(0, 0, 0, 0.6);
120
+ --ids-color-black-70: rgba(0, 0, 0, 0.7);
121
+ --ids-color-black-80: rgba(0, 0, 0, 0.8);
122
+ --ids-color-black-90: rgba(0, 0, 0, 0.9);
123
+ --ids-color-black-100: #000000;
124
+ --ids-color-white-10: rgba(255, 255, 255, 0.1);
125
+ --ids-color-white-20: rgba(255, 255, 255, 0.2);
126
+ --ids-color-white-30: rgba(255, 255, 255, 0.3);
127
+ --ids-color-white-40: rgba(255, 255, 255, 0.4);
128
+ --ids-color-white-50: rgba(255, 255, 255, 0.5);
129
+ --ids-color-white-60: rgba(255, 255, 255, 0.6);
130
+ --ids-color-white-70: rgba(255, 255, 255, 0.7);
131
+ --ids-color-white-80: rgba(255, 255, 255, 0.8);
132
+ --ids-color-white-90: rgba(255, 255, 255, 0.9);
133
+ --ids-color-white-100: #ffffff;
134
+ }