Skip to content

Commit 05bb5f3

Browse files
add light theme
1 parent 73127e5 commit 05bb5f3

File tree

5 files changed

+17
-26
lines changed

5 files changed

+17
-26
lines changed

.storybook/preview-head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
.light .sb-show-main.sb-main-centered {
4141
color: #11111F;
42-
background: #E6E6F0;
42+
background: #F7F7FA;
4343
}
4444

4545
.dark .sb-show-main.sb-main-centered {

src/form/Range/Range.story.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ import { RangeSingle } from './RangeSingle';
44

55
export default {
66
title: 'Components/Form/Range',
7-
component: RangeSingle,
8-
decorators: [
9-
Story => (
10-
<div className="bg-panel p-20">
11-
<Story />
12-
</div>
13-
)
14-
]
7+
component: RangeSingle
158
};
169

1710
export const Single = () => {

src/form/Select/SelectInput/SelectInputTheme.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ export const selectInputTheme: SelectInputTheme = {
9292
...baseTheme,
9393
base: [
9494
baseTheme.base,
95-
'bg-panel text-panel-content border-panel-accent border-solid hover:border-panel-accent',
96-
// 'hover:after:bg-input-hover focus-within:after:bg-input-focus',
97-
'hover:after:bg-[radial-gradient(circle,_#105EFF_0%,_#105EFF_36%,_#242433_100%)]',
98-
'focus-within:after:bg-[radial-gradient(circle,_#93B6FF_0%,_#105EFF_36%,_#3D3D4D_90%,_#242433_100%)]',
95+
'bg-panel text-panel-content border-panel-accent border-solid hover:border-panel-accent light:hover:border-panel-accent',
96+
'hover:after:bg-[radial-gradient(circle,_#105EFF_0%,_#105EFF_36%,_#242433_100%)] light:hover:after:bg-[radial-gradient(circle,_#105EFF_0%,_#105EFF_36%,_#E6E6F0_100%)]',
97+
'focus-within:after:bg-[radial-gradient(circle,_#93B6FF_0%,_#105EFF_36%,_#3D3D4D_90%,_#242433_100%)] light:focus-within:after:bg-[radial-gradient(circle,_#105EFF_10%,_#93B6FF_36%,_#E6E6F0_90%)]',
9998
'hover:after:content-[""] hover:after:absolute hover:after:mx-1 hover:after:h-px after:z-[2] hover:after:rounded hover:after:-bottom-[0px] hover:after:inset-x-0.5',
10099
'focus-within:after:content-[""] focus-within:after:absolute focus-within:after:mx-0 focus-within:after:h-px after:z-[2] focus-within:after:rounded focus-within:after:-bottom-[0px] focus-within:after:inset-x-0.5'
101100
].join(' '),
@@ -105,9 +104,9 @@ export const selectInputTheme: SelectInputTheme = {
105104
].join(' '),
106105
disabled: [
107106
baseTheme.disabled,
108-
'text-panel-secondary-content/40 border-surface'
107+
'text-panel-secondary-content/40 border-surface light:hover:border-surface'
109108
].join(' '),
110-
error: [baseTheme.error, 'border-error'].join(' '),
109+
error: [baseTheme.error, 'border-error light:border-error/20'].join(' '),
111110
suffix: {
112111
...baseTheme.suffix,
113112
button: [baseTheme.suffix.button, 'hover:cursor-pointer'].join(' ')

src/form/Select/SelectMenu/SelectMenuTheme.ts

+9-8
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,12 @@ export const selectMenuTheme: SelectMenuTheme = {
6767
option: {
6868
...baseTheme.option,
6969
base: [baseTheme.option.base, 'text-panel-secondary-content '].join(' '),
70-
hover: [baseTheme.option.hover, 'hover:bg-vulcan hover:text-mystic'].join(
71-
' '
72-
),
70+
hover: [
71+
baseTheme.option.hover,
72+
'hover:bg-vulcan hover:text-mystic light:hover:bg-vulcan/5 light:hover:text-panel-secondary-content'
73+
].join(' '),
7374
active: [baseTheme.option.active, 'bg-vulcan hover:text-mystic'].join(' '),
74-
selected: [
75-
baseTheme.option.selected,
76-
'text-primary-active light:bg-primary-active light:[&>div>span]:invert'
77-
].join(' ')
75+
selected: [baseTheme.option.selected, 'text-primary-active'].join(' ')
7876
}
7977
};
8078

@@ -84,7 +82,10 @@ export const cssVarsSelectMenuTheme: SelectMenuTheme = {
8482
baseTheme.base,
8583
'bg-[var(--select-menu-background)] [border:_var(--select-menu-border)] rounded-[var(--select-menu-border-radius)]'
8684
].join(' '),
87-
groupTitle: [baseTheme.groupTitle, 'text-gray-600'].join(' '),
85+
groupItem: {
86+
...baseTheme.groupItem,
87+
title: [baseTheme.groupItem.title, 'text-gray-600'].join(' ')
88+
},
8889
option: {
8990
...baseTheme.option,
9091
base: [

tailwind.config.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ const config: Config = {
4040
'button-gradient-hover':
4141
'linear-gradient(283deg, #44F 0%, rgba(23, 23, 255, 0.10) 100%)',
4242
'button-gradient-focus':
43-
'linear-gradient(283deg, #0D0DD2 0%, rgba(23, 23, 255, 0.10) 100%)',
44-
'input-hover': 'radial-gradient(circle, #105EFF 0%, #105EFF 36%, #242433 100%)',
45-
'input-focus': 'radial-gradient(circle, #93B6FF 0%, #105EFF 36%, #3D3D4D 90%, #242433 100%)'
43+
'linear-gradient(283deg, #0D0DD2 0%, rgba(23, 23, 255, 0.10) 100%)'
4644
}
4745
}
4846
},

0 commit comments

Comments
 (0)