Skip to content

Commit 01d614b

Browse files
author
yaroslav8765
committed
feat: add new styles params for the checkbox
1 parent 36d87c9 commit 01d614b

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

adminforth/modules/styles.ts

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,19 @@ export const styles = () => ({
6969
lightDropdownOptionsHoverBackground: "#f3f4f6", //dropdown menu hover background color
7070
lightDropdownOptionsText: "#000000", //dropdown menu hover background color
7171

72+
lightCheckboxBgUnchecked: "alias:lightPrimaryContrast lighten", //checkbox unchecked state bg
73+
lightCheckboxBgChecked: "alias:lightPrimary", //cheched state bg
74+
lightCheckboxIconColor: "alias:lightPrimaryContrast lighten", //checked icon color
75+
lightCheckboxBorderColor: "alias:lightPrimary darken", //border color
76+
lightFocusRing: "alias:lightPrimary lighten", //focus ring color
77+
lightTextLabel: "black", //text color of checkbox label
78+
7279
// colors for dark theme
7380
darkHtml: "#111827",
7481

7582
darkPrimary: "rgb(130 172 255)", // primary color
7683
darkPrimaryContrast: "alias:darkPrimary inverse", // primary color contrast
77-
darkPrimaryOpacity: "#212A40", // primary color opacity
84+
darkPrimaryOpacity: "alias:darkPrimary opacity:0.2", // primary color opacity
7885

7986
darkNavbar: "#111827",
8087
darkNavbarBorder: "#e5e7eb",
@@ -111,15 +118,21 @@ export const styles = () => ({
111118
darkFormBorder: "#222222",
112119
darkFormHeading: "alias:darkListTableHeading",
113120

114-
darkDropdownButtonsBackground: "#374151",
115-
darkDropownButtonsBorder: "#4b5563",
121+
darkDropdownButtonsBackground: "alias:darkForm darken",
122+
darkDropownButtonsBorder: "alias:darkForm lighten",
116123
darkDropdownButtonsText: "#ffffff",
117124
darkDropdownButtonsPlaceholderText: "#9ca3af",
118125

119-
darkDropdownOptionsBackground: "#374151",
120-
darkDropdownOptionsHoverBackground: "#4b5563",
126+
darkDropdownOptionsBackground: "#alias:darkForm lighten",
127+
darkDropdownOptionsHoverBackground: "alias:darkForm",
121128
darkDropdownOptionsText: "#9ca3af",
122129

130+
darkCheckboxBgUnchecked: "alias:darkPrimaryContrast lighten", //checkbox unchecked state bg
131+
darkCheckboxBgChecked: "alias:darkPrimary", //cheched state bg
132+
darkCheckboxIconColor: "alias:darkPrimaryContrast lighten", //checked icon color
133+
darkCheckboxBorderColor: "alias:darkPrimary darken", //border color
134+
darkFocusRing: "alias:darkPrimary lighten",
135+
darkTextLabel: "white",
123136
},
124137
boxShadow: {
125138
customLight: "0 4px 8px rgba(0, 0, 0, 0.1)", // Lighter shadow
@@ -138,5 +151,3 @@ export const styles = () => ({
138151
}
139152
});
140153

141-
142-

0 commit comments

Comments
 (0)