Spaces:
Paused
Paused
File size: 664 Bytes
3c3f089 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { RootState } from "../store";
type InitialStateType = {
theme: {
text: string;
background: string;
foreground: string;
border: string;
};
};
const initialState = {
theme: {
text: "#ffffff",
background: "#171E25",
foreground: "#1B252D",
border: "#263440",
},
};
export const themeSlice = createSlice({
name: "theme",
initialState: initialState,
reducers: {
set_Theme: (state) => {},
},
});
export const { set_Theme } = themeSlice.actions;
export const theme_state = (state: RootState) => state.theme;
export default themeSlice.reducer;
|