@utilitywarehouse/hearth-react-native 0.33.0 → 0.34.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 (51) hide show
  1. package/.storybook/manager.ts +2 -2
  2. package/.storybook/preview.tsx +5 -7
  3. package/CHANGELOG.md +60 -0
  4. package/build/components/Accordion/AccordionItemRoot.js +2 -2
  5. package/build/components/Divider/Divider.js +3 -3
  6. package/build/core/themes.d.ts +60 -500
  7. package/build/tokens/border-radius.d.ts +0 -1
  8. package/build/tokens/border-radius.js +0 -1
  9. package/build/tokens/color.d.ts +0 -182
  10. package/build/tokens/color.js +0 -91
  11. package/build/tokens/components/dark/divider.d.ts +2 -1
  12. package/build/tokens/components/dark/divider.js +2 -1
  13. package/build/tokens/components/light/divider.d.ts +2 -1
  14. package/build/tokens/components/light/divider.js +2 -1
  15. package/build/tokens/font.d.ts +0 -8
  16. package/build/tokens/font.js +0 -8
  17. package/build/tokens/letter-spacing.d.ts +0 -9
  18. package/build/tokens/letter-spacing.js +0 -9
  19. package/build/tokens/line-height.d.ts +0 -7
  20. package/build/tokens/line-height.js +0 -7
  21. package/build/tokens/primitive.d.ts +0 -26
  22. package/build/tokens/primitive.js +0 -26
  23. package/build/tokens/space.d.ts +0 -1
  24. package/build/tokens/space.js +0 -1
  25. package/build/tokens/typography.d.ts +30 -0
  26. package/build/tokens/typography.js +15 -0
  27. package/docs/changelog.mdx +60 -0
  28. package/docs/components/AllComponents.web.tsx +7 -7
  29. package/docs/components/NextPrevPage.tsx +1 -1
  30. package/docs/components/index.ts +1 -1
  31. package/docs/introduction.mdx +0 -1
  32. package/docs/styling.mdx +14 -14
  33. package/docs/theme-tokens.mdx +1 -4
  34. package/eslint.config.js +2 -1
  35. package/package.json +6 -5
  36. package/src/components/Accordion/AccordionItemRoot.tsx +2 -2
  37. package/src/components/Carousel/Carousel.stories.tsx +2 -2
  38. package/src/components/Container/Container.stories.tsx +3 -3
  39. package/src/components/Divider/Divider.tsx +3 -3
  40. package/src/components/IndicatorIconButton/IndicatorIconButton.docs.mdx +1 -1
  41. package/src/components/IndicatorIconButton/IndicatorIconButton.stories.tsx +1 -1
  42. package/src/tokens/border-radius.ts +0 -1
  43. package/src/tokens/color.ts +0 -91
  44. package/src/tokens/components/dark/divider.ts +2 -1
  45. package/src/tokens/components/light/divider.ts +2 -1
  46. package/src/tokens/font.ts +0 -8
  47. package/src/tokens/letter-spacing.ts +0 -9
  48. package/src/tokens/line-height.ts +0 -7
  49. package/src/tokens/primitive.ts +0 -26
  50. package/src/tokens/space.ts +0 -1
  51. package/src/tokens/typography.ts +15 -0
@@ -8,8 +8,6 @@ export default {
8
8
  heading: 'Comic Hams',
9
9
  },
