alouette 7.0.0-beta.17 → 7.0.0-beta.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alouette",
3
- "version": "7.0.0-beta.17",
3
+ "version": "7.0.0-beta.18",
4
4
  "description": "tamagui-based design system with configurable defaults",
5
5
  "author": "Christophe Hurpeau <302891+christophehurpeau@users.noreply.github.com> (https://christophe.hurpeau.com)",
6
6
  "license": "UNLICENSED",
@@ -19,7 +19,7 @@ export function Icon({
19
19
  size = 20,
20
20
  align = "auto",
21
21
  contrast,
22
- color = contrast ? "$contrastTextColor" : "$mainTextColor",
22
+ color = contrast ? "$contrastTextColor" : "$textColor",
23
23
  ...props
24
24
  }: IconProps): ReactNode {
25
25
  const style = useStyle({
@@ -5,7 +5,7 @@ import { createContext, useContext } from "react";
5
5
  export const Typography = styled(Text, {
6
6
  name: "Typography",
7
7
  fontFamily: "$body",
8
- color: "$mainTextColor",
8
+ color: "$textColor",
9
9
  fontWeight: "$regular",
10
10
 
11
11
  variants: {
@@ -15,6 +15,7 @@ import type { createAlouetteTokens } from "./createAlouetteTokens";
15
15
 
16
16
  export interface ColorTheme {
17
17
  backgroundColor: Variable<string>;
18
+ textColor: Variable<string>;
18
19
  mainColor: Variable<string>;
19
20
  mainTextColor: Variable<string>;
20
21
  contrastTextColor: Variable<string>;
@@ -82,6 +83,7 @@ export const createColorTheme = <const ColorScales extends AlouetteColorScales>(
82
83
 
83
84
  return {
84
85
  backgroundColor,
86
+ textColor,
85
87
  mainColor: getColor(6),
86
88
  mainTextColor: getColor(9),
87
89
  contrastTextColor,