-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathindex.ts
58 lines (50 loc) · 1.07 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import * as COLORS from '@table-library/react-table-library/common/colors';
import { zipThemes } from '@table-library/react-table-library/theme/index';
import { Theme } from '@table-library/react-table-library/types/theme';
const BASELINE_THEME = {
Table: '',
Header: '',
Body: '',
BaseRow: `
font-size: 16px;
`,
HeaderRow: `
color: ${COLORS.FONT_PRIMARY};
`,
Row: `
color: ${COLORS.FONT_SECONDARY};
&.disabled {
color: ${COLORS.FONT_DISABLED};
}
&:hover {
color: ${COLORS.FONT_PRIMARY};
}
&:not(:last-of-type) > .td {
border-bottom: 1px solid ${COLORS.BORDER};
}
`,
BaseCell: `
padding: 6px 12px;
`,
HeaderCell: `
font-weight: bold;
border-bottom: 1px solid ${COLORS.BORDER};
.resizer-handle {
background-color: ${COLORS.BORDER};
}
svg,
path {
fill: currentColor;
}
`,
Cell: `
&:focus {
outline: dotted;
outline-width: 1px;
outline-offset: -1px;
}
`,
};
export const getTheme = (): Theme => {
return zipThemes([BASELINE_THEME]);
};