@marigold/system 0.2.0 → 0.3.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/dist/Box.d.ts +14 -0
  3. package/dist/Global.d.ts +2 -0
  4. package/dist/SVG.d.ts +6 -0
  5. package/dist/index.d.ts +6 -4
  6. package/dist/normalize.d.ts +101 -67
  7. package/dist/system.cjs.development.js +299 -294
  8. package/dist/system.cjs.development.js.map +1 -1
  9. package/dist/system.cjs.production.min.js +1 -1
  10. package/dist/system.cjs.production.min.js.map +1 -1
  11. package/dist/system.esm.js +291 -289
  12. package/dist/system.esm.js.map +1 -1
  13. package/dist/theme.d.ts +136 -0
  14. package/dist/types.d.ts +1 -2
  15. package/dist/useTheme.d.ts +11 -5
  16. package/dist/variant.d.ts +29 -0
  17. package/package.json +4 -5
  18. package/src/Box.test.tsx +308 -0
  19. package/src/Box.tsx +199 -0
  20. package/src/Colors.stories.mdx +332 -456
  21. package/src/Global.test.tsx +57 -0
  22. package/src/Global.tsx +34 -0
  23. package/src/SVG.stories.mdx +55 -0
  24. package/src/SVG.test.tsx +82 -0
  25. package/src/SVG.tsx +24 -0
  26. package/src/index.ts +6 -4
  27. package/src/normalize.test.tsx +9 -36
  28. package/src/normalize.ts +51 -82
  29. package/src/theme.ts +157 -0
  30. package/src/types.ts +0 -2
  31. package/src/useTheme.test.tsx +22 -14
  32. package/src/useTheme.tsx +37 -9
  33. package/src/variant.test.ts +93 -0
  34. package/src/variant.ts +54 -0
  35. package/dist/Element.d.ts +0 -8
  36. package/dist/cache.d.ts +0 -4
  37. package/dist/reset.d.ts +0 -24
  38. package/dist/useClassname.d.ts +0 -2
  39. package/dist/useStyles.d.ts +0 -15
  40. package/src/Element.test.tsx +0 -203
  41. package/src/Element.tsx +0 -59
  42. package/src/cache.ts +0 -4
  43. package/src/reset.ts +0 -108
  44. package/src/useClassname.test.tsx +0 -70
  45. package/src/useClassname.ts +0 -23
  46. package/src/useStyles.stories.mdx +0 -24
  47. package/src/useStyles.test.tsx +0 -286
  48. package/src/useStyles.ts +0 -63
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+ import { ThemeProvider } from './useTheme';
4
+
5
+ import { Global } from './Global';
6
+
7
+ test('applies normlaization to html and body', () => {
8
+ const root = render(<Global />);
9
+
10
+ const html = window.getComputedStyle(root.baseElement.parentElement!);
11
+ expect(html.height).toBe('100%');
12
+ const body = window.getComputedStyle(root.baseElement);
13
+ expect(body.height).toBe('100%');
14
+ expect(body.lineHeight).toBe('1.5');
15
+ });
16
+
17
+ test('applies global styles for body and html based on `theme.root`', () => {
18
+ const theme = {
19
+ colors: {
20
+ background: '#fff',
21
+ },
22
+ fonts: {
23
+ body: 'Inter',
24
+ },
25
+ lineHeights: {
26
+ body: 2.5,
27
+ },
28
+ fontWeights: {
29
+ body: 500,
30
+ html: 700,
31
+ },
32
+ root: {
33
+ body: {
34
+ fontFamily: 'body',
35
+ lineHeight: 'body',
36
+ fontWeight: 'body',
37
+ },
38
+ html: {
39
+ bg: 'background',
40
+ },
41
+ },
42
+ };
43
+
44
+ const root = render(
45
+ <ThemeProvider theme={theme}>
46
+ <Global />
47
+ </ThemeProvider>
48
+ );
49
+
50
+ const html = root.baseElement.parentElement;
51
+ expect(html).toHaveStyle(`background: ${theme.colors.background}`);
52
+
53
+ const body = root.baseElement;
54
+ expect(body).toHaveStyle(`font-family: ${theme.fonts.body}`);
55
+ expect(body).toHaveStyle(`line-height: ${theme.lineHeights.body}`);
56
+ expect(body).toHaveStyle(`font-weight: ${theme.fontWeights.body}`);
57
+ });
package/src/Global.tsx ADDED
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { Global as EmotionGlobal } from '@emotion/react';
3
+ import { useTheme } from './useTheme';
4
+
5
+ /**
6
+ * CSS snippet and idea from:
7
+ * https://css-tricks.com/revisiting-prefers-reduced-motion-the-reduced-motion-media-query/
8
+ */
9
+ const reduceMotionStyles = {
10
+ '@media screen and (prefers-reduced-motion: reduce), (update: slow)': {
11
+ '*': {
12
+ animationDuration: '0.001ms !important',
13
+ animationIterationCount: '1 !important',
14
+ transitionDuration: '0.001ms !important',
15
+ },
16
+ },
17
+ };
18
+
19
+ export const Global = () => {
20
+ const { css } = useTheme();
21
+ const styles = css({
22
+ html: {
23
+ height: '100%',
24
+ variant: 'root.html',
25
+ },
26
+ body: {
27
+ height: '100%',
28
+ lineHeight: 1.5,
29
+ WebkitFontSmoothing: 'antialiased',
30
+ variant: 'root.body',
31
+ },
32
+ });
33
+ return <EmotionGlobal styles={{ reduceMotionStyles, ...styles }} />;
34
+ };
@@ -0,0 +1,55 @@
1
+ import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
2
+ import { SVG } from './SVG';
3
+
4
+ <Meta
5
+ title="Components/SVG"
6
+ argTypes={{
7
+ variant: {
8
+ control: {
9
+ type: 'text',
10
+ },
11
+ table: {
12
+ defaultValue: {
13
+ summary: 'icon',
14
+ },
15
+ },
16
+ },
17
+ size: {
18
+ control: {
19
+ type: 'range',
20
+ min: 0,
21
+ max: 96,
22
+ step: 2,
23
+ },
24
+ table: {
25
+ defaultValue: {
26
+ summary: 24,
27
+ },
28
+ },
29
+ },
30
+ fill: {
31
+ control: {
32
+ type: 'text',
33
+ },
34
+ table: {
35
+ defaultValue: {
36
+ summary: 'currentColor',
37
+ },
38
+ },
39
+ },
40
+ }}
41
+ />
42
+
43
+ # SVG
44
+
45
+ export const Template = args => (
46
+ <SVG {...args}>
47
+ <path d="M9.9 20.113V13.8415H14.1V20.113H19.35V11.751H22.5L12 2.34375L1.5 11.751H4.65V20.113H9.9Z" />
48
+ </SVG>
49
+ );
50
+
51
+ <Canvas>
52
+ <Story name="Default">{Template.bind({})}</Story>
53
+ </Canvas>
54
+
55
+ <ArgsTable story="Default" />
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import { render, screen } from '@testing-library/react';
3
+ import { SVG } from './SVG';
4
+
5
+ test('renders svg', () => {
6
+ render(<SVG data-testid="svg" />);
7
+ const svg = screen.getByTestId('svg');
8
+ expect(svg instanceof SVGElement).toBeTruthy();
9
+ });
10
+
11
+ test('normalizes <svg>', () => {
12
+ render(<SVG data-testid="svg" />);
13
+ const svg = screen.getByTestId('svg');
14
+ expect(svg).toHaveStyle('display: block');
15
+ expect(svg).toHaveStyle('max-width: 100%');
16
+ });
17
+
18
+ test('supports default fill color', () => {
19
+ render(
20
+ <SVG data-testid="svg">
21
+ <path d="M9.9 20.113V13.8415H14" />
22
+ </SVG>
23
+ );
24
+ const svg = screen.getByTestId(/svg/);
25
+
26
+ expect(svg.getAttribute('fill')).toEqual('currentcolor');
27
+ });
28
+
29
+ test('supports default size', () => {
30
+ render(
31
+ <SVG data-testid="svg">
32
+ <path d="M9.9 20.113V13.8415H14" />
33
+ </SVG>
34
+ );
35
+ const svg = screen.getByTestId(/svg/);
36
+
37
+ expect(svg.getAttribute('width')).toEqual('24');
38
+ });
39
+
40
+ test('supports size prop', () => {
41
+ render(
42
+ <SVG data-testid="svg" size={30}>
43
+ <path d="M9.9 20.113V13.8415H14" />
44
+ </SVG>
45
+ );
46
+ const svg = screen.getByTestId(/svg/);
47
+
48
+ expect(svg.getAttribute('width')).toEqual('30');
49
+ });
50
+
51
+ test('supports fill prop', () => {
52
+ render(
53
+ <SVG data-testid="svg" fill="#fafafa">
54
+ <path d="M9.9 20.113V13.8415H14" />
55
+ </SVG>
56
+ );
57
+ const svg = screen.getByTestId(/svg/);
58
+
59
+ expect(svg.getAttribute('fill')).toEqual('#fafafa');
60
+ });
61
+
62
+ test('accepts custom styles prop className', () => {
63
+ render(
64
+ <SVG data-testid="svg" className="custom-class-name">
65
+ <path d="M9.9 20.113V13.8415H14" />
66
+ </SVG>
67
+ );
68
+ const svg = screen.getByTestId(/svg/);
69
+
70
+ expect(svg.getAttribute('class')).toMatch(/custom-class-name/);
71
+ });
72
+
73
+ test('renders <svg> element', () => {
74
+ render(
75
+ <SVG data-testid="svg">
76
+ <path d="M9.9 20.113V13.8415H14" />
77
+ </SVG>
78
+ );
79
+ const svg = screen.getByTestId(/svg/);
80
+
81
+ expect(svg instanceof SVGElement).toBeTruthy();
82
+ });
package/src/SVG.tsx ADDED
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { jsx } from '@emotion/react';
3
+ import { ComponentProps } from '@marigold/types';
4
+ import { getNormalizedStyles } from '@marigold/system';
5
+
6
+ const css = getNormalizedStyles('svg');
7
+
8
+ export type SVGProps = {
9
+ size?: number;
10
+ } & ComponentProps<'svg'>;
11
+
12
+ export const SVG: React.FC<SVGProps> = ({ size = 24, children, ...props }) =>
13
+ jsx(
14
+ 'svg',
15
+ {
16
+ width: size,
17
+ height: size,
18
+ viewBox: '0 0 24 24',
19
+ fill: 'currentcolor',
20
+ ...props,
21
+ css,
22
+ },
23
+ children
24
+ );
package/src/index.ts CHANGED
@@ -1,6 +1,8 @@
1
- export * from './Element';
2
- export * from './cache';
1
+ export * from './Box';
2
+ export * from './Global';
3
+ export * from './normalize';
4
+ export * from './SVG';
5
+ export * from './theme';
3
6
  export * from './types';
