You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to apply theming in my project as it was made here.
I used the same patterns to define base colors for elements, but it works only for dark scheme.
I've created necessary files for approaching this goal:
$--colors: (
'primary': (
'base': #16a896
),
'success': (
'base': #21ba45
),
'warning': (
'base': #f2711c
),
'danger': (
'base': #a8164b
),
'error': (
'base': #db2828
),
'info': (
'base': #42b8dd
)
);
// You should use them in scss, because we calculate it by sass.
// comment next lines to use default color
@forward "element-plus/theme-chalk/src/common/var.scss" with (
// do not use same name, it will override.
$colors: $--colors,
//$button-padding-horizontal: ('default': 50px)
);
@use "./dark.scss";
And in the result my color scheme works only for dark scheme (colors from dark.scss), but for light scheme all colors are default despite the fact I overridden it in index.scss
The text was updated successfully, but these errors were encountered:
I'd like to apply theming in my project as it was made here.
I used the same patterns to define base colors for elements, but it works only for dark scheme.
I've created necessary files for approaching this goal:
src/styles/index.scss
src/styles/element/index.scss
src/styles/element/dark.scss
Imported it in main.ts and vite.config.ts
main.ts
vite.config.ts
And in the result my color scheme works only for dark scheme (colors from
dark.scss
), but for light scheme all colors are default despite the fact I overridden it inindex.scss
The text was updated successfully, but these errors were encountered: