Skip to content

Commit 5dbb99d

Browse files
authored
fix: styles (#577)
1 parent 2006cec commit 5dbb99d

File tree

24 files changed

+62
-27
lines changed

24 files changed

+62
-27
lines changed

.changeset/big-dragons-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Allow to pass numbers to {min/max}{Width/Height} styles.

.changeset/gorgeous-jars-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Fix style property leakage in Panel component.

.changeset/hip-plums-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Fix transition aliases.

.changeset/neat-seas-reflect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Change default font color to dark-02.

src/components/GlobalStyles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const BODY_STYLES = {
3030
'-moz-osx-font-smoothing': 'grayscale',
3131
margin: '0',
3232
padding: '0',
33-
color: 'rgba(20, 20, 70, .75)',
33+
color: 'var(--dark-02-color)',
3434
'font-size': '14px',
3535
'line-height': '20px',
3636
'letter-spacing': '0.02em',

src/components/actions/Button/Button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ const ButtonElement = tasty({
144144
'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':
145145
'#purple-text',
146146
'[data-type="link"] & pressed': '#purple',
147-
'[data-type="neutral"]': '#dark.75',
148-
'[data-type="neutral"] & hovered': '#dark.75',
147+
'[data-type="neutral"]': '#dark-02',
148+
'[data-type="neutral"] & hovered': '#dark-02',
149149
'[data-type="neutral"] & pressed': '#purple',
150150

151151
// other
@@ -198,8 +198,8 @@ const ButtonElement = tasty({
198198
color: {
199199
'': '#white',
200200

201-
'[data-type="neutral"]': '#dark.75',
202-
'[data-type="neutral"] & hovered': '#dark.75',
201+
'[data-type="neutral"]': '#dark-02',
202+
'[data-type="neutral"] & hovered': '#dark-02',
203203
'[data-type="secondary"]': '#danger',
204204
'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':
205205
'#danger-text',

src/components/content/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ContentElement = tasty({
2020
styles: {
2121
gridArea: 'content',
2222
preset: 'p3',
23-
color: '#dark.75',
23+
color: '#dark-02',
2424
display: 'block',
2525
flow: 'column',
2626
gap: '2x',

src/components/content/Paragraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { CubeTextProps, Text } from './Text';
1212

1313
const DEFAULT_STYLES: Styles = {
1414
preset: 'p3',
15-
color: '#dark.75',
15+
color: '#dark-02',
1616
display: 'block',
1717
};
1818

src/components/fields/Checkbox/Checkbox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const CheckboxWrapperElement = tasty({
8181
preset: 'default',
8282
cursor: 'pointer',
8383
width: 'max max-content',
84+
color: '#dark-02',
8485
},
8586
});
8687

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ const TriggerElement = tasty({
7979
placeItems: 'center',
8080
placeContent: 'center',
8181
placeSelf: 'stretch',
82-
radius: 'right',
82+
radius: '(1r - 1bw) right',
8383
width: '4x',
8484
color: {
85-
'': '#dark.75',
86-
hovered: '#dark.75',
85+
'': '#dark-02',
86+
hovered: '#dark-02',
8787
pressed: '#purple',
8888
'[disabled]': '#dark.30',
8989
},

0 commit comments

Comments
 (0)