10
10
  size: {
11
- '50': 10,
12
- '75': 12,
13
11
  '90': 14,
14
12
  '100': 16,
15
13
  '150': 18,
@@ -19,16 +17,10 @@ export default {
19
17
  '500': 36,
20
18
  '550': 40,
21
19
  '575': 44,
22
- '600': 48,
23
20
  '650': 54,
24
- '700': 60,
25
- '800': 72,
26
- '900': 96,
27
- '1000': 128,
28
21
  },
29
22
  weight: {
30
23
  bold: 700,
31
- heavy: 900,
32
24
  medium: 500,
33
25
  regular: 400,
34
26
  semibold: 600,
@@ -2,9 +2,6 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  declare const _default: {
5
- readonly '0': 0;
6
- readonly '50': -0.30000001192092896;
7
- readonly '75': -0.36000001430511475;
8
5
  readonly '90': -0.41999998688697815;
9
6
  readonly '100': -0.47999998927116394;
10
7
  readonly '150': -0.5400000214576721;
@@ -12,11 +9,5 @@ declare const _default: {
12
9
  readonly '300': -0.7200000286102295;
13
10
  readonly '400': -0.8999999761581421;
14
11
  readonly '500': -1.0800000429153442;
15
- readonly '550': -1.2000000476837158;
16
- readonly '600': -1.440000057220459;
17
- readonly '700': -1.7999999523162842;
18
- readonly '800': -2.1600000858306885;
19
- readonly '900': -2.880000114440918;
20
- readonly '1000': -3.8399999141693115;
21
12
  };
22
13
  export default _default;
@@ -2,9 +2,6 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export default {
5
- '0': 0,
6
- '50': -0.30000001192092896,
7
- '75': -0.36000001430511475,
8
5
  '90': -0.41999998688697815,
9
6
  '100': -0.47999998927116394,
10
7
  '150': -0.5400000214576721,
@@ -12,10 +9,4 @@ export default {
12
9
  '300': -0.7200000286102295,
13
10
  '400': -0.8999999761581421,
14
11
  '500': -1.0800000429153442,
15
- '550': -1.2000000476837158,
16
- '600': -1.440000057220459,
17
- '700': -1.7999999523162842,
18
- '800': -2.1600000858306885,
19
- '900': -2.880000114440918,
20
- '1000': -3.8399999141693115,
21
12
  };
@@ -2,9 +2,6 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  declare const _default: {
5
- readonly '50': 12;
6
- readonly '75': 14;
7
- readonly '100': 16;
8
5
  readonly '200': 18;
9
6
  readonly '300': 20;
10
7
  readonly '400': 22;
@@ -12,12 +9,8 @@ declare const _default: {
12
9
  readonly '600': 28;
13
10
  readonly '700': 32;
14
11
  readonly '800': 36;
15
- readonly '900': 40;
16
12
  readonly '950': 48;
17
13
  readonly '975': 52;
18
- readonly '1000': 56;
19
14
  readonly '1050': 62;
20
- readonly '1100': 72;
21
- readonly '1200': 90;
22
15
  };
23
16
  export default _default;
@@ -2,9 +2,6 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export default {
5
- '50': 12,
6
- '75': 14,
7
- '100': 16,
8
5
  '200': 18,
9
6
  '300': 20,
10
7
  '400': 22,
@@ -12,11 +9,7 @@ export default {
12
9
  '600': 28,
13
10
  '700': 32,
14
11
  '800': 36,
15
- '900': 40,
16
12
  '950': 48,
17
13
  '975': 52,
18
- '1000': 56,
19
14
  '1050': 62,
20
- '1100': 72,
21
- '1200': 90,
22
15
  };
@@ -4,7 +4,6 @@
4
4
  declare const _default: {
5
5
  readonly borderRadius: {
6
6
  readonly full: 9999;
7
- readonly lg: 12;
8
7
  readonly md: 8;
9
8
  readonly none: 0;
10
9
  readonly sm: 6;
@@ -22,8 +21,6 @@ declare const _default: {
22
21
  readonly heading: "Comic Hams";
23
22
  };
24
23
  readonly size: {
25
- readonly '50': 10;
26
- readonly '75': 12;
27
24
  readonly '90': 14;
28
25
  readonly '100': 16;
29
26
  readonly '150': 18;
@@ -33,25 +30,16 @@ declare const _default: {
33
30
  readonly '500': 36;
34
31
  readonly '550': 40;
35
32
  readonly '575': 44;
36
- readonly '600': 48;
37
33
  readonly '650': 54;
38
- readonly '700': 60;
39
- readonly '800': 72;
40
- readonly '900': 96;
41
- readonly '1000': 128;
42
34
  };
43
35
  readonly weight: {
44
36
  readonly bold: 700;
45
- readonly heavy: 900;
46
37
  readonly medium: 500;
47
38
  readonly regular: 400;
48
39
  readonly semibold: 600;
49
40
  };
50
41
  };
51
42
  readonly letterSpacing: {
52
- readonly '0': 0;
53
- readonly '50': -0.30000001192092896;
54
- readonly '75': -0.36000001430511475;
55
43
  readonly '90': -0.41999998688697815;
56
44
  readonly '100': -0.47999998927116394;
57
45
  readonly '150': -0.5400000214576721;
@@ -59,17 +47,8 @@ declare const _default: {
59
47
  readonly '300': -0.7200000286102295;
60
48
  readonly '400': -0.8999999761581421;
61
49
  readonly '500': -1.0800000429153442;
62
- readonly '550': -1.2000000476837158;
63
- readonly '600': -1.440000057220459;
64
- readonly '700': -1.7999999523162842;
65
- readonly '800': -2.1600000858306885;
66
- readonly '900': -2.880000114440918;
67
- readonly '1000': -3.8399999141693115;
68
50
  };
69
51
  readonly lineHeight: {
70
- readonly '50': 12;
71
- readonly '75': 14;
72
- readonly '100': 16;
73
52
  readonly '200': 18;
74
53
  readonly '300': 20;
75
54
  readonly '400': 22;
@@ -77,13 +56,9 @@ declare const _default: {
77
56
  readonly '600': 28;
78
57
  readonly '700': 32;
79
58
  readonly '800': 36;
80
- readonly '900': 40;
81
59
  readonly '950': 48;
82
60
  readonly '975': 52;
83
- readonly '1000': 56;
84
61
  readonly '1050': 62;
85
- readonly '1100': 72;
86
- readonly '1200': 90;
87
62
  };
88
63
  readonly motion: {
89
64
  readonly duration: {
@@ -122,7 +97,6 @@ declare const _default: {
122
97
  readonly '700': 56;
123
98
  readonly '800': 64;
124
99
  readonly '900': 72;
125
- readonly '1000': 80;
126
100
  };
127
101
  };
128
102
  export default _default;
@@ -4,7 +4,6 @@
4
4
  export default {
5
5
  borderRadius: {
6
6
  full: 9999,
7
- lg: 12,
8
7
  md: 8,
9
8
  none: 0,
10
9
  sm: 6,
@@ -22,8 +21,6 @@ export default {
22
21
  heading: 'Comic Hams',
23
22
  },
24
23
  size: {
25
- '50': 10,
26
- '75': 12,
27
24
  '90': 14,
28
25
  '100': 16,
29
26
  '150': 18,
@@ -33,25 +30,16 @@ export default {
33
30
  '500': 36,
34
31
  '550': 40,
35
32
  '575': 44,
36
- '600': 48,
37
33
  '650': 54,
38
- '700': 60,
39
- '800': 72,
40
- '900': 96,
41
- '1000': 128,
42
34
  },
43
35
  weight: {
44
36
  bold: 700,
45
- heavy: 900,
46
37
  medium: 500,
47
38
  regular: 400,
48
39
  semibold: 600,
49
40
  },
50
41
  },
51
42
  letterSpacing: {
52
- '0': 0,
53
- '50': -0.30000001192092896,
54
- '75': -0.36000001430511475,
55
43
  '90': -0.41999998688697815,
56
44
  '100': -0.47999998927116394,
57
45
  '150': -0.5400000214576721,
@@ -59,17 +47,8 @@ export default {
59
47
  '300': -0.7200000286102295,
60
48
  '400': -0.8999999761581421,
61
49
  '500': -1.0800000429153442,
62
- '550': -1.2000000476837158,
63
- '600': -1.440000057220459,
64
- '700': -1.7999999523162842,
65
- '800': -2.1600000858306885,
66
- '900': -2.880000114440918,
67
- '1000': -3.8399999141693115,
68
50
  },
69
51
  lineHeight: {
70
- '50': 12,
71
- '75': 14,
72
- '100': 16,
73
52
  '200': 18,
74
53
  '300': 20,
75
54
  '400': 22,
@@ -77,13 +56,9 @@ export default {
77
56
  '600': 28,
78
57
  '700': 32,
79
58
  '800': 36,
80
- '900': 40,
81
59
  '950': 48,
82
60
  '975': 52,
83
- '1000': 56,
84
61
  '1050': 62,
85
- '1100': 72,
86
- '1200': 90,
87
62
  },
88
63
  motion: {
89
64
  duration: {
@@ -122,6 +97,5 @@ export default {
122
97
  '700': 56,
123
98
  '800': 64,
124
99
  '900': 72,
125
- '1000': 80,
126
100
  },
127
101
  };
@@ -19,6 +19,5 @@ declare const _default: {
19
19
  readonly '700': 56;
20
20
  readonly '800': 64;
21
21
  readonly '900': 72;
22
- readonly '1000': 80;
23
22
  };
24
23
  export default _default;
@@ -19,5 +19,4 @@ export default {
19
19
  '700': 56,
20
20
  '800': 64,
21
21
  '900': 72,
22
- '1000': 80,
23
22
  };
@@ -22,6 +22,11 @@ export declare const mobile: {
22
22
  readonly lineHeight: 20;
23
23
  readonly paragraphSpacing: 14;
24
24
  };
25
+ readonly xl: {
26
+ readonly fontSize: 20;
27
+ readonly lineHeight: 28;
28
+ readonly paragraphSpacing: 20;
29
+ };
25
30
  };
26
31
  readonly detailText: {
27
32
  readonly '2xl': {
@@ -113,6 +118,11 @@ export declare const tablet: {
113
118
  readonly lineHeight: 20;
114
119
  readonly paragraphSpacing: 14;
115
120
  };
121
+ readonly xl: {
122
+ readonly fontSize: 20;
123
+ readonly lineHeight: 28;
124
+ readonly paragraphSpacing: 20;
125
+ };
116
126
  };
117
127
  readonly detailText: {
118
128
  readonly '2xl': {
@@ -204,6 +214,11 @@ export declare const desktop: {
204
214
  readonly lineHeight: 20;
205
215
  readonly paragraphSpacing: 14;
206
216
  };
217
+ readonly xl: {
218
+ readonly fontSize: 20;
219
+ readonly lineHeight: 28;
220
+ readonly paragraphSpacing: 20;
221
+ };
207
222
  };
208
223
  readonly detailText: {
209
224
  readonly '2xl': {
@@ -296,6 +311,11 @@ declare const typography: {
296
311
  readonly lineHeight: 20;
297
312
  readonly paragraphSpacing: 14;
298
313
  };
314
+ readonly xl: {
315
+ readonly fontSize: 20;
316
+ readonly lineHeight: 28;
317
+ readonly paragraphSpacing: 20;
318
+ };
299
319
  };
300
320
  readonly detailText: {
301
321
  readonly '2xl': {
@@ -387,6 +407,11 @@ declare const typography: {
387
407
  readonly lineHeight: 20;
388
408
  readonly paragraphSpacing: 14;
389
409
  };
410
+ readonly xl: {
411
+ readonly fontSize: 20;
412
+ readonly lineHeight: 28;
413
+ readonly paragraphSpacing: 20;
414
+ };
390
415
  };
391
416
  readonly detailText: {
392
417
  readonly '2xl': {
@@ -478,6 +503,11 @@ declare const typography: {
478
503
  readonly lineHeight: 20;
479
504
  readonly paragraphSpacing: 14;
480
505
  };
506
+ readonly xl: {
507
+ readonly fontSize: 20;
508
+ readonly lineHeight: 28;
509
+ readonly paragraphSpacing: 20;
510
+ };
481
511
  };
482
512
  readonly detailText: {
483
513
  readonly '2xl': {
@@ -22,6 +22,11 @@ export const mobile = {
22
22
  lineHeight: 20,
23
23
  paragraphSpacing: 14,
24
24
  },
25
+ xl: {
26
+ fontSize: 20,
27
+ lineHeight: 28,
28
+ paragraphSpacing: 20,
29
+ },
25
30
  },
26
31
  detailText: {
27
32
  '2xl': {
@@ -113,6 +118,11 @@ export const tablet = {
113
118
  lineHeight: 20,
114
119
  paragraphSpacing: 14,
115
120
  },
121
+ xl: {
122
+ fontSize: 20,
123
+ lineHeight: 28,
124
+ paragraphSpacing: 20,
125
+ },
116
126
  },
117
127
  detailText: {
118
128
  '2xl': {
@@ -204,6 +214,11 @@ export const desktop = {
204
214
  lineHeight: 20,
205
215
  paragraphSpacing: 14,
206
216
  },
217
+ xl: {
218
+ fontSize: 20,
219
+ lineHeight: 28,
220
+ paragraphSpacing: 20,
221
+ },
207
222
  },
208
223
  detailText: {
209
224
  '2xl': {
@@ -9,6 +9,66 @@ import { BackToTopButton, NextPrevPage } from './components';
9
9
  The changelog for the Hearth React Native library. Here you can find all the changes, improvements, and bug fixes for each version.
10
10
 
11
11
 
12
+ ## 0.34.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#1338](https://github.com/utilitywarehouse/hearth/pull/1338) [`fe9767f`](https://github.com/utilitywarehouse/hearth/commit/fe9767f916975ba2e0ba8aea585858d8ea00a147) Thanks [@robphoenix](https://github.com/robphoenix)! - 💔 [BREAKING_CHANGE]: Remove pruned design tokens from React Native token exports
17
+
18
+ Several unused design tokens have been removed from the React Native token exports
19
+ to align with the updated design token set.
20
+
21
+ **Tokens removed**:
22
+
23
+ - `borderRadius.lg`
24
+ - `color`: multiple shades pruned across all colour palettes (`blue`, `broadbandGreen`, `cashbackLilac`, `energyBlue`, `green`, `insuranceOrange`, `mobileRose`, `orange`, `piggyPink`, `purple`, `red`, `warmWhite`, `yellow`)
25
+ - `font.size`: `50`, `75`, `600`, `700`, `800`, `900`, `1000`
26
+ - `font.weight.heavy`
27
+ - `letterSpacing`: `0`, `50`, `75`, `550`, `600`, `700`, `800`, `900`, `1000`
28
+ - `lineHeight`: `50`, `75`, `100`, `900`, `1000`, `1100`, `1200`
29
+ - `space['1000']`
30
+
31
+ **Developer changes**:
32
+
33
+ If you are referencing any of the removed tokens directly, replace them with the
34
+ nearest available equivalent or remove the usage.
35
+
36
+ For example:
37
+
38
+ ```diff
39
+ - borderRadius: tokens.borderRadius.lg,
40
+ + borderRadius: tokens.borderRadius.md,
41
+ ```
42
+
43
+ ```diff
44
+ - fontSize: tokens.font.size['50'],
45
+ + fontSize: tokens.font.size['90'],
46
+ ```
47
+
48
+ ```diff
49
+ - fontWeight: tokens.font.weight.heavy,
50
+ + fontWeight: tokens.font.weight.bold,
51
+ ```
52
+
53
+ ### Patch Changes
54
+
55
+ - [#1338](https://github.com/utilitywarehouse/hearth/pull/1338) [`fe9767f`](https://github.com/utilitywarehouse/hearth/commit/fe9767f916975ba2e0ba8aea585858d8ea00a147) Thanks [@robphoenix](https://github.com/robphoenix)! - 🌟 [FEATURE]: Add `xl` variant to `bodyText` typography tokens
56
+
57
+ The `bodyText` typography scale now includes an `xl` variant across mobile,
58
+ tablet, and desktop breakpoints.
59
+
60
+ | Property | Value |
61
+ | ------------------ | ----- |
62
+ | `fontSize` | `20` |
63
+ | `lineHeight` | `28` |
64
+ | `paragraphSpacing` | `20` |
65
+
66
+ ## 0.33.1
67
+
68
+ ### Patch Changes
69
+
70
+ - [#1311](https://github.com/utilitywarehouse/hearth/pull/1311) [`3d286c9`](https://github.com/utilitywarehouse/hearth/commit/3d286c97710a1483a054e4b19c2453920cda4598) Thanks [@robphoenix](https://github.com/robphoenix)! - 🧹 [HOUSEKEEPING]: Update token usage for Divider
71
+
12
72
  ## 0.33.0
13
73
 
14
74
  ### Minor Changes
@@ -22,7 +22,7 @@ import { color } from '@utilitywarehouse/hearth-tokens';
22
22
  import { Pressable, ScrollView, View, ViewProps } from 'react-native';
23
23
  import { SafeAreaProvider } from 'react-native-safe-area-context';
24
24
  import { StyleSheet } from 'react-native-unistyles';
25
- import { navigateToStory } from '../../../../shared/storybook/storybookLinks';
25
+ import { navigateToStory } from '@utilitywarehouse/hearth-storybook-utils';
26
26
  import {
27
27
  Accordion,
28
28
  AccordionItem,
@@ -381,9 +381,9 @@ const AllComponents: React.FC = () => {
381
381
  </ComponentWrapper>
382
382
  <ComponentWrapper name="Container" link="primitives-container">
383
383
  <Container spacing="md" backgroundColor="secondary">
384
- <Box h={20} bg={color.blue[300]} />
384
+ <Box h={20} bg={color.blue[200]} />
385
385
  <Box h={20} bg={color.blue[400]} />
386
- <Box h={20} bg={color.blue[500]} />
386
+ <Box h={20} bg={color.blue[600]} />
387
387
  </Container>
388
388
  </ComponentWrapper>
389
389
  <ComponentWrapper name="Currency Input" link="forms-currency-input">
@@ -474,10 +474,10 @@ const AllComponents: React.FC = () => {
474
474
  <ComponentWrapper name="Flex" link="primitives-flex">
475
475
  <Center flex={1}>
476
476
  <Flex direction="row" spacing="md">
477
- <Box w={40} h={40} bg={color.blue[300]} />
477
+ <Box w={40} h={40} bg={color.blue[200]} />
478
478
  <Box w={40} h={40} bg={color.blue[400]} />
479
- <Box w={40} h={40} bg={color.blue[500]} />
480
479
  <Box w={40} h={40} bg={color.blue[600]} />
480
+ <Box w={40} h={40} bg={color.blue[700]} />
481
481
  </Flex>
482
482
  </Center>
483
483
  </ComponentWrapper>
@@ -497,10 +497,10 @@ const AllComponents: React.FC = () => {
497
497
  <Center flex={1}>
498
498
  <Box width={100}>
499
499
  <Grid columns={2} spacing="md">
500
- <Box w={40} h={40} bg={color.blue[300]} />
500
+ <Box w={40} h={40} bg={color.blue[200]} />
501
501
  <Box w={40} h={40} bg={color.blue[400]} />
502
- <Box w={40} h={40} bg={color.blue[500]} />
503
502
  <Box w={40} h={40} bg={color.blue[600]} />
503
+ <Box w={40} h={40} bg={color.blue[700]} />
504
504
  </Grid>
505
505
  </Box>
506
506
  </Center>
@@ -1,6 +1,6 @@
1
1
  import { ChevronLeftSmallIcon } from '@utilitywarehouse/hearth-react-native-icons';
2
2
  import { StyleSheet, View } from 'react-native';
3
- import StorybookLink from '../../../../shared/storybook/StorybookLink';
3
+ import { StorybookLink } from '@utilitywarehouse/hearth-storybook-utils';
4
4
  import { Card, CardPressHandler, Heading, Link } from '../../src';
5
5
 
6
6
  type NextPrevPageProps = {
@@ -1,4 +1,4 @@
1
- export { default as StorybookLink } from '../../../../shared/storybook/StorybookLink';
1
+ export { StorybookLink } from '@utilitywarehouse/hearth-storybook-utils';
2
2
  export { default as AdvancedInputExample } from './AdvancedInputExample';
3
3
  export { default as BackToTopButton } from './BackToTopButton';
4
4
  export { default as BadgeList } from './BadgeList';
@@ -140,7 +140,6 @@ import App from './src/App';
140
140
  export default () => {
141
141
  const [loaded] = useFonts({
142
142
  'ComicHams-BoldFlare': require('./assets/fonts/comichams_boldflare.ttf'),
143
- 'ComicHams-HeavyFlare': require('./assets/fonts/comichams_heavyflare.ttf'),
144
143
  'ComicHams-SemiBoldFlare': require('./assets/fonts/comichams_semiboldflare.ttf'),
145
144
  'DM Mono': require('./assets/fonts/dmmono_medium.ttf'),
146
145
  'DMMono-MediumItalic': require('./assets/fonts/dmmono_mediumitalic.ttf'),
package/docs/styling.mdx CHANGED
@@ -117,8 +117,8 @@ The theme provides a comprehensive color palette organized by semantic meaning:
117
117
  const styles = StyleSheet.create(theme => ({
118
118
  // Primary colors
119
119
  primaryButton: {
120
- backgroundColor: theme.color.purple[500],
121
- borderColor: theme.color.purple[600],
120
+ backgroundColor: theme.color.purple[400],
121
+ borderColor: theme.color.purple[700],
122
122
  },
123
123
 
124
124
  // Secondary colors
@@ -136,7 +136,7 @@ const styles = StyleSheet.create(theme => ({
136
136
 
137
137
  errorMessage: {
138
138
  backgroundColor: theme.color.red[50],
139
- borderColor: theme.color.red[200],
139
+ borderColor: theme.color.red[300],
140
140
  color: theme.color.red[800],
141
141
  },
142
142
  }));
@@ -226,7 +226,7 @@ const styles = StyleSheet.create(theme => ({
226
226
 
227
227
  floatingButton: {
228
228
  ...theme.shadow.lg,
229
- backgroundColor: theme.color.purple[500],
229
+ backgroundColor: theme.color.purple[400],
230
230
  },
231
231
  }));
232
232
  ```
@@ -379,8 +379,8 @@ const styles = StyleSheet.create(theme => ({
379
379
  variants: {
380
380
  variant: {
381
381
  primary: {
382
- backgroundColor: theme.color.purple[500],
383
- borderColor: theme.color.purple[600],
382
+ backgroundColor: theme.color.purple[400],
383
+ borderColor: theme.color.purple[700],
384
384
  borderWidth: 1,
385
385
  },
386
386
  secondary: {
@@ -425,7 +425,7 @@ const styles = StyleSheet.create(theme => ({
425
425
  color: theme.color.grey[700],
426
426
  },
427
427
  ghost: {
428
- color: theme.color.purple[600],
428
+ color: theme.color.purple[700],
429
429
  },
430
430
  },
431
431
  size: {
@@ -477,11 +477,11 @@ const styles = StyleSheet.create(theme => ({
477
477
  isError: {
478
478
  true: {
479
479
  backgroundColor: theme.color.red[50],
480
- borderColor: theme.color.red[200],
480
+ borderColor: theme.color.red[300],
481
481
  borderWidth: 1,
482
482
  },
483
483
  false: {
484
- backgroundColor: theme.color.blue[50],
484
+ backgroundColor: theme.color.blue[200],
485
485
  borderColor: theme.color.blue[200],
486
486
  borderWidth: 1,
487
487
  },
@@ -502,7 +502,7 @@ const styles = StyleSheet.create(theme => ({
502
502
  color: theme.color.red[800],
503
503
  },
504
504
  false: {
505
- color: theme.color.blue[800],
505
+ color: theme.color.blue[700],
506
506
  },
507
507
  },
508
508
  },
@@ -593,7 +593,7 @@ const styles = StyleSheet.create(theme => ({
593
593
  variant: 'solid',
594
594
  color: 'purple',
595
595
  styles: {
596
- backgroundColor: theme.color.purple[500],
596
+ backgroundColor: theme.color.purple[400],
597
597
  },
598
598
  },
599
599
  {
@@ -616,7 +616,7 @@ const styles = StyleSheet.create(theme => ({
616
616
  variant: 'outline',
617
617
  color: 'purple',
618
618
  styles: {
619
- borderColor: theme.color.purple[500],
619
+ borderColor: theme.color.purple[400],
620
620
  backgroundColor: 'transparent',
621
621
  },
622
622
  },
@@ -706,7 +706,7 @@ const styles = StyleSheet.create(theme => ({
706
706
  variant: 'outline',
707
707
  color: 'purple',
708
708
  styles: {
709
- color: theme.color.purple[600],
709
+ color: theme.color.purple[700],
710
710
  },
711
711
  },
712
712
  {
@@ -749,7 +749,7 @@ const styles = StyleSheet.create(theme => ({
749
749
  variants: {
750
750
  variant: {
751
751
  primary: {
752
- backgroundColor: theme.color.purple[500],
752
+ backgroundColor: theme.color.purple[400],
753
753
  },
754
754
  secondary: {
755
755
  backgroundColor: theme.color.grey[100],
@@ -592,7 +592,7 @@ Access the full primitive color palette for custom use cases:
592
592
  ```tsx
593
593
  const styles = StyleSheet.create(theme => ({
594
594
  customElement: {
595
- backgroundColor: theme.color.purple[500],
595
+ backgroundColor: theme.color.purple[400],
596
596
  borderColor: theme.color.grey[300],
597
597
  color: theme.color.grey[900],
598
598
  },
@@ -739,9 +739,6 @@ const styles = StyleSheet.create(theme => ({
739
739
  bold: {
740
740
  fontWeight: theme.font.weight.bold, // 700
741
741
  },
742
- heavy: {
743
- fontWeight: theme.font.weight.heavy, // 900
744
- },
745
742
  }));
746
743
  ```
747
744
 
package/eslint.config.js CHANGED
@@ -25,7 +25,8 @@ export default tseslint.config(
25
25
  'react-refresh': reactRefresh,
26
26
  },
27
27
  rules: {
28
- ...reactHooks.configs.recommended.rules,
28
+ 'react-hooks/rules-of-hooks': 'error',
29
+ 'react-hooks/exhaustive-deps': 'warn',
29
30
  'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
30
31
  '@typescript-eslint/no-explicit-any': 'off',
31
32
  },