cherry-styled-components 0.1.9 → 0.1.10

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": "cherry-styled-components",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Cherry is a design system for the modern web. Designed in Figma, built in React using Typescript.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "react": "^19.2.4",
33
33
  "react-dom": "^19.2.4",
34
- "lucide-react": "^0.563.0",
34
+ "lucide-react": "^0.564.0",
35
35
  "polished": "^4.3.1"
36
36
  },
37
37
  "devDependencies": {
@@ -52,7 +52,11 @@ export const buttonStyles = (
52
52
  ${!disabled &&
53
53
  $variant === "primary" &&
54
54
  css`
55
- color: ${$outline ? theme.colors.primary : theme.colors.light};
55
+ color: ${$outline
56
+ ? theme.colors.primary
57
+ : theme.isDark
58
+ ? theme.colors.dark
59
+ : theme.colors.light};
56
60
  background: ${$outline ? "transparent" : theme.colors.primary};
57
61
  border: solid 2px ${theme.colors.primary};
58
62
  box-shadow: 0 0 0 0px ${theme.colors.primary};
@@ -75,7 +79,11 @@ export const buttonStyles = (
75
79
  ${!disabled &&
76
80
  $variant === "secondary" &&
77
81
  css`
78
- color: ${$outline ? theme.colors.secondary : theme.colors.light};
82
+ color: ${$outline
83
+ ? theme.colors.secondary
84
+ : theme.isDark
85
+ ? theme.colors.dark
86
+ : theme.colors.light};
79
87
  background: ${$outline ? "transparent" : theme.colors.secondary};
80
88
  border: solid 2px ${theme.colors.secondary};
81
89
  box-shadow: 0 0 0 0px ${theme.colors.secondary};
@@ -98,7 +106,11 @@ export const buttonStyles = (
98
106
  ${!disabled &&
99
107
  $variant === "tertiary" &&
100
108
  css`
101
- color: ${$outline ? theme.colors.tertiary : theme.colors.light};
109
+ color: ${$outline
110
+ ? theme.colors.tertiary
111
+ : theme.isDark
112
+ ? theme.colors.dark
113
+ : theme.colors.light};
102
114
  background: ${$outline ? "transparent" : theme.colors.tertiary};
103
115
  border: solid 2px ${theme.colors.tertiary};
104
116
  box-shadow: 0 0 0 0px ${theme.colors.tertiary};