@teammodlr/ui-kit 2.0.9 → 2.0.13

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.
@@ -76,7 +76,7 @@ export const header = style({
76
76
  justifyContent: "space-between",
77
77
  alignItems: "flex-start",
78
78
  padding: `${themeVars.space[4]} ${themeVars.space[4]} 0 ${themeVars.space[4]}`,
79
- flexShrink: "0"
79
+ flexShrink: "0",
80
80
  });
81
81
 
82
82
  export const title = style({
@@ -84,7 +84,8 @@ export const title = style({
84
84
  fontSize: `${themeVars.fontSize.xlarge}`,
85
85
  fontWeight: "500",
86
86
  display: "flex",
87
- alignItems: "center"
87
+ alignItems: "center",
88
+ color: themeVars.color.font.default
88
89
  });
89
90
 
90
91
  export const close = style([
@@ -102,10 +103,10 @@ export const close = style([
102
103
  borderRadius: themeVars.rounded.full,
103
104
  marginLeft: themeVars.space[2],
104
105
  ':hover': {
105
- backgroundColor: themeVars.color.gray[100]
106
+ backgroundColor: themeVars.color.gray[150],
106
107
  },
107
108
  ':focus': {
108
- backgroundColor: themeVars.color.gray[100]
109
+ backgroundColor: themeVars.color.gray[150]
109
110
  },
110
111
  '::before': {
111
112
  content: '""',
@@ -138,7 +139,8 @@ export const body = style({
138
139
  padding: `${themeVars.space[4]}`,
139
140
  display: "flex",
140
141
  flexDirection: "column",
141
- flexGrow: "1"
142
+ flexGrow: "1",
143
+ color: themeVars.color.font.text
142
144
  });
143
145
 
144
146
  export const footer = style({
@@ -27,7 +27,7 @@ export const hoverable = style({});
27
27
  export const striped = style({});
28
28
 
29
29
  globalStyle(`${striped} tbody tr:nth-child(even)`, {
30
- backgroundColor: themeVars.color.gray[50],
30
+ backgroundColor: themeVars.color.gray[100],
31
31
  });
32
32
 
33
33
  globalStyle(`${table} tbody:before`, {
@@ -41,8 +41,8 @@ globalStyle(`${table} th`, {
41
41
  height: vars.headerHeight,
42
42
  padding: vars.cellPadding,
43
43
  textAlign: "left",
44
- backgroundColor: themeVars.color.gray[100],
45
- color: themeVars.color.gray[600],
44
+ backgroundColor: themeVars.color.gray[200],
45
+ color: themeVars.color.gray[700],
46
46
  fontWeight: 500,
47
47
  fontSize: themeVars.fontSize.base,
48
48
  marginBottom: "5px"
@@ -77,5 +77,5 @@ globalStyle(`${table} td`, {
77
77
  });
78
78
 
79
79
  globalStyle(`${hoverable} tr:hover td`, {
80
- backgroundColor: themeVars.color.gray[50],
80
+ backgroundColor: themeVars.color.gray[150],
81
81
  });
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  // import './css/index.css';
2
2
  export * from './components';
3
3
  export * from './composables';
4
+ export * as theme from './styles/theme.css';
4
5
  export { default as createUI } from './create';
5
6
  export { default } from './install';
6
7
 
@@ -66,18 +66,25 @@ export const transitionsVariants = styleVariants(transitions, (transition) => ({
66
66
 
67
67
  export const themeVars = createGlobalTheme(':root', {
68
68
  color: {
69
+ font: {
70
+ default: '#1F2328',
71
+ muted: '#656d76',
72
+ subtle: '#6e7781',
73
+ text: '#24292f'
74
+ },
69
75
  gray: {
70
76
  50: 'hsl(0,0%,98%)',
71
- 100: 'hsl(0,0%,96.1%)',
72
- 150: 'hsl(0,0%,94.9%)',
73
- 200: 'hsl(0,0%,89.8%)',
74
- 300: 'hsl(0,0%,83.1%)',
75
- 400: 'hsl(0,0%,63.9%)',
76
- 500: 'hsl(0,0%,45.1%)',
77
- 600: 'hsl(0,0%,32.2%)',
78
- 700: 'hsl(0,0%,25.1%)',
79
- 800: 'hsl(0,0%,14.9%)',
80
- 900: 'hsl(0,0%,9%)',
77
+ 100: '#f6f8fa',
78
+ 150: '#f2f3f5',
79
+ 200: '#eaeef2',
80
+ 250: '#f3f4f6',
81
+ 300: '#d0d7de',
82
+ 400: '#afb8c1',
83
+ 500: '#8c959f',
84
+ 600: '#6e7781',
85
+ 700: '#57606a',
86
+ 800: '#424a53',
87
+ 900: '#32383f',
81
88
  },
82
89
  blue: {
83
90
  50: 'hsl(214,100%,96.9%)',
@@ -128,6 +135,19 @@ export const themeVars = createGlobalTheme(':root', {
128
135
  900: 'hsl(164,85.7%,16.5%)',
129
136
  },
130
137
  primary: 'hsl(217,91.2%,59.8%)',
138
+ saxe: {
139
+ 50: '#D0D4E9',
140
+ 100: '#C1C5E2',
141
+ 200: '#A1A8D3',
142
+ 300: '#828CC4',
143
+ 400: '#636FB6',
144
+ 500: '#4B57A0',
145
+ 600: '#3C4680',
146
+ 700: '#2E3561',
147
+ 800: '#1F2442',
148
+ 900: '#14172A',
149
+ 950: '#0E101E'
150
+ }
131
151
  },
132
152
  space: spaceScale,
133
153
  fontSize: fontSizeScale,
@@ -142,6 +162,7 @@ globalStyle("*", {
142
162
 
143
163
  globalStyle("html, body", {
144
164
  fontFamily: fonts.INTER.name,
165
+ color: themeVars.color.font.default
145
166
  });
146
167
 
147
168
  globalStyle("strong, h1, h2, h3, h4, h5, h6", {
@@ -2,4 +2,4 @@ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
2
 
3
3
  export type Color = 'white' | 'black' | 'blue' | 'green' | 'red' | 'yellow' | 'gray';
4
4
 
5
- export type Variant = 'default' | 'tertiary' | 'primary' | 'success' | 'warning' | 'error';
5
+ export type Variant = 'default' | 'tertiary' | 'primary' | 'dark' | 'success' | 'warning' | 'error';