Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123245373
theme.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 25, 23:36
Size
850 B
Mime Type
text/x-java
Expires
Sun, Jul 27, 23:36 (2 d)
Engine
blob
Format
Raw Data
Handle
27624701
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
theme.js
View Options
import
_extends
from
"@babel/runtime/helpers/esm/extends"
;
import
_objectWithoutPropertiesLoose
from
"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"
;
import
React
from
'react'
;
export
var
defaultTheme
=
{
background
:
'#0b1521'
,
backgroundAlt
:
'#132337'
,
foreground
:
'white'
,
gray
:
'#3f4e60'
,
grayAlt
:
'#222e3e'
,
inputBackgroundColor
:
'#fff'
,
inputTextColor
:
'#000'
,
success
:
'#00ab52'
,
danger
:
'#ff0085'
,
active
:
'#006bff'
,
warning
:
'#ffb200'
};
var
ThemeContext
=
/*#__PURE__*/
React
.
createContext
(
defaultTheme
);
export
function
ThemeProvider
(
_ref
)
{
var
theme
=
_ref
.
theme
,
rest
=
_objectWithoutPropertiesLoose
(
_ref
,
[
"theme"
]);
return
/*#__PURE__*/
React
.
createElement
(
ThemeContext
.
Provider
,
_extends
({
value
:
theme
},
rest
));
}
export
function
useTheme
()
{
return
React
.
useContext
(
ThemeContext
);
}
Event Timeline
Log In to Comment