funuicss 2.6.0 → 2.6.1

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/ui/text/Text.tsx CHANGED
@@ -34,7 +34,7 @@ type TypographyProps = {
34
34
  fontFamily?: string;
35
35
  textShadow?: string;
36
36
  textAlign?: "left" | "center" | "right" | "justify";
37
- opacity?: number;
37
+ opacity?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
38
38
  zIndex?: number;
39
39
  truncate?: number;
40
40
  transform?: string;
@@ -100,8 +100,8 @@ const Text: React.FC<TypographyProps> = ({
100
100
  customStyles,
101
101
  monospace,
102
102
  quote,
103
+ opacity,
103
104
  size = 'base', // default
104
-
105
105
  ...rest
106
106
  }) => {
107
107
  const Tag = block ? 'div' : 'span';
@@ -159,6 +159,7 @@ const mergedStyles: React.CSSProperties = {
159
159
  uppercase ? 'uppercase' : '',
160
160
  lowercase ? 'lowercase' : '',
161
161
  capitalize ? 'capitalize' : '',
162
+ opacity ? 'opacity-' + opacity : '',
162
163
  ]
163
164
  .filter(Boolean)
164
165
  .join(' ');
package/ui/theme/theme.js CHANGED
@@ -42,14 +42,14 @@ var ThemeProvider = function (_a) {
42
42
  var lightTheme = {
43
43
  '--page-bg': '#FFFFFF',
44
44
  '--text-color': '#000000',
45
- '--raiseThemes': '#FFFFFF',
46
45
  };
47
46
  var darkTheme = {
48
47
  '--page-bg': '#121212',
49
48
  '--text-color': '#FFFFFF',
50
- '--raiseThemes': '#202020',
49
+ '--raiseThemes': 'rgba(32, 32, 32, 0.8)',
50
+ '--raiseOpaque': 'rgba(32, 32, 32, 0.94)',
51
51
  '--borderColor': '#333333',
52
- '--lighter': '#202020',
52
+ '--lighter': '#101010',
53
53
  };
54
54
  var selectedTheme = theme === 'dark' ? darkTheme : lightTheme;
55
55
  Object.entries(selectedTheme).forEach(function (_a) {
@@ -13,15 +13,15 @@ const ThemeProvider: React.FC<ThemeProviderProps> = ({ theme, children }) => {
13
13
  const lightTheme = {
14
14
  '--page-bg': '#FFFFFF',
15
15
  '--text-color': '#000000',
16
- '--raiseThemes': '#FFFFFF',
17
16
  };
18
17
 
19
18
  const darkTheme = {
20
19
  '--page-bg': '#121212',
21
20
  '--text-color': '#FFFFFF',
22
- '--raiseThemes': '#202020',
21
+ '--raiseThemes': 'rgba(32, 32, 32, 0.8)',
22
+ '--raiseOpaque': 'rgba(32, 32, 32, 0.94)',
23
23
  '--borderColor': '#333333',
24
- '--lighter': '#202020',
24
+ '--lighter': '#101010',
25
25
  };
26
26
 
27
27
  const selectedTheme = theme === 'dark' ? darkTheme : lightTheme;