aboutsummaryrefslogtreecommitdiff
path: root/src/ui/c-select/c-select.theme.ts
diff options
context:
space:
mode:
authorGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-08-07 17:30:00 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-07 15:30:00 +0000
commitdfa1ba85548508e680f68200ea521be95c3eafe0 (patch)
treec166b635e5eb006806bd40a88252d90735be9ca4 /src/ui/c-select/c-select.theme.ts
parent6498c9b0fa0427d567506dbd4a6e87d227b138d4 (diff)
downloadit-tools-dfa1ba85548508e680f68200ea521be95c3eafe0.tar.gz
it-tools-dfa1ba85548508e680f68200ea521be95c3eafe0.tar.zst
it-tools-dfa1ba85548508e680f68200ea521be95c3eafe0.zip
feat(ui): added c-select in the ui lib (#550)
* feat(ui): added c-select in the ui lib * refactor(ui): switched n-select to c-select
Diffstat (limited to 'src/ui/c-select/c-select.theme.ts')
-rw-r--r--src/ui/c-select/c-select.theme.ts60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/ui/c-select/c-select.theme.ts b/src/ui/c-select/c-select.theme.ts
new file mode 100644
index 0000000..d799671
--- /dev/null
+++ b/src/ui/c-select/c-select.theme.ts
@@ -0,0 +1,60 @@
+import { defineThemes } from '../theme/theme.models';
+import { appThemes } from '../theme/themes';
+
+const sizes = {
+ small: {
+ height: '28px',
+ fontSize: '12px',
+ },
+ medium: {
+ height: '34px',
+ fontSize: '14px',
+ },
+ large: {
+ height: '40px',
+ fontSize: '16px',
+ },
+};
+
+export const { useTheme } = defineThemes({
+ dark: {
+ sizes,
+
+ backgroundColor: '#333333',
+ borderColor: '#333333',
+ dropdownShadow: 'rgba(0, 0, 0, 0.2) 0px 8px 24px',
+
+ option: {
+ hover: {
+ backgroundColor: '#444444',
+ },
+ active: {
+ textColor: appThemes.dark.primary.color,
+ },
+ },
+
+ focus: {
+ backgroundColor: '#1ea54c1a',
+ },
+ },
+ light: {
+ sizes,
+
+ backgroundColor: '#ffffff',
+ borderColor: '#e0e0e69e',
+ dropdownShadow: 'rgba(149, 157, 165, 0.2) 0px 8px 24px',
+
+ option: {
+ hover: {
+ backgroundColor: '#eee',
+ },
+ active: {
+ textColor: appThemes.light.primary.color,
+ },
+ },
+
+ focus: {
+ backgroundColor: '#ffffff',
+ },
+ },
+});