4
- export * from './useClassname';
5
- export * from './useStyles';
6
7
  export * from './useTheme';
8
+ export * from './variant';
@@ -1,42 +1,15 @@
1
- import { getNormalizedStyles } from './normalize';
1
+ import { normalize, getNormalizedStyles } from './normalize';
2
2
 
3
- test('get base styles', () => {
4
- const baseStyles = getNormalizedStyles('base');
5
- expect(baseStyles).toEqual({
6
- boxSizing: 'border-box',
7
- margin: 0,
8
- padding: 0,
9
- minWidth: 0,
10
- fontSize: '100%',
11
- fontFamily: 'inherit',
12
- verticalAlign: 'baseline',
13
- WebkitTapHighlightColor: 'transparent',
14
- });
3
+ test.each(Object.entries(normalize))('base is included in %p', (_, value) => {
4
+ expect(value).toMatchObject(normalize.base);
15
5
  });
16
6
 
17
- test('get reset style by element', () => {
18
- const baseStyles = getNormalizedStyles('a');
19
- expect(baseStyles).toEqual({
20
- textDecoration: 'none',
21
- touchAction: 'manipulation',
22
- });
7
+ test('get normalized styles', () => {
8
+ expect(getNormalizedStyles('a')).toMatchObject(normalize.a);
9
+ expect(getNormalizedStyles('p')).toMatchObject(normalize.p);
23
10
  });
24
11
 
25
- test('getNormalizedStyles returns base if input is not a string', () => {
26
- const baseStyles = getNormalizedStyles(undefined);
27
- expect(baseStyles).toEqual({
28
- boxSizing: 'border-box',
29
- margin: 0,
30
- padding: 0,
31
- minWidth: 0,
32
- fontSize: '100%',
33
- fontFamily: 'inherit',
34
- verticalAlign: 'baseline',
35
- WebkitTapHighlightColor: 'transparent',
36
- });
37
- });
38
-
39
- test('getNormalizedStyles returns empty object if input is unknown', () => {
40
- const baseStyles = getNormalizedStyles('p');
41
- expect(baseStyles).toEqual({});
12
+ test('return base normalzation for arbitrary components', () => {
13
+ const Component = () => null;
14
+ expect(getNormalizedStyles(Component)).toMatchObject(normalize.base);
42
15
  });
package/src/normalize.ts CHANGED
@@ -1,131 +1,100 @@
1
+ /**
2
+ * Normalize styling of certain elements between browsers.
3
+ * Based on https://www.joshwcomeau.com/css/custom-css-reset/
4
+ */
1
5
  import { ElementType } from 'react';
2
6
 
3
7
  const base = {
4
8
  boxSizing: 'border-box',
5
9
  margin: 0,
6
- padding: 0,
7
10
  minWidth: 0,
8
- fontSize: '100%',
9
- fontFamily: 'inherit',
10
- verticalAlign: 'baseline',
11
- WebkitTapHighlightColor: 'transparent',
12
- } as const;
13
-
14
- // Content
15
- // ---------------
16
- const block = {
17
- display: 'block',
18
- } as const;
19
-
20
- const list = {
21
- // empty
22
- } as const;
23
-
24
- const table = {
25
- borderCollapse: 'collapse',
26
- borderSpacing: 0,
27
11
  } as const;
28
12
 
29
- // Typography
30
- // ---------------
31
13
  const a = {
14
+ ...base,
32
15
  textDecoration: 'none',
33
- touchAction: 'manipulation',
34
16
  } as const;
35
17
 
36
- const quote = {
37
- quotes: 'none',
38
- selectors: {
39
- '&:before, &:after': {
40
- content: "''",
41
- },
42
- },
18
+ const text = {
19
+ ...base,
20
+ overflowWrap: 'break-word',
21
+ } as const;
22
+
23
+ const media = {
24
+ ...base,
25
+ display: 'block',
26
+ maxWidth: '100%',
43
27
  } as const;
44
28
 
45
- // Form Elements
46
- // ---------------
47
29
  const button = {
30
+ ...base,
48
31
  display: 'block',
49
32
  appearance: 'none',
33
+ font: 'inherit',
50
34
  background: 'transparent',
51
35
  textAlign: 'center',
52
- touchAction: 'manipulation',
53
36
  } as const;
54
37
 
55
38
  const input = {
39
+ ...base,
56
40
  display: 'block',
57
41
  appearance: 'none',
58
- selectors: {
59
- '&::-ms-clear': {
60
- display: 'none',
61
- },
62
- '&::-webkit-search-cancel-button': {
63
- WebkitAppearance: 'none',
64
- },
42
+ font: 'inherit',
43
+ '&::-ms-clear': {
44
+ display: 'none',
45
+ },
46
+ '&::-webkit-search-cancel-button': {
47
+ WebkitAppearance: 'none',
65
48
  },
66
49
  } as const;
67
50
 
68
51
  const select = {
52
+ ...base,
69
53
  display: 'block',
70
54
  appearance: 'none',
71
- selectors: {
72
- '&::-ms-expand': {
73
- display: 'none',
74
- },
55
+ font: 'inherit',
56
+ '&::-ms-expand': {
57
+ display: 'none',
75
58
  },
76
59
  } as const;
77
60
 
78
61
  const textarea = {
62
+ ...base,
79
63
  display: 'block',
80
64
  appearance: 'none',
65
+ font: 'inherit',
81
66
  } as const;
82
67
 
83
- // Reset
68
+ // Normalize
84
69
  // ---------------
85
- const reset = {
86
- article: block,
87
- aside: block,
88
- details: block,
89
- figcaption: block,
90
- figure: block,
91
- footer: block,
92
- header: block,
93
- hgroup: block,
94
- menu: block,
95
- nav: block,
96
- section: block,
97
- ul: list,
98
- ol: list,
99
- blockquote: quote,
100
- q: quote,
101
- a,
70
+ export const normalize = {
102
71
  base,
103
- table,
72
+ a,
73
+ p: text,
74
+ h1: text,
75
+ h2: text,
76
+ h3: text,
77
+ h4: text,
78
+ h5: text,
79
+ h6: text,
80
+ img: media,
81
+ picture: media,
82
+ video: media,
83
+ canvas: media,
84
+ svg: media,
104
85
  select,
105
86
  button,
106
87
  textarea,
107
88
  input,
108
89
  } as const;
109
90
 
110
- export type NormalizedElement = keyof typeof reset;
111
- const isKnownElement = (input: string): input is NormalizedElement =>
112
- input in reset;
91
+ export type NormalizedElement = keyof typeof normalize;
113
92
 
114
93
  /**
115
- * Helper to conveniently get reset styles.
94
+ * Type-safe helper to get normalization. If no normalization is found,
95
+ * returns the *base* normalization.
116
96
  */
117
- export const getNormalizedStyles = (input?: ElementType): object => {
118
- /**
119
- * If a React component is given, we don't apply any reset styles
120
- * and return the base reset.
121
- */
122
- if (typeof input !== 'string') {
123
- return reset.base;
124
- }
125
-
126
- /**
127
- * Try to find the reset style for a HTML element. If the element
128
- * is not included return empty styles.
129
- */
130
- return isKnownElement(input) ? reset[input] : {};
131
- };
97
+ export const getNormalizedStyles = (val?: ElementType) =>
98
+ typeof val === 'string' && val in normalize
99
+ ? normalize[val as NormalizedElement] // Typescript doesn't infer this correctly
100
+ : normalize.base;
package/src/theme.ts ADDED
@@ -0,0 +1,157 @@
1
+ import * as CSS from 'csstype';
2
+ import { NestedScaleDict } from '@theme-ui/css';
3
+
4
+ /**
5
+ * Value used to define a scale.
6
+ *
7
+ * Can be nested to support a default value.
8
+ *
9
+ * @example
10
+ * Given a theme
11
+ * ```
12
+ * {
13
+ * colors: {
14
+ * primary: { __default: '#00f', light: '#33f' }
15
+ * }
16
+ * }
17
+ * ```
18
+ * `css{{ color: 'primary' }}` resolves to `color: #00f`.
19
+ */
20
+ export type ScaleValue<T> = T | T[] | NestedScaleDict<T> | undefined;
21
+
22
+ /**
23
+ * Scales are a set of named, pre-defined CSS values which are used
24
+ * to create consitency in sizing across visual elements. They give
25
+ * plain values semantics meaning.
26
+ *
27
+ * Marigold uses a plain object to define scales, where the key should be a
28
+ * descriptive name for the scale (e.g. `small`/`medium`/.. or `body`/`heading`/...),
29
+ * and the value is the CSS value.
30
+ */
31
+ export type Scale<T> = {
32
+ [key: string]: ScaleValue<T>;
33
+ };
34
+
35
+ /**
36
+ * Predefined {@link Scale} scale which uses size values.
37
+ */
38
+ export type SizeScale<T> = {
39
+ xxsmall?: ScaleValue<T>;
40
+ xsmall?: ScaleValue<T>;
41
+ small?: ScaleValue<T>;
42
+ medium?: ScaleValue<T>;
43
+ large?: ScaleValue<T>;
44
+ xlarge?: ScaleValue<T>;
45
+ xxlarge?: ScaleValue<T>;
46
+ };
47
+
48
+ /**
49
+ * A {@link SizeScale} that also includes a required `none` value, which is
50
+ * usually used to define the blank value (e.g `0`).
51
+ */
52
+ export type ZeroScale<T> = {
53
+ none: ScaleValue<T>;
54
+ } & Scale<T>;
55
+
56
+ /**
57
+ * Base theme with typings for available scales properties.
58
+ */
59
+ export interface Theme {
60
+ /**
61
+ * To configure the default breakpoints used in responsive array values,
62
+ * add a breakpoints array to your theme.
63
+ *
64
+ * Each breakpoint should be a string with a CSS length unit included or a
65
+ * string including a CSS media query. String values with a CSS length unit
66
+ * will be used to generate a mobile-first (i.e. min-width) media query.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * {
71
+ * breakpoints: [
72
+ * '40em', '@media (min-width: 56em) and (orientation: landscape)', '64em',
73
+ * ],
74
+ * }
75
+ * ```
76
+ */
77
+ breakpoints?: Array<string>;
78
+
79
+ colors?: Scale<CSS.Property.Color | NestedScaleDict<CSS.Property.Color>>;
80
+
81
+ /**
82
+ * Used to define a scale for whitspace values,
83
+ * like `padding`, `margin`, `gap`, etc.
84
+ */
85
+ space?: ZeroScale<CSS.Property.Margin<number | string>>;
86
+
87
+ /**
88
+ * Used to define a `font-size` scale.
89
+ */
90
+ fontSizes?: Scale<CSS.Property.FontSize<number>>;
91
+
92
+ /**
93
+ * Used to define a `font-family` scale.
94
+ */
95
+ fonts?: Scale<CSS.Property.FontFamily>;
96
+
97
+ /**
98
+ * Used to define a `font-weight` scale.
99
+ */
100
+ fontWeights?: Scale<CSS.Property.FontWeight>;
101
+
102
+ /**
103
+ * Used to define a `line-height` scale.
104
+ */
105
+ lineHeights?: Scale<CSS.Property.LineHeight<string | 0 | number>>;
106
+
107
+ /**
108
+ * Used to define a `letter-spacing` scale.
109
+ */
110
+ letterSpacings?: ZeroScale<CSS.Property.LetterSpacing<string | 0 | number>>;
111
+
112
+ /**
113
+ * Used to define a scale for size values,
114
+ * like `height`, `width`, `flexBasis`, etc.
115
+ */
116
+ sizes?: ZeroScale<CSS.Property.Height<{}> | CSS.Property.Width<{}>>;
117
+
118
+ /**
119
+ * Used to define different `border` styles.
120
+ */
121
+ borders?: ZeroScale<CSS.Property.Border<{}>>;
122
+
123
+ /**
124
+ * Used to define `border-style` styles.
125
+ */
126
+ borderStyles?: Scale<CSS.Property.Border<{}>>;
127
+
128
+ /**
129
+ * Used to define `border-width` styles.
130
+ */
131
+ borderWidths?: ZeroScale<CSS.Property.BorderWidth<string | 0 | number>>;
132
+
133
+ /**
134
+ * Used to define `border-radius` styles.
135
+ */
136
+ radii?: ZeroScale<CSS.Property.BorderRadius<string | 0 | number>>;
137
+
138
+ /**
139
+ * Used to define `Shadow` styles.
140
+ */
141
+ shadows?: ZeroScale<CSS.Property.BoxShadow>;
142
+
143
+ /**
144
+ * Used to define a `z-index` scake.
145
+ */
146
+ zIndices?: Scale<CSS.Property.ZIndex>;
147
+
148
+ /**
149
+ * Used to define a `opacity` scale.
150
+ */
151
+ opacities?: Scale<CSS.Property.Opacity>;
152
+
153
+ /**
154
+ * Used to define a `transition` styles.
155
+ */
156
+ transitions?: ZeroScale<CSS.Property.Transition>;
157
+ }
package/src/types.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  * Create type aliases for `theme-ui` so that it doesn't leak too much into our code.
3
3
  */
4
4
  import {
5
- Theme as ThemeUITheme,
6
5
  ThemeUIStyleObject,
7
6
  ThemeUICSSObject,
8
7
  ThemeUICSSProperties,
@@ -13,4 +12,3 @@ export type ResponsiveStyleValue<T> = RSV<T>;
13
12
  export type StyleObject = ThemeUIStyleObject;
14
13
  export type CSSObject = ThemeUICSSObject;
15
14
  export type CSSProperties = ThemeUICSSProperties;
16
- export type Theme = ThemeUITheme;