aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-11 21:07:21 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-11 21:07:21 +0100
commit0ac2806481852249c6a2d4a032cc2c0324a58ef8 (patch)
tree03292af10a5a97b824293ff8878d2a5c821d5ed2 /packages/theme/src
parentexpose legacy styles (diff)
downloadferdium-app-0ac2806481852249c6a2d4a032cc2c0324a58ef8.tar.gz
ferdium-app-0ac2806481852249c6a2d4a032cc2c0324a58ef8.tar.zst
ferdium-app-0ac2806481852249c6a2d4a032cc2c0324a58ef8.zip
Add toggle element to @meetfranz/forms
Diffstat (limited to 'packages/theme/src')
-rw-r--r--packages/theme/src/themes/dark/index.ts4
-rw-r--r--packages/theme/src/themes/default/index.ts7
2 files changed, 11 insertions, 0 deletions
diff --git a/packages/theme/src/themes/dark/index.ts b/packages/theme/src/themes/dark/index.ts
index 7eac5a3c3..0cc4caa16 100644
--- a/packages/theme/src/themes/dark/index.ts
+++ b/packages/theme/src/themes/dark/index.ts
@@ -24,3 +24,7 @@ export const inputDisabledOpacity = 0.5;
24export const inputScorePasswordBackground = legacyStyles.darkThemeGrayDark; 24export const inputScorePasswordBackground = legacyStyles.darkThemeGrayDark;
25export const inputModifierColor = color(legacyStyles.darkThemeGrayLighter).lighten(0.3).hex(); 25export const inputModifierColor = color(legacyStyles.darkThemeGrayLighter).lighten(0.3).hex();
26export const inputPlaceholderColor = color(legacyStyles.darkThemeGrayLighter).darken(0.1).hex(); 26export const inputPlaceholderColor = color(legacyStyles.darkThemeGrayLighter).darken(0.1).hex();
27
28// Toggle
29export const toggleBackground = legacyStyles.darkThemeGray;
30export const toggleButton = legacyStyles.darkThemeGrayLighter;
diff --git a/packages/theme/src/themes/default/index.ts b/packages/theme/src/themes/default/index.ts
index b22730413..ea218cd8f 100644
--- a/packages/theme/src/themes/default/index.ts
+++ b/packages/theme/src/themes/default/index.ts
@@ -42,3 +42,10 @@ export const inputPrefixColor = legacyStyles.themeGrayLight;
42export const inputPrefixBackground = legacyStyles.themeGrayLighter; 42export const inputPrefixBackground = legacyStyles.themeGrayLighter;
43export const inputDisabledOpacity = 0.5; 43export const inputDisabledOpacity = 0.5;
44export const inputScorePasswordBackground = legacyStyles.themeGrayLighter; 44export const inputScorePasswordBackground = legacyStyles.themeGrayLighter;
45
46// Toggle
47export const toggleBackground = legacyStyles.themeGrayLighter;
48export const toggleButton = legacyStyles.themeGrayLight;
49export const toggleButtonActive = brandPrimary;
50export const toggleWidth = 40;
51export const toggleHeight = 14;