ids-foundation 1.0.0-beta.0 → 1.0.0
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 +103 -0
- package/package.json +1 -1
- package/theme-soho/core.scss +39 -37
- package/theme-soho/semantic-contrast.scss +162 -280
- package/theme-soho/semantic-dark.scss +170 -288
- package/theme-soho/semantic-light.scss +162 -280
- package/theme-terrazzo/core.scss +35 -33
package/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
Contains base tokens, font files and foundational assets for the Ids design system.
|
|
4
|
+
|
|
5
|
+
## Design Tokens
|
|
6
|
+
|
|
7
|
+
Design tokens are pieces of data that represent foundational styles in the design system. They simplify the way product teams interpret and apply the design language, resulting in more cohesive, scalable interfaces. Find more info in the [design system](https://design.infor.com/foundations/design-tokens/). This guide just covers how to use them in the context of this repo and things like exporting / consuming.
|
|
8
|
+
|
|
9
|
+
### Types
|
|
10
|
+
|
|
11
|
+
Tokens are categorized by whichever foundational style that’s applied.
|
|
12
|
+
|
|
13
|
+
| Token | |Example |Status |
|
|
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 |
|
|
23
|
+
|
|
24
|
+
### Mapped Components
|
|
25
|
+
|
|
26
|
+
Only Atoms are mapped presently in the code and only for spacing, radius, and color
|
|
27
|
+
|
|
28
|
+
- Avatar (Images)
|
|
29
|
+
- Buttons
|
|
30
|
+
- Badge
|
|
31
|
+
- Card
|
|
32
|
+
- Checkbox
|
|
33
|
+
- Image
|
|
34
|
+
- Input
|
|
35
|
+
- Stats
|
|
36
|
+
- Link
|
|
37
|
+
- Popup
|
|
38
|
+
- Progress Indicator
|
|
39
|
+
- Radios
|
|
40
|
+
- Separator
|
|
41
|
+
- Splitter
|
|
42
|
+
- Tab
|
|
43
|
+
- Tag
|
|
44
|
+
- Text Area
|
|
45
|
+
- Toast
|
|
46
|
+
- Tooltip
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Generating Tokens
|
|
50
|
+
|
|
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
|
|
59
|
+
|
|
60
|
+
## Designs with Tokens
|
|
61
|
+
|
|
62
|
+
Newest
|
|
63
|
+
https://www.figma.com/file/vZbJ659UdOMYr7pm86qT0r/Design-System%3A-V5?node-id=16%3A646&mode=dev
|
|
64
|
+
|
|
65
|
+
Older:
|
|
66
|
+
https://www.figma.com/file/7Fl52jRJUDVJawJB8IXQri/IDS-Variables-component-library?node-id=21%3A3517&mode=dev
|
|
67
|
+
|
|
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
|
|
70
|
+
|
|
71
|
+
## Generating Icons
|
|
72
|
+
|
|
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`
|
package/package.json
CHANGED
package/theme-soho/core.scss
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
// Border radii
|
|
3
|
+
--ids-border-radius-12: 12px;
|
|
3
4
|
--ids-border-radius-16: 16px;
|
|
5
|
+
--ids-border-radius-20: 20px;
|
|
4
6
|
--ids-border-radius-24: 24px;
|
|
5
7
|
--ids-border-radius-32: 32px;
|
|
6
8
|
--ids-border-radius-40: 40px;
|
|
7
9
|
--ids-border-radius-48: 48px;
|
|
8
|
-
--ids-border-radius-
|
|
10
|
+
--ids-border-radius-99: 99px;
|
|
9
11
|
--ids-border-radius-08: 8px;
|
|
10
12
|
--ids-border-radius-04: 4px;
|
|
11
13
|
--ids-border-radius-02: 2px;
|
|
12
|
-
--ids-border-radius-
|
|
13
|
-
|
|
14
|
-
--ids-border-width-02: 2px;
|
|
15
|
-
--ids-border-width-01: 1px;
|
|
16
|
-
--ids-border-width-none: 0px;
|
|
14
|
+
--ids-border-radius-01: 1px;
|
|
15
|
+
--ids-border-radius-00: 0px;
|
|
17
16
|
// Spacing
|
|
18
|
-
--ids-
|
|
19
|
-
--ids-
|
|
20
|
-
--ids-
|
|
21
|
-
--ids-
|
|
22
|
-
--ids-
|
|
23
|
-
--ids-
|
|
24
|
-
--ids-
|
|
25
|
-
--ids-
|
|
26
|
-
--ids-
|
|
27
|
-
--ids-
|
|
28
|
-
--ids-
|
|
29
|
-
--ids-
|
|
30
|
-
--ids-
|
|
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;
|
|
31
33
|
// Colors
|
|
32
34
|
--ids-color-yellow-10: #fde7df;
|
|
33
35
|
--ids-color-yellow-20: #f3daa1;
|
|
@@ -109,24 +111,24 @@
|
|
|
109
111
|
--ids-color-gray-80: #3b3b3f;
|
|
110
112
|
--ids-color-gray-90: #28282a;
|
|
111
113
|
--ids-color-gray-100: #161618;
|
|
112
|
-
--ids-color-black-10: rgba(0, 0, 0,
|
|
113
|
-
--ids-color-black-20: rgba(0, 0, 0,
|
|
114
|
-
--ids-color-black-30: rgba(0, 0, 0,
|
|
115
|
-
--ids-color-black-40: rgba(0, 0, 0,
|
|
116
|
-
--ids-color-black-50: rgba(0, 0, 0,
|
|
117
|
-
--ids-color-black-60: rgba(0, 0, 0,
|
|
118
|
-
--ids-color-black-70: rgba(0, 0, 0,
|
|
119
|
-
--ids-color-black-80: rgba(0, 0, 0,
|
|
120
|
-
--ids-color-black-90: rgba(0, 0, 0,
|
|
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);
|
|
121
123
|
--ids-color-black-100: #000000;
|
|
122
|
-
--ids-color-white-10: rgba(255, 255, 255,
|
|
123
|
-
--ids-color-white-20: rgba(255, 255, 255,
|
|
124
|
-
--ids-color-white-30: rgba(255, 255, 255,
|
|
125
|
-
--ids-color-white-40: rgba(255, 255, 255,
|
|
126
|
-
--ids-color-white-50: rgba(255, 255, 255,
|
|
127
|
-
--ids-color-white-60: rgba(255, 255, 255,
|
|
128
|
-
--ids-color-white-70: rgba(255, 255, 255,
|
|
129
|
-
--ids-color-white-80: rgba(255, 255, 255,
|
|
130
|
-
--ids-color-white-90: rgba(255, 255, 255,
|
|
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);
|
|
131
133
|
--ids-color-white-100: #ffffff;
|
|
132
134
|
}
|