@midas-ds/theme 0.5.33 → 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/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/index';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={white:"#ffffff",black:"#000000",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray130:"#5d5d5d",gray150:"#1f1f1f",red10:"#f7e9e7",red20:"#f1d4d1",red30:"#e9beba",red40:"#e2a8a4",red50:"#d9918e",red60:"#d37a7a",red70:"#cc6467",red80:"#c54c56",red90:"#be3345",red100:"#b90835",red130:"#8b1327",red150:"#641018",blue10:"#eaf2f6",blue20:"#d5e5ed",blue30:"#c0d7e4",blue40:"#abcbdb",blue50:"#94bcd1",blue60:"#82b0c9",blue70:"#6ca3c0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue130:"#25607f",blue150:"#143c50"},o={outline:"#303030",primaryBackground:e.blue150,primaryText:"#303030",primaryHover:e.blue130,primaryFocus:e.black,primaryActive:"#4289ae",secondaryBackground:e.gray130,secondaryText:e.white,secondaryHover:"#303030",secondaryActive:"#303030"},i={inputText:e.gray150},r={signalGreen10:"#d5f2d9",signalGreen100:"#008d3c",signalBlue10:e.blue10,signalBlue100:"#0066cc",signalYellow10:"#fff8e1",signalYellow100:"#f1c21b",signalRed10:"#ffdfdf",signalRed100:"#e62323",signalRed130:"#b31b1b",signalRed150:"#801313"},a={sRadius:" 0.125rem",mRadius:" 0.25rem"},t={xsWidth:" 0.0625rem",sWidth:" 0.125rem",mWidth:" 0.25rem"},d={lightWeight:"300",regularWeight:"400",mediumWeight:"500",semiBoldWeight:"600",boldWeight:"700",blackWeight:"900"},n={desktopSize:"1rem",mobileSize:"1rem",largeSize:"1.5rem",inputNormalSize:"0.875rem",inputMessageSize:"0.75rem",inputLabelSize:"1rem",inputDescriptionSize:"0.875rem"},s={logoPrimary:e.red100,logoSecondary:e.white,textPrimary:e.gray150,textSecondary:e.white,textTertiary:e.red100,link:e.blue130,linkVisited:"#663366",backgroundPrimary:e.white,backgroundSecondary:e.gray10,backgroundFooter1:e.red100,backgroundFooter2:e.red130,backgroundInfo:e.blue10,backgroundImportant:r.signalYellow10,borderPrimary:e.black,borderSecondary:e.gray60,borderFocusOuter:e.black,borderFocusInner:e.white,iconPrimary:e.black,iconInverted:e.white},c={slowTransition:"500ms",normalTransition:"300ms",fastTransition:"250ms"},l={smBreakpoint:"(max-width: 767px)",mdBreakpoint:"(min-width: 768px)",lgBreakpoint:"(min-width: 1200px)",xlBreakpoint:"(min-width: 1440px)"},b={forcedColorsMode:"(forced-colors: active)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},g={display:'"Inter", sans-serif'},u=Object.freeze(Object.defineProperty({__proto__:null,accessibility:b,baseColors:e,borderRadius:a,borderWidths:t,breakpoints:l,buttonColors:o,font:g,fontSizes:n,fontWeights:d,inputColor:i,midasColors:s,midasTransitions:c,signalColors:r},Symbol.toStringTag,{value:"Module"})),m={...u};exports.accessibility=b;exports.baseColors=e;exports.borderRadius=a;exports.borderWidths=t;exports.breakpoints=l;exports.buttonColors=o;exports.font=g;exports.fontSizes=n;exports.fontWeights=d;exports.inputColor=i;exports.midasColors=s;exports.midasTransitions=c;exports.signalColors=r;exports.theme=m;
package/index.mjs ADDED
@@ -0,0 +1,156 @@
1
+ const e = {
2
+ white: "#ffffff",
3
+ black: "#000000",
4
+ gray10: "#f2f2f2",
5
+ gray20: "#e6e6e6",
6
+ gray30: "#d9d9d9",
7
+ gray40: "#cccccc",
8
+ gray50: "#bfbfbf",
9
+ gray60: "#b3b3b3",
10
+ gray70: "#a6a6a6",
11
+ gray80: "#999999",
12
+ gray90: "#8c8c8c",
13
+ gray100: "#808080",
14
+ gray130: "#5d5d5d",
15
+ gray150: "#1f1f1f",
16
+ red10: "#f7e9e7",
17
+ red20: "#f1d4d1",
18
+ red30: "#e9beba",
19
+ red40: "#e2a8a4",
20
+ red50: "#d9918e",
21
+ red60: "#d37a7a",
22
+ red70: "#cc6467",
23
+ red80: "#c54c56",
24
+ red90: "#be3345",
25
+ red100: "#b90835",
26
+ red130: "#8b1327",
27
+ red150: "#641018",
28
+ blue10: "#eaf2f6",
29
+ blue20: "#d5e5ed",
30
+ blue30: "#c0d7e4",
31
+ blue40: "#abcbdb",
32
+ blue50: "#94bcd1",
33
+ blue60: "#82b0c9",
34
+ blue70: "#6ca3c0",
35
+ blue80: "#5897b8",
36
+ blue90: "#4289ad",
37
+ blue100: "#2e7ca5",
38
+ blue130: "#25607f",
39
+ blue150: "#143c50"
40
+ }, o = {
41
+ outline: "#303030",
42
+ primaryBackground: e.blue150,
43
+ primaryText: "#303030",
44
+ primaryHover: e.blue130,
45
+ primaryFocus: e.black,
46
+ primaryActive: "#4289ae",
47
+ secondaryBackground: e.gray130,
48
+ secondaryText: e.white,
49
+ secondaryHover: "#303030",
50
+ secondaryActive: "#303030"
51
+ }, a = {
52
+ inputText: e.gray150
53
+ }, r = {
54
+ signalGreen10: "#d5f2d9",
55
+ signalGreen100: "#008d3c",
56
+ signalBlue10: e.blue10,
57
+ signalBlue100: "#0066cc",
58
+ signalYellow10: "#fff8e1",
59
+ signalYellow100: "#f1c21b",
60
+ signalRed10: "#ffdfdf",
61
+ signalRed100: "#e62323",
62
+ signalRed130: "#b31b1b",
63
+ signalRed150: "#801313"
64
+ }, i = {
65
+ sRadius: " 0.125rem",
66
+ // 2px
67
+ mRadius: " 0.25rem"
68
+ // 4px
69
+ }, d = {
70
+ xsWidth: " 0.0625rem",
71
+ // 1px
72
+ sWidth: " 0.125rem",
73
+ // 2px
74
+ mWidth: " 0.25rem"
75
+ // 4px
76
+ }, t = {
77
+ lightWeight: "300",
78
+ regularWeight: "400",
79
+ mediumWeight: "500",
80
+ semiBoldWeight: "600",
81
+ boldWeight: "700",
82
+ blackWeight: "900"
83
+ }, n = {
84
+ desktopSize: "1rem",
85
+ mobileSize: "1rem",
86
+ largeSize: "1.5rem",
87
+ inputNormalSize: "0.875rem",
88
+ inputMessageSize: "0.75rem",
89
+ inputLabelSize: "1rem",
90
+ inputDescriptionSize: "0.875rem"
91
+ }, c = {
92
+ logoPrimary: e.red100,
93
+ logoSecondary: e.white,
94
+ textPrimary: e.gray150,
95
+ textSecondary: e.white,
96
+ textTertiary: e.red100,
97
+ link: e.blue130,
98
+ linkVisited: "#663366",
99
+ backgroundPrimary: e.white,
100
+ backgroundSecondary: e.gray10,
101
+ backgroundFooter1: e.red100,
102
+ backgroundFooter2: e.red130,
103
+ backgroundInfo: e.blue10,
104
+ backgroundImportant: r.signalYellow10,
105
+ borderPrimary: e.black,
106
+ borderSecondary: e.gray60,
107
+ borderFocusOuter: e.black,
108
+ borderFocusInner: e.white,
109
+ iconPrimary: e.black,
110
+ iconInverted: e.white
111
+ }, s = {
112
+ slowTransition: "500ms",
113
+ normalTransition: "300ms",
114
+ fastTransition: "250ms"
115
+ }, l = {
116
+ smBreakpoint: "(max-width: 767px)",
117
+ mdBreakpoint: "(min-width: 768px)",
118
+ lgBreakpoint: "(min-width: 1200px)",
119
+ xlBreakpoint: "(min-width: 1440px)"
120
+ }, b = {
121
+ forcedColorsMode: "(forced-colors: active)",
122
+ prefersReducedMotion: "(prefers-reduced-motion: reduced)"
123
+ }, g = {
124
+ display: '"Inter", sans-serif'
125
+ }, u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
126
+ __proto__: null,
127
+ accessibility: b,
128
+ baseColors: e,
129
+ borderRadius: i,
130
+ borderWidths: d,
131
+ breakpoints: l,
132
+ buttonColors: o,
133
+ font: g,
134
+ fontSizes: n,
135
+ fontWeights: t,
136
+ inputColor: a,
137
+ midasColors: c,
138
+ midasTransitions: s,
139
+ signalColors: r
140
+ }, Symbol.toStringTag, { value: "Module" })), m = { ...u };
141
+ export {
142
+ b as accessibility,
143
+ e as baseColors,
144
+ i as borderRadius,
145
+ d as borderWidths,
146
+ l as breakpoints,
147
+ o as buttonColors,
148
+ g as font,
149
+ n as fontSizes,
150
+ t as fontWeights,
151
+ a as inputColor,
152
+ c as midasColors,
153
+ s as midasTransitions,
154
+ r as signalColors,
155
+ m as theme
156
+ };
package/lib/index.d.ts ADDED
@@ -0,0 +1,135 @@
1
+ export * from './tokens';
2
+ export declare const theme: {
3
+ baseColors: {
4
+ white: string;
5
+ black: string;
6
+ gray10: string;
7
+ gray20: string;
8
+ gray30: string;
9
+ gray40: string;
10
+ gray50: string;
11
+ gray60: string;
12
+ gray70: string;
13
+ gray80: string;
14
+ gray90: string;
15
+ gray100: string;
16
+ gray130: string;
17
+ gray150: string;
18
+ red10: string;
19
+ red20: string;
20
+ red30: string;
21
+ red40: string;
22
+ red50: string;
23
+ red60: string;
24
+ red70: string;
25
+ red80: string;
26
+ red90: string;
27
+ red100: string;
28
+ red130: string;
29
+ red150: string;
30
+ blue10: string;
31
+ blue20: string;
32
+ blue30: string;
33
+ blue40: string;
34
+ blue50: string;
35
+ blue60: string;
36
+ blue70: string;
37
+ blue80: string;
38
+ blue90: string;
39
+ blue100: string;
40
+ blue130: string;
41
+ blue150: string;
42
+ };
43
+ buttonColors: {
44
+ outline: string;
45
+ primaryBackground: string;
46
+ primaryText: string;
47
+ primaryHover: string;
48
+ primaryFocus: string;
49
+ primaryActive: string;
50
+ secondaryBackground: string;
51
+ secondaryText: string;
52
+ secondaryHover: string;
53
+ secondaryActive: string;
54
+ };
55
+ inputColor: {
56
+ inputText: string;
57
+ };
58
+ signalColors: {
59
+ signalGreen10: string;
60
+ signalGreen100: string;
61
+ signalBlue10: string;
62
+ signalBlue100: string;
63
+ signalYellow10: string;
64
+ signalYellow100: string;
65
+ signalRed10: string;
66
+ signalRed100: string;
67
+ signalRed130: string;
68
+ signalRed150: string;
69
+ };
70
+ borderRadius: {
71
+ sRadius: string;
72
+ mRadius: string;
73
+ };
74
+ borderWidths: {
75
+ xsWidth: string;
76
+ sWidth: string;
77
+ mWidth: string;
78
+ };
79
+ fontWeights: {
80
+ lightWeight: string;
81
+ regularWeight: string;
82
+ mediumWeight: string;
83
+ semiBoldWeight: string;
84
+ boldWeight: string;
85
+ blackWeight: string;
86
+ };
87
+ fontSizes: {
88
+ desktopSize: string;
89
+ mobileSize: string;
90
+ largeSize: string;
91
+ inputNormalSize: string;
92
+ inputMessageSize: string;
93
+ inputLabelSize: string;
94
+ inputDescriptionSize: string;
95
+ };
96
+ midasColors: {
97
+ logoPrimary: string;
98
+ logoSecondary: string;
99
+ textPrimary: string;
100
+ textSecondary: string;
101
+ textTertiary: string;
102
+ link: string;
103
+ linkVisited: string;
104
+ backgroundPrimary: string;
105
+ backgroundSecondary: string;
106
+ backgroundFooter1: string;
107
+ backgroundFooter2: string;
108
+ backgroundInfo: string;
109
+ backgroundImportant: string;
110
+ borderPrimary: string;
111
+ borderSecondary: string;
112
+ borderFocusOuter: string;
113
+ borderFocusInner: string;
114
+ iconPrimary: string;
115
+ iconInverted: string;
116
+ };
117
+ midasTransitions: {
118
+ slowTransition: string;
119
+ normalTransition: string;
120
+ fastTransition: string;
121
+ };
122
+ breakpoints: {
123
+ smBreakpoint: string;
124
+ mdBreakpoint: string;
125
+ lgBreakpoint: string;
126
+ xlBreakpoint: string;
127
+ };
128
+ accessibility: {
129
+ forcedColorsMode: string;
130
+ prefersReducedMotion: string;
131
+ };
132
+ font: {
133
+ display: string;
134
+ };
135
+ };
@@ -0,0 +1,132 @@
1
+ export declare const baseColors: {
2
+ white: string;
3
+ black: string;
4
+ gray10: string;
5
+ gray20: string;
6
+ gray30: string;
7
+ gray40: string;
8
+ gray50: string;
9
+ gray60: string;
10
+ gray70: string;
11
+ gray80: string;
12
+ gray90: string;
13
+ gray100: string;
14
+ gray130: string;
15
+ gray150: string;
16
+ red10: string;
17
+ red20: string;
18
+ red30: string;
19
+ red40: string;
20
+ red50: string;
21
+ red60: string;
22
+ red70: string;
23
+ red80: string;
24
+ red90: string;
25
+ red100: string;
26
+ red130: string;
27
+ red150: string;
28
+ blue10: string;
29
+ blue20: string;
30
+ blue30: string;
31
+ blue40: string;
32
+ blue50: string;
33
+ blue60: string;
34
+ blue70: string;
35
+ blue80: string;
36
+ blue90: string;
37
+ blue100: string;
38
+ blue130: string;
39
+ blue150: string;
40
+ };
41
+ export declare const buttonColors: {
42
+ outline: string;
43
+ primaryBackground: string;
44
+ primaryText: string;
45
+ primaryHover: string;
46
+ primaryFocus: string;
47
+ primaryActive: string;
48
+ secondaryBackground: string;
49
+ secondaryText: string;
50
+ secondaryHover: string;
51
+ secondaryActive: string;
52
+ };
53
+ export declare const inputColor: {
54
+ inputText: string;
55
+ };
56
+ export declare const signalColors: {
57
+ signalGreen10: string;
58
+ signalGreen100: string;
59
+ signalBlue10: string;
60
+ signalBlue100: string;
61
+ signalYellow10: string;
62
+ signalYellow100: string;
63
+ signalRed10: string;
64
+ signalRed100: string;
65
+ signalRed130: string;
66
+ signalRed150: string;
67
+ };
68
+ export declare const borderRadius: {
69
+ sRadius: string;
70
+ mRadius: string;
71
+ };
72
+ export declare const borderWidths: {
73
+ xsWidth: string;
74
+ sWidth: string;
75
+ mWidth: string;
76
+ };
77
+ export declare const fontWeights: {
78
+ lightWeight: string;
79
+ regularWeight: string;
80
+ mediumWeight: string;
81
+ semiBoldWeight: string;
82
+ boldWeight: string;
83
+ blackWeight: string;
84
+ };
85
+ export declare const fontSizes: {
86
+ desktopSize: string;
87
+ mobileSize: string;
88
+ largeSize: string;
89
+ inputNormalSize: string;
90
+ inputMessageSize: string;
91
+ inputLabelSize: string;
92
+ inputDescriptionSize: string;
93
+ };
94
+ export declare const midasColors: {
95
+ logoPrimary: string;
96
+ logoSecondary: string;
97
+ textPrimary: string;
98
+ textSecondary: string;
99
+ textTertiary: string;
100
+ link: string;
101
+ linkVisited: string;
102
+ backgroundPrimary: string;
103
+ backgroundSecondary: string;
104
+ backgroundFooter1: string;
105
+ backgroundFooter2: string;
106
+ backgroundInfo: string;
107
+ backgroundImportant: string;
108
+ borderPrimary: string;
109
+ borderSecondary: string;
110
+ borderFocusOuter: string;
111
+ borderFocusInner: string;
112
+ iconPrimary: string;
113
+ iconInverted: string;
114
+ };
115
+ export declare const midasTransitions: {
116
+ slowTransition: string;
117
+ normalTransition: string;
118
+ fastTransition: string;
119
+ };
120
+ export declare const breakpoints: {
121
+ smBreakpoint: string;
122
+ mdBreakpoint: string;
123
+ lgBreakpoint: string;
124
+ xlBreakpoint: string;
125
+ };
126
+ export declare const accessibility: {
127
+ forcedColorsMode: string;
128
+ prefersReducedMotion: string;
129
+ };
130
+ export declare const font: {
131
+ display: string;
132
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midas-ds/theme",
3
- "version": "0.5.33",
3
+ "version": "1.0.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "style": "index.css",
@@ -13,6 +13,7 @@
13
13
  "./index.css": "./index.css"
14
14
  },
15
15
  "files": [
16
+ "**",
16
17
  "index.css"
17
18
  ],
18
19
  "gitHead": "660173f9a53a45cd053cc3ee2523dc3bcc65d9fa",