@idealyst/theme 1.0.94 → 1.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/theme",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Theming system for Idealyst Framework",
5
5
  "readme": "README.md",
6
6
  "main": "src/index.ts",
package/src/darkTheme.ts CHANGED
@@ -2,6 +2,15 @@ import { ButtonSizeValue, ColorValue, Pallet, Shade, Size } from "./theme";
2
2
  import { Theme } from "./theme/index";
3
3
 
4
4
  export const darkTheme: Theme = {
5
+ interaction: {
6
+ focusedBackground: 'rgba(96, 165, 250, 0.15)',
7
+ focusBorder: 'rgba(96, 165, 250, 0.4)',
8
+ opacity: {
9
+ hover: 0.85,
10
+ active: 0.7,
11
+ disabled: 0.4,
12
+ },
13
+ },
5
14
  shadows: {
6
15
  none: {},
7
16
  sm: {
package/src/lightTheme.ts CHANGED
@@ -2,7 +2,16 @@ import { ButtonSizeValue, ColorValue, Pallet, Shade, Size } from "./theme";
2
2
  import { Theme } from "./theme/index";
3
3
 
4
4
  export const lightTheme: Theme = {
5
- shadows: {
5
+ interaction: {
6
+ focusedBackground: 'rgba(59, 130, 246, 0.08)',
7
+ focusBorder: 'rgba(59, 130, 246, 0.3)',
8
+ opacity: {
9
+ hover: 0.9,
10
+ active: 0.75,
11
+ disabled: 0.5,
12
+ },
13
+ },
14
+ shadows: {
6
15
  none: {},
7
16
  sm: {
8
17
  elevation: 1,
@@ -3,11 +3,31 @@ import { Intent, IntentValue } from "./intent";
3
3
  import { AllComponentSizes, SizeValue } from "./size";
4
4
  import { AllShadowTypes } from "./shadow";
5
5
 
6
+ /**
7
+ * Interaction state configuration for hover, focus, active states
8
+ */
9
+ export type InteractionConfig = {
10
+ /** Background color for focused/highlighted items (e.g., list items, select options) */
11
+ focusedBackground: string;
12
+ /** Border/outline color for focused elements */
13
+ focusBorder: string;
14
+ /** Opacity values for various interaction states */
15
+ opacity: {
16
+ /** Opacity for hovered elements */
17
+ hover: number;
18
+ /** Opacity for active/pressed elements */
19
+ active: number;
20
+ /** Opacity for disabled elements */
21
+ disabled: number;
22
+ };
23
+ };
24
+
6
25
  export type Theme = {
7
26
  intents: Record<Intent, IntentValue>;
8
27
  colors: AllColorTypes;
9
28
  sizes: AllComponentSizes;
10
29
  shadows: AllShadowTypes;
30
+ interaction: InteractionConfig;
11
31
  };
12
32
 
13
33
  export * from "./intent";