redark-theme
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "redark-theme", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A dark theme for Redoc", | ||
@@ -5,0 +5,0 @@ "main": "redark.js", |
121
redark.js
@@ -118,4 +118,123 @@ const redark = { | ||
const themeAsString = ` | ||
const redark = { | ||
codeBlock: { | ||
backgroundColor: '#18181b', | ||
}, | ||
colors: { | ||
error: { | ||
main: '#ef4444', | ||
}, | ||
border: { | ||
light: '#27272a', | ||
dark: '#a1a1aa', | ||
}, | ||
http: { | ||
basic: '#71717a', | ||
delete: '#ef4444', | ||
get: '#22c55e', | ||
head: '#d946ef', | ||
link: '#06b6d4', | ||
options: '#eab308', | ||
patch: '#f97316', | ||
post: '#3b82f6', | ||
put: '#ec4899', | ||
}, | ||
primary: { | ||
main: '#71717a', | ||
}, | ||
responses: { | ||
error: { | ||
backgroundColor: 'rgba(239,68,68,0.1)', | ||
borderColor: '#fca5a5', | ||
color: '#ef4444', | ||
tabTextColor: '#ef4444', | ||
}, | ||
info: { | ||
backgroundColor: 'rgba(59,131,246,0.1)', | ||
borderColor: '#93c5fd', | ||
color: '#3b82f6', | ||
tabTextColor: '#3b82f6', | ||
}, | ||
redirect: { | ||
backgroundColor: 'rgba(234,179,8,0.1)', | ||
borderColor: '#fde047', | ||
color: '#eab308', | ||
tabTextColor: '#eab308', | ||
}, | ||
success: { | ||
backgroundColor: 'rgba(34,197,94,0.1)', | ||
borderColor: '#86efac', | ||
color: '#22c55e', | ||
tabTextColor: '#22c55e', | ||
}, | ||
warning: { | ||
main: '#eab308', | ||
}, | ||
}, | ||
secondary: { | ||
main: '#3f3f46', | ||
light: '#27272a', | ||
}, | ||
success: { | ||
main: '#22c55e', | ||
}, | ||
text: { | ||
primary: '#fafafa', | ||
secondary: '#d4d4d8', | ||
light: '#3f3f46', | ||
}, | ||
}, | ||
fab: { | ||
backgroundColor: '#52525b', | ||
color: '#67e8f9', | ||
}, | ||
rightPanel: { | ||
backgroundColor: '#27272a', | ||
servers: { | ||
overlay: { | ||
backgroundColor: '#27272a', | ||
}, | ||
url: { | ||
backgroundColor: '#18181b', | ||
}, | ||
}, | ||
}, | ||
schema: { | ||
linesColor: '#d8b4fe', | ||
typeNameColor: '#93c5fd', | ||
typeTitleColor: '#1d4ed8', | ||
}, | ||
sidebar: { | ||
activeTextColor: '#ffffff', | ||
backgroundColor: '#18181b', | ||
textColor: '#a1a1aa', | ||
}, | ||
typography: { | ||
code: { | ||
backgroundColor: '#18181b', | ||
color: '#fde047', | ||
}, | ||
links: { | ||
color: '#0ea5e9', | ||
hover: '#0ea5e9', | ||
textDecoration: 'none', | ||
hoverTextDecoration: 'underline', | ||
visited: '#0ea5e9', | ||
}, | ||
}, | ||
extensionsHook: (c) => { | ||
if (c === 'UnderlinedHeader') { | ||
return { | ||
color: '#a1a1aa', | ||
fontWeight: 'bold', | ||
borderBottom: '1px solid #3f3f46', | ||
}; | ||
} | ||
}, | ||
}; | ||
`; | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = { theme: redark }; | ||
module.exports = { theme: redark, themeAsString }; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7242
246