-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated theme to work via css variables #433
Conversation
--lido-rgb-errorHover: 212, 76, 77; | ||
--lido-color-errorContrast: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-rgb-
is used in some of widgets for re-using color but making it transparent. please, preserve it in new version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, will add
}> = ({ jsStyleScript = true, cssFont = false }) => ( | ||
<> | ||
{jsStyleScript ? <ScriptThemeValue /> : null} | ||
{cssFont ? <Fonts /> : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why it is false by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,44 @@ | |||
const getDefinedVariables = async () => { | |||
const content = await fs.readFile('./packages/theme/theme.css', 'utf-8') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave annotation in theme.css that it is used here and should not be moved or renamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, please add comment for this file - what is it doing?
process.exit(1) | ||
} | ||
|
||
void main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top-level await should be already supported, no need to wrap
Description
Also fixes UI-920
ContentTheme
&ThemeToggler
components inside theme folder since they are directly related to theme functionalityThemeProvider
, which accepts any theme anymoreDemo
Content Theme
Theme Providers
Theme Toggler
Cookie is also supported

Manually changed to light

System theme also supported