@giv-igniteui/tokens 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/.eslintrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@giv-igniteui/eslint-config"
3
+ }
@@ -0,0 +1,18 @@
1
+
2
+ > @giv-igniteui/tokens@1.0.0 build
3
+ > tsup src/index.ts --format esm,cjs --dts
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.3.5
8
+ CLI Target: node16
9
+ ESM Build start
10
+ CJS Build start
11
+ ESM dist\index.mjs 1.34 KB
12
+ ESM ⚡️ Build success in 79ms
13
+ CJS dist\index.js 2.50 KB
14
+ CJS ⚡️ Build success in 79ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 2853ms
17
+ DTS dist\index.d.mts 1.28 KB
18
+ DTS dist\index.d.ts 1.28 KB
@@ -0,0 +1,79 @@
1
+ declare const colors: {
2
+ white: string;
3
+ black: string;
4
+ gray100: string;
5
+ gray200: string;
6
+ gray400: string;
7
+ gray500: string;
8
+ gray600: string;
9
+ gray700: string;
10
+ gray800: string;
11
+ gray900: string;
12
+ ignite300: string;
13
+ ignite500: string;
14
+ ignite700: string;
15
+ ignite900: string;
16
+ };
17
+
18
+ declare const space: {
19
+ 1: string;
20
+ 2: string;
21
+ 3: string;
22
+ 4: string;
23
+ 5: string;
24
+ 6: string;
25
+ 7: string;
26
+ 8: string;
27
+ 10: string;
28
+ 12: string;
29
+ 16: string;
30
+ 20: string;
31
+ 40: string;
32
+ 64: string;
33
+ 80: string;
34
+ };
35
+
36
+ declare const radii: {
37
+ px: string;
38
+ xs: string;
39
+ sm: string;
40
+ md: string;
41
+ lg: string;
42
+ full: string;
43
+ };
44
+
45
+ declare const fonts: {
46
+ default: string;
47
+ code: string;
48
+ };
49
+
50
+ declare const fontSizes: {
51
+ xxs: string;
52
+ xs: string;
53
+ sm: string;
54
+ md: string;
55
+ lg: string;
56
+ xl: string;
57
+ '2xl': string;
58
+ '4xl': string;
59
+ '5xl': string;
60
+ '6xl': string;
61
+ '7xl': string;
62
+ '8xl': string;
63
+ '9xl': string;
64
+ };
65
+
66
+ declare const fontWeights: {
67
+ regular: string;
68
+ medium: string;
69
+ bold: string;
70
+ };
71
+
72
+ declare const lineHeights: {
73
+ shorter: string;
74
+ short: string;
75
+ base: string;
76
+ tall: string;
77
+ };
78
+
79
+ export { colors, fontSizes, fontWeights, fonts, lineHeights, radii, space };
@@ -0,0 +1,79 @@
1
+ declare const colors: {
2
+ white: string;
3
+ black: string;
4
+ gray100: string;
5
+ gray200: string;
6
+ gray400: string;
7
+ gray500: string;
8
+ gray600: string;
9
+ gray700: string;
10
+ gray800: string;
11
+ gray900: string;
12
+ ignite300: string;
13
+ ignite500: string;
14
+ ignite700: string;
15
+ ignite900: string;
16
+ };
17
+
18
+ declare const space: {
19
+ 1: string;
20
+ 2: string;
21
+ 3: string;
22
+ 4: string;
23
+ 5: string;
24
+ 6: string;
25
+ 7: string;
26
+ 8: string;
27
+ 10: string;
28
+ 12: string;
29
+ 16: string;
30
+ 20: string;
31
+ 40: string;
32
+ 64: string;
33
+ 80: string;
34
+ };
35
+
36
+ declare const radii: {
37
+ px: string;
38
+ xs: string;
39
+ sm: string;
40
+ md: string;
41
+ lg: string;
42
+ full: string;
43
+ };
44
+
45
+ declare const fonts: {
46
+ default: string;
47
+ code: string;
48
+ };
49
+
50
+ declare const fontSizes: {
51
+ xxs: string;
52
+ xs: string;
53
+ sm: string;
54
+ md: string;
55
+ lg: string;
56
+ xl: string;
57
+ '2xl': string;
58
+ '4xl': string;
59
+ '5xl': string;
60
+ '6xl': string;
61
+ '7xl': string;
62
+ '8xl': string;
63
+ '9xl': string;
64
+ };
65
+
66
+ declare const fontWeights: {
67
+ regular: string;
68
+ medium: string;
69
+ bold: string;
70
+ };
71
+
72
+ declare const lineHeights: {
73
+ shorter: string;
74
+ short: string;
75
+ base: string;
76
+ tall: string;
77
+ };
78
+
79
+ export { colors, fontSizes, fontWeights, fonts, lineHeights, radii, space };
package/dist/index.js ADDED
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ colors: () => colors,
24
+ fontSizes: () => fontSizes,
25
+ fontWeights: () => fontWeights,
26
+ fonts: () => fonts,
27
+ lineHeights: () => lineHeights,
28
+ radii: () => radii,
29
+ space: () => space
30
+ });
31
+ module.exports = __toCommonJS(index_exports);
32
+
33
+ // src/colors.ts
34
+ var colors = {
35
+ white: "#FFF",
36
+ black: "#000",
37
+ gray100: "#E1E1E6",
38
+ gray200: "#A9A9B2",
39
+ gray400: "#7C7C8A",
40
+ gray500: "#505059",
41
+ gray600: "#323238",
42
+ gray700: "#29292E",
43
+ gray800: "#202024",
44
+ gray900: "#121214",
45
+ ignite300: "#00B37E",
46
+ ignite500: "#00875F",
47
+ ignite700: "#015F43",
48
+ ignite900: "#00291D"
49
+ };
50
+
51
+ // src/space.ts
52
+ var space = {
53
+ 1: "0.25rem",
54
+ 2: "0.5rem",
55
+ 3: "0.75rem",
56
+ 4: "1rem",
57
+ 5: "1.25rem",
58
+ 6: "1.5rem",
59
+ 7: "1.75rem",
60
+ 8: "2rem",
61
+ 10: "2.5rem",
62
+ 12: "3rem",
63
+ 16: "4rem",
64
+ 20: "5rem",
65
+ 40: "10rem",
66
+ 64: "16rem",
67
+ 80: "20rem"
68
+ };
69
+
70
+ // src/radii.ts
71
+ var radii = {
72
+ px: "1px",
73
+ xs: "4px",
74
+ sm: "6px",
75
+ md: "8px",
76
+ lg: "16px",
77
+ full: "99999px"
78
+ };
79
+
80
+ // src/fonts.ts
81
+ var fonts = {
82
+ default: "Roboto, sans-serif",
83
+ code: "monospace"
84
+ };
85
+
86
+ // src/font-sizes.ts
87
+ var fontSizes = {
88
+ xxs: "0.625rem",
89
+ xs: "0.75rem",
90
+ sm: "0.875rem",
91
+ md: "1rem",
92
+ lg: "1.125rem",
93
+ xl: "1.25rem",
94
+ "2xl": "1.5rem",
95
+ "4xl": "2rem",
96
+ "5xl": "2.25rem",
97
+ "6xl": "3rem",
98
+ "7xl": "4rem",
99
+ "8xl": "4.5rem",
100
+ "9xl": "6rem"
101
+ };
102
+
103
+ // src/font-weights.ts
104
+ var fontWeights = {
105
+ regular: "400",
106
+ medium: "500",
107
+ bold: "700"
108
+ };
109
+
110
+ // src/line-heights.ts
111
+ var lineHeights = {
112
+ shorter: "125%",
113
+ short: "140%",
114
+ base: "160%",
115
+ tall: "180%"
116
+ };
117
+ // Annotate the CommonJS export names for ESM import in node:
118
+ 0 && (module.exports = {
119
+ colors,
120
+ fontSizes,
121
+ fontWeights,
122
+ fonts,
123
+ lineHeights,
124
+ radii,
125
+ space
126
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,93 @@
1
+ // src/colors.ts
2
+ var colors = {
3
+ white: "#FFF",
4
+ black: "#000",
5
+ gray100: "#E1E1E6",
6
+ gray200: "#A9A9B2",
7
+ gray400: "#7C7C8A",
8
+ gray500: "#505059",
9
+ gray600: "#323238",
10
+ gray700: "#29292E",
11
+ gray800: "#202024",
12
+ gray900: "#121214",
13
+ ignite300: "#00B37E",
14
+ ignite500: "#00875F",
15
+ ignite700: "#015F43",
16
+ ignite900: "#00291D"
17
+ };
18
+
19
+ // src/space.ts
20
+ var space = {
21
+ 1: "0.25rem",
22
+ 2: "0.5rem",
23
+ 3: "0.75rem",
24
+ 4: "1rem",
25
+ 5: "1.25rem",
26
+ 6: "1.5rem",
27
+ 7: "1.75rem",
28
+ 8: "2rem",
29
+ 10: "2.5rem",
30
+ 12: "3rem",
31
+ 16: "4rem",
32
+ 20: "5rem",
33
+ 40: "10rem",
34
+ 64: "16rem",
35
+ 80: "20rem"
36
+ };
37
+
38
+ // src/radii.ts
39
+ var radii = {
40
+ px: "1px",
41
+ xs: "4px",
42
+ sm: "6px",
43
+ md: "8px",
44
+ lg: "16px",
45
+ full: "99999px"
46
+ };
47
+
48
+ // src/fonts.ts
49
+ var fonts = {
50
+ default: "Roboto, sans-serif",
51
+ code: "monospace"
52
+ };
53
+
54
+ // src/font-sizes.ts
55
+ var fontSizes = {
56
+ xxs: "0.625rem",
57
+ xs: "0.75rem",
58
+ sm: "0.875rem",
59
+ md: "1rem",
60
+ lg: "1.125rem",
61
+ xl: "1.25rem",
62
+ "2xl": "1.5rem",
63
+ "4xl": "2rem",
64
+ "5xl": "2.25rem",
65
+ "6xl": "3rem",
66
+ "7xl": "4rem",
67
+ "8xl": "4.5rem",
68
+ "9xl": "6rem"
69
+ };
70
+
71
+ // src/font-weights.ts
72
+ var fontWeights = {
73
+ regular: "400",
74
+ medium: "500",
75
+ bold: "700"
76
+ };
77
+
78
+ // src/line-heights.ts
79
+ var lineHeights = {
80
+ shorter: "125%",
81
+ short: "140%",
82
+ base: "160%",
83
+ tall: "180%"
84
+ };
85
+ export {
86
+ colors,
87
+ fontSizes,
88
+ fontWeights,
89
+ fonts,
90
+ lineHeights,
91
+ radii,
92
+ space
93
+ };
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@giv-igniteui/tokens",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup src/index.ts --format esm,cjs --dts",
10
+ "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
11
+ "lint": "eslint src/**/*.ts* --fix"
12
+ },
13
+ "keywords": [],
14
+ "author": "",
15
+ "license": "MIT",
16
+ "devDependencies": {
17
+ "@giv-igniteui/ts-config": "*",
18
+ "@giv-igniteui/eslint-config": "*",
19
+ "tsup": "^8.3.5",
20
+ "typescript": "^5.7.2"
21
+ }
22
+ }
package/src/colors.ts ADDED
@@ -0,0 +1,18 @@
1
+ export const colors = {
2
+ white: '#FFF',
3
+ black: '#000',
4
+
5
+ gray100: '#E1E1E6',
6
+ gray200: '#A9A9B2',
7
+ gray400: '#7C7C8A',
8
+ gray500: '#505059',
9
+ gray600: '#323238',
10
+ gray700: '#29292E',
11
+ gray800: '#202024',
12
+ gray900: '#121214',
13
+
14
+ ignite300: '#00B37E',
15
+ ignite500: '#00875F',
16
+ ignite700: '#015F43',
17
+ ignite900: '#00291D',
18
+ }
@@ -0,0 +1,15 @@
1
+ export const fontSizes = {
2
+ xxs: '0.625rem',
3
+ xs: '0.75rem',
4
+ sm: '0.875rem',
5
+ md: '1rem',
6
+ lg: '1.125rem',
7
+ xl: '1.25rem',
8
+ '2xl': '1.5rem',
9
+ '4xl': '2rem',
10
+ '5xl': '2.25rem',
11
+ '6xl': '3rem',
12
+ '7xl': '4rem',
13
+ '8xl': '4.5rem',
14
+ '9xl': '6rem',
15
+ }
@@ -0,0 +1,5 @@
1
+ export const fontWeights = {
2
+ regular: '400',
3
+ medium: '500',
4
+ bold: '700',
5
+ }
package/src/fonts.ts ADDED
@@ -0,0 +1,4 @@
1
+ export const fonts = {
2
+ default: 'Roboto, sans-serif',
3
+ code: 'monospace',
4
+ }
package/src/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ // index.ts avoid the need of adding a suffix (colors for example) when doing an import
2
+ // example: import {colors} from "@igniteui/tokens/colors"
3
+ export * from './colors'
4
+
5
+ export * from './space'
6
+ export * from './radii'
7
+
8
+ export * from './fonts'
9
+ export * from './font-sizes'
10
+ export * from './font-weights'
11
+ export * from './line-heights'
@@ -0,0 +1,6 @@
1
+ export const lineHeights = {
2
+ shorter: '125%',
3
+ short: '140%',
4
+ base: '160%',
5
+ tall: '180%',
6
+ }
package/src/radii.ts ADDED
@@ -0,0 +1,8 @@
1
+ export const radii = {
2
+ px: '1px',
3
+ xs: '4px',
4
+ sm: '6px',
5
+ md: '8px',
6
+ lg: '16px',
7
+ full: '99999px',
8
+ }
package/src/space.ts ADDED
@@ -0,0 +1,17 @@
1
+ export const space = {
2
+ 1: '0.25rem',
3
+ 2: '0.5rem',
4
+ 3: '0.75rem',
5
+ 4: '1rem',
6
+ 5: '1.25rem',
7
+ 6: '1.5rem',
8
+ 7: '1.75rem',
9
+ 8: '2rem',
10
+ 10: '2.5rem',
11
+ 12: '3rem',
12
+ 16: '4rem',
13
+ 20: '5rem',
14
+ 40: '10rem',
15
+ 64: '16rem',
16
+ 80: '20rem',
17
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "@giv-igniteui/ts-config/base.json",
3
+ "include": ["src"]
4
+ }